/* ============================================================
   Autoflux — editorial landing
   Off-white canvas, near-black ink, single amber accent.
   ============================================================ */

:root {
  --bg: #FAFAF8;
  --ink: #111111;
  --ink-soft: #2A2A28;
  --gray: #6B6B6B;
  --gray-light: #9A9A95;
  --amber: #E08A1E;
  --amber-deep: #C5760F;
  --line: rgba(17, 17, 17, 0.12);
  --line-faint: rgba(17, 17, 17, 0.07);
  --card: #FFFFFF;
  --shadow-soft: 0 40px 80px -30px rgba(17, 17, 17, 0.18), 0 12px 28px -18px rgba(17, 17, 17, 0.12);
  --shadow-lift: 0 60px 120px -40px rgba(17, 17, 17, 0.22), 0 18px 40px -24px rgba(17, 17, 17, 0.14);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(224, 138, 30, 0.22); color: var(--ink); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(96px, 14vh, 200px); }

/* ---------- Type ---------- */
.serif { font-family: var(--serif); font-weight: 400; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray);
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  margin-right: 10px;
  vertical-align: middle;
  transform: translateY(-1px);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 0.98; letter-spacing: -0.01em; }

.display {
  font-size: clamp(46px, 7.4vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1.0;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 30ch;
}
.muted { color: var(--gray); }

/* amber hand-drawn underline on a headline word */
.mark { position: relative; white-space: nowrap; color: var(--ink); }
.mark::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.06em;
  height: 0.5em;
  background: var(--amber);
  opacity: 0.20;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease) 0.35s;
}
.is-revealed .mark::after { transform: scaleX(1); }
.amber-text { color: var(--amber-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  padding: 15px 26px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn-amber {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 12px 28px -14px rgba(224, 138, 30, 0.65);
}
.btn-amber:hover { background: var(--amber-deep); transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(224, 138, 30, 0.7); }
.btn-amber .arrow { transition: transform 0.3s var(--ease); }
.btn-amber:hover .arrow { transform: translateX(4px); }

.btn-ghost { color: var(--ink); padding: 15px 4px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: 15.5px; font-weight: 500;
  color: var(--ink); text-decoration: none; cursor: pointer;
  background: none; border: none;
}
.link-arrow .underline { position: relative; padding-bottom: 2px; }
.link-arrow .underline::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--ink); transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.link-arrow:hover .underline::after { transform: scaleX(1); transform-origin: left; }
.link-arrow .arrow { transition: transform 0.3s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-faint);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
  max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
}
.brand-mark span { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
.brand-name { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--sans); font-size: 14.5px; color: var(--gray);
  text-decoration: none; transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav .btn { padding: 11px 20px; font-size: 14.5px; }
.nav-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 5px 0; transition: 0.3s var(--ease); }

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .nav-burger { display: none; }
  .nav .btn { white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 150px; padding-bottom: 60px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-eyebrow { margin-bottom: 34px; }
.hero h1 { margin-bottom: 30px; }
.hero .lede { margin-bottom: 40px; max-width: 34ch; }
.hero-cta { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 128px; }
}

/* floating transcript card (hero) */
.transcript {
  background: var(--card);
  border: 1px solid var(--line-faint);
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 24px;
  position: relative;
  max-width: 480px;
  margin-left: auto;
}
.transcript::before {
  /* long soft floor shadow */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -38px; height: 60px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(17,17,17,0.10), transparent 75%);
  z-index: -1; filter: blur(2px);
}
.t-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line-faint); margin-bottom: 18px; }
.t-head-left { display: flex; align-items: center; gap: 11px; }
.t-rec { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); position: relative; }
.t-rec::after { content:""; position:absolute; inset:-4px; border-radius:50%; border:1px solid var(--amber); opacity:.4; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%{transform:scale(.6);opacity:.5;} 70%{transform:scale(1.6);opacity:0;} 100%{opacity:0;} }
.t-title { font-size: 13.5px; font-weight: 600; }
.t-meta { font-size: 12px; color: var(--gray); }
.t-time { font-size: 12px; color: var(--gray-light); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.t-line { display: grid; grid-template-columns: 56px 1fr; gap: 14px; margin-bottom: 16px; align-items: start; }
.t-spk { font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray); padding-top: 2px; }
.t-txt { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.t-line.cust .t-spk { color: var(--gray-light); }

.t-highlight {
  background: rgba(224, 138, 30, 0.12);
  border-left: 2px solid var(--amber);
  border-radius: 0 6px 6px 0;
  padding: 12px 14px;
  margin: 18px 0 8px;
  position: relative;
}
.t-highlight .t-txt { color: var(--ink); }
.t-flag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 8px;
}
.t-flag .tri { width: 0; height: 0; border-left: 5px solid var(--amber); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }

/* ---------- Logo strip ---------- */
.logos { padding-block: 8px 0; margin-top: 64px; }
.logos-label { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-light); margin-bottom: 26px; }
.logos-row { display: flex; align-items: center; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
.logo-item { display: flex; align-items: center; gap: 9px; opacity: 0.55; transition: opacity 0.3s var(--ease); }
.logo-item:hover { opacity: 0.85; }
.logo-glyph { width: 22px; height: 22px; border: 1.4px solid var(--ink); border-radius: 4px; }
.logo-glyph.circle { border-radius: 50%; }
.logo-glyph.diamond { transform: rotate(45deg); width: 18px; height: 18px; }
.logo-name { font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); }

/* ---------- Problem ---------- */
.problem { border-top: 1px solid var(--line-faint); }
.problem .h2 { max-width: 18ch; margin-bottom: 48px; }
.problem-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.problem-item { padding: 32px 28px 32px 0; border-right: 1px solid var(--line-faint); }
.problem-item:last-child { border-right: none; padding-right: 0; }
.problem-item .n { font-family: var(--serif); font-size: 14px; color: var(--amber-deep); margin-bottom: 14px; letter-spacing: 0.04em; }
.problem-item p { font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 760px) {
  .problem-list { grid-template-columns: 1fr; }
  .problem-item { border-right: none; border-bottom: 1px solid var(--line-faint); padding: 26px 0; }
  .problem-item:last-child { border-bottom: none; }
}

/* ---------- How it works ---------- */
.how { background: #fff; border-block: 1px solid var(--line-faint); }
.how-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 72px; flex-wrap: wrap; }
.how-head .h2 { max-width: 14ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.step { position: relative; }
.step-num { font-family: var(--serif); font-size: 15px; color: var(--gray); letter-spacing: 0.06em; margin-bottom: 26px; }
.step-icon { margin-bottom: 22px; color: var(--ink); }
.step h3 { font-size: 30px; margin-bottom: 14px; line-height: 1.12; min-height: 2.3em; }
.step p { font-size: 15.5px; line-height: 1.55; color: var(--gray); max-width: 30ch; }
.step .rule { height: 1px; background: var(--line); margin-bottom: 26px; transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease); }
.is-revealed .step .rule { transform: scaleX(1); }
.step:nth-child(2) .rule { transition-delay: 0.12s; }
.step:nth-child(3) .rule { transition-delay: 0.24s; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 44px; } }

/* ---------- Metrics ---------- */
.metrics { text-align: left; }
.metrics .eyebrow { margin-bottom: 56px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.metric { border-top: 1px solid var(--ink); padding-top: 26px; }
.metric .num {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(64px, 9vw, 124px); line-height: 0.9; letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
  display: block; white-space: nowrap;
}
.metric .num .sym { color: var(--amber-deep); padding-left: 0.06em; }
.metric .num .sym:first-child { padding-left: 0; padding-right: 0.05em; }
.metric .num .sym { color: var(--amber-deep); }
.metric .label { font-family: var(--sans); font-size: 16px; color: var(--ink-soft); margin-top: 18px; max-width: 22ch; line-height: 1.45; }
.metrics-foot { font-size: 12.5px; color: var(--gray-light); margin-top: 48px; letter-spacing: 0.01em; }
@media (max-width: 820px) {
  .metric-row { grid-template-columns: 1fr; gap: 8px; }
  .metric { padding-block: 30px; }
}

/* ---------- Product in action ---------- */
.product { background: #fff; border-block: 1px solid var(--line-faint); }
.product-head { max-width: 46ch; margin-bottom: 64px; }
.product-head .h2 { margin-bottom: 22px; }
.product-head p { font-size: 18px; color: var(--gray); line-height: 1.55; }

.app {
  border: 1px solid var(--line-faint);
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  background: var(--bg);
}
.app-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-faint); background: #fff; }
.app-dots { display: flex; gap: 7px; }
.app-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.app-crumb { font-family: var(--sans); font-size: 12.5px; color: var(--gray); margin-left: 14px; }
.app-crumb b { color: var(--ink); font-weight: 600; }
.app-body { display: grid; grid-template-columns: 1.6fr 1fr; min-height: 440px; }
.app-main { padding: 26px 30px; border-right: 1px solid var(--line-faint); }
.app-side { padding: 26px 26px; background: #fff; }

.call-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line-faint); }
.call-title { font-family: var(--serif); font-size: 24px; line-height: 1.1; }
.call-sub { font-size: 12.5px; color: var(--gray); margin-top: 4px; }
.call-score { text-align: right; }
.call-score .v { font-family: var(--serif); font-size: 34px; color: var(--amber-deep); line-height: 1; }
.call-score .k { font-size: 11px; color: var(--gray); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

.app-line { display: grid; grid-template-columns: 64px 1fr; gap: 14px; margin-bottom: 18px; align-items: start; }
.app-line .spk { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray); padding-top: 3px; }
.app-line .spk.cust { color: var(--gray-light); }
.app-line .txt { font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); }
.app-line.hot .txt {
  background: rgba(224, 138, 30, 0.12);
  border-left: 2px solid var(--amber);
  border-radius: 0 6px 6px 0;
  padding: 11px 14px;
  color: var(--ink);
}
.app-line.hot .badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--amber-deep);
}
.app-line.hot .badge .tri { width: 0; height: 0; border-left: 5px solid var(--amber); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }

.side-block { margin-bottom: 28px; }
.side-block .st { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin-bottom: 14px; }
.side-op { border: 1px solid rgba(224,138,30,0.4); background: rgba(224,138,30,0.06); border-radius: 8px; padding: 14px 15px; }
.side-op .o-tag { font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 8px; }
.side-op .o-txt { font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.side-list { list-style: none; }
.side-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); padding: 9px 0; border-bottom: 1px solid var(--line-faint); }
.side-list li:last-child { border-bottom: none; }
.side-list .check { width: 16px; height: 16px; border: 1.4px solid var(--amber); border-radius: 50%; flex-shrink: 0; margin-top: 1px; position: relative; }
.side-list .check::after { content:""; position:absolute; left:4.5px; top:2px; width:4px; height:7px; border:solid var(--amber-deep); border-width:0 1.5px 1.5px 0; transform: rotate(42deg); }
.meter { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--amber); border-radius: 3px; width: 0; transition: width 1.1s var(--ease); }
.is-revealed .meter i { width: var(--w, 70%); }
.meter-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--gray); margin-bottom: 9px; }
.meter-row b { color: var(--ink); font-weight: 600; }

@media (max-width: 820px) {
  .app-body { grid-template-columns: 1fr; }
  .app-main { border-right: none; border-bottom: 1px solid var(--line-faint); }
}

/* ---------- Quote / social proof ---------- */
.proof { text-align: center; }
.proof-q { font-family: var(--serif); font-size: clamp(32px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.01em; max-width: 22ch; margin: 0 auto 48px; text-wrap: balance; }
.proof-q .amber-text { color: var(--amber-deep); }
.proof-by { display: inline-flex; align-items: center; gap: 16px; }
.proof-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #ece9e3, #d8d4cc); border: 1px solid var(--line-faint); }
.proof-by .who { text-align: left; }
.proof-by .name { font-family: var(--sans); font-weight: 600; font-size: 15.5px; }
.proof-by .role { font-size: 13.5px; color: var(--gray); margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { background: #fff; border-block: 1px solid var(--line-faint); }
.faq-grid { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .h2 { position: sticky; top: 110px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line-faint); }
.faq-q { width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 0; font-family: var(--sans); font-size: 19px; font-weight: 500; color: var(--ink); }
.faq-q .ic { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-q .ic::before, .faq-q .ic::after { content:""; position:absolute; background: var(--ink); transition: transform 0.35s var(--ease), opacity 0.35s var(--ease); }
.faq-q .ic::before { left: 0; top: 7.25px; width: 16px; height: 1.5px; }
.faq-q .ic::after { left: 7.25px; top: 0; width: 1.5px; height: 16px; }
.faq-item.open .faq-q .ic::after { transform: scaleY(0); opacity: 0; }
.faq-item.open .faq-q .ic::before { background: var(--amber-deep); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease); }
.faq-a-inner { padding: 0 48px 30px 0; font-size: 16px; line-height: 1.6; color: var(--gray); max-width: 60ch; }
@media (max-width: 820px) {
  .faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .faq-grid .h2 { position: static; }
}

/* ---------- Final CTA (inverted) ---------- */
.final { background: var(--ink); color: var(--bg); }
.final .wrap { padding-block: clamp(110px, 16vh, 210px); }
.final-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.final .eyebrow { color: var(--gray-light); }
.final .eyebrow .dot { background: var(--amber); }
.final h2 { color: var(--bg); font-size: clamp(40px, 5.6vw, 82px); line-height: 1.04; margin: 28px 0 32px; max-width: 16ch; min-height: 3.12em; }
.final-sub { font-size: 18px; color: rgba(250,250,248,0.62); line-height: 1.55; max-width: 36ch; }
.final-trust { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.final-trust .t { font-size: 13.5px; color: rgba(250,250,248,0.55); display: flex; align-items: center; gap: 9px; }
.final-trust .t .d { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }

/* form */
.demo-card { background: var(--bg); color: var(--ink); border-radius: 12px; padding: 34px 32px; box-shadow: var(--shadow-lift); }
.demo-card h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 6px; }
.demo-card .dc-sub { font-size: 14px; color: var(--gray); margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: 0.02em; color: var(--gray); margin-bottom: 7px; }
.field input {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 13px 14px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input::placeholder { color: var(--gray-light); }
.field input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(224,138,30,0.14); }
.field.err input { border-color: #c0392b; }
.field .msg { font-size: 12px; color: #c0392b; margin-top: 6px; min-height: 0; opacity: 0; transition: opacity 0.2s; }
.field.err .msg { opacity: 1; }
.demo-card .btn-amber { width: 100%; justify-content: center; margin-top: 8px; }
.demo-fine { font-size: 12px; color: var(--gray); text-align: center; margin-top: 16px; line-height: 1.45; }

.demo-success { text-align: center; padding: 30px 10px; }
.demo-success .ok { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--amber); margin: 0 auto 22px; position: relative; }
.demo-success .ok::after { content:""; position:absolute; left:19px; top:15px; width:11px; height:20px; border:solid var(--amber-deep); border-width:0 2px 2px 0; transform: rotate(42deg); }
.demo-success h3 { font-family: var(--serif); font-size: 30px; margin-bottom: 10px; }
.demo-success p { font-size: 15px; color: var(--gray); max-width: 30ch; margin: 0 auto; }

@media (max-width: 860px) { .final-grid { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line-faint); }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; padding-block: 40px; flex-wrap: wrap; gap: 20px; }
.foot .brand-name { font-size: 16px; }
.foot-links { display: flex; gap: 26px; }
.foot-links a { font-size: 13.5px; color: var(--gray); text-decoration: none; transition: color 0.25s var(--ease); }
.foot-links a:hover { color: var(--ink); }
.foot-copy { font-size: 13px; color: var(--gray-light); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.is-revealed { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-d1, .reveal-d2, .reveal-d3, .reveal-d4 { opacity: 1 !important; transform: none !important; transition: none !important; }
  .mark::after, .step .rule, .meter i { transition: none !important; }
}

/* ============================================================
   CINEMÁTICA — dark-anchored, high-contrast Bodoni
   ============================================================ */
:root { --serif: "Space Grotesk", "Inter", system-ui, sans-serif; }

.display { font-size: clamp(50px, 8.8vw, 134px); line-height: 0.92; letter-spacing: -0.02em; font-weight: 500; }
.h2 { font-weight: 500; letter-spacing: -0.018em; }
.eyebrow { letter-spacing: 0.2em; }

/* ---- Dark hero with video background ---- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh;
  display: flex; align-items: center;
  background: var(--ink); color: var(--bg);
  padding-top: 136px; padding-bottom: 92px;
}
.hero .wrap { width: 100%; position: relative; z-index: 2; }
/* ---- Hero: real car photo, revealed only by the light sweep ---- */
.hero-car-stage {
  position: absolute; right: -3%; left: auto; margin-inline: 0;
  bottom: 0; width: min(80%, 1040px);
  z-index: 0; pointer-events: none; will-change: transform;
  -webkit-mask-image: radial-gradient(118% 84% at 50% 42%, #000 44%, rgba(0,0,0,0) 100%);
          mask-image: radial-gradient(118% 84% at 50% 42%, #000 44%, rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.bigcar {
  display: block; width: 100%; height: auto;
  --reveal: 0;
  opacity: calc(0.05 + 0.82 * var(--reveal));
  mix-blend-mode: screen;
  filter: saturate(0.78) contrast(0.94);
  --gleams: linear-gradient(112deg,
    rgba(0,0,0,0.14) 3%,
    rgba(0,0,0,0.82) 12%,
    rgba(0,0,0,0.17) 23%,
    rgba(0,0,0,0.92) 33%,
    rgba(0,0,0,0.17) 43%,
    rgba(0,0,0,0.80) 52%,
    rgba(0,0,0,0.17) 62%,
    rgba(0,0,0,0.92) 72%,
    rgba(0,0,0,0.17) 82%,
    rgba(0,0,0,0.82) 90%,
    rgba(0,0,0,0.16) 98%);
  clip-path: inset(0 4% 6% 0);
  -webkit-mask-image: var(--gleams); mask-image: var(--gleams);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  transition: opacity 0.25s linear;
}

/* ---- Scroll progress bar ---- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--amber); transform: scaleX(0); transform-origin: left center; }

@media (prefers-reduced-motion: reduce) {
  .bigcar { opacity: 0.5; }
}
@media (max-width: 920px) { .hero-car-stage { right: -8%; width: 116%; bottom: 0; } }
.hero .eyebrow { color: rgba(250,250,248,0.6); }

/* problem: 4 points in a 2-col grid */
.problem-list { grid-template-columns: 1fr 1fr; gap: 0 clamp(32px, 5vw, 72px); border-top: none; }
.problem-item { border-right: none; border-top: 1px solid var(--line); padding: 28px 0; }
@media (max-width: 760px) { .problem-list { grid-template-columns: 1fr; } }

/* final CTA secondary note */
.final-note { font-size: 13.5px; color: rgba(250,250,248,0.5); margin-top: 24px; max-width: 42ch; line-height: 1.55; }
.hero h1 { color: var(--bg); }
.hero .lede { color: rgba(250,250,248,0.74); }
.hero .amber-word { color: var(--amber); }
.hero .link-arrow { color: var(--bg); }
.hero .link-arrow .underline::after { background: var(--bg); }

/* logo strip on dark */
.hero .transcript { color: var(--ink); }   /* reset: card sits on dark, must not inherit light text */
.hero .logos { border-top: 1px solid rgba(250,250,248,0.13); margin-top: 76px; padding-top: 42px; }
.hero .logos-label { color: rgba(250,250,248,0.42); }
.hero .logo-glyph { border-color: rgba(250,250,248,0.55); }
.hero .logo-name { color: rgba(250,250,248,0.88); }
.hero .logo-item { opacity: 0.72; }

/* nav adapts to dark hero */
.nav:not(.scrolled) .brand-name,
.nav:not(.scrolled) .brand-mark { color: var(--bg); border-color: rgba(250,250,248,0.7); }
.nav:not(.scrolled) .nav-links a { color: rgba(250,250,248,0.72); }
.nav:not(.scrolled) .nav-links a:hover { color: var(--bg); }
.nav:not(.scrolled) .nav-burger span { background: var(--bg); }

/* ---- Dark metrics (the cinematic moment) ---- */
.metrics { background: var(--ink); color: var(--bg); }
.metrics .eyebrow { color: rgba(250,250,248,0.6); }
.metric { border-top-color: rgba(250,250,248,0.55); }
.metric .label { color: rgba(250,250,248,0.72); }
.metric .num { color: var(--bg); }
.metric .num .sym { color: var(--amber); }
.metrics-foot { color: rgba(250,250,248,0.42); }

/* a touch more drama on the big quote */
.proof-q { font-weight: 500; letter-spacing: -0.015em; }
.nav-links { gap: 28px; }
.nav-links a { white-space: nowrap; }

/* ---- Hero chat card: AI text agent, 24/7 ---- */
.chat .t-head { margin-bottom: 18px; }
.chat-status {
  font-family: var(--sans); font-size: 11.5px; font-weight: 500;
  color: var(--gray); letter-spacing: 0.02em; white-space: nowrap;
  border: 1px solid var(--line-faint); border-radius: 100px; padding: 5px 11px;
}
.msg { display: flex; flex-direction: column; margin-bottom: 13px; }
.msg p {
  font-size: 14px; line-height: 1.5; margin: 0;
  padding: 11px 14px; border-radius: 16px; max-width: 84%;
}
.msg.in { align-items: flex-start; }
.msg.in p { background: #F1EFEA; color: var(--ink-soft); border-bottom-left-radius: 5px; }
.msg.out { align-items: flex-end; }
.msg.out p { background: #1d1d1b; color: #FAFAF8; border-bottom-right-radius: 5px; }
.msg-t { font-size: 10.5px; color: var(--gray-light); margin-top: 5px; padding: 0 4px; font-variant-numeric: tabular-nums; }
.msg.confirm { align-items: flex-end; }
.msg.confirm p {
  background: rgba(224,138,30,0.12);
  border: 1px solid rgba(224,138,30,0.40);
  color: var(--ink); border-bottom-right-radius: 5px;
}
.msg-flag {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-end;
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--amber-deep);
  margin-bottom: 7px;
}
.msg-flag .tri { width: 0; height: 0; border-left: 5px solid var(--amber); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.msg:last-child { margin-bottom: 0; }

/* ---- Testimonial monogram avatar ---- */
.proof-by .name { display: block; }
.proof-avatar {
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 20px; line-height: 1;
  color: var(--ink-soft); letter-spacing: 0.01em;
  background: linear-gradient(135deg, #efece6, #ddd8cf);
}

/* ============================================================
   UNIFIED DARK CANVAS — one continuous surface, no white cuts
   ============================================================ */
body { background: var(--ink); color: var(--bg); }
.problem, .how, .metrics, .product, .proof, .faq, .final, .foot { background: transparent; }
.how, .product, .faq { border-block: 1px solid rgba(250,250,248,0.09); }
.problem { border-top: 1px solid rgba(250,250,248,0.09); }
.foot { border-top: 1px solid rgba(250,250,248,0.09); }

.h2, .proof-q, .step h3 { color: var(--bg); }
.lede, .product-head p, .problem-item p, .step p { color: rgba(250,250,248,0.70); }
.eyebrow { color: rgba(250,250,248,0.55); }

.problem-item { border-top-color: rgba(250,250,248,0.12); }
.problem-item .n { color: var(--amber); }
.step .rule { background: rgba(250,250,248,0.18); }
.step-icon { color: var(--bg); }
.step-num { color: rgba(250,250,248,0.5); }
.metrics-foot { color: rgba(250,250,248,0.4); }

.faq-q { color: var(--bg); }
.faq-q .ic::before, .faq-q .ic::after { background: var(--bg); }
.faq-item.open .faq-q .ic::before { background: var(--amber); }
.faq-a-inner { color: rgba(250,250,248,0.6); }
.faq-list { border-top-color: rgba(250,250,248,0.18); }
.faq-item { border-bottom-color: rgba(250,250,248,0.10); }

.proof-by .name { color: var(--bg); }
.proof-by .role { color: rgba(250,250,248,0.55); }

.foot .brand-name { color: var(--bg); }
.foot .brand-mark { border-color: rgba(250,250,248,0.7); }
.foot-links a { color: rgba(250,250,248,0.6); }
.foot-links a:hover { color: var(--bg); }
.foot-copy { color: rgba(250,250,248,0.4); }

/* nav stays dark on scroll (no white bar mid-page) */
.nav.scrolled { background: rgba(17,17,17,0.85); border-bottom-color: rgba(250,250,248,0.10); }
.nav.scrolled .brand-name { color: var(--bg); }
.nav.scrolled .brand-mark { border-color: rgba(250,250,248,0.7); }
.nav.scrolled .nav-links a { color: rgba(250,250,248,0.7); }
.nav.scrolled .nav-links a:hover { color: var(--bg); }

/* ============================================================
   AUTIAX — pro type, logo, text effects, fully unified (no lines)
   ============================================================ */
/* professional display type (Space Grotesk) */
.display { font-size: clamp(44px, 7.6vw, 116px); line-height: 0.98; letter-spacing: -0.03em; font-weight: 600; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }
.h2 { font-weight: 600; letter-spacing: -0.025em; }
.proof-q { font-weight: 500; letter-spacing: -0.02em; }
.eyebrow { letter-spacing: 0.18em; }

/* official logo mark */
.brand-logo { height: 34px; width: auto; display: block; mix-blend-mode: screen; }
.foot .brand-logo { height: 28px; }

/* hero headline: soft blur-in entrance (no text clipping) */
.hero h1.display { color: #F4F4F0; }
.hero h1.display.reveal { filter: blur(9px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
.hero h1.display.reveal.is-revealed { filter: blur(0); }

/* soft glow on the amber accents (echoes the logo glow) */
.amber-word, .amber-text { text-shadow: 0 0 26px rgba(224,138,30,0.28); }

/* fully unified — no divider lines anywhere */
.problem, .how, .product, .faq, .foot { border: none; }
.problem-item { border: none; padding: 22px 0; }
.metric { border-top: none; padding-top: 0; }
.step .rule { display: none; }
.faq-list { border-top: none; }
.faq-item { border-bottom: none; }

@media (prefers-reduced-motion: reduce) {
  .hero h1.display.reveal { filter: none; }
}
