/* Shared styles for the static site pages (home, privacy, delete account).
   The web app itself is styled by Tailwind and lives at /app. */

:root {
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --text: #172b4d;
  --muted: #5e6c84;
  --line: #dfe1e6;
  --brand: #0052cc;
  --brand-2: #2684ff;
  --brand-ink: #ffffff;
  --green: #36b37e;
  --green-soft: #e3fcef;
  --amber: #ffab00;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(9, 30, 66, 0.06), 0 8px 24px rgba(9, 30, 66, 0.08);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1e1e1e;
    --surface-2: #262626;
    --text: #f4f5f7;
    --muted: #b3bac5;
    --line: #2c2c2c;
    --brand: #4c9aff;
    --brand-2: #2684ff;
    --brand-ink: #0b1d3a;
    --green-soft: #12362a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--brand-ink); background: var(--brand); padding: 8px 14px; }
.nav .hide-sm { display: none; }
@media (min-width: 720px) { .nav .hide-sm { display: inline-block; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; border-radius: 10px; }

/* ---------- hero ---------- */
.hero { padding: 48px 0 24px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } .hero { padding: 80px 0 48px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--green-soft); color: var(--green); font-weight: 600; font-size: 0.85rem;
}
.hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em; margin: 16px 0 12px; }
.hero h1 .accent { color: var(--brand); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; min-width: 168px; padding: 8px 16px 8px 12px; border-radius: 12px;
  background: #0b1d3a; color: #ffffff; border: 1px solid #0b1d3a; text-decoration: none; font-weight: 600; line-height: 1.2;
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge small { display: block; font-size: 0.7rem; font-weight: 400; opacity: 0.85; }
a.store-badge { transition: transform .15s ease; }
a.store-badge:hover { transform: translateY(-1px); }

.phones { position: relative; display: flex; justify-content: center; gap: 14px; }
.phone {
  width: 46%; max-width: 230px; border-radius: 28px; overflow: hidden;
  border: 6px solid #0b1d3a; background: #0b1d3a; box-shadow: var(--shadow);
}
.phone:nth-child(2) { margin-top: 40px; }
.phone img { aspect-ratio: 540 / 1075; width: 100%; height: auto; }

/* ---------- sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 8px; }
.section-lead { color: var(--muted); margin: 0 0 32px; max-width: 40em; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; min-width: 0;
}
section.alt .card { background: var(--bg); }
.card h3 { font-size: 1.05rem; margin: 12px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand);
}
.icon svg { width: 22px; height: 22px; }

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 52px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 16px; left: 20px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.9rem;
  background: var(--brand); color: var(--brand-ink);
}

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 16px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 14px; color: var(--muted); }

/* ---------- document pages (privacy, delete) ---------- */
.doc { padding: 40px 0 64px; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.2; margin: 0 0 6px; }
.doc h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
.doc .muted { color: var(--muted); font-size: 0.9rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 0.5rem 0; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li { margin: 4px 0; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; padding: 16px 18px; margin: 1rem 0; }
.callout.warn { border-left-color: var(--amber); }
.table-scroll { overflow-x: auto; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer .stores { margin-top: 0; width: 100%; }
.site-footer a.store-badge, .site-footer a.store-badge:hover { color: #ffffff; }
.footer-legal { display: flex; flex-direction: column; gap: 2px; }
.site-footer a:hover { color: var(--text); }
