/* Smart Roofing AI. Light is the default theme; dark via [data-theme="dark"] on <html>.
   Brand: red #e30516 and slate #6b7080 (from the logo). */

:root {
  --bg: #0b0b0c;
  --bg-alt: #101012;
  --surface: #16161a;
  --surface-2: #1d1d22;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f3ef;
  --muted: #a9adb8;
  --brand: #e30516;
  --brand-hover: #c40412;
  --accent: #ff5a4f; /* brand red, lifted for text on dark */
  --accent-soft: rgba(227, 5, 22, 0.14);
  --ok: #4ade80;
  --ok-soft: rgba(74, 222, 128, 0.12);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --glow: rgba(227, 5, 22, 0.32);
  --slate: #a9adb8;
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Brand-red mesh used behind every hero and the closing call to action. */
  --mesh:
    radial-gradient(at 8% 8%, #1c0204 0%, transparent 42%),
    radial-gradient(at 85% 18%, #e30516 0%, transparent 48%),
    radial-gradient(at 92% 85%, #f06a5e 0%, transparent 52%),
    radial-gradient(at 18% 88%, #a80410 0%, transparent 48%),
    linear-gradient(148deg, #2a0407 0%, #b80513 36%, #e30516 65%, #f2786c 100%);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f8f5f1;
  --bg-alt: #f1ece4;
  --surface: #ffffff;
  --surface-2: #f6f3ee;
  --line: rgba(20, 16, 12, 0.1);
  --line-strong: rgba(20, 16, 12, 0.2);
  --text: #17171a;
  --muted: #565b69;
  --slate: #6b7080;
  --accent: #c90414;
  --accent-soft: rgba(227, 5, 22, 0.1);
  --ok: #15803d;
  --ok-soft: rgba(21, 128, 61, 0.1);
  --shadow: 0 30px 70px -35px rgba(60, 20, 20, 0.4);
  --glow: rgba(227, 5, 22, 0.16);
  color-scheme: light;
}

/* Surfaces that stay white in both themes carry their own light tokens. */
.nav__inner, .console, .formcard {
  --surface: #ffffff; --surface-2: #f6f3ee;
  --text: #17171a; --muted: #565b69; --slate: #6b7080; --accent: #c90414; --accent-soft: rgba(227, 5, 22, 0.1);
  --ok: #15803d; --ok-soft: rgba(21, 128, 61, 0.1);
  --line: rgba(20, 16, 12, 0.1); --line-strong: rgba(20, 16, 12, 0.2);
  --shadow: 0 30px 70px -30px rgba(40, 5, 8, 0.55);
  color: var(--text); color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 104px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(780px, 100% - 40px); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap;
  position: relative; overflow: hidden;
  transition: background .2s, border-color .2s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
/* Sheen that sweeps across solid buttons on hover. */
.btn--primary::after, .btn--light::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn--primary:hover::after, .btn--light:hover::after { transform: translateX(120%); transition: transform .7s var(--ease); }
.btn--primary:hover { box-shadow: 0 12px 28px -12px rgba(227, 5, 22, 0.7); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }
.btn--light { background: #fff; color: #b00411; }
.btn--light:hover { background: #ffecec; }
.btn--sm { padding: 11px 16px; font-size: 14.5px; border-radius: 10px; }
.btn--xs { padding: 9px 13px; font-size: 13.5px; border-radius: 9px; }

/* ---------- Nav (floating white bar) ---------- */
.nav { position: sticky; top: 12px; z-index: 50; }
.nav__inner {
  display: flex; align-items: center; gap: 28px; height: 68px; padding: 0 14px 0 18px;
  background: rgba(255, 255, 255, 0.97); border-radius: 18px;
  box-shadow: 0 14px 40px -20px rgba(40, 5, 8, 0.5), 0 0 0 1px rgba(20, 16, 12, 0.06);
}
/* Logo: roof sits on top of the wordmark; the tagline only shows in the footer. */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; font-weight: 800; font-size: 20px; letter-spacing: -0.045em; line-height: 1; white-space: nowrap; color: var(--brand); }
.logo__word { position: relative; display: inline-block; padding-top: .5em; }
/* The same-colour stroke with round joins softens the roof's corners. */
.logo__roof { position: absolute; left: .28em; top: 0; width: 2.3em; height: auto; overflow: visible; fill: var(--brand); stroke: var(--brand); stroke-width: 7; stroke-linejoin: round; }
/* Three words: the same gap before "Roofing" and before "Ai". */
.logo__word span, .logo__word b { margin-left: .11em; }
.logo__word b { font-weight: 800; color: var(--slate); }
.logo__tag { align-self: center; margin-top: .1em; font-size: .29em; font-weight: 600; letter-spacing: 0; color: var(--slate); }
.footer .logo { font-size: 32px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav__links a:hover, .nav__login:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__login { font-size: 15px; color: var(--muted); }
.theme {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 10px; border: 1px solid var(--line); background: transparent;
}
.theme:hover { background: var(--surface-2); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme__moon { display: none; }
[data-theme="light"] .theme__sun { display: none; }
[data-theme="light"] .theme__moon { display: block; }

/* ---------- Hero (brand mesh gradient, sits under the nav) ---------- */
.hero {
  --text: #ffffff; --muted: rgba(255, 255, 255, 0.86); --accent: #ffd5cf;
  --line: rgba(255, 255, 255, 0.22); --line-strong: rgba(255, 255, 255, 0.45); --surface-2: rgba(255, 255, 255, 0.14);
  position: relative; overflow: hidden; margin-top: -68px; padding: 160px 0 60px;
  text-align: center; color: var(--text); background: var(--mesh);
}
/* Soft light that drifts slowly across the gradient. */
.hero__glow {
  position: absolute; inset: -30%; pointer-events: none;
  background:
    radial-gradient(32% 30% at 28% 34%, rgba(255, 150, 130, 0.38), transparent 70%),
    radial-gradient(28% 26% at 74% 62%, rgba(40, 2, 6, 0.42), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
.hero__inner { position: relative; }
/* Small roofer photo perched on the top-right corner of the preview card. His cut-off lower edge hides behind the card. */
.console-wrap { position: relative; max-width: 760px; margin: 56px auto 0; }
.console-wrap .console { position: relative; margin-top: 0; }
.hero__figure {
  position: absolute; right: 18px; bottom: calc(100% - 22px); width: auto; height: 150px;
  pointer-events: none; filter: drop-shadow(0 10px 24px rgba(30, 2, 5, 0.5));
}
@media (max-width: 640px) { .hero__figure { display: none; } }
.eyebrow {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.12);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; color: #fff;
}
.eyebrow::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.4) 50%, transparent 60%);
  transform: translateX(-120%); animation: shimmer 4.5s ease-in-out 1.2s infinite;
}
.eyebrow { margin-bottom: 26px; }
.eyebrow__spark { width: 13px; height: 13px; fill: #fff; animation: twinkle 3.2s ease-in-out infinite; }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
h1 {
  margin: 0 auto; max-width: 15ch;
  font-size: clamp(2.7rem, 7.6vw, 5.6rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800;
  text-wrap: balance;
}
.hero h1 { text-shadow: 0 6px 40px rgba(40, 2, 6, 0.35); }
.accent { color: var(--accent); }
/* Hero accent phrase: moving light across the letters, a soft glow, and an underline that draws in. */
.hero .accent {
  position: relative; display: inline-block; padding-bottom: .06em; text-shadow: none;
  background: linear-gradient(100deg, #ffd9d3 0%, #ffffff 30%, #ffb3a6 52%, #ffffff 72%, #ffd9d3 100%) 0 0 / 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(255, 196, 186, 0.5));
  animation: sheen 7s linear infinite;
}
.hero .accent::after {
  content: ""; position: absolute; left: 1%; right: 1%; bottom: -.07em; height: .15em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M4 14C70 4 190 3 296 9' fill='none' stroke='%23fff' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .92;
}
/* Fine dot grid behind the hero copy. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.26) 1px, transparent 1.5px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(62% 58% at 50% 28%, #000 0%, transparent 78%);
          mask-image: radial-gradient(62% 58% at 50% 28%, #000 0%, transparent 78%);
}
.hero__sub { margin: 24px auto 0; max-width: 62ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); text-wrap: pretty; }
.hero__sub strong { font-weight: 700; color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.hero__note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.hero .step__num { background: #fff; color: #b00411; }
.hero .checks li::before {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23c90414' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 8.5 2.2 2.2 4.8-5.4'/%3E%3C/svg%3E") center / 12px no-repeat;
}

@keyframes drift { from { transform: translate(-4%, -3%) scale(1); } to { transform: translate(5%, 4%) scale(1.12); } }
@keyframes shimmer { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes sheen { to { background-position: -240% 0; } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.72) rotate(45deg); opacity: .7; } }
@keyframes pop { from { opacity: 0; transform: translateY(.2em) scale(.95); filter: blur(14px) drop-shadow(0 0 0 rgba(255, 196, 186, 0)); } to { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 0 22px rgba(255, 196, 186, 0.5)); } }
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- Console (hero illustration) ---------- */
.console {
  margin: 56px auto 0; max-width: 760px; text-align: left;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px;
  box-shadow: var(--shadow), 0 0 0 6px rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.console__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.console__title { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.console__meta { font-family: var(--mono); font-size: 12.5px; font-weight: 400; color: var(--muted); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }
.pill { font-family: var(--mono); font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pill.is-clear { background: var(--ok-soft); color: var(--ok); }

.feed { padding: 6px 8px; }
.feed__item {
  display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start;
  padding: 13px 12px; border-radius: 12px;
}
.feed__item + .feed__item { margin-top: 2px; }
.feed__icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); margin-top: 1px; }
.feed__icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feed__text { font-size: 15.5px; font-weight: 500; line-height: 1.4; }
.feed__meta { margin-top: 2px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.feed__tag { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding-top: 4px; white-space: nowrap; }
.feed__actions { display: flex; gap: 8px; margin-top: 12px; }
.is-decision { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.is-decision .feed__icon { background: var(--brand); color: #fff; }
.is-decision .feed__tag { color: var(--accent); }
.is-decision.is-resolved { background: transparent; border-color: transparent; }
.is-decision.is-resolved .feed__icon { background: var(--ok-soft); color: var(--ok); }
.is-decision.is-resolved .feed__tag { color: var(--muted); }

.prompt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 6px 14px 14px; padding: 12px 12px 12px 16px;
  border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-2);
}
.prompt__text { font-size: 15px; color: var(--muted); min-height: 1.5em; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.18em; background: var(--accent); animation: blink 1s steps(2) infinite; }
.prompt__send { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; flex: none; }
.prompt__send svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.console__caption { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.js .feed__item { opacity: 0; }
.js .feed__item.is-in { animation: rise .45s ease forwards; }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
h2 { margin-top: 14px; max-width: 22ch; font-size: clamp(1.9rem, 4.2vw, 3.1rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.lede { margin-top: 18px; max-width: 60ch; font-size: 1.15rem; color: var(--muted); text-wrap: pretty; }

.grid { display: grid; gap: 16px; margin-top: 48px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(20, 16, 12, 0.04);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--brand) 35%, transparent); box-shadow: 0 22px 44px -26px rgba(120, 10, 16, 0.45); }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.card__num { display: block; margin-bottom: 18px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.card__icon { width: 28px; height: 28px; margin-bottom: 18px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card--big { padding: 36px; }
.card--big h3 { font-size: 1.45rem; }
.card--accent { background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--surface); border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.tag { display: inline-block; margin-top: 22px; padding: 6px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips li { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13.5px; color: var(--muted); }

/* Section headings are centered, except inside a two-column split. */
.section > .wrap > .kicker, .section > .wrap > h2, .section > .wrap > .lede { text-align: center; margin-inline: auto; }
/* Tinted box behind the key words of a heading. */
.hl { padding: 0 0.16em; border-radius: 0.2em; background: color-mix(in srgb, var(--brand) 16%, transparent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Scroll reveal: main.js adds .reveal, then .is-visible when the element enters view. */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Page-load entrance for hero content. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__inner > *, .js .demo__inner > * { animation: rise .9s var(--ease) both; }
  .js .hero__inner > :nth-child(2) { animation-delay: .08s; }
  .js .hero__inner > :nth-child(3) { animation-delay: .16s; }
  .js .hero__inner > :nth-child(4) { animation-delay: .24s; }
  .js .hero__inner > :nth-child(5) { animation-delay: .32s; }
  .js .hero__inner > :nth-child(n+6) { animation-delay: .42s; }
  .js .demo__inner > :nth-child(2) { animation-delay: .18s; }
  .js .hero .accent { animation: sheen 7s linear infinite, pop 1s var(--ease) .35s both; }
  .js .hero .accent::after { animation: draw .9s var(--ease) 1.05s both; }
}

/* ---------- Roofer reactions (9:16 videos) ---------- */
/* Follows the page theme: white band in light mode, dark surface in dark mode. */
.section--reactions { background: var(--surface); border-bottom: 1px solid var(--line); }
.reels { display: flex; justify-content: center; gap: 44px; margin-top: 56px; }
.reel { flex: 0 1 360px; min-width: 0; margin: 0; }
.reel__frame {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16; padding: 0; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: 22px; background: #1b1b1f center / cover no-repeat;
  box-shadow: 0 30px 60px -32px rgba(20, 10, 10, 0.55);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.reel__frame:not(.is-empty):hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--brand) 60%, transparent); box-shadow: 0 34px 60px -28px rgba(227, 5, 22, 0.55); }
.reel__frame.is-empty { cursor: default; background-image: radial-gradient(120% 80% at 50% 0%, rgba(227, 5, 22, 0.28), transparent 70%); }
.reel__frame video, .reel__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }
.reel__play {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 68px; height: 68px;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--brand); color: #fff;
  box-shadow: 0 0 0 10px rgba(227, 5, 22, 0.22); transition: transform .35s var(--ease);
}
.reel__play svg { width: 28px; height: 28px; fill: currentColor; margin-left: 3px; }
.reel__frame:not(.is-empty):hover .reel__play { transform: translate(-50%, -50%) scale(1.08); }
.reel__frame.is-empty .reel__play { background: rgba(255, 255, 255, 0.14); box-shadow: none; }
.reel__frame.is-playing .reel__play, .reel__frame.is-playing .reel__soon { display: none; }
.reel__soon { display: none; position: absolute; left: 0; right: 0; top: calc(50% + 54px); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.reel__frame.is-empty .reel__soon { display: block; }
/* The quote is the headline of each tile; the name sits under it. */
.reel__caption { display: flex; flex-direction: column-reverse; gap: 12px; margin-top: 24px; text-align: center; }
.reel__caption span { font-size: clamp(1.25rem, 1.9vw, 1.55rem); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; color: var(--text); text-wrap: balance; }
.reel__caption strong { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.reel__caption strong::before { content: "— "; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; counter-reset: s; border-top: 1px solid var(--line-strong); }
.step { padding: 28px 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step__num { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--mono); font-size: 14px; }
.step p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.aside { margin: 48px auto 0; max-width: 58ch; text-align: center; color: var(--muted); }

/* Split (ease) */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.checks { margin-top: 30px; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 32px; color: var(--muted); }
.checks li strong { color: var(--text); font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 8.5 2.2 2.2 4.8-5.4'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ask { padding: 24px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.ask__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ask__bubble { max-width: 88%; padding: 13px 16px; border-radius: 16px; font-size: 15.5px; line-height: 1.45; }
.ask__bubble--sys { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.ask__bubble--me { justify-self: end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: 1.1rem; font-weight: 600; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); }

/* ---------- Book a demo ---------- */
.demo { text-align: left; padding: 140px 0 104px; }
.demo__inner { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: 64px; align-items: start; }
.demo__pitch { padding-top: 24px; }
.demo h1 { margin-left: 0; max-width: 12ch; font-size: clamp(2.4rem, 5.4vw, 4rem); }
.demo .hero__sub { margin-left: 0; }
.demo .checks { margin-top: 36px; max-width: 52ch; }

.formcard {
  --input: #f4f1ec; --input-line: rgba(20, 16, 12, 0.3);
  padding: 32px; background: #fff; border-radius: 20px;
  box-shadow: var(--shadow), 0 0 0 6px rgba(255, 255, 255, 0.22);
}
.formcard__title { margin: 0; max-width: none; font-size: 1.5rem; letter-spacing: -0.02em; }
.formcard__sub { margin: 6px 0 24px; font-size: 14.5px; color: var(--muted); }
.formcard .field label { font-weight: 600; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.field__opt { margin-left: 4px; font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; height: 46px; padding: 0 14px;
  font: inherit; font-size: 16px; color: var(--text);
  background-color: var(--input); border: 1px solid var(--input-line); border-radius: 10px;
}
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.field input::placeholder { color: var(--muted); opacity: .7; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .is-invalid { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 18px 1fr; gap: 10px; margin: 6px 0 20px; font-size: 12.5px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); }
.consent a { text-decoration: underline; }
.form__error { margin-bottom: 14px; padding: 11px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 14.5px; }
.form__submit { width: 100%; height: 52px; border: 0; }
.form__submit:disabled { opacity: .6; cursor: default; }

/* ---------- Log in (mock-up) ---------- */
.login-plain { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding: 40px 16px; }
.login-plain .logo { font-size: 34px; }
.login-plain .formcard { width: min(440px, 100%); border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(60, 20, 20, 0.45); }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field__link { font-size: 13.5px; font-weight: 500; color: var(--accent); }
.field__link:hover { text-decoration: underline; }
.field__reveal { position: relative; }
.field__reveal input { padding-right: 66px; }
.field__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 7px 10px; border: 0; border-radius: 8px; background: none; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.field__toggle:hover { background: rgba(20, 16, 12, 0.07); color: var(--text); }
.login__remember { align-items: center; margin: 2px 0 20px; font-size: 14px; }
.login__notice { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }
.login__notice p { margin-bottom: 12px; color: var(--muted); }
.login__notice strong { color: var(--text); }
.login__alt { margin-top: 20px; text-align: center; font-size: 14.5px; color: var(--muted); }
.login__alt a { color: var(--accent); font-weight: 600; }
.login__alt a:hover { text-decoration: underline; }

/* ---------- Thank you ---------- */
.thanks { padding-bottom: 104px; }
.thanks__check { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 50%; background: #fff; color: #15803d; box-shadow: 0 14px 30px -14px rgba(40, 5, 8, 0.6); }
.thanks__check svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thanks h1 { max-width: 18ch; font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.thanks__steps { margin: 56px auto 48px; max-width: 980px; text-align: left; }
.thanks .hero__note a { text-decoration: underline; }
[hidden] { display: none !important; }

/* Final CTA */
.cta { padding: 0 0 104px; }
.cta__inner {
  width: min(1120px, 100% - 40px); padding: 72px 32px; border-radius: 28px; text-align: center; color: #fff;
  background: var(--mesh);
}
.cta h2 { margin: 0 auto; max-width: 18ch; }
.cta p { margin: 16px auto 30px; max-width: 46ch; font-size: 1.1rem; color: rgba(255, 255, 255, 0.86); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 15px; color: var(--muted); }
.footer__top { display: flex; justify-content: center; margin-bottom: 40px; }
.totop {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: 14.5px; font-weight: 600; color: var(--text);
  transition: transform .35s var(--ease), border-color .2s, box-shadow .35s var(--ease);
}
.totop svg { width: 15px; height: 15px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.totop:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 45%, transparent); box-shadow: 0 12px 26px -16px rgba(120, 10, 16, 0.5); }
.totop:hover svg { transform: translateY(-2px); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer__tag { margin-top: 12px; max-width: 30ch; }
.footer__links, .footer__contact { display: grid; gap: 10px; align-content: start; }
.footer a:hover { color: var(--text); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* ---------- Legal pages ---------- */
.legal-hero { padding-bottom: 72px; }
.legal-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.legal { padding-top: 64px; }
.legal__note { margin-bottom: 40px; padding: 26px 28px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); }
.legal__note h2 { margin: 0 0 10px; max-width: none; font-size: 1.25rem; letter-spacing: -0.02em; }
.legal__note p { color: var(--muted); font-size: 16px; }
.legal__note p + p { margin-top: 10px; }
.legal__note strong { color: var(--text); }
.legal__note a, .legal__link { color: var(--text); text-decoration: underline; }
.legal__body { font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.legal__body .policy_embed_div { color: var(--text); }

/* ---------- Cookie consent ---------- */
.linkbtn { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.linkbtn:hover { color: var(--text); }
/* Styled to match the demo form card: white panel, soft ring, form-height buttons. */
.consent-banner {
  --text: #17171a; --muted: #565b69;
  position: fixed; left: 20px; bottom: 20px; z-index: 60;
  width: min(350px, calc(100% - 40px)); padding: 20px;
  background: #fff; color: var(--text); color-scheme: light;
  border-radius: 16px;
  box-shadow: 0 30px 70px -30px rgba(40, 5, 8, 0.6), 0 0 0 1px rgba(20, 16, 12, 0.08), 0 0 0 5px rgba(255, 255, 255, 0.35);
  animation: rise .6s var(--ease) both;
}
.consent-banner__title { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.consent-banner__text p + p { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.consent-banner__text a { color: var(--text); text-decoration: underline; }
.consent-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
/* Both choices carry the same visual weight. */
.consent-banner__actions .btn { height: 40px; padding: 0; border: 0; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: #fff; }
.consent-banner__actions [data-consent="denied"] { background: #17171a; }
.consent-banner__actions [data-consent="denied"]:hover { background: #2c2c31; }
.consent-banner__actions [data-consent="granted"] { background: var(--brand); }
.consent-banner__actions [data-consent="granted"]:hover { background: var(--brand-hover); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  /* Reaction videos become a swipeable row. */
  .reels { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 12px; margin-inline: -20px; scrollbar-width: none; }
  .reels::-webkit-scrollbar { display: none; }
  .reel { flex: 0 0 min(80%, 320px); scroll-snap-align: center; }
  .reels:has(.reel:only-child), .reels:has(.reel:nth-child(2):last-child) { justify-content: safe center; }
  .step, .step + .step { padding: 28px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .demo__inner { grid-template-columns: 1fr; gap: 40px; }
  .demo__pitch { padding-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .wrap--narrow, .cta__inner { width: calc(100% - 32px); }
  .nav__inner { gap: 12px; height: 60px; padding: 0 10px 0 14px; }
  .nav__login { display: none; }
  .logo { font-size: 15px; }
  .nav__actions { gap: 8px; }
  .nav .theme { width: 34px; height: 34px; }
  .nav .btn--sm { padding: 10px 12px; font-size: 13.5px; }
  .hero { margin-top: -60px; padding: 116px 0 56px; }
  .eyebrow { padding: 6px 12px; gap: 7px; font-size: 10.5px; letter-spacing: 0.02em; white-space: nowrap; }
  .section { padding: 72px 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .card--big { padding: 28px; }
  .demo { padding: 100px 0 72px; }
  .formcard { padding: 22px; }
  .reels { padding-inline: 16px; margin-inline: -16px; }
  .login-plain { gap: 28px; padding: 28px 14px; }
  .login-plain .logo { font-size: 28px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .console__meta { display: none; }
  .feed__item { grid-template-columns: 28px 1fr; }
  .feed__tag { display: none; }
  .cta { padding-bottom: 72px; }
  .cta__inner { padding: 56px 22px; border-radius: 22px; }
  .faq details p { padding-right: 0; }
  .consent-banner { left: 12px; bottom: 12px; width: min(350px, calc(100% - 24px)); padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .feed__item { opacity: 1; animation: none !important; }
  .caret, .hero__glow, .eyebrow::after, .pulse::after, .hero .accent, .eyebrow__spark { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .totop, .totop svg, .reel__frame, .reel__play { transition: none; }
  .consent-banner { animation: none; }
}
