/* Family Keep: the app's palette (ios Assets.xcassets / android ui/Theme.kt), light and dark. */
:root {
  color-scheme: light dark;
  --paper: #fbf8f0;
  --card: #ffffff;
  --ink: #16302b;
  --muted: #5d6d69;
  --line: #e7e2d6;
  --gold: #e0a63f;
  --gold-soft: #faedcd;
  --brand: #074e42;
  --brand-ink: #fbf8f0;
  --brand-soft: #dcebe6;
  --danger: #a8382c;
  --field: #f6f2e8;
  --radius: 18px;
  --max: 1120px;
  --shadow: 0 18px 50px -18px rgb(7 78 66 / 0.35);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101614;
    --card: #1a2320;
    --ink: #e9f1ee;
    --muted: #9aaba6;
    --line: #2a3632;
    --gold: #e8b55a;
    --gold-soft: #3a3120;
    --brand: #5fc2a8;
    --brand-ink: #0b1311;
    --brand-soft: #173b34;
    --danger: #f0877b;
    --field: #222d29;
    --shadow: 0 18px 50px -18px rgb(0 0 0 / 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  font-size: 1.0625rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--card); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--brand); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 52px; padding: 0 1.4rem; border-radius: 16px; border: 0;
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
  background: var(--brand); color: var(--brand-ink);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: var(--brand-soft); color: var(--brand); }
.btn.small { min-height: 40px; padding: 0 1rem; border-radius: 12px; font-size: 0.95rem; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 650; font-size: 0.9rem; color: var(--brand);
  background: var(--brand-soft); padding: 0.35rem 0.8rem; border-radius: 999px; margin-bottom: 1.2rem; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8rem 0 1rem; }
.fine { color: var(--muted); font-size: 0.92rem; }
.phones { position: relative; display: flex; justify-content: center; min-height: 540px; }
.phone {
  width: min(270px, 62vw); border-radius: 34px; padding: 9px; background: #0d1412;
  box-shadow: var(--shadow); border: 1px solid #2a3632;
}
.phone img { border-radius: 26px; width: 100%; aspect-ratio: 1 / 2; object-fit: cover; }
.phones .phone.back { position: absolute; transform: translate(-38%, 6%) rotate(-7deg); opacity: 0.97; }
.phones .phone.front { position: relative; transform: translate(22%, 0) rotate(3deg); }
@media (max-width: 900px) {
  .phones { min-height: 0; padding-bottom: 1rem; }
  .phones .phone.back { display: none; }
  .phones .phone.front { transform: none; }
}

/* Trust strip */
.strip { border-block: 1px solid var(--line); background: var(--card); }
.strip ul { list-style: none; margin: 0; padding: 1.1rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2.2rem; }
.strip li { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.strip svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature + .feature { margin-top: clamp(4rem, 9vw, 7rem); }
.feature:nth-child(even) .feature-media { order: -1; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
}
.feature-media { display: flex; justify-content: center; }
.feature-media .phone { width: min(290px, 70vw); }
.feature h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.feature p { color: var(--muted); font-size: 1.1rem; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.6rem; }
.checks li { display: flex; gap: 0.65rem; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23074e42' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Privacy panel */
.panel { background: #074e42; color: #fbf8f0; border-radius: 32px; padding: clamp(2rem, 6vw, 4rem); }
.panel h2 { color: #fbf8f0; }
.panel p { color: #d6e6e1; }
.panel a { color: #f3d08f; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.tile { background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.14); border-radius: var(--radius); padding: 1.4rem; }
.tile h3 { color: #fbf8f0; margin-bottom: 0.4em; }
.tile p { margin: 0; font-size: 0.98rem; }

/* Gallery */
.gallery { display: flex; gap: 1.2rem; overflow-x: auto; padding: 0.5rem 1.25rem 1.5rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gallery figure { margin: 0; flex: none; width: 220px; scroll-snap-align: center; }
.gallery .phone { width: 100%; border-radius: 28px; padding: 7px; }
.gallery .phone img { border-radius: 22px; }
.gallery figcaption { text-align: center; color: var(--muted); font-size: 0.92rem; margin-top: 0.7rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; max-width: 900px; margin-inline: auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.card .big { font-size: 2.2rem; font-weight: 750; letter-spacing: -0.02em; margin: 0.2rem 0 0.6rem; }
.card.featured { border: 2px solid var(--brand); }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 0.8rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.2rem; }
.faq summary { cursor: pointer; font-weight: 650; padding: 1.05rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 0.4rem; }

/* Beta form */
.beta { background: var(--gold-soft); }
.beta .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .beta .wrap { grid-template-columns: 1fr; } }
form.card { padding: clamp(1.4rem, 4vw, 2.2rem); display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field > label, fieldset legend { font-weight: 650; }
.hint { color: var(--muted); font-size: 0.9rem; margin: 0; }
input[type="text"], input[type="email"], textarea {
  font: inherit; color: var(--ink); background: var(--field);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 0.8rem 0.9rem; width: 100%;
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--brand); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { display: flex; align-items: center; gap: 0.5rem; background: var(--field); border: 1.5px solid var(--line); border-radius: 12px; padding: 0.65rem 0.9rem; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--brand); width: 1.15rem; height: 1.15rem; margin: 0; }
.consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.consent input { margin-top: 0.2rem; flex: none; }
.error-msg { display: none; color: var(--danger); font-size: 0.9rem; margin: 0; }
input:user-invalid, textarea:user-invalid { border-color: var(--danger); }
.field:has(input:user-invalid) .error-msg, .consent-wrap:has(input:user-invalid) .error-msg, fieldset:has(input:user-invalid) .error-msg { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { border-radius: 12px; padding: 0.9rem 1rem; font-weight: 600; }
.status:empty { display: none; }
.status.ok { background: var(--brand-soft); color: var(--brand); }
.status.err { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important; clip-path: inset(50%) !important; overflow: hidden !important;
  width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
  border: 0 !important; white-space: nowrap !important;
}

/* Legal pages */
.doc { max-width: 760px; margin-inline: auto; padding: clamp(2.5rem, 6vw, 4.5rem) 0 4rem; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2.2em; }
.doc .meta { color: var(--muted); }
.doc li { margin-bottom: 0.4em; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); }
.callout { background: var(--brand-soft); border-radius: 14px; padding: 1rem 1.2rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.site-footer a { color: var(--muted); }
