/* CoreLink AI marketing theme, v2.
   Loaded by the public pages (home, sign-in, booking, free trial, checkout). The logged-in dashboard keeps styles.css.
   Pages that still carry old markup load styles.css first, then this file, which remaps the old tokens. */

:root {
  color-scheme: dark;

  /* Surfaces: lighter means nearer */
  --bg: #040b18;
  --bg-raised: #071224;
  --surface: #0b1830;
  --surface-2: #10213d;
  --surface-3: #162b4d;

  /* Lines */
  --line: rgba(160, 196, 235, 0.14);
  --line-strong: rgba(160, 196, 235, 0.26);

  /* Text (contrast measured against --bg) */
  --text: #f3f8ff;        /* 18.4:1 */
  --text-2: #b9cbe0;      /* 11.2:1 */
  --text-3: #8ea6c2;      /* 7.3:1 */

  /* One brand accent, plus status colours used only on status */
  --accent: #1ad1ff;
  --accent-2: #5fe1ff;
  --accent-ink: #02131f;
  --accent-soft: rgba(26, 209, 255, 0.12);
  --accent-line: rgba(26, 209, 255, 0.45);
  --good: #2ce6a8;
  --good-soft: rgba(44, 230, 168, 0.12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --bad: #fb7185;
  --bad-soft: rgba(251, 113, 133, 0.12);

  /* The house glow: hero, primary button, popular plan. Nowhere else. */
  --glow: 0 0 0 1px rgba(26, 209, 255, 0.35), 0 10px 40px -8px rgba(26, 209, 255, 0.45);
  --brand-gradient: linear-gradient(100deg, #1ad1ff 0%, #6ee7ff 45%, #2ce6a8 100%);

  /* Shape and depth */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow-float: 0 24px 60px -12px rgba(0, 0, 0, 0.6);

  /* Space (4px base) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px; --s24: 96px;

  /* Type */
  --font: "Plus Jakarta Sans", "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Remap the old design tokens so older markup picks up the new look */
  --bg-deep: var(--bg);
  --bg-navy: var(--bg-raised);
  --bg-card: var(--surface);
  --bg-card-solid: var(--surface);
  --border-subtle: var(--line);
  --border-strong: var(--accent-line);
  --cyan: var(--accent);
  --cyan-dark: #0099cc;
  --emerald: var(--good);
  --amber: var(--warn);
  --rose: var(--bad);
  --text-main: var(--text);
  --text-muted: var(--text-2);
  --text-dim: var(--text-3);
  --radius: var(--r-md);
  --shadow: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 68px; }
/* Land each section's heading just under the sticky header, not 150px below it */
section[id] { scroll-margin-top: calc(20px - var(--s24)); }
@media (max-width: 760px) { section[id] { scroll-margin-top: calc(16px - var(--s16)); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip; /* clip, not hidden: hidden breaks the sticky header */
}
body { padding: 0; }

img, video, svg { max-width: 100%; }
/* The chat widget sizes its own media (the avatar video is wider than its panel on purpose), so leave it alone */
#cl-drawer :is(img, video, canvas, svg) { max-width: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
strong { font-weight: 700; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700;
}
.skip-link:focus { top: 12px; }

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: var(--r-md); border: 1px solid transparent;
  font: 700 15px/1.2 var(--font); letter-spacing: 0; text-transform: none;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: var(--glow);
}
.btn-primary:hover { background: var(--accent-2); }

.btn-outline, .btn-secondary {
  background: rgba(255, 255, 255, 0.04); color: var(--text);
  border-color: var(--line-strong);
}
.btn-outline:hover, .btn-secondary:hover { border-color: var(--accent-line); background: var(--accent-soft); }

.btn-ghost { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 14px; border-radius: var(--r-sm); }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 17px; border-radius: 14px; }
.btn-block { width: 100%; }

/* ---------- Pills, chips, status ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong); color: var(--text-2);
}
.pill-live { background: var(--good-soft); border-color: rgba(44, 230, 168, 0.4); color: #a7f3d0; }
.pill-sandbox { background: var(--warn-soft); border-color: rgba(251, 191, 36, 0.4); color: #fde68a; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; flex: 0 0 auto; }
.dot-live { background: var(--good); box-shadow: 0 0 0 3px rgba(44, 230, 168, 0.2); }
.dot-sandbox { background: var(--warn); }

.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.status-green { background: var(--good-soft); color: #86efc4; border: 1px solid rgba(44, 230, 168, 0.35); }
.status-cyan { background: var(--accent-soft); color: #8ee9ff; border: 1px solid var(--accent-line); }
.status-amber { background: var(--warn-soft); color: #fde68a; border: 1px solid rgba(251, 191, 36, 0.35); }
.status-rose { background: var(--bad-soft); color: #fda4af; border: 1px solid rgba(251, 113, 133, 0.35); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: none;
  backdrop-filter: none;
}
.card-glow { border-color: var(--accent-line); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label {
  font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: 0; text-transform: none;
}
.field .hint { font-size: 13px; color: var(--text-3); }
.optional { font-weight: 400; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: var(--r-md); border: 1px solid var(--line-strong);
  background: var(--bg-raised); color: var(--text);
  font: 400 16px/1.4 var(--font);
  outline: none; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: #6f88a6; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(160, 196, 235, 0.4); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26, 209, 255, 0.22); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.field-error { font-size: 13px; color: #fda4af; font-weight: 600; }
.textarea { min-height: 96px; resize: vertical; }
.check {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  font-size: 14px; line-height: 1.5; color: var(--text-2);
}
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: 0 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4, 11, 24, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand svg { width: 40px; height: 26px; flex: 0 0 auto; }
.brand-words { display: flex; flex-direction: column; line-height: 1.1; }
.brand-words strong { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.brand-words strong span { color: var(--accent); }
.brand-words small { font-size: 11.5px; font-weight: 500; color: var(--text-3); letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-2); font-size: 15px; font-weight: 600; padding: 8px 12px; border-radius: var(--r-sm);
}
.nav-links a svg { width: 17px; height: 17px; color: var(--accent); opacity: 0.85; flex: 0 0 auto; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.nav-links a:hover svg { opacity: 1; }
.nav-links a[aria-current] { color: var(--text); background: rgba(26, 209, 255, 0.10); }
.nav-links a[aria-current] svg { opacity: 1; }
.has-icon { display: inline-flex; align-items: center; gap: 8px; }
.has-icon::before {
  content: ""; width: 16px; height: 16px; flex: 0 0 auto; background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.icon-mic { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='12' rx='3'/%3E%3Cpath d='M19 10v1a7 7 0 0 1-14 0v-1M12 18v4M8 22h8'/%3E%3C/svg%3E"); }
.icon-user { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.header-actions { display: flex; align-items: center; gap: 8px; }

.menu-btn {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: var(--r-md); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); color: var(--text); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav {
  display: none; padding: 8px 16px 20px; border-top: 1px solid var(--line);
  background: rgba(4, 11, 24, 0.97);
}
.mobile-nav.open { display: grid; gap: 4px; }
.mobile-nav a, .mobile-nav button.link {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-height: 52px; padding: 0 12px;
  font: 600 17px var(--font); color: var(--text); border-radius: var(--r-md); background: none; border: 0; text-align: left; cursor: pointer; width: 100%;
}
.mobile-nav a:hover, .mobile-nav button.link:hover { background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.mobile-nav .btn { margin-top: 8px; justify-content: center; }
.mobile-nav a.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow); }
.mobile-nav svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; }
.mobile-nav .has-icon::before { width: 20px; height: 20px; background: var(--accent); }

@media (max-width: 1000px) {
  .nav-links, .header-actions .hide-mobile { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 420px) {
  .brand-words small { display: none; }
  .brand svg { width: 34px; height: 22px; }
  .header-actions .btn-sm { padding: 7px 12px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--s24) 0; position: relative; }
.section-alt { background: var(--bg-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 0 var(--s12); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 0;
}
.h1, .h2, .h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; font-weight: 800; }
.h2 { font-size: clamp(30px, 4vw, 46px); }
.h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
.lead { font-size: 18px; color: var(--text-2); margin: 16px 0 0; max-width: 62ch; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
.gradient-text { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 760px) {
  .section { padding: var(--s16) 0; }
  .section-head { margin-bottom: var(--s8); }
  .lead { font-size: 17px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - 68px); /* fill the first screen under the sticky header */
  display: flex; align-items: center;
  padding: 96px 0 112px;
  background: var(--bg) url("/static/video/corelink-beach-poster.jpg") 65% 50% / cover no-repeat;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 65% 50%; z-index: -2;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(95deg, rgba(4, 11, 24, 0.80) 0%, rgba(4, 11, 24, 0.45) 36%, rgba(4, 11, 24, 0) 54%),
    linear-gradient(180deg, rgba(4, 11, 24, 0) 0%, rgba(4, 11, 24, 0) 86%, var(--bg) 100%);
}
.hero-grid { display: block; }
.hero-copy { max-width: 640px; }
.hero-copy h1, .hero-copy .lead, .hero-note { text-shadow: 0 2px 18px rgba(2, 8, 20, 0.85), 0 1px 3px rgba(2, 8, 20, 0.7); }
.hero-copy .gradient-text { text-shadow: none; filter: drop-shadow(0 2px 14px rgba(2, 8, 20, 0.8)); }
.hero h1 {
  margin: 20px 0 0;
  font-size: clamp(40px, 5vw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero .lead { font-size: 19px; color: #d3e2f2; margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 16px; height: 16px; color: var(--good); }

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

/* Example conversation card in the hero */
.convo {
  position: relative;
  background: rgba(8, 19, 38, 0.78);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: var(--shadow-float), 0 0 80px -20px rgba(26, 209, 255, 0.35);
}
.convo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.convo-who { display: flex; align-items: center; gap: 12px; }
.convo-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: 0 0 auto;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  display: grid; place-items: center; color: var(--accent);
}
.convo-avatar svg { width: 22px; height: 22px; }
.convo-who strong { display: block; font-size: 15px; }
.convo-who small { color: var(--text-3); font-size: 13px; }
.convo-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 0; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.bubble.in { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; }
.bubble.out { align-self: flex-end; background: var(--accent); color: var(--accent-ink); font-weight: 600; border-bottom-right-radius: 4px; }
.convo-result {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--good-soft); border: 1px solid rgba(44, 230, 168, 0.35); font-size: 14px; color: #c9f7e5;
}
/* Played in sequence by script; without script everything simply shows */
.convo.play .bubble, .convo.play .convo-result { opacity: 0; transform: translateY(6px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.convo.play .bubble.on, .convo.play .convo-result.on { opacity: 1; transform: none; }
.convo-result svg { width: 20px; height: 20px; color: var(--good); flex: 0 0 auto; }
.convo-label { margin-top: 12px; font-size: 12.5px; color: var(--text-3); text-align: center; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: 0; padding: 72px 0 80px; }
  .convo { max-width: 520px; }
}
@media (max-width: 900px) {
  .hero::before {
    background: linear-gradient(180deg, rgba(4, 11, 24, 0) 0%, rgba(4, 11, 24, 0.30) 40%, rgba(4, 11, 24, 0.55) 82%, var(--bg) 100%);
  }
  .hero-video { object-position: 74% 50%; }
}
@media (max-width: 600px) {
  .hero { padding: 40px 0 56px; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .hero .lead { font-size: 17px; margin-top: 18px; }
  .hero-cta { flex-direction: column; margin-top: 24px; }
  .hero-cta .btn { width: 100%; }
  .convo { padding: 16px; border-radius: var(--r-lg); }
}

/* ---------- Proof strip ---------- */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-raised); }
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof-item { padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; }
.proof-item + .proof-item { border-left: 1px solid var(--line); }
.proof-item strong { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.proof-item span { color: var(--text-2); font-size: 14.5px; }
@media (max-width: 860px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-item:nth-child(3) { border-left: 0; }
  .proof-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .proof-item { padding: 20px 16px; }
  .proof-item strong { font-size: 24px; }
}

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: var(--accent-ink); background: var(--accent); margin-bottom: 20px;
}
.step p { margin: 8px 0 0; color: var(--text-2); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 12px; } .step { padding: 20px; display: grid; grid-template-columns: 40px 1fr; gap: 0 16px; } .step-num { margin: 0; grid-row: span 2; } }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); }
.feature:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature p { margin: 8px 0 0; color: var(--text-2); }
.feature ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--text-2); }
.feature li { display: flex; gap: 10px; align-items: flex-start; }
.feature li svg { width: 18px; height: 18px; color: var(--good); flex: 0 0 auto; margin-top: 3px; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; gap: 12px; } .feature { padding: 22px; } }

/* ---------- Live demo panel ---------- */
.demo-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center;
  padding: 56px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, #0b2142 0%, #071530 60%, #06213a 100%);
  border: 1px solid var(--accent-line);
}
.demo-panel::before {
  content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -120px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 209, 255, 0.28) 0%, rgba(26, 209, 255, 0) 70%);
}
.demo-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.demo-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--text-2); }
.demo-list li { display: flex; gap: 10px; align-items: flex-start; }
.demo-list svg { width: 20px; height: 20px; color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.demo-visual { display: grid; place-items: center; }
.demo-visual .convo { width: 100%; max-width: 460px; }
.pulse-orb {
  position: relative; width: 220px; height: 220px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #5fe1ff 0%, #1ad1ff 30%, #0a6f9c 70%, #063a5a 100%);
  box-shadow: 0 0 80px rgba(26, 209, 255, 0.45);
  border: 0; cursor: pointer; color: var(--accent-ink);
}
.pulse-orb::before, .pulse-orb::after {
  content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 2px solid rgba(26, 209, 255, 0.35);
  animation: orbPulse 2.8s var(--ease) infinite;
}
.pulse-orb::after { animation-delay: 1.4s; }
@keyframes orbPulse { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.pulse-orb svg { width: 64px; height: 64px; }
.pulse-orb span { position: absolute; bottom: 44px; font-weight: 800; font-size: 15px; }
@media (max-width: 900px) {
  .demo-panel { grid-template-columns: 1fr; padding: 32px 22px; gap: 32px; }
  .demo-visual { order: -1; }
  .pulse-orb { width: 168px; height: 168px; }
  .pulse-orb svg { width: 48px; height: 48px; }
  .pulse-orb span { bottom: 32px; font-size: 14px; }
  .demo-actions .btn { width: 100%; }
}

/* ---------- Pricing ---------- */
.billing-note { display: flex; justify-content: center; margin: -16px 0 40px; }
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line);
}
.plan.popular {
  background: linear-gradient(180deg, #0f2a4f 0%, var(--surface) 70%);
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.plan-badge {
  position: absolute; top: -14px; left: 28px;
  padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: var(--accent); color: var(--accent-ink);
}
.plan-name { font-size: 20px; font-weight: 700; }
.plan-summary { color: var(--text-2); font-size: 15px; margin-top: 4px; min-height: 48px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 20px; }
.plan-price strong { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--text-2); font-size: 16px; }
.plan-setup { font-size: 14px; color: var(--text-3); margin-top: 6px; }
.plan-cta { margin-top: 24px; display: grid; gap: 8px; }
.plan-feats { list-style: none; margin: 24px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 15px; color: var(--text-2); }
.plan-feats li { display: flex; gap: 10px; align-items: flex-start; }
.plan-feats svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
.plan-skeleton { min-height: 520px; border-radius: var(--r-xl); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pricing-foot { text-align: center; color: var(--text-3); font-size: 14px; margin-top: 28px; }
@media (max-width: 1024px) { .pricing { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 28px; } .plan-summary { min-height: 0; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-weight: 700; font-size: 17px; min-height: 64px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--text-3); flex: 0 0 auto; transition: transform 0.2s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--text-2); }
@media (max-width: 600px) { .faq summary { padding: 16px 18px; font-size: 16px; } .faq details p { padding: 0 18px 18px; } }

/* ---------- Book a call (home) ---------- */
.book-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.contact-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ci { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.contact-list svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--text-3); font-size: 13px; }
.contact-list a, .contact-list span.v { color: var(--text); font-weight: 600; }
.booker { padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--accent-line); }
.booker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.booker-step { padding: 20px 0; border-top: 1px solid var(--line); }
.booker-step:first-of-type { border-top: 0; padding-top: 0; }
.booker-step-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.booker-step-head .label { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.mini-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.day-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.day-btn {
  min-height: 64px; padding: 10px 6px; border-radius: var(--r-md); cursor: pointer; text-align: center;
  background: var(--bg-raised); border: 1px solid var(--line-strong); color: var(--text); font-family: var(--font);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.day-btn:hover { border-color: var(--accent-line); }
.day-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.day-btn .dow { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.day-btn[aria-pressed="true"] .dow { color: var(--accent); }
.day-btn .dnum { display: block; font-size: 16px; font-weight: 800; margin-top: 2px; }
.slot-group-title { font-size: 13px; font-weight: 600; color: var(--text-3); margin: 4px 0 8px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot-btn {
  min-height: 48px; padding: 10px 6px; border-radius: var(--r-md); cursor: pointer;
  background: var(--bg-raised); border: 1px solid var(--line-strong); color: var(--text);
  font: 700 15px var(--font); font-variant-numeric: tabular-nums;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.slot-btn:hover { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.slot-btn.selected, .slot-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.date-more { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.date-more input { min-height: 36px; padding: 4px 8px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--bg-raised); color: var(--text); font: 500 14px var(--font); color-scheme: dark; }
.notice { padding: 12px 14px; border-radius: var(--r-md); font-size: 14.5px; }
.notice-warn { background: var(--warn-soft); border: 1px solid rgba(251, 191, 36, 0.35); color: #fde68a; }
.notice-good { background: var(--good-soft); border: 1px solid rgba(44, 230, 168, 0.4); color: #c9f7e5; }
.notice-bad { background: var(--bad-soft); border: 1px solid rgba(251, 113, 133, 0.4); color: #fecdd3; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 1024px) { .book-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 600px) { .booker { padding: 20px 16px; border-radius: var(--r-lg); } .grid-2 { grid-template-columns: 1fr; } .day-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 72px 32px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, #0c2a52 0%, #061a35 100%);
  border: 1px solid var(--accent-line);
}
.final-cta::before { content: ""; position: absolute; z-index: -1; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(ellipse at center, rgba(26, 209, 255, 0.30) 0%, rgba(26, 209, 255, 0) 60%); }
.final-cta .lead { margin-left: auto; margin-right: auto; }
.final-cta .hero-cta { justify-content: center; }
@media (max-width: 600px) { .final-cta { padding: 48px 20px; border-radius: var(--r-lg); } }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #030914; color: var(--text-2); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-grid h4 { margin: 0 0 12px; font-size: 14px; color: var(--text); font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-3); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------- Wizard (trial, checkout) ---------- */
.wizard-page { min-height: 100svh; display: flex; flex-direction: column; background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(26, 209, 255, 0.16), transparent 70%), var(--bg); }
.wizard-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.wizard-main { flex: 1; display: flex; justify-content: center; padding: 24px 16px 64px; }
.wizard { width: 100%; max-width: 560px; }
.wizard.wide { max-width: 960px; }
.progress { margin-bottom: 32px; }
.progress-meta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-2); margin-bottom: 10px; }
.progress-meta strong { color: var(--text); }
.progress-track { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-bar { height: 100%; width: 33%; border-radius: inherit; background: var(--brand-gradient); transition: width 0.35s var(--ease); }
.progress-steps { display: flex; justify-content: space-between; margin-top: 10px; font-size: 13px; color: var(--text-3); }
.progress-steps span[aria-current="step"] { color: var(--accent); font-weight: 700; }
.progress-steps span.done { color: var(--text-2); }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: stepIn 0.3s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wizard h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; margin: 0; text-wrap: balance; }
.wizard .lead { margin-top: 10px; font-size: 17px; }
.wizard-card { margin-top: 28px; padding: 28px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.wizard-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.back-link { align-self: center; background: none; border: 0; color: var(--text-2); font: 600 15px var(--font); cursor: pointer; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 18px; height: 18px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 14px;
  border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--bg-raised); cursor: pointer;
  font-size: 15px; font-weight: 600; transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.choice:hover { border-color: var(--accent-line); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) { .choice-grid { grid-template-columns: 1fr; } }

.plan-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.plan-option {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 20px; cursor: pointer;
  border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--surface);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.plan-option:hover { border-color: var(--accent-line); }
.plan-option input { position: absolute; opacity: 0; pointer-events: none; }
.plan-option:has(input:checked) { border-color: var(--accent); background: linear-gradient(180deg, #0f2a4f 0%, var(--surface) 80%); box-shadow: var(--glow); }
.plan-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.plan-option .po-name { font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-option .po-price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan-option .po-price small { font-size: 15px; font-weight: 500; color: var(--text-2); }
.plan-option .po-sum { font-size: 14px; color: var(--text-2); }
.plan-option .po-check { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: 0 0 auto; }
.plan-option:has(input:checked) .po-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.plan-option .po-check svg { width: 14px; height: 14px; opacity: 0; }
.plan-option:has(input:checked) .po-check svg { opacity: 1; }
.plan-option ul { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
@media (max-width: 860px) { .plan-pick { grid-template-columns: 1fr; } .plan-option ul { display: none; } .plan-option:has(input:checked) ul { display: grid; } }

.summary { margin-top: 20px; padding: 20px; border-radius: var(--r-lg); background: var(--bg-raised); border: 1px solid var(--line); }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 15.5px; color: var(--text-2); }
.summary-row strong { color: var(--text); font-variant-numeric: tabular-nums; }
.summary-row.total { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 18px; color: var(--text); font-weight: 700; }
.summary-row.total strong { font-size: 22px; }
.review-list { margin: 0; display: grid; gap: 0; }
.review-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.review-list dt { color: var(--text-3); }
.review-list dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.review-list .edit-link { margin-left: 8px; }
@media (max-width: 860px) {
  .wizard-step:has(.sticky-actions) { padding-bottom: 150px; }
  .sticky-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0; gap: 4px !important; padding: 12px 16px calc(8px + env(safe-area-inset-bottom)); background: rgba(4, 11, 24, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
}
.edit-link { background: none; border: 0; padding: 0; color: var(--accent); font: 600 14px var(--font); cursor: pointer; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 20px; font-size: 13.5px; color: var(--text-3); }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row svg { width: 15px; height: 15px; color: var(--good); }
.success-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 20px; background: var(--good-soft); color: var(--good); border: 1px solid rgba(44, 230, 168, 0.45); }
.success-icon svg { width: 36px; height: 36px; }
.center { text-align: center; }
.code-block { background: #030914; border: 1px solid var(--line-strong); border-radius: var(--r-md); padding: 14px; font: 13px/1.55 ui-monospace, Menlo, Consolas, monospace; color: #8ee9ff; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
@media (max-width: 600px) { .wizard-card { padding: 20px 16px; border-radius: var(--r-lg); } .wizard-main { padding-top: 8px; } }

/* ---------- Modal, toast (kept for older markup) ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(2, 6, 14, 0.78); backdrop-filter: blur(6px); }
.modal-backdrop.open { display: flex; }
.modal-box { width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-xl); padding: 24px; box-shadow: var(--shadow-float); }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 3000;
  transform: translateX(-50%) translateY(16px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--r-md);
  background: var(--surface-3); border: 1px solid var(--line-strong); color: var(--text);
  font-size: 15px; font-weight: 600; text-align: center; box-shadow: var(--shadow-float);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Cookie banner: keep it clear of the chat button on phones ---------- */
#cl-cookie-banner { font-family: var(--font) !important; border-radius: var(--r-lg) !important; }
@media (max-width: 740px) {
  #cl-cookie-banner {
    left: 12px !important; right: 12px !important; max-width: none !important;
    bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }
}

/* ---------- Reveal on scroll (progressive: content shows without JS) ---------- */
/* ---------- Scroll motion ---------- */
/* Each block rises, sharpens and fades in as it enters; siblings cascade using --i */
.js .reveal {
  opacity: 0; transform: translate3d(0, 32px, 0); filter: blur(4px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease), filter 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
  will-change: opacity, transform;
}
.js .reveal[data-reveal="left"] { transform: translate3d(-48px, 0, 0); }
.js .reveal[data-reveal="right"] { transform: translate3d(48px, 0, 0); }
.js .reveal[data-reveal="zoom"] { transform: scale(0.94); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
@media (max-width: 760px) { .js .reveal { filter: none; } }

/* Hero plays in on load */
.js .hero-copy > * { animation: heroIn 0.9s var(--ease) both; }
.js .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.js .hero-copy > :nth-child(2) { animation-delay: 0.18s; }
.js .hero-copy > :nth-child(3) { animation-delay: 0.34s; }
.js .hero-copy > :nth-child(4) { animation-delay: 0.48s; }
.js .hero-copy > :nth-child(5) { animation-delay: 0.60s; }
@keyframes heroIn { from { opacity: 0; transform: translate3d(0, 28px, 0); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
/* As you scroll past the hero, the copy drifts up and fades (set by script) */
.hero-copy { transform: translate3d(0, calc(var(--hero-scroll, 0) * -60px), 0); opacity: calc(1 - var(--hero-scroll, 0) * 0.7); }

/* Thin progress line under the header */
.scroll-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: var(--brand-gradient, linear-gradient(90deg, #1ad1ff, #2ce6a8));
  transform-origin: 0 50%; transform: scaleX(var(--page-scroll, 0));
  box-shadow: 0 0 12px rgba(26, 209, 255, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .js .hero-copy > * { animation: none; }
  .hero-copy { transform: none; opacity: 1; }
}

/* ---------- Old shared classes, restyled ---------- */
.tb-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.tb-brand:hover { text-decoration: none; }
.tb-divider { width: 1px; height: 26px; background: var(--line-strong); }
.tb-wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.tb-wordmark strong { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.tb-wordmark strong span { color: var(--accent); }
.tb-wordmark small { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-3); }
.table-wrap { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--line); }

/* =====================================================================
   Flair layer: carries the hero's glow and motion through every page
   ===================================================================== */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* Ambient aurora and a faint star grid behind every page */
html { background: var(--bg); }
body, body.wizard-page { background: transparent; position: relative; }
body::before {
  content: ""; position: fixed; inset: -25vmax; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38vmax 28vmax at 18% 22%, rgba(26, 209, 255, 0.20), transparent 62%),
    radial-gradient(34vmax 26vmax at 82% 38%, rgba(44, 230, 168, 0.13), transparent 62%),
    radial-gradient(44vmax 34vmax at 52% 88%, rgba(84, 120, 255, 0.18), transparent 62%);
  animation: aurora 26s ease-in-out infinite alternate;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(150, 210, 255, 0.22) 1px, transparent 1.2px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(5vmax, -3vmax, 0) rotate(6deg) scale(1.08); }
  100% { transform: translate3d(-4vmax, 3vmax, 0) rotate(-5deg) scale(1.04); }
}

/* Sections float on the aurora instead of flat panels, with a glowing seam between them */
.section-alt { background: linear-gradient(180deg, rgba(7, 18, 36, 0.35) 0%, rgba(7, 18, 36, 0.7) 100%); border-color: transparent; }
.section-alt::before, .site-footer::before, .proof::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, rgba(26, 209, 255, 0.7) 50%, transparent 100%);
  box-shadow: 0 0 18px rgba(26, 209, 255, 0.5);
}
.proof, .site-footer { position: relative; }
.proof { background: rgba(7, 18, 36, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: transparent; }
.proof-item strong { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-footer { background: rgba(3, 9, 20, 0.82); border-top-color: transparent; }

/* A big soft light behind each section, alternating sides, drifting slowly */
.section::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(900px, 90vw); height: 620px; top: 0; left: -18%;
  background: radial-gradient(closest-side, rgba(26, 209, 255, 0.30), rgba(26, 209, 255, 0.08) 55%, transparent 100%);
  filter: blur(10px); animation: float 16s ease-in-out infinite alternate;
}
.section:nth-of-type(even)::after { left: auto; right: -18%; background: radial-gradient(closest-side, rgba(84, 120, 255, 0.30), rgba(44, 230, 168, 0.08) 55%, transparent 100%); animation-delay: -8s; }
@keyframes float { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6%, 60px, 0) scale(1.12); } }

/* Section headings: glowing eyebrow pill and a soft gradient on the title */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(26, 209, 255, 0.08); border: 1px solid rgba(26, 209, 255, 0.3);
  box-shadow: 0 0 24px -6px rgba(26, 209, 255, 0.55); font-size: 13.5px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.section-head .h2, .demo-panel .h2, .final-cta .h2 {
  background: linear-gradient(180deg, #ffffff 30%, #a9e9ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Glass cards with a light that follows the pointer */
.step, .feature, .plan, .faq details, .booker, .wizard-card, .card {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(18, 38, 70, 0.72) 0%, rgba(9, 22, 44, 0.78) 100%);
  border: 1px solid rgba(130, 200, 255, 0.16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 20px 50px -30px rgba(0, 0, 0, 0.8);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.step::after, .feature::after, .plan::after, .faq details::after, .booker::after, .wizard-card::after, .card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(26, 209, 255, 0.14), transparent 45%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.step:hover::after, .feature:hover::after, .plan:hover::after, .faq details:hover::after, .booker:hover::after, .wizard-card:hover::after, .card:hover::after { opacity: 1; }
.step:hover, .feature:hover, .plan:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 209, 255, 0.45);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 60px -28px rgba(26, 209, 255, 0.45);
}

/* How it works: glowing numbers joined by a flowing line */
.steps { position: relative; }
.step-num {
  width: 52px; height: 52px; border-radius: 16px; font-size: 20px;
  background: var(--brand-gradient); color: var(--accent-ink);
  box-shadow: 0 0 0 6px rgba(26, 209, 255, 0.10), 0 10px 30px -6px rgba(26, 209, 255, 0.7);
}
@media (min-width: 861px) {
  .steps::before {
    content: ""; position: absolute; z-index: 0; left: 60px; right: 60px; top: 54px; height: 2px; pointer-events: none;
    background: repeating-linear-gradient(90deg, rgba(26, 209, 255, 0.75) 0 10px, transparent 10px 20px);
    background-size: 40px 2px; animation: dashFlow 1.6s linear infinite; opacity: 0.55;
  }
  .step { z-index: 1; }
}
@keyframes dashFlow { to { background-position: 40px 0; } }

/* Features: lit icon tiles that bob gently */
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px; border: 0;
  background: var(--brand-gradient); color: var(--accent-ink);
  box-shadow: 0 0 0 6px rgba(26, 209, 255, 0.08), 0 12px 30px -8px rgba(26, 209, 255, 0.75);
  animation: bob 5s ease-in-out infinite;
}
.feature:nth-child(2) .feature-icon { animation-delay: -1.2s; }
.feature:nth-child(3) .feature-icon { animation-delay: -2.4s; }
.feature:nth-child(4) .feature-icon { animation-delay: -3.6s; }
.feature-icon svg { width: 26px; height: 26px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Live demo: slowly turning light behind the panel */
.demo-panel { background: linear-gradient(135deg, rgba(14, 40, 80, 0.9) 0%, rgba(7, 21, 48, 0.9) 60%, rgba(6, 33, 58, 0.9) 100%); box-shadow: 0 40px 100px -40px rgba(26, 209, 255, 0.5); }
.demo-panel::after {
  content: ""; position: absolute; z-index: -1; inset: -50%; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0deg, rgba(26, 209, 255, 0.16) 60deg, transparent 140deg, rgba(44, 230, 168, 0.12) 220deg, transparent 300deg);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { --spin: 360deg; } }

/* Pricing: the popular plan gets a moving light around its edge */
.plan.popular { background: linear-gradient(180deg, rgba(20, 52, 96, 0.9) 0%, rgba(9, 22, 44, 0.9) 75%); border-color: transparent; box-shadow: 0 30px 80px -30px rgba(26, 209, 255, 0.65); }
.plan.popular::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--spin), #1ad1ff, #2ce6a8, rgba(26, 209, 255, 0.15) 40%, rgba(26, 209, 255, 0.15) 60%, #6ee7ff, #1ad1ff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: spin 6s linear infinite;
}
.plan.popular .plan-price strong { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-badge { box-shadow: 0 0 20px rgba(26, 209, 255, 0.7); z-index: 2; }

/* FAQ: the open answer lights up */
.faq details { transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.faq details[open] { border-color: rgba(26, 209, 255, 0.45); box-shadow: 0 0 0 1px rgba(26, 209, 255, 0.15), 0 20px 50px -30px rgba(26, 209, 255, 0.6); }
.faq summary:hover { color: var(--accent-2); }

/* Booking card and final banner */
.booker { border-color: rgba(26, 209, 255, 0.35); box-shadow: 0 30px 80px -40px rgba(26, 209, 255, 0.55); }
.final-cta { background: linear-gradient(120deg, #0b2a55, #072044, #0a3550, #0b2a55); background-size: 300% 300%; animation: drift 14s ease-in-out infinite; box-shadow: 0 40px 120px -40px rgba(26, 209, 255, 0.6); }
.final-cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(26, 209, 255, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 209, 255, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
}
@keyframes drift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Main buttons: a light sweeps across on hover */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(26, 209, 255, 0.5), 0 14px 40px -8px rgba(26, 209, 255, 0.7); }

/* Wizards: lit progress bar */
.progress-track { background: rgba(255, 255, 255, 0.06); }
.progress-bar { box-shadow: 0 0 16px rgba(26, 209, 255, 0.8); background-size: 200% 100%; animation: drift 4s ease-in-out infinite; }

/* Wizards and sign-in: a breathing light behind the form and a lit headline */
.wizard-main, .auth-shell, .book-shell { position: relative; }
.wizard-main::before, .auth-shell::before, .book-shell::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; left: 50%; top: -40px;
  width: min(820px, 120vw); height: 560px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(26, 209, 255, 0.28), rgba(84, 120, 255, 0.10) 55%, transparent 100%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.08); } }
.wizard h1 { background: linear-gradient(180deg, #ffffff 35%, #a9e9ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wizard-card { border-color: rgba(26, 209, 255, 0.28); box-shadow: 0 30px 80px -40px rgba(26, 209, 255, 0.6); }

/* Phones: keep it smooth (no backdrop blur on cards, no hover lift) */
@media (max-width: 760px) {
  .step, .feature, .plan, .faq details, .booker, .wizard-card, .card { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .step:hover, .feature:hover, .plan:hover { transform: none; }
  body::after { background-size: 26px 26px; opacity: 0.35; }
}
@media (prefers-reduced-motion: reduce) {
  body::before, .section::after, .wizard-main::before, .auth-shell::before, .book-shell::before, .feature-icon, .demo-panel::after, .plan.popular::before, .final-cta, .progress-bar, .steps::before { animation: none !important; }
}

/* Beach version of the hero: keep the pier and Ferris wheel in the open right side */
.hero--beach { background-image: url("/static/video/corelink-beach-poster.jpg"); background-position: 85% 50%; }
.hero--beach .hero-video { object-position: 85% 50%; }
@media (max-width: 900px) { .hero--beach .hero-video { object-position: 78% 50%; } }

/* Mid-width screens (small laptops, tablets on their side): keep each nav link on one line */
.nav-links a, .header-actions a { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 1001px) {
  .nav-links a svg, .header-actions a svg { display: none; }
  .nav-links a { padding-left: 10px; padding-right: 10px; }
}

/* iPad and phone Safari zoom the page into any field under 16px and leave it zoomed. */
@media (pointer: coarse) { input, textarea, select, .date-more input { font-size: 16px; } }
