/* ============================================================================
   Vorela — vorela.app
   Calm, privacy-first, non-medical. Editorial "paper journal" evolution of the
   app's warm-paper + slate palette. Plain HTML/CSS, no build, no trackers.

   Single shared stylesheet for the whole site: landing, legal, support, auth.
   ==========================================================================*/

/* ── Fonts (self-hosted, no external requests) ──────────────────────────────
   Newsreader — a quiet literary serif for display (optical, has italics).
   IBM Plex Mono — instrument-grade tick/label type.
   Body/UI stays on the system stack, matching the app. Latin + Latin-ext
   subsets only (this site is English). */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400-latin-ext.woff2") format('woff2');
  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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400-latin.woff2") format('woff2');
  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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500-latin-ext.woff2") format('woff2');
  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;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500-latin.woff2") format('woff2');
  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: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-italic-400-latin-ext.woff2") format('woff2');
  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;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-italic-400-latin.woff2") format('woff2');
  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: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-400-latin-ext.woff2") format('woff2');
  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;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-400-latin.woff2") format('woff2');
  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: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/newsreader-400-latin-ext.woff2") format('woff2');
  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;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/newsreader-400-latin.woff2") format('woff2');
  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;
}


:root {
  /* Paper + ink */
  --bg:          #f5f4f0;   /* warm off-white paper */
  --bg-deep:     #efece5;   /* recessed paper (alt sections) */
  --paper:       #fbfaf6;   /* raised panel */
  --ink:         #201f1b;   /* warm near-black */
  --ink-soft:    #4c4a44;
  --ink-faint:   #8a867e;
  --hairline:    #e4e0d7;
  --hairline-soft:#efece4;

  /* Slate accent (carried from the app, refined) */
  --slate:       #56637a;
  --slate-deep:  #414b5e;
  --slate-soft:  #eef0f3;
  --slate-line:  #cdd3dd;

  /* One quiet warm accent, used sparingly (the "signal" moment) */
  --warm:        #b2704a;

  /* Type */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --maxw: 68rem;      /* outer frame */
  --measure: 40rem;   /* comfortable reading measure */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.62;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: rgba(86,99,122,0.16); }

/* ── Layout scaffold ───────────────────────────────────────────────────── */
.site {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
  flex: 1 0 auto;
}
.measure { max-width: var(--measure); }

/* Section rhythm */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section + section { border-top: 1px solid var(--hairline); }

/* ── Top bar ───────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.1) blur(10px);
  -webkit-backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.topbar.scrolled { border-bottom-color: var(--hairline); }
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0.95rem clamp(1.25rem, 5vw, 3rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.topbar nav a {
  font-size: 0.9rem; color: var(--ink-soft); text-decoration: none;
  transition: color 0.2s var(--ease);
}
.topbar nav a:hover { color: var(--ink); }
.topbar nav a.hide-narrow { }
@media (max-width: 560px) { .topbar nav a.hide-narrow { display: none; } }

/* ── Wordmark ──────────────────────────────────────────────────────────── */
.brand {
  display: inline-flex; align-items: baseline;
  text-decoration: none; color: var(--ink);
}
.brand .mark {
  font-family: var(--serif);
  font-size: 1.72rem; font-weight: 500; letter-spacing: -0.005em;
  line-height: 1;
}
.topbar .brand .mark { font-size: 1.55rem; }
.footer-brand .brand .mark { font-size: 2rem; }

/* ── Type ──────────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase; letter-spacing: 0.2em;
  font-size: 0.7rem; font-weight: 500; color: var(--slate);
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: ""; width: 1.6rem; height: 1px; background: var(--slate-line);
}
.eyebrow.plain::before { display: none; }

h1, .h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.9rem);
  line-height: 1.06; letter-spacing: -0.015em;
  margin: 1.1rem 0 0; color: var(--ink);
  text-wrap: balance;
}
h1 em, .h1 em { font-style: italic; color: var(--slate-deep); }

h2, .h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  line-height: 1.14; letter-spacing: -0.01em;
  margin: 0 0 0.9rem; color: var(--ink);
  text-wrap: balance;
}
h3 {
  font-family: var(--sans);
  font-size: 1.02rem; font-weight: 600; letter-spacing: -0.005em;
  margin: 0 0 0.4rem; color: var(--ink);
}

p { margin: 0 0 1.05rem; color: var(--ink-soft); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
.lede {
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2.3vw, 1.42rem);
  line-height: 1.5; color: var(--ink-soft); font-weight: 400;
  margin-top: 1.4rem;
}
strong { font-weight: 600; color: var(--ink); }

a { color: var(--slate); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--slate-line); }
a:hover { color: var(--ink); text-decoration-color: currentColor; }

ul.clean { list-style: none; margin: 0; }
ul.clean li {
  position: relative; padding-left: 1.5rem; margin: 0.55rem 0; color: var(--ink-soft);
}
ul.clean li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--slate); opacity: 0.55;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.78rem 1.3rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--hairline); background: var(--paper); color: var(--ink);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { border-color: var(--slate-line); color: var(--ink); transform: translateY(-1px); }
.btn.primary {
  background: var(--slate); color: #fdfdfb; border-color: var(--slate);
  box-shadow: 0 1px 2px rgba(65,75,94,0.18);
}
.btn.primary:hover { background: var(--slate-deep); border-color: var(--slate-deep); color: #fff; box-shadow: 0 4px 14px rgba(65,75,94,0.2); }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn .arrow { transform: none !important; }
}

/* ── Panels & cards ────────────────────────────────────────────────────── */
.panel {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: clamp(1.4rem, 3vw, 1.9rem);
}
.panel.keyline { border-left: 3px solid var(--slate); border-radius: 4px 16px 16px 4px; }

.note { font-size: 0.9rem; color: var(--ink-faint); }
.doc-meta {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-faint); font-size: 0.72rem; margin: 1rem 0 0;
}

hr { border: none; border-top: 1px solid var(--hairline); margin: 2.5rem 0; }

/* Small labelled tag */
.kicker {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-faint);
}

/* ── Principle rows (landing) ──────────────────────────────────────────── */
.principles { display: grid; gap: 0; margin-top: 2rem; }
.principle {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: clamp(1rem, 4vw, 3rem);
  padding: 1.6rem 0; border-top: 1px solid var(--hairline);
  align-items: start;
}
.principle:last-child { border-bottom: 1px solid var(--hairline); }
.principle .idx {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--slate); text-transform: uppercase; padding-top: 0.2rem;
}
.principle h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; letter-spacing: -0.01em; margin-bottom: 0.35rem; }
@media (max-width: 620px) {
  .principle { grid-template-columns: 1fr; gap: 0.5rem; }
  .principle .idx { padding-top: 0; }
}

/* ── Doc / legal pages ─────────────────────────────────────────────────── */
.doc-head { padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.doc-head .lede { margin-top: 1.2rem; }
.doc { max-width: var(--measure); }
.doc h2 { font-family: var(--sans); font-size: 1.12rem; font-weight: 600; letter-spacing: -0.005em; margin: 2.4rem 0 0.6rem; }
.doc h2:first-of-type { margin-top: 2rem; }
.doc .lede { margin-bottom: 0.5rem; }

/* Table of contents chip row for legal pages */
.toc {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.8rem 0 0.5rem;
}
.toc a {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.02em;
  padding: 0.35rem 0.7rem; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--hairline); background: var(--paper); color: var(--ink-soft);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.toc a:hover { border-color: var(--slate-line); color: var(--ink); }

/* ── FAQ (support) ─────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--hairline); }
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0;
  position: relative; font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.2rem; top: 1.55rem;
  width: 9px; height: 9px; border-right: 1.5px solid var(--slate); border-bottom: 1.5px solid var(--slate);
  transform: rotate(45deg); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq-body { padding: 0 0 1.4rem; max-width: var(--measure); }
.faq details summary:focus-visible { outline: 2px solid var(--slate); outline-offset: 4px; border-radius: 4px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
footer {
  flex-shrink: 0; margin-top: 2rem;
  border-top: 1px solid var(--hairline); background: var(--bg-deep);
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 2.4rem clamp(1.25rem, 5vw, 3rem) 3rem;
  display: grid; grid-template-columns: 1fr auto; gap: 1.6rem 2rem; align-items: start;
}
.footer-brand { max-width: 20rem; }
.footer-brand .tagline { font-family: var(--serif); font-size: 1.02rem; color: var(--ink-soft); margin-top: 0.7rem; line-height: 1.4; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; align-items: center; }
.footer-links a { color: var(--ink-faint); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--ink); }
.footer-inner .copyright { grid-column: 1 / -1; color: var(--ink-faint); font-size: 0.8rem; font-family: var(--mono); letter-spacing: 0.03em; padding-top: 1.2rem; border-top: 1px solid var(--hairline); }
.footer-inner .not-medical { grid-column: 1 / -1; color: var(--ink-faint); font-size: 0.82rem; max-width: 34rem; }
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ── Scroll-reveal motion ──────────────────────────────────────────────────
   Hidden state only applies once JS flags <html>.reveal-in — so with JS off,
   everything is fully visible. Per-element .is-in is toggled by the observer. */
.reveal-in [data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-in [data-reveal].is-in { opacity: 1; transform: none; }
.reveal-in [data-reveal][data-delay="1"].is-in { transition-delay: 0.08s; }
.reveal-in [data-reveal][data-delay="2"].is-in { transition-delay: 0.16s; }
.reveal-in [data-reveal][data-delay="3"].is-in { transition-delay: 0.24s; }
.reveal-in [data-reveal][data-delay="4"].is-in { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-in [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Focus visibility ──────────────────────────────────────────────────── */
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 6px;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.hero .band-figure { margin-top: clamp(2.5rem, 6vw, 4rem); }

/* ── Privacy fact trio ─────────────────────────────────────────────────── */
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 2.4rem;
  background: var(--hairline); border: 1px solid var(--hairline);
  border-radius: 16px; overflow: hidden;
}
.fact { background: var(--paper); padding: 1.6rem 1.5rem; }
.fact .kicker { color: var(--slate); }
.fact h3 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin: 0.5rem 0 0.5rem; letter-spacing: -0.01em; }
.fact p { font-size: 0.94rem; margin: 0; }
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr; }
}

/* ── Closing ───────────────────────────────────────────────────────────── */
.closing-line {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.6vw, 2.35rem);
  line-height: 1.22; letter-spacing: -0.01em;
  color: var(--ink); max-width: 30rem; margin: 1.1rem 0 1.8rem;
  text-wrap: balance;
}

/* ── Auth-callback centered stage ──────────────────────────────────────── */
.center-stage {
  display: flex; align-items: center; justify-content: center;
  padding-top: clamp(2.5rem, 8vw, 5rem); padding-bottom: clamp(2.5rem, 8vw, 5rem);
}
.stage-card {
  max-width: 34rem; width: 100%; text-align: center;
}
.stage-mark { display: block; margin: 0 auto 1.6rem; }
.stage-mark path { stroke-dasharray: 60; stroke-dashoffset: 60; }
.reveal-in .stage-mark path { animation: draw 1.6s var(--ease) 0.3s forwards; }
@media (prefers-reduced-motion: reduce) {
  .stage-mark path { stroke-dashoffset: 0 !important; animation: none !important; }
}
.stage-title { font-size: clamp(1.9rem, 5vw, 2.7rem); }
.stage-card .lede { margin-left: auto; margin-right: auto; max-width: 30rem; }
.stage-panel { text-align: left; margin: 2rem 0 0; }
.stage-cta { justify-content: center; }
.stage-note { margin-top: 1.6rem; }
.stage-body footer { margin-top: 0; }

/* ── Baseline-band signature graphic ───────────────────────────────────── */
.band-figure { width: 100%; }
.band-figure svg { width: 100%; height: auto; display: block; overflow: visible; }
.band-caption {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 1rem;
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.band-caption .swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }

/* Draw-in animation for the data line */
.band-line { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); }
.reveal-in .band-line { animation: draw 2.4s var(--ease) 0.3s forwards; }
.band-dot { opacity: 0; }
.reveal-in .band-dot { animation: pop 0.5s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .band-line { stroke-dashoffset: 0 !important; animation: none !important; }
  .band-dot { opacity: 1 !important; animation: none !important; }
}

/* ============================================================================
   v2 — product-forward landing. Real app surfaces, source→pattern story.
   ==========================================================================*/

/* Product (in-app) palette — the light iOS surface shown inside device frames */
:root {
  --app-bg:    #f2f1ee;
  --app-card:  #ffffff;
  --app-ink:   #17150f;
  --app-ink2:  #6f6b62;
  --app-ink3:  #a29d93;
  --app-sep:   #ecebe6;
  /* domain colors carried from the app */
  --d-sleep:   #7D5BD5;
  --d-body:    #FF375F;
  --d-move:    #FF7A1A;
  --d-mind:    #1FB6C1;
  --d-life:    #2DAE5C;
  --d-stress:  #E89A1A;
  --d-mixed:   #5856D6;
}

/* ── Hero (v2): editorial copy + live product ─────────────────────────────── */
.hero-v2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.hero-v2 .hero-copy { max-width: 34rem; }
.hero-v2 h1 { margin-top: 1rem; }
.hero-v2 .lede { margin-top: 1.3rem; max-width: 30rem; }
.hero-stage { display: flex; justify-content: center; }
@media (max-width: 860px) {
  .hero-v2 { grid-template-columns: 1fr; gap: clamp(2.5rem, 8vw, 3.5rem); }
  .hero-v2 .hero-copy { max-width: none; }
  .hero-stage { order: 2; }
}

/* ── App Store button ─────────────────────────────────────────────────────── */
.store-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 2rem; }
.appstore {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.72rem 1.25rem 0.72rem 1.05rem; border-radius: 14px;
  background: var(--ink); color: #fbfaf6; text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.appstore:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(32,31,27,0.22); background: #000; }
.appstore svg { flex: 0 0 auto; }
.appstore .as-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore .as-small { font-size: 0.62rem; letter-spacing: 0.04em; opacity: 0.82; font-family: var(--sans); }
.appstore .as-big { font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; }
.store-note { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }

/* ── iPhone frame ──────────────────────────────────────────────────────────── */
.device {
  width: 290px; flex: 0 0 auto;
  border-radius: 46px; background: #111013;
  padding: 11px;
  box-shadow: 0 2px 3px rgba(32,31,27,0.14), 0 30px 60px -22px rgba(32,31,27,0.42);
}
.device.sm { width: 258px; }
.device .screen {
  position: relative; border-radius: 36px; overflow: hidden;
  background: var(--app-bg); aspect-ratio: 290 / 610;
}
.device .statusbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 26px 4px; font-family: var(--sans);
}
.device .statusbar .time { font-size: 13px; font-weight: 600; color: var(--app-ink); letter-spacing: 0.01em; }
.device .statusbar .sysicons { display: flex; align-items: center; gap: 5px; color: var(--app-ink); }
.device .app-scroll { padding: 6px 15px 18px; }
.device .app-kicker {
  font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--app-ink3); margin: 8px 3px 6px;
}
.device .app-h {
  font-family: var(--sans); font-size: 26px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--app-ink); margin: 0 3px 12px; line-height: 1.05;
}

/* ── Product card (light iOS) ───────────────────────────────────────────────── */
.pcard {
  background: var(--app-card); border-radius: 20px; padding: 15px 15px 4px;
  margin-bottom: 12px;
}
.pcard.pad { padding-bottom: 15px; }
.pcard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.dstack { display: flex; align-items: center; }
.dpill {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--app-card);
}
.dpill + .dpill { margin-left: -9px; }
.capsule {
  font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--app-ink2);
  background: #f4f3ef; padding: 4px 9px; border-radius: 99px; white-space: nowrap;
}
.pcard-title {
  font-family: var(--sans); font-size: 17.5px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.24; color: var(--app-ink); margin: 0 0 8px;
}
.pcard-meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-family: var(--sans); font-size: 12px; color: var(--app-ink3);
  font-variant-numeric: tabular-nums; margin-bottom: 10px;
}
.pchart { width: 100%; height: auto; display: block; }
.pcard-foot {
  display: flex; align-items: center; gap: 7px;
  border-top: 1px solid var(--app-sep); margin-top: 11px; padding: 11px 1px 3px;
  font-family: var(--sans); font-size: 12.5px; color: var(--app-ink2);
}
.pcard-foot .lbl { color: var(--app-ink3); font-weight: 600; text-transform: uppercase; font-size: 10.5px; letter-spacing: 0.06em; }
.pchips { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 4px; }
.pchip {
  font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--d-mind);
  background: color-mix(in srgb, var(--d-mind) 12%, #fff); border-radius: 12px;
  padding: 9px 13px;
}

/* ── Source → pattern convergence ───────────────────────────────────────────── */
.converge {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: clamp(1rem, 4vw, 3rem); margin-top: 2.6rem;
}
.sources { display: flex; flex-direction: column; gap: 0.55rem; }
.source {
  display: flex; align-items: center; gap: 0.85rem;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 0.7rem 0.95rem;
}
.source .sicon {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
}
.source .stext { display: flex; flex-direction: column; line-height: 1.2; }
.source .sname { font-size: 0.95rem; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.source .sdesc { font-size: 0.8rem; color: var(--ink-faint); }
.source .sopt { margin-left: auto; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }

.converge-mid { display: flex; align-items: center; justify-content: center; }
.converge-mid svg { width: 84px; height: auto; overflow: visible; }
.converge-out { display: flex; flex-direction: column; align-items: center; }
.converge-out .out-label {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate); margin-bottom: 0.9rem;
}
@media (max-width: 820px) {
  .converge { grid-template-columns: 1fr; gap: 1.6rem; }
  .converge-mid { transform: rotate(90deg); }
  .converge-out { order: 3; }
}

/* ── Feature gallery (product cards in a row) ───────────────────────────────── */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.8rem); margin-top: 2.6rem; align-items: start;
}
.gallery .g-card {
  background: var(--app-bg); border: 1px solid var(--hairline);
  border-radius: 22px; padding: 16px 14px;
}
.gallery .g-cap {
  font-family: var(--sans); font-size: 0.9rem; color: var(--ink-soft);
  margin: 0.9rem 0.3rem 0; line-height: 1.4;
}
.gallery .g-cap b { color: var(--ink); font-weight: 600; }
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr; max-width: 26rem; margin-inline: auto; } }

/* ── Compact metric callouts (used under charts) ────────────────────────────── */
.pstats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 4px; }
.pstat { background: #faf9f6; border-radius: 13px; padding: 11px 12px; }
.pstat .n { font-family: var(--sans); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.pstat .l { font-family: var(--sans); font-size: 11px; color: var(--app-ink3); line-height: 1.3; margin-top: 2px; }

/* ── Privacy guarantees ─────────────────────────────────────────────────────── */
.guarantees {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem); margin-top: 2.4rem;
}
.guarantees .guar { border-top: 1px solid var(--hairline); padding-top: 1.1rem; }
.guarantees .gicon {
  display: inline-flex; margin-bottom: 0.85rem; color: var(--slate);
}
.guarantees h3 { font-family: var(--serif); font-weight: 400; font-size: 1.24rem; letter-spacing: -0.01em; margin-bottom: 0.45rem; }
.guarantees p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
@media (max-width: 720px) { .guarantees { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ── Section intro helper ───────────────────────────────────────────────────── */
.sec-intro { max-width: 42rem; }
.sec-intro .lede { margin-top: 1rem; }

/* ── Final download band ────────────────────────────────────────────────────── */
.download-band { text-align: center; }
.download-band .closing-line { margin-inline: auto; }
.download-band .store-row { justify-content: center; }

/* ── Chart primitives (SVG) ─────────────────────────────────────────────────── */
.reveal-in .pchart .grow { transform: scaleY(0); transform-origin: bottom; animation: grow 0.7s var(--ease) forwards; }
@keyframes grow { to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .reveal-in .pchart .grow { animation: none !important; transform: none !important; }
}


/* ── App Store button — pre-launch "coming soon" state ──────────────────────
   Vorela isn't on the App Store yet. The badge stays instantly recognisable but
   is rendered as a non-interactive <span> (not a dead link), paired with a
   "Coming soon" tag so visitors immediately understand it's an iPhone app that
   will be available on the App Store. When the app ships: swap the <span> for
   an <a href="…App Store URL">, drop .is-soon, and remove the .soon-tag. */
.appstore.is-soon { cursor: default; }
.appstore.is-soon:hover {
  transform: none; box-shadow: none;
  background: var(--ink); color: #fbfaf6;
}
.soon-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--slate); white-space: nowrap;
}
.soon-tag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--warm); /* the single warm "signal" accent, used sparingly */
}
@media (prefers-reduced-motion: reduce) {
  .appstore.is-soon, .appstore.is-soon:hover { transform: none !important; }
}
