/* Ori — oriapp.eu. The app's own design system (AURA, dark), on a page.
   Tokens mirror .tastemaker/style-lock.md in the app repository. */

/* Fonts are served from this site, not from Google: no third party sees a
   visit. Manrope is one variable file for every weight; latin-ext carries
   the Czech and Slovak letters. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/manrope-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: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/fonts/manrope-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: "Sora"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/sora-600-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: "Sora"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/fonts/sora-600-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 {
  --bg: #0F0C14;
  --text: #FFFFFF;
  --sub: rgba(255, 255, 255, 0.66);
  --label: rgba(255, 255, 255, 0.56);
  --line: rgba(255, 255, 255, 0.11);
  --line-soft: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.065);
  --glass-soft: rgba(255, 255, 255, 0.04);
  --gold: #E9C464;          /* in the app: progress and celebration only. Here also the key phrase of a headline and a few small details (founder, 2026-09-29). */
  --gold-text: linear-gradient(100deg, #F6DE95 0%, #E9C464 45%, #D2A548 100%);
  --on-gold: #16121C;
  --lavender: #CDB4E8;      /* Ori's own voice */
  --ok: #7FE39B;
  --work: #6FBFE0;
  --health: #5FC9B4;
  --learning: #B79CEA;
  --creation: #E896C4;
  --rest: #8FA0EC;
  --radius-hero: 28px;
  --radius-card: 22px;
  --radius-row: 16px;
  --pad: 24px;
  --max: 1120px;
  --display: 'Sora', system-ui, sans-serif;
  --body: 'Manrope', system-ui, sans-serif;
  /* Motion — strong curves (the built-in ones are too weak). */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 8px; }

/* ── The aura: fixed glows the glass reads through ─────────────────────── */
.aura { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.aura span { position: absolute; border-radius: 50%; filter: blur(90px); }
.aura .g1 { width: 720px; height: 720px; top: -260px; left: -180px; background: rgba(191, 140, 214, 0.18); }
.aura .g2 { width: 560px; height: 560px; top: 30%; right: -220px; background: rgba(233, 150, 180, 0.13); }
.aura .g3 { width: 640px; height: 640px; bottom: -300px; left: 20%; background: rgba(140, 110, 200, 0.145); }
/* On a phone one 700px glow covers the whole screen: smaller and quieter there. */
@media (max-width: 720px) {
  .aura span { filter: blur(70px); }
  .aura .g1 { width: 400px; height: 400px; top: -160px; left: -150px; background: rgba(191, 140, 214, 0.14); }
  .aura .g2 { width: 320px; height: 320px; right: -150px; background: rgba(233, 150, 180, 0.10); }
  .aura .g3 { width: 380px; height: 380px; bottom: -180px; background: rgba(140, 110, 200, 0.11); }
}

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

/* ── Type ──────────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--sub); max-width: 620px; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--label); margin-bottom: 18px; display: inline-block;
}
.eyebrow.voice { color: var(--lavender); }
.muted { color: var(--sub); }

/* ── Surfaces ──────────────────────────────────────────────────────────── */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-card);
}
.glass-soft {
  background: var(--glass-soft);
  border: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-card);
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 16px/1 var(--body); border-radius: 999px; padding: 16px 26px;
  border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 120ms ease, opacity 120ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: #FFFFFF; color: var(--on-gold); }
.btn-primary:hover { opacity: 0.92; }
.btn-glass { background: var(--glass); border: 1px solid var(--line); color: var(--text); }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 12, 20, 0.62);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; max-width: none; padding: 0 clamp(24px, 4vw, 56px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 20px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--sub); }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--on-gold); }
.nav-links a.btn-glass { color: var(--text); }
.nav .btn { padding: 11px 18px; font-size: 14px; }
@media (max-width: 820px) { .nav-links > a:not(.btn) { display: none; } }
/* The language switch stays on a phone too. */
.lang { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: var(--glass-soft); border: 1px solid var(--line-soft); }
.nav-links .lang a { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; line-height: 1; padding: 7px 9px; border-radius: 999px; color: var(--label); transition: color 160ms ease, background-color 160ms ease; }
.nav-links .lang a:hover { color: var(--text); }
.nav-links .lang a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, 0.1); }
@media (max-width: 480px) {
  .nav .wrap { padding: 0 16px; gap: 10px; }
  .nav-links { gap: 8px; }
  .nav .btn { padding: 10px 13px; font-size: 13px; }
  .nav-links .lang a { padding: 7px 7px; }
}
@media (max-width: 360px) { .brand span { display: none; } }

/* ── Sections ──────────────────────────────────────────────────────────── */
section { padding: 104px 0; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head p { margin-top: 18px; }
@media (max-width: 720px) { section { padding: 72px 0; } }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding: 88px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 36px; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; } .hero-visual { max-width: 460px; } }

/* The waitlist form */
.waitlist { display: flex; gap: 10px; max-width: 520px; }
.waitlist input[type="email"] {
  flex: 1; min-width: 0; font: 500 16px/1 var(--body); color: var(--text);
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line);
  border-radius: 999px; padding: 16px 22px; outline: none;
}
.waitlist input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.5); }
.waitlist input[type="email"]:focus { border-color: rgba(255, 255, 255, 0.32); }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 14px; color: var(--label); margin-top: 14px; min-height: 22px; }
.form-note.ok { color: var(--ok); }
.form-note a { color: var(--sub); }
@media (max-width: 520px) { .waitlist { flex-direction: column; } .waitlist .btn { width: 100%; } }

/* Hero visual: a day that re-routed */
.hero-visual { position: relative; }
.phone { border-radius: var(--radius-hero); padding: 22px; }
.phone-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.phone-head b { font-family: var(--display); font-weight: 600; font-size: 18px; }
.phone-head span { font-size: 13px; color: var(--label); }
.gps { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ok); margin-bottom: 16px; }
.gps svg { width: 16px; height: 16px; }
.ori-says {
  border-radius: var(--radius-row); padding: 14px 16px; margin-bottom: 14px;
  background: rgba(205, 180, 232, 0.09); border: 1px solid rgba(205, 180, 232, 0.22);
  font-size: 14px; line-height: 1.5; color: #EDE3F7;
}
.ori-says b { color: var(--lavender); font-weight: 700; display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-row); background: var(--glass-soft); border: 1px solid var(--line-soft); margin-bottom: 10px; }
.row .bar { width: 3px; align-self: stretch; border-radius: 3px; }
.row .t { font-size: 14px; font-weight: 600; }
.row .m { font-size: 12px; color: var(--label); }
.row .time { margin-left: auto; font-size: 12px; color: var(--label); font-variant-numeric: tabular-nums; }
.row.moved { opacity: 0.6; }
.row.moved .t { text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.35); }
.progress { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.progress svg { width: 46px; height: 46px; flex: none; }
.progress .t { font-size: 13px; color: var(--sub); }
.progress b { color: var(--text); font-weight: 700; }

/* ── Problem ───────────────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }
.card { padding: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--sub); font-size: 16px; }
.card .num { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--label); margin-bottom: 18px; display: block; }
.statement {
  margin-top: 40px; font-family: var(--display); font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; letter-spacing: -0.015em; max-width: 820px;
}

/* ── How it works ──────────────────────────────────────────────────────── */
.setup { display: flex; gap: 22px; align-items: flex-start; padding: 28px; margin-bottom: 18px; }
.setup .tag { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); white-space: nowrap; padding-top: 4px; }
.setup p { color: var(--sub); }
.setup h3 { margin-bottom: 6px; }
@media (max-width: 640px) { .setup { flex-direction: column; gap: 8px; } }
.step .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(205, 180, 232, 0.12); color: var(--lavender); }
.step .icon svg { width: 20px; height: 20px; }
.loop-note { margin-top: 28px; color: var(--sub); display: flex; align-items: center; gap: 12px; }
.loop-note svg { width: 20px; height: 20px; color: var(--lavender); flex: none; }

/* ── Principles ────────────────────────────────────────────────────────── */
.principle { padding: 30px; }
.principle h3 { font-size: 22px; margin-bottom: 12px; }
.principle p { color: var(--sub); }
.principle .dot { width: 8px; height: 8px; border-radius: 50%; margin-bottom: 20px; }

/* ── People ────────────────────────────────────────────────────────────── */
.persona { padding: 32px; }
.persona .who { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); margin-bottom: 12px; }
.persona h3 { font-size: 24px; margin-bottom: 18px; }
.persona ul { margin: 0; padding: 0; list-style: none; }
.persona li { color: var(--sub); padding-left: 22px; position: relative; margin-bottom: 10px; }
.persona li::before { content: ''; position: absolute; left: 0; top: 11px; width: 8px; height: 2px; background: rgba(255,255,255,0.4); border-radius: 2px; }

/* ── Try it: a working model of the app in a phone ─────────────────────── */
#try .wrap { display: grid; grid-template-columns: 1fr auto; gap: 72px; align-items: center; }
@media (max-width: 960px) { #try .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } #try .device { justify-self: center; } }
.try-copy .section-head { margin-bottom: 30px; }
.try-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 520px; }
.try-steps li {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-row);
  background: var(--glass-soft); border: 1px solid var(--line-soft); color: var(--sub);
  transition: border-color 240ms ease, color 240ms ease;
}
.try-steps .n {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 600 13px var(--display); color: var(--label); border: 1.5px solid var(--line);
  transition: background-color 240ms ease, border-color 240ms ease, color 240ms ease;
}
.try-steps li.current { color: var(--text); border-color: rgba(233, 196, 100, 0.4); }
.try-steps li.current .n { border-color: var(--gold); color: var(--gold); }
.try-steps li.done { color: var(--label); }
.try-steps li.done .n { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.try-done {
  margin-top: 18px; color: var(--sub); opacity: 0; transform: translateY(6px); visibility: hidden;
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out), visibility 0s linear 300ms;
}
#try.finished .try-done { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.try-reset { font: 700 15px var(--body); color: var(--text); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.device {
  width: 340px; max-width: 100%; padding: 10px; border-radius: 50px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 90px -30px rgba(191, 140, 214, 0.45);
}
.demo {
  position: relative; height: 640px; border-radius: 41px; overflow: hidden;
  background: radial-gradient(120% 60% at 20% 0%, rgba(191, 140, 214, 0.2), transparent 60%), var(--bg);
}
.demo-screen {
  position: absolute; inset: 0 0 68px; padding: 30px 18px 14px; display: flex; flex-direction: column;
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 0s;
}
.demo[data-tab="today"] [data-screen="road"], .demo[data-tab="road"] [data-screen="today"] {
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(10px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}
.demo[data-tab="road"] [data-screen="today"] { transform: translateX(-10px); }
.demo .phone-head { margin-bottom: 14px; }
.demo .row { margin-bottom: 8px; padding: 11px 13px; }
.demo-q { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); margin-bottom: 8px; }

/* Energy: the selected level is gold, as in the app. */
.demo-energy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.demo-energy button {
  position: relative; font: 700 13px var(--body); color: var(--sub); padding: 9px 0; cursor: pointer;
  background: var(--glass-soft); border: 1px solid var(--line-soft); border-radius: 999px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms ease;
}
.demo-energy button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.demo-energy button:active { transform: scale(0.96); }

/* Ori's line: four versions in one cell, the right one fades in. */
.demo-says {
  display: grid; grid-template-rows: auto 1fr; margin-bottom: 12px; padding: 12px 14px; border-radius: var(--radius-row);
  background: rgba(205, 180, 232, 0.09); border: 1px solid rgba(205, 180, 232, 0.22);
  font-size: 13px; line-height: 1.45; color: #EDE3F7;
}
.demo-says b { grid-row: 1; color: var(--lavender); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.demo-says .v { grid-row: 2; grid-column: 1; opacity: 0; transform: translateY(4px); transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.demo[data-energy="mid"] .v-mid, .demo[data-energy="high"] .v-high,
.demo[data-energy="low"]:not(.ticked) .v-low, .demo[data-energy="low"].ticked .v-done { opacity: 1; transform: none; }

/* Low energy: the long block is struck and moved, a smaller step slides in. */
.demo .d-session { transition: opacity 300ms ease; }
.demo .d-session .t { position: relative; display: inline-block; }
.demo .d-session .t::after {
  content: ''; position: absolute; left: 0; right: 0; top: 55%; height: 1.5px; background: rgba(255, 255, 255, 0.5);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 400ms var(--ease-in-out);
}
.demo .d-session .later { display: none; }
.demo[data-energy="low"] .d-session { opacity: 0.6; }
.demo[data-energy="low"] .d-session .t::after { transform: scaleX(1); }
.demo[data-energy="low"] .d-session .now, .demo[data-energy="low"] .d-session .time { display: none; }
.demo[data-energy="low"] .d-session .later { display: inline; }
.d-quick-slot { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-out); }
.d-quick-slot > div { overflow: hidden; min-height: 0; }
.demo .d-quick { opacity: 0; transform: translateY(-6px); transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.demo[data-energy="low"] .d-quick-slot { grid-template-rows: 1fr; }
.demo[data-energy="low"] .d-quick { opacity: 1; transform: none; transition-delay: 140ms; }
.demo-check {
  position: relative; margin-left: auto; flex: none; width: 26px; height: 26px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: var(--on-gold); background: transparent; border: 1.8px solid rgba(255, 255, 255, 0.4);
  transition: background-color 160ms ease, border-color 160ms ease, transform 120ms ease;
}
.demo-check svg { width: 14px; height: 14px; opacity: 0; transform: scale(0.6); transition: opacity 160ms ease, transform 220ms var(--ease-out); }
.demo-check:active { transform: scale(0.92); }
.demo.ticked .demo-check { background: var(--gold); border-color: var(--gold); }
.demo.ticked .demo-check svg { opacity: 1; transform: none; }
.demo.ticked .d-quick .t { color: var(--sub); }

/* The milestone: 2 of 4, then 3 of 4 once the step is ticked. */
.demo .demo-ms { margin-top: auto; }
.demo .d-ring { stroke-dashoffset: 59.7; transition: stroke-dashoffset 900ms var(--ease-out); }
.demo.ticked .d-ring { stroke-dashoffset: 29.85; }
.demo .c3, .demo.ticked .c2 { display: none; }
.demo.ticked .c3 { display: inline; }

/* The roadmap. */
.demo-road { list-style: none; margin: 4px 0 0; padding: 0; }
.demo-road li { position: relative; display: flex; gap: 14px; padding-bottom: 24px; }
.demo-road li:not(:last-child)::before { content: ''; position: absolute; left: 8px; top: 22px; bottom: 2px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.demo-road li.done::before { background: rgba(233, 196, 100, 0.55); }
.demo-road i { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); }
.demo-road li.done i { background: var(--gold); border-color: var(--gold); }
.demo-road li.now i { border-color: var(--gold); background: radial-gradient(circle, var(--gold) 0 3px, transparent 3.5px); }
.demo-road b { display: block; font-size: 14px; font-weight: 700; }
.demo-road span { font-size: 12px; color: var(--label); }
.demo-road li.now span { color: var(--gold); }
.demo [data-screen="road"] .gps { margin: auto 0 0; }

/* The tab bar. */
.demo-tabs {
  position: absolute; left: 0; right: 0; bottom: 0; height: 68px; padding-bottom: 6px;
  display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-soft);
  background: rgba(15, 12, 20, 0.7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.demo-tabs button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font: 700 11px var(--body); letter-spacing: 0.02em; color: var(--label); background: none; border: 0; cursor: pointer;
  transition: color 160ms ease;
}
.demo-tabs svg { width: 21px; height: 21px; }
.demo-tabs button[aria-selected="true"] { color: var(--text); }
.demo-tabs button[aria-selected="true"] svg { color: var(--gold); }

/* The next thing to tap pulses a gold ring. */
.demo[data-step="1"] [data-set-energy="low"]::after,
.demo[data-step="2"] .demo-check::after,
.demo[data-step="3"] [data-set-tab="road"]::after {
  content: ''; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid var(--gold);
  pointer-events: none; animation: hint 1.6s var(--ease-out) infinite;
}
.demo[data-step="3"] [data-set-tab="road"]::after { inset: 8px 24%; border-radius: 16px; }
@keyframes hint { from { opacity: 0.9; transform: scale(0.92); } to { opacity: 0; transform: scale(1.22); } }
@media (hover: hover) and (pointer: fine) {
  .demo-energy button:not([aria-pressed="true"]):hover { color: var(--text); border-color: var(--line); }
  .demo-tabs button:hover { color: var(--text); }
}
@media (prefers-reduced-motion: reduce) {
  .demo-screen, .demo[data-tab="today"] [data-screen="road"], .demo[data-tab="road"] [data-screen="today"] { transform: none; }
  .demo .d-quick, .demo-says .v, .try-done { transform: none; }
  .demo[data-step="1"] [data-set-energy="low"]::after, .demo[data-step="2"] .demo-check::after,
  .demo[data-step="3"] [data-set-tab="road"]::after { animation: none; opacity: 0.8; }
}
@media (max-width: 400px) { .device { padding: 8px; border-radius: 44px; } .demo { height: 620px; border-radius: 36px; } }

/* ── Validated with ────────────────────────────────────────────────────── */
.trust { padding: 0 0 24px; }
.trust .wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 30px; }
.trust-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); }
.trust-name { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.72); }
.trust-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: 0.8; }
@media (max-width: 520px) {
  .trust .wrap { gap: 8px 16px; }
  .trust-label { flex-basis: 100%; text-align: center; }
  .trust-name { font-size: 17px; }
}
.trust-logo { display: inline-flex; color: rgba(255, 255, 255, 0.72); }
.trust-logo svg { height: 17px; width: auto; }
@media (max-width: 520px) { .trust-logo svg { height: 15px; } }

/* ── Questions ─────────────────────────────────────────────────────────── */
.faq-list { max-width: 820px; display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius-row); background: var(--glass-soft); border: 1px solid var(--line-soft); }
.faq-item[open] { border-color: var(--line); transition: border-color 240ms ease; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.35; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { border-radius: var(--radius-row); }
/* A gold plus that turns into a minus. */
.faq-item summary i { position: relative; flex: none; width: 14px; height: 14px; }
.faq-item summary i::before, .faq-item summary i::after {
  content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 2px; border-radius: 2px; background: var(--gold);
  transition: transform 200ms var(--ease-out);
}
.faq-item summary i::after { transform: rotate(90deg); transition: transform 300ms var(--ease-out); }
.faq-item[open] summary i::after { transform: rotate(0deg); }
.faq-item p { padding: 0 22px 22px; color: var(--sub); max-width: 700px; }
/* Opening and closing (main.js adds .faq-anim and drives .is-open, so without
   script a question still opens, just at once). The answer's height slides
   through a 0fr → 1fr grid row - an accordion, the one place height may
   animate - while the text fades and settles. Transitions, not keyframes,
   so a quick second tap reverses from where it is. */
.faq-anim .faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 340ms var(--ease-out); }
.faq-anim .faq-body > div { overflow: hidden; min-height: 0; }
.faq-anim p { opacity: 0; transform: translateY(-8px); transition: opacity 200ms ease, transform 340ms var(--ease-out); }
.faq-anim.is-open .faq-body { grid-template-rows: 1fr; }
.faq-anim.is-open p { opacity: 1; transform: none; transition: opacity 300ms ease 60ms, transform 340ms var(--ease-out); }
.faq-anim summary i::after { transform: rotate(90deg); }
.faq-anim.is-open summary i::after { transform: rotate(0deg); }
@media (hover: hover) and (pointer: fine) { .faq-item:hover { border-color: rgba(233, 196, 100, 0.32); } }
/* Reduced motion: no sliding - the answer only fades. */
@media (prefers-reduced-motion: reduce) {
  .faq-anim .faq-body { transition: none; }
  .faq-anim p, .faq-anim.is-open p { transform: none; transition: opacity 200ms ease; }
}
@media (max-width: 520px) { .faq-item summary { font-size: 17px; padding: 18px; } .faq-item p { padding: 0 18px 20px; } }
/* The questions' own page. */
.faq-page section { padding-top: 72px; }
.faq-page h1 { font-size: clamp(36px, 5vw, 54px); line-height: 1.08; }
.faq-more { margin-top: 56px; max-width: 820px; }
.faq-more h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 10px; }
.faq-more p { color: var(--sub); margin-bottom: 24px; }
.faq-more p a { color: var(--text); }

/* ── Team ──────────────────────────────────────────────────────────────── */
.founder { padding: 30px; display: flex; gap: 22px; align-items: flex-start; }
.founder .avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: 0.02em; color: var(--gold);
  background: rgba(233, 196, 100, 0.08); border: 1.5px solid rgba(233, 196, 100, 0.45);
}
.founder .role { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); margin-bottom: 6px; }
.founder h3 { font-size: 22px; margin-bottom: 8px; }
.founder p:not(.role) { color: var(--sub); }

/* ── Quote ─────────────────────────────────────────────────────────────── */
.quote { text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 900px; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.12; letter-spacing: -0.025em; }
.quote blockquote span { color: var(--sub); display: block; }

/* ── Final CTA ─────────────────────────────────────────────────────────── */
.cta { text-align: center; padding: 64px 32px; border-radius: var(--radius-hero); }
.cta h2 { margin-bottom: 16px; }
.cta .lede { margin: 0 auto 32px; }
.cta .waitlist { margin: 0 auto; }
.cta .form-note { text-align: center; }

/* ── Footer ────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line-soft); padding: 36px 0 48px; margin-top: 40px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--label); }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; color: var(--sub); }
footer a:hover { color: var(--text); }

/* ── Legal page ────────────────────────────────────────────────────────── */
.legal { padding: 72px 0 40px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 12px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--sub); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--text); }

/* ════════════════════════════════════════════════════════════════════════
   Motion. The page is seen rarely and exists to explain, so it may move more
   than the app does — but every effect has a job, only transform and opacity
   animate, hover effects need a real pointer, and reduced motion keeps the
   fades and drops the travel.
   ════════════════════════════════════════════════════════════════════════ */

/* Scroll progress — a progress bar, so it may be gold. */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 20;
  background: var(--gold); transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* Sections and cards arrive once, as they come into view; a grid's cards
   one after another (--i is set per child by main.js). */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.in { opacity: 1; transform: none; }

/* Headlines rise word by word from behind a mask. */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split .w > span {
  display: inline-block; transform: translateY(105%);
  transition: transform 800ms var(--ease-out);
  transition-delay: calc(var(--w, 0) * 45ms);
}
.split.in .w > span { transform: none; }

/* Nav: denser glass once the page has moved; links underline from the left. */
.nav { transition: background-color 200ms ease, border-color 200ms ease; }
.nav.scrolled { background: rgba(15, 12, 20, 0.86); border-bottom-color: var(--line); }
.nav-links > a:not(.btn) { position: relative; transition: color 160ms ease; }
.nav-links > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 240ms var(--ease-out);
}

/* Cards: a soft light follows the pointer; the card lifts a little. */
.card, .principle, .persona, .setup, .founder { position: relative; overflow: hidden; }
.card::before, .principle::before, .persona::before, .setup::before, .founder::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(205, 180, 232, 0.14), transparent 60%);
  opacity: 0; transition: opacity 240ms ease;
}
.card > *, .principle > *, .persona > *, .setup > *, .founder > * { position: relative; }
.card, .principle, .persona, .founder {
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out), border-color 240ms ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* Buttons lean toward the pointer (main.js sets --tx/--ty). */
.btn-primary { transform: translate(var(--tx, 0px), var(--ty, 0px)); transition: transform 300ms var(--ease-out), opacity 120ms ease; }
.btn-primary:active { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(0.97); }

/* The hero's phone tilts toward the pointer (main.js sets --rx/--ry). */
.hero-visual { perspective: 1200px; }
.phone { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 500ms var(--ease-out); will-change: transform; }

/* The phone's story: the long run is struck and moved, Ori says why, a quick
   win takes its place, the milestone ring fills. Plays once, on first sight. */
.story .ori-says, .story .row.quick, .story .row.habit, .story .progress { opacity: 0; transform: translateY(10px); }
.story .ori-says, .story .row.quick, .story .row.habit, .story .progress {
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.story .row.moved { opacity: 1; }
.story .row.moved .t { text-decoration: none; position: relative; display: inline-block; }
.story .row.moved .t::after {
  content: ''; position: absolute; left: 0; right: 0; top: 55%; height: 1.5px;
  background: rgba(255, 255, 255, 0.5); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 500ms var(--ease-in-out);
}
.story .row.moved .m .later { display: none; }
.story .ring { stroke-dashoffset: 119.4; transition: stroke-dashoffset 1200ms var(--ease-out); }

.story.s1 .row.moved .t::after { transform: scaleX(1); }
.story.s1 .row.moved { opacity: 0.6; transition: opacity 400ms ease 300ms; }
.story.s1 .row.moved .m .now { display: none; }
.story.s1 .row.moved .m .later { display: inline; }
.story.s2 .ori-says { opacity: 1; transform: none; }
.story.s3 .row.quick { opacity: 1; transform: none; }
.story.s3 .row.habit { opacity: 1; transform: none; transition-delay: 120ms; }
.story.s4 .progress { opacity: 1; transform: none; }
.story.s4 .ring { stroke-dashoffset: 29.8; }

/* The band: the loop, running. Constant motion is linear. */
.band { overflow: hidden; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 22px 0; }
.band-track { display: flex; width: max-content; animation: band 36s linear infinite; }
.band-track span {
  font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -0.02em;
  white-space: nowrap; padding-right: 48px; color: rgba(255, 255, 255, 0.86);
}
.band-track span i { font-style: normal; color: var(--lavender); padding-right: 48px; }
@keyframes band { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Glows drift with the scroll (main.js moves them). */
.aura span { will-change: transform; }

@media (hover: hover) and (pointer: fine) {
  .nav-links > a:not(.btn):hover::after { transform: scaleX(1); }
  .card:hover, .principle:hover, .persona:hover, .founder:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); transition-delay: 0ms; }
  .card:hover::before, .principle:hover::before, .persona:hover::before, .setup:hover::before, .founder:hover::before { opacity: 1; }
  .band:hover .band-track { animation-play-state: paused; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in { transform: none; transition: opacity 300ms ease; transition-delay: 0ms; }
  .split .w > span { transform: none; transition: none; }
  .phone { transform: none !important; transition: none; }
  .btn-primary { transform: none !important; }
  .progress-bar { display: none; }
  .band-track { animation: none; }
  .story .ori-says, .story .row.quick, .story .row.habit, .story .progress { transform: none; }
  .card, .principle, .persona, .founder { transition: opacity 300ms ease, border-color 240ms ease; }
  .card:hover, .principle:hover, .persona:hover, .founder:hover { transform: none; }
}

/* ── Gold, sparingly ───────────────────────────────────────────────────── */
/* The key phrase of a headline. */
.gold {
  background: var(--gold-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold);
  font-style: normal;
}
.quote blockquote span .gold { display: inline; }
/* A section's eyebrow gets a short gold rule in front (Ori's lavender ones do not). */
.eyebrow:not(.voice) { display: inline-flex; align-items: center; gap: 12px; }
.eyebrow:not(.voice)::before { content: ''; width: 22px; height: 1.5px; border-radius: 2px; background: var(--gold); }
/* Card and step numbers. */
.card .num { color: var(--gold); opacity: 0.9; }
/* The running band's separators. */
.band-track span i { color: var(--gold); font-size: 0.55em; vertical-align: middle; }
/* A statement line opens with a short gold rule. */
.statement::before { content: ''; display: block; width: 44px; height: 2px; border-radius: 2px; background: var(--gold); margin-bottom: 22px; }
/* On hover a card's border warms toward gold. */
@media (hover: hover) and (pointer: fine) {
  .card:hover, .principle:hover, .persona:hover, .founder:hover { border-color: rgba(233, 196, 100, 0.32); }
}
