/*
 * Landing page styling for the redesign.
 *
 * The palette is unchanged from the previous site — the same plum, the same
 * gold — so this file sets no new colours, only the two that the design adds
 * (a card surface and a softer rule) and the typography, which is where the
 * redesign actually differs: Fraunces in place of Marcellus, Manrope in place
 * of DM Sans, and headings set tight rather than letterspaced caps.
 *
 * Loaded after styles.css, which still owns the tokens, buttons and footer.
 */

:root {
  --plum-card: #4a0f24;
  --band: clamp(72px, 9vw, 112px);
}

body { background: var(--plum); font-size: 17px; line-height: 1.6; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }
h1 { font-family: var(--display); font-size: clamp(44px, 7.2vw, 72px); line-height: 1; }
h2 { font-family: var(--display); font-size: clamp(34px, 5.6vw, 60px); line-height: 1.02; }
h3 { font-family: var(--display); font-size: clamp(20px, 2.2vw, 25px); line-height: 1.15; }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; }
.lead { font-weight: 400; color: var(--blush); }
.fine { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 9; padding: 12px 18px; background: var(--gold); color: var(--maroon); }

/* ===== Masthead ===== */
.masthead { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: var(--plum); }
.masthead__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; opacity: .55; }
/* The wordmark sits in the silk rather than on top of it, so it reads as part
   of the fabric and never competes with the headline. */
.masthead__mark { position: absolute; right: -2%; top: 8%; font-family: var(--display); font-style: italic; font-size: clamp(260px, 42vw, 620px); line-height: .8; color: rgba(246, 197, 106, .13); pointer-events: none; user-select: none; }
.masthead__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(38,6,15,.92) 0%, rgba(38,6,15,.6) 45%, rgba(38,6,15,.35) 100%), linear-gradient(0deg, var(--plum) 2%, rgba(38,6,15,0) 45%); }

.topbar { position: relative; z-index: 3; display: flex; align-items: center; gap: 28px; padding: 20px var(--pad); }
.topbar__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: .01em; color: var(--cream); }
.topbar__brand img { border-radius: 50%; }
.topbar__links { display: flex; gap: 30px; margin-left: auto; font-size: 15px; }
.topbar__links a { color: var(--cream); opacity: .85; }
.topbar__links a:hover { opacity: 1; color: var(--gold-soft); }
.topbar__actions { display: flex; align-items: center; gap: 16px; }
.topbar__signin { font-size: 15px; color: var(--cream); }
.topbar__cta { min-height: 44px; padding: 0 20px; font-size: 12px; }
/* Mobile menu button: three bars that turn into an X when the menu is open */
.topbar__toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; flex: none;
  background: rgba(38, 6, 15, .35); border: 1px solid var(--line); border-radius: 12px; color: var(--cream); cursor: pointer;
  transition: background .2s, border-color .2s; }
.topbar__toggle:hover, .topbar__toggle[aria-expanded="true"] { background: rgba(38, 6, 15, .7); border-color: var(--gold); }
.topbar__toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.topbar__bars { position: relative; display: block; width: 20px; height: 14px; }
.topbar__bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease, top .25s ease; }
.topbar__bars span:nth-child(1) { top: 0; }
.topbar__bars span:nth-child(2) { top: 6px; }
.topbar__bars span:nth-child(3) { top: 12px; }
.topbar__toggle[aria-expanded="true"] .topbar__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.topbar__toggle[aria-expanded="true"] .topbar__bars span:nth-child(2) { opacity: 0; }
.topbar__toggle[aria-expanded="true"] .topbar__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .topbar__bars span { transition: none; } }

.masthead__body { position: relative; z-index: 2; margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(32px, 6vw, 80px); padding: 0 var(--pad) clamp(56px, 9vh, 104px); }
.masthead__copy { display: flex; flex-direction: column; gap: 22px; max-width: 620px; }
.masthead__lead { margin: 0; max-width: 480px; font-size: 17px; line-height: 1.65; color: #f3dfcf; }
.masthead__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

/* The spoken-request card. */
.utterance { margin: 0; max-width: 440px; padding: 22px 24px 26px; background: rgba(38, 6, 15, .72); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; gap: 18px; }
.utterance__bar { display: flex; align-items: center; gap: 12px; }
.utterance__dot { width: 10px; height: 10px; border-radius: 50%; background: #e0556f; box-shadow: 0 0 10px #e0556f; }
.utterance__mic { font-size: 18px; }
/* Honeybug (Ondu Firefly avatar) in place of the red recording dot.
   The dot stays inside as the fallback until the 3D avatar is ready. */
.utterance__firefly { position: relative; flex: none; width: 64px; height: 64px; margin: -19px -6px -19px -14px; display: grid; place-items: center; }
.utterance__firefly canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.utterance__firefly.is-ready canvas { opacity: 1; }
.utterance__firefly.is-ready .utterance__dot { opacity: 0; transition: opacity .3s ease; }
/* Free-flying Honeybug: a see-through layer over the whole page that never takes clicks */
.firefly-layer { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.firefly-layer.is-ready { opacity: 1; }
.firefly-layer canvas { pointer-events: none; }
.utterance blockquote { margin: 0; font-family: var(--display); font-size: clamp(19px, 2vw, 23px); line-height: 1.35; color: var(--cream); }
.utterance em { font-family: inherit; font-style: normal; color: var(--gold); }

.wave { display: inline-flex; align-items: center; gap: 3px; height: 26px; }
.wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--gold); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: .12s; }
.wave i:nth-child(3n) { animation-delay: .26s; }
.wave i:nth-child(5n) { animation-delay: .38s; }
@keyframes wave { 0%, 100% { height: 24%; opacity: .55; } 50% { height: 100%; opacity: 1; } }

/* ===== Bands ===== */
.band { padding: var(--band) var(--pad); display: flex; flex-direction: column; gap: clamp(36px, 4.5vw, 60px); }
.band--deep { background: var(--plum); }
.band--plum { background: var(--maroon); }
.band__head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.band__head .lead { max-width: 640px; }

/* ===== In action ===== */
.stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.stage__film { margin: 0; display: flex; flex-direction: column; gap: 12px; }
/* 16:9 is declared so the page has its final height before the video's
   metadata arrives — otherwise the late reflow lands #try and #trust in
   the wrong place when someone opens one of those links directly. */
.stage__film video { width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 14px; background: #150309; }
.stage__plan { display: flex; flex-direction: column; gap: 22px; }
.replay { align-self: flex-start; min-height: 44px; padding: 0 18px; background: rgba(246,197,106,.12); border: 1px solid var(--line); color: var(--gold-soft); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: 999px; }
.replay:hover { background: rgba(246,197,106,.2); }
.said { margin: 0; padding-left: 18px; border-left: 2px solid var(--gold); font-family: var(--display); font-size: clamp(18px, 1.9vw, 22px); line-height: 1.4; color: var(--cream); }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: step; }
.steps li { padding: 20px 22px; background: var(--plum-card); border: 1px solid var(--line-soft); border-radius: 14px; display: flex; flex-direction: column; gap: 8px; }
.steps li p:not(.eyebrow) { margin: 0; font-size: 15px; line-height: 1.6; color: var(--blush); }
.chip { align-self: flex-start; margin-top: 4px; padding: 6px 12px; border-radius: 999px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-soft); }
.chip--approve { color: var(--gold); border-color: var(--line); }

/* ===== Try it ===== */
.trial { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.talk { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 72px; padding: 0 40px; background: linear-gradient(135deg, #ffdf9a, #e9a93c); color: var(--maroon); border: none; border-radius: 999px; font-size: 15px; font-weight: 700; letter-spacing: .06em; cursor: pointer; touch-action: none; }
.talk__ring { position: absolute; inset: -6px; border-radius: 999px; border: 2px solid var(--gold); opacity: 0; }
.talk.is-live .talk__ring { opacity: 1; animation: pulse 1.3s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.18); opacity: 0; } }
.trial .fine { max-width: 520px; }
.steps--live { width: min(100%, 680px); text-align: left; }

/* ===== Speed ===== */
.race { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.lane { padding: clamp(20px, 2.6vw, 30px); background: var(--plum-card); border: 1px solid var(--line-soft); border-radius: 16px; display: flex; flex-direction: column; gap: 14px; }
.lane--ondu { border-color: var(--line); }
.lane__clock { margin: 0; font-family: var(--display); font-size: clamp(34px, 4.4vw, 52px); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--cream); }
.lane--ondu .lane__clock { color: var(--gold); }
.lane__steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--blush); }
.lane__steps li { opacity: .35; transition: opacity .3s; }
.lane__steps li::before { content: "… "; color: var(--gold); }
.lane__steps li.is-done { opacity: 1; }
.race__note { text-align: center; }

/* ===== Tools ===== */
.toolbelt { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.toolbelt li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 20px; background: var(--plum-card); border: 1px solid var(--line-soft); border-radius: 12px; }
.toolbelt__name { font-size: 16px; color: var(--cream); }
.toolbelt .is-pending, .toolbelt li.is-pending { opacity: .62; }

/* ===== Trust ===== */
.assurance { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.assurance__steps { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.assurance__steps li { padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 8px; }
.assurance__steps li:last-child { border-bottom: none; }
.assurance__steps p:not(.eyebrow) { margin: 0; font-size: 16px; line-height: 1.6; color: var(--blush); }
.assurance > p { margin: 0; }

.approval { padding: clamp(22px, 3vw, 32px); background: var(--plum-card); border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 14px; }
.approval__meta { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.approval__meta > div { display: flex; gap: 10px; }
.approval__meta dt { color: var(--muted); min-width: 64px; }
.approval__meta dd { margin: 0; color: var(--cream); }
.approval__body { margin: 0; padding: 16px; background: rgba(38,6,15,.5); border-radius: 10px; font-size: 15px; line-height: 1.6; color: var(--cream); }
.approval__actions { display: flex; gap: 10px; }
.approval__actions .btn { min-height: 46px; padding: 0 24px; }

/* ===== Narrow ===== */
@media (max-width: 1024px) {
  .topbar__toggle { display: inline-flex; }
  .topbar__links { position: absolute; top: 100%; left: var(--pad); right: var(--pad); flex-direction: column; gap: 0; padding: 0 18px; background: rgba(38,6,15,.97); border: 1px solid var(--line); border-radius: 12px; max-height: 0; overflow: hidden; transition: max-height .25s; }
  .topbar__links.is-open { max-height: 320px; }
  .topbar__links a { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
  .topbar__links a:last-child { border-bottom: none; }
  .topbar__actions { margin-left: 0; }
  .topbar__signin { display: none; }
  .masthead__body { flex-direction: column; align-items: stretch; }
  .utterance { max-width: none; }
  .stage, .assurance { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .race { grid-template-columns: minmax(0, 1fr); }
  .masthead__mark { font-size: 320px; top: 16%; }
}
@media (prefers-reduced-motion: reduce) {
  .wave i, .talk.is-live .talk__ring { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Request access ===== */
.topbar--plain { background: var(--plum); border-bottom: 1px solid var(--line-soft); }
.topbar--plain .topbar__actions { margin-left: auto; }
.topbar--plain .topbar__signin { display: inline-flex; }
.request { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.request__intro { display: flex; flex-direction: column; gap: 20px; }
.request__intro h1 { font-size: clamp(38px, 5vw, 60px); }
.request__card { padding: clamp(24px, 3.4vw, 40px); background: var(--plum-card); border: 1px solid var(--line); border-radius: 16px; }
.demo-ready { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.demo-ready p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--gold-soft); }
@media (max-width: 900px) { .request { grid-template-columns: minmax(0, 1fr); } }

/* Anu's buttons are sentence-case pills, not the letterspaced caps the
   previous site used. Overriding here rather than in styles.css leaves the
   legal pages untouched. */
.btn { text-transform: none; letter-spacing: 0.01em; font-size: 15px; font-weight: 600; border-radius: 999px; min-height: 52px; padding: 0 28px; }
.topbar__cta { font-size: 14px; }
.assurance__left { display: flex; flex-direction: column; gap: 18px; }
.assurance__link { margin: 0; }

/* Phone polish: the access button wrapped onto two lines beside the brand,
   and the mic glyph sat flush against the label. */
.btn { white-space: nowrap; }
.masthead__ctas .btn span[aria-hidden] { margin-right: 8px; }
@media (max-width: 560px) {
  .topbar { gap: 12px; }
  .topbar__brand { font-size: 19px; }
  .topbar__cta { padding: 0 14px; font-size: 13px; }
  .masthead__ctas .btn { padding: 0 22px; }
}

/* The claim, stated once. Two running clocks were read as "2 minutes versus
   0.3 seconds" by the first person who saw them — mm:ss is not obvious at a
   glance, and the comparison invited a quantifying argument rather than
   making a point. */
.saved { text-align: center; padding: clamp(8px, 2vw, 24px) 0; }
.saved__figure { margin: 0; font-family: var(--display); font-size: clamp(32px, max(7vw, min(44px, 10vw)), 86px); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; color: var(--gold); }
.saved__line { margin: 18px auto 0; max-width: 46ch; font-size: 17px; line-height: 1.7; color: var(--blush); }
/* Letter-by-letter reveal (type-reveal.js) */
.tr-word { display: inline-block; white-space: nowrap; }
.tr-space { display: inline; }
.tr-ready .tr-char { display: inline-block; opacity: 0; transform: translateY(0.38em) scale(0.96); filter: blur(8px);
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.8,.2,1), filter .6s ease, text-shadow 1.2s ease;
  will-change: opacity, transform, filter; }
.tr-play .tr-char { opacity: 1; transform: none; filter: blur(0); text-shadow: 0 0 22px rgba(246, 197, 106, .35); }

/* ===== Closing call to action ===== */
.closer { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.closer h2 { margin: 0; }
.closer .lead { margin: 0; }
.closer__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
