/* Sana website. Tokens mirror LuminaApp/Core/Design/DesignTokens.swift (DS.Pink, DS.Blue,
   DS.Color.field / inkSoft, DS.Radius) and the candy surface in Surfaces.swift:
   warm face, a thin tinted depth lip below, one short soft shadow, a white stroke. */

@font-face { font-family: "Hoopoe"; src: url("/fonts/hoopoe.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Lenia Soft"; src: url("/fonts/lenia-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lenia Soft"; src: url("/fonts/lenia-600.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Lenia Soft"; src: url("/fonts/lenia-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }

:root {
  color-scheme: light;   /* light only, like Clue and Flo: the warm-white page is the brand */
  --pink-50: #fff4f6;
  --pink-100: #ffe4ea;
  --pink-200: #ffc9d6;
  --pink-500: #ff6b8b;
  --pink-fill: #c93660;   /* DS.Pink.p600, one step deeper so white text passes 4.5:1 */
  --pink-800: #a62f57;
  --blue-100: #e3eeff;
  --blue-500: #387deb;
  --blue-fill: #2f6bcc;
  --blue-800: #1e3a73;

  /* Colour plan (after Clue / Flo / Finch): a quiet warm-white page, colour only in
     solid full-width bands. Cream is the mascot's own body colour; pink stays the accent. */
  --page: #fffbf7;        /* warm white, the base of every page */
  --page-alt: #f7f0eb;    /* footer, one step deeper */
  --tint: #ffeef1;        /* hero band: Sana's pink, very light, solid */
  --field: #fff4f6;
  --field-deep: #f3e6e3;  /* hairlines, table rules, quiet fills */
  --card: #ffffff;
  --stroke: #f1e6e2;
  --text: #2a1d24;        /* near-black plum, not grey */
  --text-soft: #6b5560;
  --heading: #c93660;
  --link: #b3355d;
  --accent: var(--pink-500);
  --accent-fill: var(--pink-fill);
  --accent-lip: var(--pink-800);
  --shadow: rgba(90, 40, 55, 0.06);
  --rose: #b8325a;        /* the one loud band (privacy), white text 5.8:1 */
  --rose-soft: #fbe3ea;

  --font-display: "Hoopoe", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-text: "Lenia Soft", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-control: 20px;
  --r-card: 24px;
  --r-hero: 32px;
  --gutter: 16px;
  --max: 1080px;
}

/* Arsa sections: the partner palette (DS.Blue, Theme.navy, fieldPartner). */
/* Arsa sections: the partner palette (DS.Blue, Theme.navy). */
.arsa {
  --tint: #eaf1ff;
  --field-deep: #dbe6fb;
  --heading: #1f3b73;
  --text-soft: #5a6378;
  --link: #1e5bbf;
  --accent: var(--blue-500);
  --accent-fill: var(--blue-fill);
  --accent-lip: var(--blue-800);
  --shadow: rgba(30, 58, 115, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font-text);
  color: var(--text);
  background: var(--page);
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--heading); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.15rem; color: var(--text-soft); max-width: 34em; }
.soft { color: var(--text-soft); }
.small { font-size: 0.9rem; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 12px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-head { padding: 14px 0; }
.site-head .wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { width: 112px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 8px 12px; border-radius: 999px; font-size: 0.98rem; }
.nav a:hover { background: var(--field-deep); }
.nav a[aria-current="page"] { background: var(--card); box-shadow: 0 2px 0 var(--field-deep); }
.lang { border: 1.5px solid var(--field-deep); }
@media (max-width: 560px) {
  .nav { width: 100%; justify-content: space-between; }
  .nav a { padding: 8px 9px; font-size: 0.93rem; }
}

/* Candy surface */
.candy {
  background: var(--card);
  border: 1.5px solid var(--stroke);
  border-radius: var(--r-card);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 12%, transparent), 0 4px 10px var(--shadow);
}

/* Buttons (PillButton): accent fill, depth lip, presses down on tap */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border-radius: var(--r-control);
  background: var(--accent-fill); color: #fff;
  font: 700 1.0625rem/1.2 var(--font-text); text-decoration: none;
  box-shadow: 0 4px 0 var(--accent-lip);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-lip); }
.btn.ghost { background: var(--card); color: var(--heading); box-shadow: 0 4px 0 var(--field-deep); border: 1.5px solid var(--stroke); }

/* App Store badge placeholder (swap for Apple's official badge once the listing is live) */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 22px 10px 16px;
  border-radius: 14px; background: #111; color: #fff; text-decoration: none;
  border: 1.5px solid #333;
}
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge span { display: grid; line-height: 1.15; font-weight: 700; font-size: 1.1rem; }
.store-badge small { font-weight: 500; font-size: 0.75rem; opacity: 0.85; }
.store-badge[aria-disabled="true"] { cursor: default; }

/* Hero: one solid pink band under a plain header (Flo-style), so the page starts warm
   and then settles to the neutral base. */
.hero { padding: 32px 0 56px; background: var(--tint); }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.hero-art { border-radius: var(--r-hero); overflow: hidden; aspect-ratio: 880 / 1000; max-width: 420px; justify-self: center; width: 100%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 24px; }
@media (min-width: 860px) {
  .hero { padding: 40px 0 88px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
}

/* Sections */
section { padding: 48px 0; }
@media (min-width: 860px) { section { padding: 72px 0; } }

.features { display: grid; gap: 28px; align-items: start; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 16px; }
.feature-list img { width: 52px; height: 52px; }
.feature-list h3 { margin: 2px 0 4px; font-size: 1.15rem; }
.feature-list p { margin: 0; color: var(--text-soft); }
.side-art { border-radius: var(--r-card); overflow: hidden; display: none; }
@media (min-width: 860px) {
  .features { grid-template-columns: 1.3fr 0.7fr; gap: 40px; }
  .side-art { display: block; position: sticky; top: 24px; }
}

/* Arsa band: full-bleed blue field */
.band { background: var(--tint); }
.band .wrap { display: grid; gap: 28px; align-items: center; }
.band .art { border-radius: var(--r-card); overflow: hidden; max-width: 380px; justify-self: center; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
@media (min-width: 860px) {
  .band .wrap { grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
}

/* Privacy promise */
.promise { display: grid; gap: 28px; align-items: center; }
.promise .art { border-radius: 50%; overflow: hidden; width: min(260px, 70vw); aspect-ratio: 1; justify-self: center; }
.promise .art img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.promise dl { margin: 0 0 1.2em; display: grid; gap: 14px; }
.promise dt { font-weight: 700; }
.promise dd { margin: 2px 0 0; color: var(--text-soft); }

/* The one loud band: privacy is Sana's main promise, so it gets the saturated rose. */
.rose { background: var(--rose); color: #fff; --heading: #fff; --text-soft: var(--rose-soft); --link: #fff; }
.rose .btn { background: #fff; color: var(--rose); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18); }
.rose .btn:active { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18); }
.rose .art { border: 4px solid rgba(255, 255, 255, 0.85); box-shadow: none; }
.rose :focus-visible { outline-color: #fff; }
@media (min-width: 860px) { .promise { grid-template-columns: 0.6fr 1.4fr; gap: 56px; } }

/* Plans: three real tiers, none highlighted */
.plans { display: grid; gap: 16px; margin-top: 24px; }
.plan { padding: 24px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.5rem; margin-bottom: 2px; }
.plan .tag { color: var(--text-soft); margin-bottom: 14px; }
.price { font-weight: 700; font-size: 1.1rem; margin: 0; }
.price span { font-weight: 500; color: var(--text-soft); font-size: 0.95rem; }
.plan ul { margin: 16px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }
.plan .trial { margin-top: 6px; font-size: 0.92rem; color: var(--text-soft); }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.note { padding: 20px 22px; border-radius: var(--r-card); background: var(--field-deep); }
.note p:last-child { margin-bottom: 0; }

/* Long-form legal / support pages */
.doc { padding: 16px 0 64px; }
.doc .wrap { max-width: 760px; }
.doc header { margin-bottom: 28px; }
.doc .meta { color: var(--text-soft); font-size: 0.95rem; }
.doc .card { padding: 24px; margin: 0 0 18px; }
.doc .card > :last-child { margin-bottom: 0; }
.doc h2 { font-size: 1.5rem; margin-top: 0.2em; }
.doc h3 { font-size: 1.1rem; font-family: var(--font-text); font-weight: 700; color: var(--text); margin-top: 1.2em; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.4em; }
.toc { padding: 18px 22px; margin-bottom: 18px; }
.toc ol { columns: 2 220px; margin: 0; }
.toc a { color: var(--text); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 0 0 1em; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--field-deep); vertical-align: top; }
th { font-weight: 700; }
.table-scroll { overflow-x: auto; }

details { padding: 4px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style-position: outside; }
details[open] summary { color: var(--heading); }
details > div { padding-bottom: 14px; }

/* Footer */
.site-foot { padding: 40px 0 56px; font-size: 0.95rem; color: var(--text-soft); background: var(--page-alt); }
.site-foot .wrap { display: grid; gap: 18px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot nav a { color: var(--text); font-weight: 600; }
.disclaimer { padding: 18px 20px; }
.disclaimer p { margin: 0; }

.notfound { text-align: center; padding: 24px 0 80px; }
.notfound img { width: min(260px, 70vw); border-radius: 50%; margin: 0 auto 24px; aspect-ratio: 1; object-fit: cover; object-position: center 60%; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Tables become labelled rows on phones (build.py adds data-label from the header). */
@media (max-width: 620px) {
  table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--field-deep); }
  table.stack td { display: block; border: 0; padding: 3px 0; }
  table.stack td::before { content: attr(data-label); display: block; font-weight: 700; font-size: 0.82rem; color: var(--text-soft); }
  table.stack td:first-child { font-weight: 700; font-size: 1.05rem; }
  table.stack td:first-child::before { content: none; }
}
