/* ==========================================================================
   Sitewright — the site that answers
   Canvas:  porcelain over a drifting aurora (klein / violet / coral / aqua)
   Surface: liquid glass — blur + saturation, specular top edge, soft depth
   Type:    Instrument Serif (editorial display, italics as the voice)
            + Space Grotesk (UI/body)
   ========================================================================== */

:root {
  --porcelain: #F7F7F4;
  --ink: #101018;
  --klein: #2216E8;
  --klein-deep: #1B10B8;
  --violet: #7A5CFF;
  --coral: #FF7A59;
  --aqua: #4ED6C1;
  --muted: #5E5E6E;
  --line: rgba(16, 16, 24, .10);
  --ok: #2E9E5B;
  --glass-bg: rgba(255, 255, 255, .55);
  --glass-bg-strong: rgba(255, 255, 255, .72);
  --glass-edge: rgba(255, 255, 255, .65);
  --glass-shadow: 0 18px 50px -18px rgba(16, 16, 60, .28);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, .75);
  --radius: 20px;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Space Grotesk", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--porcelain);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--klein); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  text-wrap: balance;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(58px, 9vw, 118px); }
h2 { font-size: clamp(38px, 5.2vw, 68px); }
h3 { font-size: clamp(24px, 2.6vw, 30px); }

h1 i, h2 i, .brand__word i { font-style: italic; color: var(--klein); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

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

.eyebrow {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.opt { font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }

.fine { font-size: 13.5px; color: var(--muted); }

.linklike {
  background: none; border: none; padding: 0;
  color: var(--klein); font: inherit; font-weight: 600;
  text-decoration: underline; cursor: pointer;
}

/* ==========================================================================
   Aurora field
   ========================================================================== */

.aurora {
  position: fixed; inset: -20vh -20vw; z-index: -1;
  pointer-events: none;
  filter: blur(70px) saturate(1.15);
  opacity: .55;
}

.aurora__blob {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.aurora__blob--klein  { width: 52vw; height: 52vw; left: -8vw;  top: -6vh;  background: radial-gradient(circle at 35% 35%, #4A3FF2, transparent 62%); animation: drift-a 90s ease-in-out infinite alternate; }
.aurora__blob--violet { width: 44vw; height: 44vw; right: -6vw; top: 8vh;   background: radial-gradient(circle at 40% 40%, var(--violet), transparent 62%); animation: drift-b 110s ease-in-out infinite alternate; }
.aurora__blob--coral  { width: 38vw; height: 38vw; left: 22vw;  bottom: -14vh; background: radial-gradient(circle at 45% 45%, var(--coral), transparent 60%); animation: drift-c 100s ease-in-out infinite alternate; }
.aurora__blob--aqua   { width: 36vw; height: 36vw; right: 10vw; bottom: -8vh;  background: radial-gradient(circle at 40% 45%, var(--aqua), transparent 60%); animation: drift-d 120s ease-in-out infinite alternate; }

@keyframes drift-a { to { transform: translate(14vw, 12vh) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-12vw, 16vh) scale(.94); } }
@keyframes drift-c { to { transform: translate(10vw, -12vh) scale(1.08); } }
@keyframes drift-d { to { transform: translate(-8vw, -10vh) scale(1.05); } }

/* ==========================================================================
   Liquid glass surface
   ========================================================================== */

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  border-radius: var(--radius);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, .93); }
}

/* ----- buttons ----- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-weight: 600; font-size: 15.5px;
  padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }
.btn--lg { padding: 16px 30px; font-size: 17px; }

.btn--klein {
  background: var(--klein); color: #fff;
  box-shadow: 0 10px 26px -10px rgba(34, 22, 232, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--klein:hover { background: var(--klein-deep); }

.btn--glass {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  color: var(--ink);
  border-color: var(--glass-edge);
  box-shadow: 0 8px 22px -12px rgba(16, 16, 60, .25), var(--glass-inset);
}
.btn--glass:hover { border-color: rgba(34, 22, 232, .45); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #23233A; }
.btn--plain { background: transparent; color: var(--muted); }
.btn--plain:hover { color: var(--ink); }

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky; top: 12px; z-index: 50;
  display: flex; align-items: center; gap: clamp(14px, 2.5vw, 34px);
  padding: 10px 14px 10px 22px;
  margin: 12px auto 0;
  max-width: 1180px;
  width: calc(100% - 24px);
  border-radius: 999px;
}

.brand { text-decoration: none; }

.brand__word {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--ink);
  letter-spacing: -.01em;
}

.brand__word--foot { font-size: 34px; color: var(--ink); }

.nav { display: flex; gap: clamp(12px, 2vw, 30px); margin-inline: auto; }

.nav a {
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 15px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}

.nav a:hover { border-bottom-color: var(--klein); }

.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.navtoggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding: clamp(48px, 7vw, 100px) clamp(16px, 4vw, 48px) clamp(48px, 6vw, 84px); }

.hero__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 470px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__sub {
  margin-top: 24px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: #33333F;
  max-width: 54ch;
}

.hero__cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

.hero__proof {
  margin-top: 26px;
  font-size: 13.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}

/* ----- the replay ----- */

.replay { padding: 0; overflow: hidden; }

.replay__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}

.replay__bar strong { font-weight: 600; color: var(--ink); }

.replay__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }

.replay__clock { margin-left: auto; font-variant-numeric: tabular-nums; }

.replay__log {
  height: 350px;
  padding: 18px 16px 10px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}

.replay__log .msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14.5px;
  white-space: pre-wrap;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}

.replay__log .msg.is-in { opacity: 1; transform: none; }

.replay__log .msg--user {
  align-self: flex-end;
  background: var(--klein); color: #fff;
  border-bottom-right-radius: 5px;
}

.replay__log .msg--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}

.replay__log .msg--system {
  align-self: center;
  background: #E7F5EC; border: 1px solid #BFE3CC; color: #1F6B3E;
  font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px;
}

.replay__log .msg--card {
  align-self: center;
  width: 94%;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-left: 5px solid var(--klein);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
}

.replay__log .msg--card b { display: block; font-size: 15px; }
.replay__log .msg--card span { color: var(--muted); }

.replay__log .msg--bot.is-typing::after {
  content: "\2022 \2022 \2022";
  letter-spacing: 3px; color: var(--muted);
  animation: pulse 1.1s infinite;
}

@keyframes pulse { 50% { opacity: .35; } }

.replay__caption {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}

.replay__caption b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px); }

.section__head { max-width: 860px; margin: 0 auto 48px; text-align: center; }
.section__sub { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* ----- pillars ----- */

.how__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar { padding: 30px 28px; }

.pillar h3 { margin-bottom: 10px; }
.pillar p { color: #3A3A48; font-size: 15.5px; }

/* ----- demos ----- */

.demos__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.demo {
  display: flex; flex-direction: column; gap: 6px;
  padding: 26px 26px 24px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}

.demo:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px -20px rgba(16, 16, 60, .35), var(--glass-inset);
}

.demo__niche {
  font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--klein);
}

.demo strong { font-family: var(--font-display); font-weight: 400; font-size: 26px; }

.demo__note { color: var(--muted); font-size: 14px; }

.demo::after {
  content: "Open the live site \2192";
  margin-top: 14px;
  font-size: 13.5px; font-weight: 600;
  color: var(--klein);
}

/* ----- pricing ----- */

.pricing__grid {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.price { padding: 30px 28px; }

.price__label {
  font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}

.price__num {
  font-family: var(--font-display);
  font-size: clamp(52px, 5vw, 72px);
  line-height: 1.05;
  margin: 8px 0 14px;
}

.price__per { font-size: .38em; color: var(--muted); }

.price__list { list-style: none; display: grid; gap: 10px; margin-bottom: 16px; }

.price__list li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 15px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 9px;
}

.price__list li b { font-variant-numeric: tabular-nums; white-space: nowrap; }

.price__note { font-size: 13.5px; color: var(--muted); }

.price__verdict {
  font-family: var(--font-display);
  font-size: 21px; line-height: 1.35;
  margin: 2px 0 16px;
}
.price__verdict i { font-style: italic; color: var(--klein); }

.price--math .btn { margin-top: 6px; width: 100%; }

/* ----- intake ----- */

.ask__inner {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 470px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.ask__copy p { margin-top: 16px; color: #33333F; max-width: 50ch; }
.ask__copy .fine { margin-top: 18px; }

.lead-card { padding: 30px 26px 24px; scroll-margin-top: 110px; }

.lead-card__head h2 { font-size: clamp(30px, 3vw, 38px); }

.lead-card__head p { color: var(--muted); font-size: 14.5px; margin-top: 4px; }

.lead-card__progress {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin: 18px 0;
}

.lead-card__progress span {
  height: 5px; border-radius: 99px;
  background: rgba(16, 16, 24, .12);
  transition: background .25s ease;
}

.lead-card__progress span.is-on { background: var(--klein); }

.step { display: none; border: none; }
.step.is-active { display: block; }

.step legend {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 14px;
}

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.chips > .chip:last-child:nth-child(odd) { grid-column: 1 / -1; }

.chip {
  font-family: var(--font-body);
  font-size: 14.5px; font-weight: 600;
  padding: 12px 8px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(16, 16, 24, .14);
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .15s, background .15s, box-shadow .15s;
  text-align: center;
}

.chip:hover { border-color: var(--klein); }

.chip.is-selected {
  background: var(--klein); color: #fff; border-color: var(--klein);
  box-shadow: 0 8px 20px -10px rgba(34, 22, 232, .5);
}

.chips--small { grid-template-columns: repeat(3, 1fr); }
.chips--small .chip { padding: 10px 6px; font-size: 14px; }
.chips--two { grid-template-columns: 1fr 1fr; }

.step textarea, .field input {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid rgba(16, 16, 24, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
  color: var(--ink);
}

.step textarea:focus, .field input:focus {
  outline: none; border-color: var(--klein);
  box-shadow: 0 0 0 3px rgba(34, 22, 232, .15);
}

.field { margin-bottom: 12px; }

.field label, .field__label {
  display: block;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.step__nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px;
}

.btn--submit { min-width: 170px; }

.form-error {
  margin-top: 12px;
  background: rgba(255, 122, 89, .14); color: #B23A21;
  border: 1px solid rgba(255, 122, 89, .4); border-radius: 10px;
  padding: 9px 12px; font-size: 14px;
}

.step--success { text-align: center; padding: 18px 4px 8px; }
.success__mark { width: 56px; margin: 0 auto 14px; }
.step--success h3 { font-size: 30px; }
.step--success p { margin: 8px 0 16px; }

/* ----- closer ----- */

.closer {
  text-align: center;
  padding: clamp(64px, 9vw, 120px) clamp(16px, 4vw, 48px);
}

.closer p { color: var(--muted); margin: 16px auto 28px; max-width: 46ch; font-size: 17px; }
.closer__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----- footer ----- */

.footer {
  border-top: 1px solid var(--line);
  padding: 34px clamp(16px, 4vw, 48px) 96px;
}

.footer__inner {
  max-width: 1180px; margin: 0 auto 16px;
  display: flex; flex-wrap: wrap; gap: 18px 56px; align-items: center;
}

.footer__inner p { color: var(--muted); font-size: 14px; }

.footer__legal {
  max-width: 1180px; margin: 0 auto;
  font-size: 12.5px; color: var(--muted);
}

/* ==========================================================================
   Mobile action bar
   ========================================================================== */

.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(247, 247, 244, .8);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border-top: 1px solid var(--glass-edge);
  transform: translateY(110%);
  transition: transform .25s ease;
}

.mobilebar.is-show { transform: translateY(0); }
.mobilebar .btn { flex: 1; }

/* ==========================================================================
   Chat (the product, on its own site)
   ========================================================================== */

.chat-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 20px 10px 12px;
  font: 600 15px var(--font-body);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.chat-launch:hover { transform: translateY(-2px); }

.chat-launch__mark, .chat__mark {
  font-family: var(--font-display);
  font-size: 21px;
  color: #fff;
  background: var(--klein);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
}

.chat-launch::after {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
}

.chat[hidden] { display: none; }

.chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 80;
  width: min(400px, calc(100vw - 24px));
  height: min(620px, calc(100vh - 40px));   /* fallback for browsers without dvh */
  height: min(620px, calc(100dvh - 40px));
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  box-shadow: var(--glass-shadow), var(--glass-inset);
  display: flex; flex-direction: column;
  overflow: hidden;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .chat { background: rgba(255, 255, 255, .96); }
}

.chat__head, .chat__starters, .chat__inputrow, .chat__foot { flex-shrink: 0; }

.chat__head {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.chat__head strong { font-family: var(--font-display); font-size: 20px; display: block; line-height: 1.1; }
.chat__head span { font-size: 12px; color: var(--muted); }

.chat__close {
  margin-left: auto;
  background: none; border: none; color: var(--muted);
  font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 6px;
}

.chat__close:hover { color: var(--ink); }

.chat__log {
  flex: 1;
  min-height: 0; /* lets the log shrink inside the flex column so the input row stays visible */
  overflow-y: auto;
  padding: 16px 14px 8px;
  display: flex; flex-direction: column; gap: 10px;
}

.msg {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 14.5px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.msg--user {
  align-self: flex-end;
  background: var(--klein);
  color: #fff;
  border-bottom-right-radius: 5px;
}

.msg--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, .85);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
  color: var(--ink);
}

.msg--system {
  align-self: center;
  background: #E7F5EC;
  border: 1px solid #BFE3CC;
  color: #1F6B3E;
  font-size: 13px; font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
}

.msg--bot.is-typing::after {
  content: "\2022 \2022 \2022";
  letter-spacing: 3px;
  color: var(--muted);
  animation: pulse 1.1s infinite;
}

.chat__starters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 4px 14px 10px;
}

.chat__starters button {
  font: 600 13px var(--font-body);
  color: var(--ink);
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(16, 16, 24, .14);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
}

.chat__starters button:hover { border-color: var(--klein); }

.chat__inputrow {
  display: flex; align-items: flex-end; gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
}

.chat__inputrow textarea {
  flex: 1;
  font: inherit; font-size: 16px; /* >=16px keeps iOS from zooming on focus */
  border: none; resize: none;
  max-height: 110px;
  padding: 8px 6px;
  background: transparent;
  color: var(--ink);
}

.chat__inputrow textarea:focus { outline: none; }

.chat__inputrow button {
  width: 38px; height: 38px;
  border: none; border-radius: 50%;
  background: var(--klein); color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  flex-shrink: 0;
}

.chat__inputrow button:hover { background: var(--klein-deep); }
.chat__inputrow button svg { width: 18px; height: 18px; }
.chat__inputrow button:disabled { background: rgba(16, 16, 24, .25); cursor: default; }

.chat__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.chat__handoff {
  background: none; border: none; padding: 0;
  font: 600 13px var(--font-body);
  color: var(--klein); cursor: pointer;
}

.chat__handoff:hover { text-decoration: underline; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */

body.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
body.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.js .reveal { transition: opacity .3s ease; transform: none; }
  .aurora__blob { animation: none; }
  .replay__log .msg { transition: none; }
  .btn, .chat-launch, .mobilebar, .demo { transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; }
  .replay { max-width: 560px; }
  .how__grid, .demos__grid, .pricing__grid { grid-template-columns: 1fr 1fr; }
  .ask__inner { grid-template-columns: 1fr; }
  .lead-card { max-width: 560px; }
}

@media (max-width: 860px) {
  .header { top: 8px; }
  .nav {
    position: fixed; inset: 74px 12px auto 12px; z-index: 49;
    flex-direction: column; gap: 0;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    backdrop-filter: blur(18px) saturate(1.6);
    border: 1px solid var(--glass-edge);
    border-radius: 18px;
    box-shadow: var(--glass-shadow);
    display: none;
    overflow: hidden;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 22px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .header__cta { display: none; }
  .navtoggle {
    display: grid; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px;
  }
  .navtoggle span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; }
  .mobilebar { display: flex; }
  .chat-launch { bottom: calc(74px + env(safe-area-inset-bottom)); right: 14px; padding: 9px 16px 9px 10px; }
  .chat { right: 0; bottom: 0; width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
  .aurora { filter: blur(52px) saturate(1.15); }
}

@media (max-width: 560px) {
  .how__grid, .demos__grid, .pricing__grid { grid-template-columns: 1fr; }
  .chips { grid-template-columns: 1fr 1fr; }
  .hero__cta .btn { flex: 1; }
  .lead-card { padding: 24px 18px 18px; }
  .replay__log { height: 320px; }
  .brand__word { font-size: 26px; }
}
