/* SmoothCue site: Vaultaire's layout in the app's cue-card identity.
   Light = the paper card, dark = the navy desk. Paper cards stay paper in both. */
:root {
  --bg: #f4efe3;
  --band: #ebe3cf;
  --surface: #fffdf8;
  --text: #1e2a4a;
  --muted: #5a6380;
  --line: #d9cfb8;
  --primary: #1e2a4a;
  --on-primary: #fbf7ee;
  --red: #c2453d;
  --marker: #ffe45c;
  --dot: rgba(30, 42, 74, 0.07);
  /* Paper cards, same in both themes */
  --paper: #fbf7ee;
  --ink: #1e2a4a;
  --ink-muted: #5a6380;
  --rule: #c9d3e8;
  --margin: #e8a3a3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b2238; --band: #222a45; --surface: #283152; --text: #fbf7ee; --muted: #b9c0d6;
    --line: #3a4466; --primary: #ffe45c; --on-primary: #1e2a4a; --red: #e8736b; --dot: rgba(251, 247, 238, 0.05);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b2238; --band: #222a45; --surface: #283152; --text: #fbf7ee; --muted: #b9c0d6;
  --line: #3a4466; --primary: #ffe45c; --on-primary: #1e2a4a; --red: #e8736b; --dot: rgba(251, 247, 238, 0.05);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg) radial-gradient(var(--dot) 1px, transparent 1px) 0 0 / 26px 26px;
  color: var(--text);
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 820px; }
.center { text-align: center; }

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; line-height: 1.1; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%); color: var(--text); }
:root[data-theme="dark"] h1 em, :root[data-theme="dark"] h2 em { color: var(--ink); background: var(--marker); padding: 0 6px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(h1, h2) em { color: var(--ink); background: var(--marker); padding: 0 6px; } }

/* Cut-corner shapes, Vaultaire's signature */
.cta, .get { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); }

/* ---------- Header ---------- */
header.site { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: 22px; text-decoration: none; color: var(--text); }
.logo .name span { background: var(--marker); color: var(--ink); padding: 0 3px; margin-left: 1px; border-radius: 3px; }
:root[data-theme="dark"] .logo .name span { background: none; color: var(--marker); padding: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .name span { background: none; color: var(--marker); padding: 0; } }
.logo img { border-radius: 8px; }
.links { flex: 1; display: flex; justify-content: center; gap: 26px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.links a { color: var(--muted); text-decoration: none; }
.links a:hover, .links a[aria-current] { color: var(--text); }
@media (max-width: 980px) { .links { display: none; } .actions { margin-left: auto; } }
.actions { display: flex; align-items: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 700 14px 'Atkinson Hyperlegible', system-ui, sans-serif; cursor: pointer; }
.chip:hover { border-color: var(--muted); }
@media (max-width: 520px) { .theme span { display: none; } }
.get { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }

.lang { position: relative; }
.lang summary { list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; }
.lang .menu a { text-decoration: none; padding: 10px 12px; border-radius: 8px; }
.lang .menu a:hover { background: var(--band); }
.lang .menu a[aria-current] { font-weight: 700; background: var(--marker); color: var(--ink); }

/* ---------- Sections ---------- */
.band { background: var(--band); }
.section { padding: 110px 0; }
.head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.head h2 { font-size: clamp(34px, 5vw, 54px); margin: 0 0 14px; }
.head p { color: var(--muted); font-size: 18px; margin: 0; }
.slant { clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%); padding-top: 160px; }

.cta { display: inline-flex; justify-content: center; align-items: center; min-height: 60px; padding: 0 40px; background: var(--primary); color: var(--on-primary); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none; font-size: 15px; }
.cta:hover { filter: brightness(1.12); }
.cta.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 120px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.pill { display: inline-block; margin: 0 0 22px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-weight: 800; font-size: clamp(42px, 6.4vw, 76px); margin: 0 0 26px; }
.quote { border-left: 3px solid var(--marker); padding-left: 20px; margin: 0 0 34px; font-size: 20px; color: var(--muted); max-width: 34em; }
.quote strong { color: var(--text); }
.hero .cta { width: min(100%, 440px); }
.qr-card { display: flex; gap: 18px; align-items: center; width: min(100%, 440px); margin-top: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); }
.qr { flex: none; background: var(--paper); border-radius: 10px; padding: 6px; }
.qr svg { display: block; width: 92px; height: 92px; }
.qr-card h3 { font-family: 'Atkinson Hyperlegible', system-ui, sans-serif; font-size: 17px; margin: 0 0 4px; }
.qr-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 900px) { .qr-card { display: none; } }
.note { color: var(--muted); font-size: 14px; margin: 18px 0 0; }

.phone { justify-self: center; width: min(300px, 78vw); aspect-ratio: 9 / 19.2; border-radius: 48px; background: #11172a; padding: 11px; box-shadow: 0 40px 80px rgba(20, 26, 50, 0.35), inset 0 0 0 2px #3a4466; }
.screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: linear-gradient(165deg, #43537e, #1b2238 62%); display: flex; flex-direction: column; justify-content: center; padding: 20px; color: #fbf7ee; }
.status { position: absolute; top: 14px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; }
.island { width: 84px; height: 24px; border-radius: 99px; background: #000; }
.rec { position: absolute; top: 52px; left: 0; right: 0; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.rec i, .listen i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff5a4f; margin-right: 6px; vertical-align: 1px; }
.card.mini { background: var(--paper); color: var(--ink); border-top: 3px solid var(--margin); border-radius: 8px; transform: rotate(-2deg); padding: 18px 18px 20px; box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35); }
.card.mini p { margin: 0; font-weight: 700; font-size: 22px; line-height: 1.45; }
.w { border-radius: 3px; padding: 0 2px; transition: background-color 0.25s, color 0.25s; }
.w.done { color: #a3aac0; }
.w.on { background: var(--marker); color: var(--ink); }
.listen { position: absolute; bottom: 74px; left: 0; right: 0; text-align: center; }
.listen i { width: 12px; height: 12px; margin: 0; box-shadow: 0 0 0 6px rgba(255, 90, 79, 0.25); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px rgba(255, 90, 79, 0.06); } }
.phone-bar { position: absolute; bottom: 22px; left: 22px; right: 22px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: #b9c0d6; }
.phone-bar b { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fbf7ee; background: radial-gradient(#ff5a4f 0 15px, transparent 16px); }
@media (prefers-reduced-motion: reduce) { .listen i { animation: none; } html { scroll-behavior: auto; } }

/* Slanted red banner */
.banner { position: relative; z-index: 2; margin: -60px 0 0; background: var(--marker); transform: skewY(-2.2deg); padding: 26px 0; }
.banner ul { transform: skewY(2.2deg); list-style: none; margin: 0 auto; padding: 0 16px; max-width: 1000px; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 12px 30px; }
.banner li { color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: 0.08em; text-transform: uppercase; }
.banner li::before { content: '✕'; margin-right: 12px; font-size: 13px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 24px; }
.feature { position: relative; background: var(--surface); padding: 34px 32px 32px 32px; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
.feature::after { content: ''; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 32px 32px 0; border-color: transparent var(--marker) transparent transparent; }
.feature .ico { color: var(--text); margin-bottom: 14px; }
.feature h3 { font-size: 21px; margin: 0 0 10px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; position: relative; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline li { position: relative; width: 50%; padding: 0 56px 90px 0; text-align: right; }
.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 90px 56px; text-align: left; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::after { content: ''; position: absolute; top: 14px; right: -9px; width: 16px; height: 16px; border: 2px solid var(--text); background: var(--marker); transform: rotate(45deg); }
.timeline li:nth-child(even)::after { right: auto; left: -9px; }
.num { position: absolute; top: -22px; right: 40px; font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: 76px; line-height: 1; color: var(--text); opacity: 0.07; }
.timeline li:nth-child(even) .num { right: auto; left: 40px; }
.timeline h3 { position: relative; font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; }
.timeline p { margin: 0; color: var(--muted); font-size: 17px; }
@media (max-width: 700px) {
  .timeline::before { left: 8px; }
  .timeline li, .timeline li:nth-child(even) { width: auto; margin: 0; padding: 0 0 60px 44px; text-align: left; }
  .timeline li::after, .timeline li:nth-child(even)::after { left: 0; right: auto; }
  .num, .timeline li:nth-child(even) .num { left: 34px; right: auto; }
}

/* ---------- Scenario ---------- */
.scenario { text-align: center; position: relative; }
.scenario::before { content: ''; position: absolute; top: 0; left: 50%; width: 3px; height: 70px; background: var(--marker); }
.scenario h2 { font-size: clamp(32px, 5vw, 56px); margin: 0 0 30px; }
.scenario p { color: var(--muted); font-size: 19px; }
.scenario strong { color: var(--text); }
.scenario hr { width: 40px; border: 0; border-top: 4px solid var(--marker); margin: 40px auto; }
.scenario .punch { font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; color: var(--text); margin: 0 0 36px; }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); margin: 0 0 18px; padding: 0; border: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 26px; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--marker); color: var(--ink); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 26px 22px; color: var(--muted); }

/* ---------- Footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 48px 0 56px; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer.site p { margin: 0; width: 100%; }

/* ---------- Inner pages (privacy, support, tool) ---------- */
.page { padding: 48px 16px 80px; }
.card { background: var(--paper); color: var(--ink); border-radius: 6px; padding: 8px 32px 36px; box-shadow: 0 18px 40px rgba(20, 26, 50, 0.18); border-top: 3px solid var(--margin); }
.card a { color: var(--ink); }
article.card { max-width: 780px; margin: 0 auto; }
@media (max-width: 560px) { .card { padding: 4px 20px 28px; } }
.card h1 { font-weight: 800; font-size: 40px; margin: 28px 0 8px; }
.card h2 { font-weight: 800; font-size: 24px; margin: 36px 0 8px; }
.card p, .card li { color: var(--ink); }
.lead { color: var(--ink-muted); margin-top: 0; }
.updated { font-size: 14px; color: var(--ink-muted); }
.summary { background: #f3ecdb; border-radius: 6px; padding: 16px 20px; margin: 20px 0; }
.summary ul { margin: 0; padding-left: 20px; }
.card details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.card details summary { cursor: pointer; font-weight: 700; }
.card details p { margin: 10px 0 0; }
mark { background: var(--marker); color: var(--ink); padding: 0 3px; border-radius: 3px; }

.button { display: inline-block; background: var(--primary); color: var(--on-primary); font: 700 16px 'Atkinson Hyperlegible', system-ui, sans-serif; text-decoration: none; padding: 14px 28px; border: 0; border-radius: 0; cursor: pointer; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); }
.card .button { background: var(--ink); color: var(--paper); }
.page > section { margin: 0 0 64px; }
.page > section > h2 { font-size: clamp(28px, 4.5vw, 40px); margin: 0 0 24px; }
.page .steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; counter-reset: step; }
.page .steps li { counter-increment: step; position: relative; background: var(--surface); padding: 26px 26px 24px; }
.page .steps li::before { content: '0' counter(step); font-family: 'Fraunces', Georgia, serif; font-weight: 800; font-size: 30px; color: var(--ink); background: var(--marker); padding: 0 10px; border-radius: 4px; }
.page .steps h3 { font-size: 20px; margin: 8px 0 6px; }
.page .steps p { margin: 0; color: var(--muted); font-size: 15px; }
.teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: var(--band); padding: 28px 32px; }
.teaser h2 { margin: 0 0 6px; font-size: 26px; }
.teaser p { color: var(--muted); margin: 0; max-width: 36em; }

/* Online teleprompter */
.tool-intro h1 { font-weight: 800; font-size: clamp(38px, 6vw, 60px); margin: 8px 0 12px; }
.tool-intro p { color: var(--muted); font-size: 18px; max-width: 40em; }
.page > section.tool-intro { margin-bottom: 28px; }
.tool { padding: 24px 28px 28px; }
.tool textarea { width: 100%; min-height: 260px; resize: vertical; border: 0; background: repeating-linear-gradient(transparent 0 31px, var(--rule) 31px 32px); color: var(--ink); font: 18px/32px 'Atkinson Hyperlegible', system-ui, sans-serif; padding: 0; outline: none; }
.count { color: var(--ink-muted); font-size: 14px; margin: 8px 0 16px; }
.controls { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-bottom: 20px; color: var(--ink); font-size: 15px; }
.controls label { display: flex; align-items: center; gap: 10px; }
.controls input[type=range] { accent-color: var(--ink); width: 140px; }
.controls output { min-width: 3ch; font-weight: 700; }
.controls input[type=checkbox] { accent-color: var(--ink); width: 18px; height: 18px; }
.hint { color: var(--ink-muted); font-size: 14px; margin: 0; width: 100%; }

.prompter { position: fixed; inset: 0; z-index: 50; background: #0d1222; display: flex; flex-direction: column; }
.prompter[hidden] { display: none; }
.lane { flex: 1; overflow: hidden; position: relative; }
.lane.mirrored { transform: scaleX(-1); }
.text { max-width: 1000px; margin: 0 auto; padding: 0 6vw; color: #fbf7ee; font-weight: 700; line-height: 1.45; will-change: transform; }
.text p { margin: 0 0 1em; color: inherit; }
.text span { cursor: pointer; border-radius: 6px; transition: color 0.2s, background 0.2s; }
.text span.done { color: #6d7695; }
.text span.on { background: var(--marker); color: var(--ink); }
.prompter .bar { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 0; padding: 14px 16px 22px; }
.prompter .bar button { font: 700 16px 'Atkinson Hyperlegible', system-ui, sans-serif; background: #283152; color: #fbf7ee; border: 0; border-radius: 999px; padding: 10px 18px; min-width: 48px; cursor: pointer; }
.prompter .bar #stop { background: var(--marker); color: var(--ink); }
.listen-badge { color: #b9c0d6; font-size: 14px; margin-right: 8px; }
.listen-badge i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff5a4f; margin-right: 6px; }
