/* Zibko — site styles. Plain CSS, no build step. Tokens shared with the app redesign. */

@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* colour roles */
  --night: #0B1220;          /* page background */
  --surface: #121A2B;        /* deeper surface: cards, header */
  --surface-2: #18223A;      /* raised surface, borders */
  --line: #24304A;           /* hairlines */
  --cream: #F3E9D2;          /* primary text */
  --cream-soft: #C9C1AE;     /* secondary text (AA on night and surface) */
  --sage: #7FB8B0;           /* primary action, links */
  --sage-deep: #0E2A27;      /* text on sage */
  --coral: #E8A598;          /* warm accent */
  --lavender: #B7AEDB;       /* quiet accent */
  --focus: #F3E9D2;

  /* type */
  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.4vw, 4rem);

  /* space, radius */
  --s1: 0.5rem; --s2: 0.75rem; --s3: 1rem; --s4: 1.5rem; --s5: 2rem; --s6: 3rem; --s7: 5rem;
  --r-sm: 10px; --r-md: 18px; --r-lg: 28px; --r-pill: 999px;
  --wrap: 1120px;
  --gutter: 16px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-underline-offset: 3px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--s3); font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 750; }
p { margin: 0 0 var(--s3); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--s3); top: var(--s3); z-index: 10; background: var(--cream); color: var(--night); padding: var(--s1) var(--s3); border-radius: var(--r-sm); }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 3; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-top: var(--s4); padding-bottom: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--cream); text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: 0.01em; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; align-items: center; gap: var(--s4); }
.nav a { color: var(--cream-soft); text-decoration: none; font-weight: 650; font-size: 0.98rem; }
.nav a:hover { color: var(--cream); }
.nav .nav-section { display: none; }
@media (min-width: 860px) { .nav .nav-section { display: inline; } }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.lang a, .lang span { min-width: 44px; min-height: 36px; display: inline-grid; place-items: center; border-radius: var(--r-pill); font-size: 0.85rem; font-weight: 800; letter-spacing: 0.06em; }
.lang span { background: var(--surface-2); color: var(--cream); }
.lang a { color: var(--cream-soft); }

/* ---------- night sky ---------- */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.sky::before, .sky::after {
  content: ""; position: absolute; inset: -20% -10%;
  background-repeat: repeat;
}
.sky::before {
  background-image:
    radial-gradient(1.2px 1.2px at 20px 30px, rgba(243,233,210,.75), transparent 60%),
    radial-gradient(1px 1px at 120px 80px, rgba(243,233,210,.5), transparent 60%),
    radial-gradient(1.4px 1.4px at 200px 150px, rgba(243,233,210,.65), transparent 60%),
    radial-gradient(1px 1px at 60px 190px, rgba(183,174,219,.55), transparent 60%),
    radial-gradient(1px 1px at 260px 40px, rgba(243,233,210,.45), transparent 60%),
    radial-gradient(1.2px 1.2px at 300px 220px, rgba(127,184,176,.5), transparent 60%);
  background-size: 320px 260px;
  opacity: .55;
  animation: drift 240s linear infinite;
}
.sky::after {
  background-image:
    radial-gradient(1.6px 1.6px at 80px 60px, rgba(243,233,210,.9), transparent 60%),
    radial-gradient(1.2px 1.2px at 340px 210px, rgba(243,233,210,.7), transparent 60%),
    radial-gradient(1.4px 1.4px at 460px 90px, rgba(232,165,152,.6), transparent 60%);
  background-size: 520px 340px;
  animation: drift 360s linear infinite reverse, breathe 14s ease-in-out infinite;
}
.glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.glow.a { width: 520px; height: 520px; right: -140px; top: -120px; background: radial-gradient(circle, rgba(127,184,176,.35), transparent 70%); animation: float 40s ease-in-out infinite; }
.glow.b { width: 420px; height: 420px; left: -160px; bottom: -160px; background: radial-gradient(circle, rgba(232,165,152,.22), transparent 70%); animation: float 52s ease-in-out infinite reverse; }
.glow.c { width: 300px; height: 300px; left: 40%; top: 30%; background: radial-gradient(circle, rgba(183,174,219,.18), transparent 70%); animation: float 60s ease-in-out infinite; }
@keyframes drift { from { transform: translate3d(0,0,0); } to { transform: translate3d(-320px,-130px,0); } }
@keyframes breathe { 0%,100% { opacity: .35; } 50% { opacity: .8; } }
@keyframes float { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(30px,24px,0); } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 80% at 70% 0%, #14203A 0%, var(--night) 60%); }
.hero .site-header, .hero-body { position: relative; z-index: 2; }
.hero-body { display: grid; gap: var(--s6); align-items: center; padding-top: var(--s4); padding-bottom: var(--s7); }
@media (min-width: 900px) {
  .hero-body { grid-template-columns: 1.1fr 0.9fr; padding-top: var(--s5); padding-bottom: 6.5rem; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--coral); font-weight: 750; font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--s3); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--sage); }
.lead { font-size: var(--step-1); color: var(--cream-soft); max-width: 36ch; line-height: 1.55; margin-bottom: var(--s5); }
.stores { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s4); padding: 0; list-style: none; }
.store { display: inline-flex; align-items: center; gap: 0.7rem; min-height: 56px; padding: 0.55rem 1.15rem 0.55rem 0.95rem; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(18,26,43,.7); color: var(--cream); }
.store svg { width: 24px; height: 24px; flex: none; color: var(--cream); }
.store small { display: block; font-size: 0.72rem; color: var(--cream-soft); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; }
.store b { display: block; font-size: 1.05rem; font-weight: 800; line-height: 1.25; }
.promise-line { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); margin: 0; padding: 0; list-style: none; color: var(--cream-soft); font-size: var(--step--1); font-weight: 650; }
.promise-line li { display: inline-flex; align-items: center; gap: 0.45rem; }
.promise-line li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

/* ---------- phone mockup ---------- */
.phone-stage { position: relative; display: grid; place-items: center; }
.phone-stage::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(127,184,176,.22), rgba(127,184,176,0) 65%); filter: blur(10px); }
.phone {
  --w: min(290px, 74vw);
  position: relative; width: var(--w); aspect-ratio: 1170 / 2532;
  padding: calc(var(--w) * 0.035); border-radius: calc(var(--w) * 0.16);
  background: linear-gradient(160deg, #2A344B 0%, #151C2C 40%, #0F1524 100%);
  box-shadow: 0 0 0 1px #2E3952 inset, 0 0 0 1px #070B14, 0 40px 80px -20px rgba(0,0,0,.7), 0 20px 50px -30px rgba(127,184,176,.35);
}
.phone::after { /* dynamic island */
  content: ""; position: absolute; top: calc(var(--w) * 0.06); left: 50%; transform: translateX(-50%);
  width: 30%; height: calc(var(--w) * 0.075); border-radius: var(--r-pill); background: #05080F;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--w) * 0.13); background: var(--night); }
.phone.sm { --w: min(230px, 64vw); }
.hero .phone { transform: rotate(-3deg); }
.phone-note { position: absolute; z-index: 1; display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1rem; border-radius: var(--r-md); background: rgba(18,26,43,.88); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 700; color: var(--cream); box-shadow: 0 20px 40px -20px rgba(0,0,0,.7); backdrop-filter: blur(6px); }
.phone-note .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex: none; }
.phone-note.n1 { left: 0; top: 18%; }
.phone-note.n2 { right: 0; bottom: 16%; }
.phone-note.n2 .dot { background: var(--sage); }
@media (max-width: 520px) { .phone-note.n1 { left: -4px; } .phone-note.n2 { right: -4px; } .phone-note { font-size: 0.8rem; padding: 0.55rem 0.8rem; } }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: var(--s7) 0; }
.section-head { max-width: 44rem; margin-bottom: var(--s6); }
.section-head p { color: var(--cream-soft); font-size: var(--step-1); line-height: 1.55; }
.kicker { display: block; color: var(--sage); font-weight: 800; font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--s2); }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6); counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.step { display: grid; gap: var(--s4); justify-items: center; text-align: center; }
.step .phone { --w: min(220px, 62vw); }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); color: var(--coral); font-weight: 800; margin-bottom: var(--s2); }
.step p { color: var(--cream-soft); max-width: 30ch; margin-inline: auto; }

/* calm features */
.split { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 0.85fr 1.15fr; gap: var(--s7); } }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
@media (min-width: 620px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { padding: var(--s4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.band .feature { background: var(--night); }
.feature svg { width: 28px; height: 28px; color: var(--sage); margin-bottom: var(--s2); }
.feature h3 { margin-bottom: var(--s1); }
.feature p { color: var(--cream-soft); margin: 0; font-size: 0.98rem; }
.feature.warm svg { color: var(--coral); }
.feature.lav svg { color: var(--lavender); }

/* safety */
.safety { display: grid; gap: var(--s5); padding: var(--s5); border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(232,165,152,.10), rgba(232,165,152,.02) 60%), var(--surface); border: 1px solid rgba(232,165,152,.28); }
@media (min-width: 900px) { .safety { grid-template-columns: 0.9fr 1.1fr; padding: var(--s6); gap: var(--s6); } }
.safety .kicker { color: var(--coral); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s2); align-items: start; }
.checks svg { width: 24px; height: 24px; color: var(--coral); margin-top: 2px; }
.checks b { display: block; }
.checks span { color: var(--cream-soft); }

/* privacy promise */
.promise { text-align: center; }
.promise .section-head { margin-inline: auto; }
.promise h2 .big { display: block; font-size: var(--step-4); color: var(--cream); }
.tiles { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 820px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: var(--s4) var(--s3); border-radius: var(--r-lg); background: var(--night); border: 1px solid var(--line); }
.tile svg { width: 34px; height: 34px; color: var(--sage); margin: 0 auto var(--s2); display: block; }
.tile b { display: block; font-size: 1.05rem; }
.tile span { display: block; color: var(--cream-soft); font-size: 0.92rem; line-height: 1.45; margin-top: 0.25rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0.7rem 1.4rem; border-radius: var(--r-pill); font-weight: 800; text-decoration: none; }
.btn-primary { background: var(--sage); color: var(--sage-deep); }
.btn-primary:hover { background: var(--cream); color: var(--night); }
.btn-ghost { border: 1px solid var(--line); color: var(--cream); }
.btn-ghost:hover { border-color: var(--sage); color: var(--cream); }

/* story */
.story { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: auto 1fr; gap: var(--s6); } }
.story-mark { width: 120px; height: 120px; border-radius: 36px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.story-mark img { width: 72px; height: 72px; }
.story blockquote { margin: 0; font-size: var(--step-2); line-height: 1.4; font-weight: 650; max-width: 34ch; }
.story p { color: var(--cream-soft); max-width: 60ch; }

/* faq */
.faq { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .faq { grid-template-columns: 0.75fr 1.25fr; gap: var(--s7); } }
.faq-list { display: grid; gap: var(--s2); }
details { border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
details[open] { border-color: #33415F; }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); min-height: 56px; font-weight: 750; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--sage); border-bottom: 2px solid var(--sage); transform: rotate(45deg) translate(-2px,-2px); transition: transform .3s ease; }
details[open] summary::after { transform: rotate(-135deg) translate(-2px,-2px); }
.answer { padding: 0 var(--s4) var(--s4); color: var(--cream-soft); }
.answer p:last-child, .answer ol:last-child { margin-bottom: 0; }
.answer ol { padding-left: 1.2rem; margin: 0 0 var(--s3); }
.answer b { color: var(--cream); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s5); color: var(--cream-soft); font-size: 0.95rem; }
.footer-grid { display: grid; gap: var(--s5); }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cream); margin-bottom: var(--s2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--cream-soft); text-decoration: none; display: inline-block; padding: 0.2rem 0; }
.site-footer a:hover { color: var(--cream); text-decoration: underline; }
.footer-brand p { max-width: 34ch; margin-top: var(--s2); }
.legal-line { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--line); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); justify-content: space-between; }

/* ---------- legal pages ---------- */
.page-head { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 80% 0%, #14203A 0%, var(--night) 65%); border-bottom: 1px solid var(--line); }
.page-head .site-header, .page-head .wrap.intro { position: relative; z-index: 2; }
.page-head .intro { padding-top: var(--s4); padding-bottom: var(--s6); }
.page-head h1 { font-size: var(--step-3); max-width: 20ch; }
.page-head .lead { margin-bottom: 0; }
.meta { color: var(--cream-soft); font-size: var(--step--1); margin-top: var(--s3); }
.prose { max-width: 44rem; padding-top: var(--s6); padding-bottom: var(--s7); }
.prose h2 { font-size: var(--step-2); margin-top: var(--s6); scroll-margin-top: var(--s4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--s4); }
.prose p, .prose li { color: #DDD4C0; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 var(--s3); }
.prose li { margin-bottom: 0.4rem; }
.prose strong { color: var(--cream); }
.summary-card { padding: var(--s4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); margin-bottom: var(--s5); }
.summary-card.warn { border-color: rgba(232,165,152,.35); background: linear-gradient(135deg, rgba(232,165,152,.09), transparent 60%), var(--surface); }
.summary-card h2 { margin-top: 0 !important; font-size: var(--step-1) !important; }
.summary-card ul { margin-bottom: 0; }
.toc { font-size: 0.95rem; }
.toc ol { columns: 2 14rem; padding-left: 1.2rem; }

/* 404 */
.lost { min-height: 100vh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.lost .inner { position: relative; z-index: 2; padding: var(--s6) var(--gutter); }
.lost img { width: 96px; height: 96px; margin: 0 auto var(--s4); }
.lost h1 { font-size: var(--step-3); }
.lost p { color: var(--cream-soft); max-width: 36ch; margin: 0 auto var(--s4); }
.lost .row { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky::before, .sky::after, .glow { animation: none !important; }
  summary::after { transition: none; }
}

/* soft edge under the hero, so the sky melts into the page */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(to bottom, rgba(11,18,32,0), var(--night)); z-index: 1; pointer-events: none; }
.footer-brand .brand { white-space: nowrap; }

/* phone widths: steps side by side with their text, smaller pictures */
@media (max-width: 899px) {
  .step { grid-template-columns: minmax(0, 42%) 1fr; justify-items: start; text-align: left; align-items: center; gap: var(--s4); }
  .step .phone { --w: min(170px, 38vw); }
  .step p { margin-inline: 0; }
  .split .phone { --w: min(210px, 54vw); }
}
.story blockquote { margin-bottom: var(--s3); }
@media (max-width: 719px) {
  .section { padding: 3.75rem 0; }
  .section-head { margin-bottom: var(--s5); }
  .faq .section-head { margin-bottom: 0; }
}
.page-head .intro { max-width: calc(44rem + 2 * var(--gutter)); }
.brand img.wordmark { width: auto; height: 36px; }
.footer-brand .brand img.wordmark { height: 40px; }
.soft { color: var(--cream-soft); }

/* facts table */
.facts { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .facts { grid-template-columns: 0.75fr 1.25fr; gap: var(--s7); align-items: start; } .facts .section-head { margin-bottom: 0; } }
.facts-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.facts-table th, .facts-table td { text-align: left; vertical-align: top; padding: 0.85rem var(--s4); border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.facts-table tr:last-child th, .facts-table tr:last-child td { border-bottom: 0; }
.facts-table th { color: var(--cream); font-weight: 750; width: 38%; }
.facts-table td { color: var(--cream-soft); }
@media (max-width: 520px) { .facts-table th, .facts-table td { display: block; width: auto; } .facts-table th { padding-bottom: 0.15rem; border-bottom: 0; } .facts-table td { padding-top: 0; } }
