/* Bookback website — cinematic dark.
   Colours, type and motion come from brand.css (shared with the owner app and admin console). */

:root {
  --bg: var(--bb-navy-0);
  --bg-2: var(--bb-navy-1);
  --card: var(--bb-navy-2);
  --card-2: var(--bb-navy-3);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f6fb;
  --muted: #a6aec6;
  --blue: var(--bb-blue);
  --blue-btn: var(--bb-blue-deep);
  --teal: var(--bb-teal);
  --teal-soft: var(--bb-teal-soft);
  --amber: var(--bb-amber);

  --font: var(--bb-font);
  --container: 1200px;
  --pad: clamp(20px, 4vw, 32px);
  --nav-h: 72px;
  --radius: 24px;
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.06);   /* fine top highlight on raised surfaces */
  --depth: 0 1px 0 rgba(255, 255, 255, 0.03), 0 24px 60px -32px rgba(0, 0, 0, 0.9);

  --ease-out: var(--bb-ease-out);
  --ease-expo: var(--bb-ease-expo);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  font-feature-settings: "ss01";
}
/* A faint grain over the navy so large dark areas don't band */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.num, time, .plan__price { font-variant-numeric: tabular-nums; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--teal); color: #04111a; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* Type */
.display { font-size: clamp(2.75rem, 1.1rem + 4.6vw, 5.25rem); font-weight: 600; line-height: 0.98; letter-spacing: -0.045em; }
.h1 { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.25rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.04em; }
.h2 { font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.5rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.lead, .section__lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); color: var(--muted); line-height: 1.55; text-wrap: pretty; }
.kicker { font-size: 14px; font-weight: 600; color: var(--teal); letter-spacing: 0.01em; margin-bottom: 14px; }
.lines .line, .display .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.display [data-line] { display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 220ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 15px; }
.btn--lg { height: 54px; padding: 0 28px; font-size: 16px; }
.btn--primary { background: var(--blue-btn); color: #fff; box-shadow: 0 8px 30px -10px rgba(61, 112, 226, 0.7); }
.btn--primary:hover { background: var(--blue); box-shadow: 0 10px 40px -8px rgba(61, 112, 226, 0.85); }
.btn--ghost { color: var(--text); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.28); }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); transition: background-color 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease; border-bottom: 1px solid transparent; }
.nav.is-solid, body:not(.home) .nav { background: rgba(6, 10, 26, 0.72); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: var(--line); }
@supports not (backdrop-filter: blur(1px)) { .nav.is-solid, body:not(.home) .nav { background: rgba(6, 10, 26, 0.95); } }
.nav__inner { height: 100%; max-width: calc(var(--container) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark__mark { width: 34px; height: 35px; }
.wordmark span { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { position: relative; font-size: 15px; color: var(--muted); text-decoration: none; padding: 6px 0; transition: color 160ms ease; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform var(--bb-base) var(--ease-out); }
.nav__links a:hover, .nav__links a[aria-current="true"] { color: var(--text); }
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 20px; }
.nav__signin { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--text); }
.nav__signin:hover { color: var(--teal-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: max(100svh, 760px); display: flex; flex-direction: column; isolation: isolate; overflow: clip; }
.hero__media { position: absolute; inset: 0; z-index: -2; background: #050817; }
.hero__clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 900ms var(--ease-in-out); }
.hero__clip.is-active { opacity: 1; }
.hero__clip[data-step="0"] { transform: scaleX(-1); } /* puts the customer on the right, clear of the text */
.hero__scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 10, 26, 0.94) 0%, rgba(6, 10, 26, 0.82) 30%, rgba(6, 10, 26, 0.35) 58%, rgba(6, 10, 26, 0.05) 80%),
    linear-gradient(0deg, rgba(6, 10, 26, 0.95) 0%, rgba(6, 10, 26, 0) 28%),
    linear-gradient(180deg, rgba(6, 10, 26, 0.7) 0%, rgba(6, 10, 26, 0) 18%);
}
.hero__content { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: calc(var(--nav-h) + 24px); padding-bottom: 20px; }
.hero__content > * { max-width: 620px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--teal-soft); background: rgba(14, 201, 205, 0.1); border: 1px solid rgba(14, 201, 205, 0.32); margin-bottom: 20px; }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(14, 201, 205, 0.6); }
.hero h1 { max-width: 760px; }
.hero__lead { margin-top: 18px; font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); color: #c9cfe2; line-height: 1.55; max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__ctas--center { justify-content: center; }

.hero__chat { margin-top: 28px; width: 100%; max-width: 420px; background: rgba(13, 20, 48, 0.86); border: 1px solid var(--line-2); border-radius: 20px; padding: 14px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8); }
.hero__chat-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.hero__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-btn); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.hero__chat-name { font-size: 15px; font-weight: 600; line-height: 1.2; }
.hero__chat-status { font-size: 13px; color: var(--muted); line-height: 1.3; }
/* Fixed height like a real chat window: newest messages sit at the bottom, older ones scroll off the top */
.hero__chat-log { display: flex; flex-direction: column; gap: 8px; height: 176px; justify-content: flex-end; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px); mask-image: linear-gradient(180deg, transparent 0, #000 22px); }
.hero__chat-log > * { flex: none; }
.hero__booked { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 14px; font-weight: 600; color: #04111a; background: var(--teal); padding: 7px 14px 7px 10px; border-radius: 999px; }
.hero__booked svg { width: 18px; height: 18px; stroke-width: 3; }

.hero__steps { display: flex; align-items: flex-end; gap: 20px; padding-bottom: 24px; }
.steps { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps button { display: flex; flex-direction: column; gap: 12px; text-align: left; min-height: 44px; color: var(--muted); transition: color 180ms ease; }
.steps button[aria-selected="true"], .steps button:hover { color: var(--text); }
.steps__bar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); overflow: clip; }
.steps__bar i { display: block; height: 100%; background: var(--teal); transform: scaleX(0); transform-origin: left; }
.steps button.is-done .steps__bar i, .steps button[aria-selected="true"] .steps__bar i { transform: scaleX(1); }
.hero.is-playing .steps button[aria-selected="true"] .steps__bar i { animation: fill var(--story-dur, 5200ms) linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.steps__label { font-size: 14px; line-height: 1.35; }
.steps__label b { display: block; font-weight: 600; color: var(--text); }
.steps__pause { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color 180ms ease; }
.steps__pause:hover { background: rgba(255, 255, 255, 0.08); }
.steps__pause svg { width: 18px; height: 18px; }
.steps__pause .i-play { display: none; fill: currentColor; stroke: none; }
.hero:not(.is-playing) .steps__pause .i-play { display: block; }
.hero:not(.is-playing) .steps__pause .i-pause { display: none; }

/* Chat bubbles (shared) */
.bubble { max-width: 88%; padding: 9px 13px 6px; border-radius: 16px; font-size: 15px; line-height: 1.4; }
.bubble time { display: block; text-align: right; font-size: 12px; opacity: 0.7; margin-top: 2px; }
.bubble--in { align-self: flex-end; background: var(--blue-btn); color: #fff; border-bottom-right-radius: 5px; }
.bubble--out { align-self: flex-start; background: var(--card-2); color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble--link { align-self: flex-start; display: flex; flex-direction: column; background: var(--card-2); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 12px; padding: 9px 14px; font-size: 15px; }
.bubble--link strong { color: var(--teal-soft); }
.bubble--link span { font-size: 13px; color: var(--muted); }
.bubble--owner { align-self: flex-end; background: #0f5c56; color: #fff; border-bottom-right-radius: 5px; }

/* ---------- Ticker ---------- */
.ticker { border-block: 1px solid var(--line); padding: 20px 0; overflow: clip; background: var(--bg); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__track { display: flex; width: max-content; }
.ticker__track ul { display: flex; gap: 12px; padding-right: 12px; }
.ticker__track li { white-space: nowrap; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-2); color: #c9cfe2; font-size: 15px; }
.ticker__track li:nth-child(4n+1) { border-color: rgba(14, 201, 205, 0.4); color: var(--teal-soft); }
@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: ticker 70s linear infinite; }
  .ticker:hover .ticker__track { animation-play-state: paused; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 12vw, 140px) 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head .section__lead { margin-top: 18px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section__head--row .section__lead { max-width: 420px; margin: 0; }
.section__lead a { color: var(--teal-soft); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 40%), var(--card);
  border: 1px solid var(--line); box-shadow: var(--edge), var(--depth);
  padding: 32px; display: flex; flex-direction: column; gap: 28px;
  transition: border-color 300ms ease;
}
.tile::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(61, 112, 226, 0.22), transparent 65%); pointer-events: none; }
.tile--c::before, .tile--b::before { background: radial-gradient(circle, rgba(14, 201, 205, 0.16), transparent 65%); }
.tile:hover { border-color: rgba(61, 112, 226, 0.35); }
.tile--a { grid-column: span 7; }
.tile--b { grid-column: span 5; }
.tile--c { grid-column: span 5; }
.tile--d { grid-column: span 7; }
.tile__copy { position: relative; }
.tile h3 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.tile__copy p { margin-top: 10px; color: var(--muted); max-width: 44ch; }
.tile__ui { position: relative; margin-top: auto; }
.mini-chat { display: flex; flex-direction: column; gap: 8px; background: rgba(6, 10, 26, 0.5); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.linkcard { display: flex; align-items: center; gap: 14px; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 18px; }
.linkcard__icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(14, 201, 205, 0.14); color: var(--teal); display: grid; place-items: center; flex: none; }
.linkcard__icon svg { width: 22px; height: 22px; }
.linkcard strong { display: block; font-size: 16px; }
.linkcard small { color: var(--muted); font-size: 14px; }
.tile__note { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: #c9cfe2; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--teal { background: var(--teal); }
.alert { display: flex; flex-direction: column; gap: 10px; background: rgba(6, 10, 26, 0.5); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.alert__from { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.alert__body { background: var(--card-2); border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.editor { background: rgba(6, 10, 26, 0.5); border: 1px solid var(--line); border-radius: 18px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.editor__bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 10px; font-size: 14px; font-weight: 600; }
.editor__publish { background: var(--blue-btn); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 13px; }
.qa { background: var(--card-2); border-radius: 12px; padding: 10px 14px; }
.qa__q { font-size: 14px; font-weight: 600; }
.qa__a { font-size: 14px; color: var(--muted); }
.qa--waiting { background: rgba(245, 180, 84, 0.08); border: 1px dashed rgba(245, 180, 84, 0.35); }
.qa--waiting .qa__a { color: var(--amber); font-weight: 500; }
.qa__src { font-size: 12px; color: var(--teal-soft); margin-top: 4px; opacity: 0.85; }
.qa--waiting .qa__src { color: var(--muted); }

/* Not a menu bot: side by side */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.vs .tile { gap: 20px; }
.vs .tile__ui { margin-top: 0; }
.vs .vs__note { margin-top: auto; }
.tile__label { position: relative; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tile--bb .tile__label { color: var(--teal); }
.tile--menu { background: rgba(13, 20, 48, 0.5); }
.tile--menu::before { display: none; }
.tile--bb { border-color: rgba(14, 201, 205, 0.3); }
.tile--bb::before { background: radial-gradient(circle, rgba(14, 201, 205, 0.16), transparent 65%); }
.bubble--menu { align-self: flex-start; background: rgba(255, 255, 255, 0.03); color: var(--muted); border: 1px dashed var(--line-2); border-bottom-left-radius: 5px; }
.vs__note { position: relative; font-size: 15px; font-weight: 500; }
.vs__note--miss { color: var(--amber); }
.vs__note--hit { color: var(--teal-soft); }

.perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; margin-top: 44px; }
.perks li { display: inline-flex; align-items: center; gap: 10px; color: #c9cfe2; font-size: 16px; }
.perks svg { width: 20px; height: 20px; color: var(--teal); stroke-width: 3; }

/* How it works */
.how { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: none; }
.how::before { content: ""; position: absolute; top: 22px; left: 16.6%; right: 16.6%; height: 2px; background: linear-gradient(90deg, var(--blue), var(--teal)); transform: scaleX(var(--how, 1)); transform-origin: left; opacity: 0.6; transition: transform 1400ms var(--ease-expo); }
.how__step { position: relative; text-align: center; padding: 0 12px; }
.how__num { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 22px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--teal); color: var(--teal-soft); font-weight: 600; font-size: 18px; position: relative; }
.how__step h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.how__step p { margin: 10px auto 0; color: var(--muted); max-width: 30ch; }

/* Industries rail */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 26vw, 330px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(var(--pad), calc((100vw - var(--container)) / 2)) 8px;
  scroll-padding-inline: max(var(--pad), calc((100vw - var(--container)) / 2));
}
.rail::-webkit-scrollbar { display: none; }
.icard { position: relative; scroll-snap-align: start; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.icard picture, .icard img { display: block; width: 100%; height: 100%; }
.icard img { object-fit: cover; transition: transform 1200ms var(--ease-out); }
.icard:hover img { transform: scale(1.03); }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text); transition: background-color var(--bb-fast) ease, opacity var(--bb-fast) ease; }
.rail-nav button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.rail-nav button:disabled { opacity: 0.35; cursor: default; }
.rail-nav svg { width: 18px; height: 18px; }
.industries__head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.icard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 10, 26, 0.92) 0%, rgba(6, 10, 26, 0.35) 40%, rgba(6, 10, 26, 0) 65%); pointer-events: none; }
.icard__copy { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 22px; }
.icard h3 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; }
.icard p { margin-top: 6px; font-size: 15px; color: #c9cfe2; line-height: 1.45; }
.more { margin-top: 36px; }
.more summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--teal-soft); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 20px; transition: transform 200ms ease; }
.more[open] summary::after { transform: rotate(45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; color: #c9cfe2; }

/* Pricing */
.pricing__head { max-width: 46em; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; border-radius: 28px; background: var(--card); border: 1px solid var(--line-2); padding: 32px; }
.plan--main { border-color: rgba(61, 112, 226, 0.6); background: linear-gradient(180deg, rgba(61, 112, 226, 0.14), rgba(61, 112, 226, 0) 45%), var(--card); }
.plan__tag { position: absolute; top: -13px; left: 32px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #04111a; background: var(--teal); }
.plan__head { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.plan__name { font-size: 18px; font-weight: 600; color: var(--teal-soft); }
.plan__price { margin-top: 6px; font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.plan__price span { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.plan__year { margin-top: 6px; font-size: 14px; color: var(--muted); }
.plan__blurb { margin-top: 14px; color: #d7dcea; }
.plan__list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.plan__list li { display: flex; gap: 12px; align-items: flex-start; color: #d7dcea; font-size: 15px; }
.plan__list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--teal); stroke-width: 3; }
.plan__cta { margin-top: auto; width: 100%; }
.plans__notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 32px; color: var(--muted); font-size: 15px; }
.plans__notes b { color: var(--text); font-weight: 600; }
.plans__notes a { color: var(--teal-soft); text-decoration: underline; text-underline-offset: 3px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.faq .section__head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 32px); }
.qa-item { border-bottom: 1px solid var(--line); }
.qa-item:first-child { border-top: 1px solid var(--line); }
.qa-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.01em; min-height: 44px; }
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; color: var(--teal); transition: transform 240ms var(--ease-out); }
.qa-item[open] summary::after { transform: rotate(45deg); }
.qa-item summary:hover { color: var(--teal-soft); }
.qa-item p { padding: 0 0 24px; color: var(--muted); max-width: 60ch; }
.qa-item a { color: var(--teal-soft); }

/* Final CTA */
.section--cta { padding-top: 40px; }
.cta { position: relative; overflow: hidden; text-align: center; border-radius: 32px; padding: clamp(56px, 8vw, 96px) var(--pad); background: radial-gradient(ellipse at 50% 0%, rgba(61, 112, 226, 0.35), transparent 60%), radial-gradient(ellipse at 50% 120%, rgba(14, 201, 205, 0.18), transparent 55%), var(--card); border: 1px solid var(--line-2); }
.cta .section__lead { margin: 18px auto 32px; max-width: 34em; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 72px 0 40px; background: var(--bg); }
.footer__top { display: grid; grid-template-columns: 2.2fr repeat(4, 1fr); gap: 40px; }
.footer__brand p { margin: 18px 0 16px; color: var(--muted); font-size: 15px; max-width: 34ch; }
.footer__email { color: var(--teal-soft); font-weight: 500; text-decoration: none; }
.footer__email:hover { text-decoration: underline; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col h2 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.footer__col a { font-size: 15px; color: var(--muted); text-decoration: none; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer__bottom p { font-size: 13px; color: #8790ab; }

/* ---------- Legal pages ---------- */
.legal-hero { padding: calc(var(--nav-h) + clamp(64px, 9vw, 112px)) 0 56px; background: radial-gradient(ellipse at 20% 0%, rgba(61, 112, 226, 0.28), transparent 55%), var(--bg); border-bottom: 1px solid var(--line); }
.legal-hero__kicker { font-size: 14px; font-weight: 600; color: var(--teal); margin-bottom: 14px; }
.legal-hero .lead { margin-top: 18px; max-width: 40em; }
.legal-hero__date { margin-top: 18px; font-size: 14px; color: #8790ab; }
.legal { display: grid; grid-template-columns: 3fr 9fr; gap: 56px; padding-top: 64px; padding-bottom: 120px; }
.legal__toc { align-self: start; position: sticky; top: calc(var(--nav-h) + 32px); display: flex; flex-direction: column; gap: 4px; }
.legal__toc h2 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.legal__toc a { font-size: 14px; color: var(--muted); text-decoration: none; padding: 4px 0; }
.legal__toc a:hover { color: var(--text); }
.legal__body { max-width: 72ch; color: #cdd3e4; }
.legal__body h2 { color: var(--text); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; margin: 64px 0 18px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body h3 { color: var(--text); font-size: 1.1875rem; font-weight: 600; margin: 28px 0 10px; }
.legal__body p, .legal__body li { margin-bottom: 12px; }
.legal__body ul, .legal__body ol { padding-left: 1.3em; margin-bottom: 14px; }
.legal__body ul { list-style: disc; }
.legal__body ol { list-style: decimal; }
.legal__body li::marker { color: var(--teal); }
.legal__body strong { color: var(--text); }
.legal__body a { color: var(--teal-soft); text-underline-offset: 0.2em; }
.legal__body table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.legal__body th, .legal__body td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.legal__body th { color: var(--text); font-weight: 600; }
.legal__contact { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 26px; margin-top: 16px; }
.legal__contact p { margin-bottom: 6px; }

/* ---------- Living chats ---------- */
/* "typing…" dots shown before Bookback replies */
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px; border-bottom-left-radius: 5px; background: var(--card-2); border: 1px solid var(--line); }
.typing[hidden] { display: none; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.caret::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: currentColor; animation: caret 0.8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* Comparison: plays when scrolled to; JS hides steps until their turn */
.js .vs.is-playing [data-step]:not(.is-on) { display: none; }
.js .vs.is-playing .vs__note:not(.is-on) { visibility: hidden; }
.vs .typing:not(.is-on) { display: none; }
.vs [data-step].is-on { animation: pop 420ms var(--ease-expo) both; }
.vs__replay { display: none; margin: 28px auto 0; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; font-weight: 500; color: var(--text); transition: background-color var(--bb-fast) ease; }
.vs__replay:hover { background: rgba(255, 255, 255, 0.08); }
.vs__replay svg { width: 16px; height: 16px; }
.js .vs__replay { display: flex; }

/* Closing panel: the logo's loop draws itself once */
.cta__mark { width: 72px; height: 74px; margin: 0 auto 28px; overflow: visible; filter: drop-shadow(0 10px 30px rgba(61, 112, 226, 0.55)); }
.cta__mark path { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* Legal pages: reading progress */
.progress { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 2px; background: linear-gradient(90deg, var(--blue), var(--teal)); transform: scaleX(var(--read, 0)); transform-origin: left; pointer-events: none; }

/* Footer brand lockup */
.lockup { display: inline-flex; flex-direction: column; gap: 6px; }
.lockup__by, .footer__brand .lockup__by { font-size: 13px; color: var(--muted); padding-left: 44px; margin: 0; }
.lockup__by b { font-weight: 600; color: #cdd3e4; }

/* FAQ answers slide open (JS animates the height) */
.qa-item { overflow: hidden; }
.plan { box-shadow: var(--edge); }
.plan--main, .cta { box-shadow: var(--edge), 0 40px 100px -40px rgba(61, 112, 226, 0.5); }

/* ---------- Tablet and phone ---------- */
@media (max-width: 999px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .tile--a, .tile--b, .tile--c, .tile--d { grid-column: 1 / -1; }
  .vs { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; gap: 40px; }
  .plans, .plans__notes { grid-template-columns: 1fr; max-width: 560px; }
  .plans { gap: 32px; }
  .faq .section__head { position: static; }
  .section__head--row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .industries__head-side { align-items: flex-start; }
  .rail-nav { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .legal { grid-template-columns: 1fr; }
  .legal__toc { display: none; }
}
@media (max-width: 699px) {
  :root { --nav-h: 64px; }
  .nav__signin { display: none; }
  .wordmark span { font-size: 1.3rem; }
  .hero { min-height: 100svh; }
  .hero__clip[data-step="0"] { object-position: 30% center; }
  .hero__clip[data-step="1"] { object-position: 80% center; }
  .hero__clip[data-step="2"] { object-position: 62% center; }
  .hero__scrim { background: linear-gradient(0deg, rgba(6, 10, 26, 0.97) 0%, rgba(6, 10, 26, 0.86) 48%, rgba(6, 10, 26, 0.25) 75%, rgba(6, 10, 26, 0.55) 100%); }
  .hero__content { justify-content: flex-end; padding-top: calc(var(--nav-h) + 160px); }
  .pill { font-size: 13px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__chat { max-width: none; }
  .hero__chat-log { height: 168px; }
  .steps { gap: 10px; }
  .steps__label { font-size: 12px; }

  .how { grid-template-columns: 1fr; gap: 36px; }
  .how::before { top: 22px; bottom: 22px; left: 50%; right: auto; width: 2px; height: auto; transform: none; display: none; }
  .tile { padding: 24px; }
  .plan { padding: 28px; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Motion (everything stays visible without JS or with reduced motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] { transform: translateY(105%); animation: rise-line 1000ms var(--ease-expo) forwards; animation-delay: calc(150ms + var(--i) * 110ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(16px); animation: rise 700ms var(--ease-out) forwards; animation-delay: var(--d); }
  .js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: var(--rd, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .cta__mark path { stroke-dashoffset: 1; }
  .js .cta.is-in .cta__mark path { transition: stroke-dashoffset 1400ms var(--ease-in-out) 200ms; stroke-dashoffset: 0; }
  .js .cta.is-in .cta__mark path:nth-child(2) { transition-delay: 1100ms; transition-duration: 500ms; }
  .js .cta.is-in .cta__mark path:nth-child(n+3) { transition-delay: 1350ms; transition-duration: 600ms; }
  .js .how::before { --how: 0; }
  .js .how.is-in::before { --how: 1; }
  .pill__dot { animation: pulse 2.4s ease-out infinite; }
  .js .hero__chat [data-show].is-shown { animation: pop 500ms var(--ease-expo) both; }
}
.js .hero__chat [data-show]:not(.is-shown) { display: none; }
@keyframes rise-line { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(14, 201, 205, 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(14, 201, 205, 0); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero__clip { transition: none; }
  .typing i, .caret::after { animation: none; }
  .vs__replay { display: none !important; }
  .ticker__track { width: auto; flex-wrap: wrap; justify-content: center; padding: 0 var(--pad); }
  .ticker__track ul { flex-wrap: wrap; justify-content: center; }
  .ticker__track ul[aria-hidden] { display: none; }
  .ticker { -webkit-mask-image: none; mask-image: none; }
}
