/* Unworry website. Tokens follow the app's design tokens (design/03-design-tokens.json). */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/lexend-latin.woff2') format('woff2');
}

:root {
  --sheet: #F3EEFF;
  --card: #FFFFFF;
  --text: #22104F;
  --muted: #5B4A8C;
  --chip: #E4D9FF;
  --chip-text: #3B1A8F;
  --line: #E4D9FF;
  --primary: #6A3FF0;
  --accent: #6A3FF0;
  --shadow: 0 8px 20px rgba(59, 26, 143, 0.12);
  --hero: #2F1475;
  --hero-c1: #3B1A8F;
  --hero-c2: #5A30C4;
  --lilac: #C7A6FF;
  --lilac-200: #DCCBFF;
  --yellow: #FFD54A;
  --yellow-ink: #2F1475;
  --green: #5CCB8A;
  --red: #F2564D;
  --orange: #FF9C6B;
  --blue: #8FD3F5;
  --pink: #F78FB3;
  --violet-soft: #B9A3F5;
  --teal: #7FD8C8;
  --radius: 24px;
  --radius-s: 18px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sheet: #150F2C;
    --card: #221A42;
    --text: #F1ECFF;
    --muted: #B3A8D6;
    --chip: #2E2459;
    --chip-text: #D9CCFF;
    --line: #342A63;
    --primary: #7B57F7;
    --accent: #C7A6FF;
    --shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    --hero: #110A24;
    --hero-c1: #1C1240;
    --hero-c2: #2A1B5C;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --sheet: #150F2C;
  --card: #221A42;
  --text: #F1ECFF;
  --muted: #B3A8D6;
  --chip: #2E2459;
  --chip-text: #D9CCFF;
  --line: #342A63;
  --primary: #7B57F7;
  --accent: #C7A6FF;
  --shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  --hero: #110A24;
  --hero-c1: #1C1240;
  --hero-c2: #2A1B5C;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: 'Lexend', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--sheet);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-weight: 500; }
h2 { font-weight: 500; font-size: clamp(30px, 4.6vw, 46px); }
h3 { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
p { margin: 0; }
.hl { color: var(--lilac); font-weight: 700; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--yellow); color: var(--yellow-ink); padding: 10px 16px; border-radius: 999px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head .lead { margin-top: 16px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--hero) 88%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: none; margin-left: auto; gap: 28px; }
.nav a { color: #E4D9FF; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: #fff; }
@media (min-width: 860px) { .nav { display: flex; } }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (min-width: 860px) { .header-actions { margin-left: 24px; } }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08); color: #fff; display: inline-grid; place-items: center; cursor: pointer;
  transition: background 0.2s;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.16); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.btn-small {
  display: none; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--yellow); color: var(--yellow-ink); font-weight: 700; font-size: 15px; text-decoration: none;
}
@media (min-width: 520px) { .btn-small { display: inline-flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 17px;
  text-decoration: none; cursor: pointer; border: 0; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--yellow-ink); box-shadow: inset 0 -4px 0 rgba(120, 80, 0, 0.18), 0 10px 22px rgba(255, 213, 74, 0.28); }
.btn svg { width: 20px; height: 20px; }

/* Store badges (content comes from assets/js/site.js -> STORES) */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 20px 8px 16px;
  border-radius: 16px; text-decoration: none; color: #fff; background: #0E0820; border: 1px solid rgba(255, 255, 255, 0.28);
}
.store { min-width: 208px; }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; line-height: 1.2; }
.store strong { display: block; font-size: 18px; font-weight: 600; line-height: 1.2; }
.store[aria-disabled="true"] { cursor: default; }
.stores-note { font-size: 15px; color: #DCCBFF; margin-top: 14px; }

/* Hero */
.hero { background: var(--hero); color: #fff; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: var(--hero-c1); pointer-events: none; }
.hero::before { width: 620px; height: 620px; right: -220px; top: -260px; }
.hero::after { width: 420px; height: 420px; left: -220px; bottom: -200px; }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 48px; padding-top: 56px; padding-bottom: 72px; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 88px; padding-bottom: 112px; } }
.hero .eyebrow { color: var(--lilac); }
.hero h1 { font-size: clamp(42px, 7.4vw, 76px); line-height: 1.04; letter-spacing: -0.035em; }
.hero .lead { color: #DCCBFF; margin-top: 22px; max-width: 34em; }
.hero .stores { margin-top: 32px; }
.hero-visual { position: relative; min-height: 460px; display: flex; justify-content: center; }
.hero-photo { position: absolute; left: 0; top: 24px; width: 62%; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; box-shadow: 0 16px 30px rgba(10, 0, 40, 0.35); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .phone { position: relative; margin-left: auto; margin-right: 4%; width: min(62%, 300px); }
@media (min-width: 960px) { .hero-visual { min-height: 600px; } }
.credit-chip { position: absolute; left: 8px; bottom: 8px; font-size: 10px; line-height: 1.5; color: #fff; background: rgba(0, 0, 0, 0.35); padding: 3px 8px; border-radius: 999px; text-decoration: none; }
.credit-chip:hover { background: rgba(0, 0, 0, 0.55); }

/* Phone frame */
.phone {
  border-radius: 44px; padding: 10px; background: #0E0820;
  box-shadow: 0 30px 60px rgba(10, 0, 40, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.phone img { border-radius: 34px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; background: #F3EEFF; }
.phone .shot-dark { display: none; }
:root[data-theme="dark"] .phone .shot-light { display: none; }
:root[data-theme="dark"] .phone .shot-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .phone .shot-light { display: none; }
  :root:not([data-theme]) .phone .shot-dark { display: block; }
}

/* Recognition */
.familiar { display: grid; gap: 14px; }
@media (min-width: 760px) { .familiar { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.quote-card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; gap: 16px; align-items: flex-start; }
.quote-card p { font-size: 18px; font-weight: 500; }
.icon-tile { flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #22104F; }
.icon-tile svg { width: 24px; height: 24px; }
.answer { margin-top: 36px; max-width: 760px; font-size: clamp(19px, 2.4vw, 24px); font-weight: 500; }

/* Steps */
.how { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .how { grid-template-columns: 1.15fr 0.85fr; gap: 72px; } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.step { background: var(--card); border-radius: var(--radius); padding: 22px 22px 22px 20px; box-shadow: var(--shadow); display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.step .icon-tile { width: 56px; height: 56px; border-radius: 17px; }
.step h3 { margin-bottom: 6px; }
.step h3 span { color: var(--accent); margin-right: 6px; }
.step p { color: var(--muted); font-size: 16px; }
.how .phone { width: min(320px, 82%); margin: 0 auto; }

/* Proof band */
.proof { position: relative; color: #fff; background: #22104F; overflow: hidden; }
.proof-bg { position: absolute; inset: 0; }
.proof-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.38; }
.proof-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34, 16, 79, 0.95) 0%, rgba(34, 16, 79, 0.75) 60%, rgba(34, 16, 79, 0.5) 100%); }
.proof .wrap { position: relative; padding-top: 88px; padding-bottom: 88px; }
.proof .big-stat { font-size: clamp(88px, 18vw, 180px); font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; color: var(--green); }
.proof h2 { margin-top: 18px; max-width: 18em; }
.proof p { margin-top: 18px; max-width: 40em; color: #E4D9FF; font-size: 18px; }
.cite { display: block; margin-top: 18px; font-size: 14px; color: #DCCBFF; font-style: normal; }
.proof .credit-chip { left: auto; right: 12px; bottom: 12px; }

/* Research */
.research { display: grid; gap: 16px; }
@media (min-width: 700px) { .research { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1040px) { .research { grid-template-columns: repeat(3, 1fr); } }
.r-card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.r-card .tag { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: #22104F; }
.r-card p { color: var(--muted); font-size: 16px; }
.r-card cite { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-style: normal; font-size: 13px; color: var(--muted); }
.honest { margin-top: 28px; background: var(--chip); color: var(--chip-text); border-radius: var(--radius-s); padding: 18px 22px; font-size: 16px; max-width: 820px; }

/* Features */
.features { display: grid; gap: 16px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1040px) { .features { grid-template-columns: repeat(3, 1fr); } }
.f-card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.f-card .icon-tile { margin-bottom: 18px; }
.f-card h3 { margin-bottom: 8px; }
.f-card p { color: var(--muted); font-size: 16px; }
.f-wide { display: grid; gap: 0; padding: 0; overflow: hidden; }
@media (min-width: 700px) { .f-wide { grid-column: span 2; grid-template-columns: 1fr 1fr; } }
.f-wide .f-body { padding: 26px; }
.f-wide .f-img { position: relative; min-height: 220px; }
.f-wide .f-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sos-row { margin-top: 56px; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .sos-row { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }
.sos-row .phone { width: min(300px, 78%); margin: 0 auto; }
.sos-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.sos-list li { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: var(--radius-s); padding: 14px 16px; box-shadow: var(--shadow); font-weight: 500; }
.sos-list .icon-tile { width: 40px; height: 40px; border-radius: 13px; }
.sos-list .icon-tile svg { width: 20px; height: 20px; }

/* Privacy band */
.privacy-band { background: var(--card); border-radius: 30px; padding: 32px 24px; box-shadow: var(--shadow); display: grid; gap: 28px; }
@media (min-width: 900px) { .privacy-band { grid-template-columns: 1fr 1.2fr; padding: 56px; align-items: center; } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checks svg { flex: none; width: 24px; height: 24px; color: var(--green); margin-top: 1px; }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: var(--radius-s); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 22px 22px; color: var(--muted); font-size: 16px; }
.faq details > div p + p { margin-top: 10px; }

/* Final CTA */
.cta-final { background: var(--hero); color: #fff; border-radius: 32px; padding: 48px 24px; text-align: center; position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--hero-c1); right: -140px; top: -160px; }
.cta-final > * { position: relative; }
.cta-final img.app-icon { width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 22px; }
.cta-final p.lead { color: #DCCBFF; margin: 16px auto 0; max-width: 34em; }
.cta-final .stores { justify-content: center; margin-top: 28px; }
.safety { margin-top: 28px; font-size: 15px; color: var(--muted); text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }

/* Footer */
.site-footer { padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: 0; font-size: 15px; color: var(--muted); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: var(--text); }
.site-footer h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.credits { margin-top: 32px; font-size: 13px; }

/* Legal pages */
.legal-hero { background: var(--hero); color: #fff; padding: 56px 0 48px; }
.legal-hero h1 { font-size: clamp(36px, 6vw, 56px); }
.legal-hero p { color: #DCCBFF; margin-top: 12px; }
.legal { max-width: 760px; padding-top: 40px; }
.legal .summary { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 36px; }
.legal .summary ul { margin: 12px 0 0; padding-left: 20px; }
.legal .summary li + li { margin-top: 6px; }
.legal h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 600; margin: 44px 0 14px; }
.legal h3 { font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 16.5px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal .toc { background: var(--chip); color: var(--chip-text); border-radius: var(--radius-s); padding: 20px 24px; }
.legal .toc ol { margin: 8px 0 0; padding-left: 20px; columns: 1; }
@media (min-width: 640px) { .legal .toc ol { columns: 2; column-gap: 32px; } }
.legal .toc a { color: var(--chip-text); }
.table-scroll { overflow-x: auto; margin: 14px 0; border-radius: var(--radius-s); box-shadow: var(--shadow); }
.legal table { width: 100%; border-collapse: collapse; background: var(--card); font-size: 15px; min-width: 560px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { font-weight: 700; color: var(--text); background: var(--chip); }
.legal .callout { background: var(--card); border-left: 4px solid var(--red); border-radius: 12px; padding: 16px 18px; margin: 16px 0; box-shadow: var(--shadow); }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound img { width: 140px; margin: 0 auto 24px; }
.notfound h1 { font-size: clamp(34px, 6vw, 52px); }
.notfound p { color: var(--muted); margin: 14px auto 28px; max-width: 30em; }
