/* Shenton AI: shared styles for index, privacy and terms. No external assets, fonts or CDNs. */

/* ============ Tokens ============ */
:root {
  --navy: #071018;
  --navy-2: #0c1824;
  --navy-3: #13233a;
  --night: #04090e;
  --paper: #f5f3ee;
  --paper-2: #ebe7de;
  --white: #ffffff;
  --ink: #0b1520;
  --ink-muted: #4a5563;
  --mist: #e9eef5;
  --mist-muted: #9fb0c3;

  /* One vivid accent, used consistently. */
  --blue: #2f7bff;        /* decoration, glows, large shapes */
  --blue-ink: #1d5ce6;    /* text on light, button fills (white text 5.6:1) */
  --blue-hi: #7aa9ff;     /* text and links on dark (8:1) */
  /* Gold is now a minimal accent: the human in the loop. */
  --gold: #c9a227;
  --gold-2: #e8d48b;
  --amber: #f5b544;
  --red: #ff6b6b;
  --red-ink: #b42318;

  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Roboto Mono", monospace;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(88px, 11vw, 152px);
  --header-h: 64px;
  --radius: 20px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Tones: every section is either dark or light. Components read these variables. */
.tone-dark {
  --bg: var(--navy);
  --fg: var(--mist);
  --muted: var(--mist-muted);
  --accent: var(--blue-hi);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(233, 238, 245, 0.12);
  --line-strong: rgba(233, 238, 245, 0.32);
  --focus: var(--blue-hi);
  background-color: var(--bg);
  color: var(--fg);
}
.tone-light {
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--ink-muted);
  --accent: var(--blue-ink);
  --surface: var(--white);
  --surface-2: var(--paper-2);
  --line: rgba(11, 21, 32, 0.1);
  --line-strong: rgba(11, 21, 32, 0.45);
  --focus: var(--blue-ink);
  background-color: var(--bg);
  color: var(--fg);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--navy);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--navy);
  color: var(--mist);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
  --focus: var(--blue-hi);
}

[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

a { color: var(--accent, var(--blue-hi)); text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus, var(--blue-hi));
  outline-offset: 3px;
  border-radius: 6px;
}

ul[role="list"], ol[role="list"] { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
p { text-wrap: pretty; }

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ============ Type scale ============ */
.eyebrow {
  font-family: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
  margin-bottom: 18px;
}

.display {
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.section-lede {
  margin-top: 24px;
  max-width: 40rem;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  line-height: 1.5;
  color: var(--muted);
}

.section { padding-block: var(--section); position: relative; }
.section-head { max-width: 62rem; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-head-center .section-lede { margin-inline: auto; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ============ Buttons ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 18px; height: 18px; }

.btn-primary {
  background: var(--blue-ink);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 34px -14px rgba(47, 123, 255, 0.85);
  overflow: hidden;
  isolation: isolate;
}
.btn-primary::after {
  /* light sweep on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-primary:hover { background: #2466f0; color: var(--white); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 18px 44px -12px rgba(47, 123, 255, 0.95); }
.btn-primary > span { position: relative; display: inline-block; transition: transform 0.35s var(--ease); }

.btn-ghost {
  background: transparent;
  color: var(--fg, var(--mist));
  border-color: var(--line-strong, rgba(233, 238, 245, 0.32));
}
.btn-ghost:hover { background: var(--surface-2, rgba(255, 255, 255, 0.07)); }

.btn-gold {
  background: var(--gold-2);
  color: var(--ink);
  box-shadow: 0 12px 30px -12px rgba(232, 212, 139, 0.7);
}
.btn-gold:hover { background: #f1e2a6; }
.btn-gold:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.btn-large { min-height: 56px; padding: 14px 30px; font-size: 1.0625rem; }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 0.9375rem; }
.btn-block { width: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover::after { transform: translateX(120%); transition: transform 0.9s var(--ease); }
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 16, 24, 0.9);
  -webkit-backdrop-filter: saturate(1.8) blur(18px);
  backdrop-filter: saturate(1.8) blur(18px);
  border-bottom: 1px solid transparent;
  color: var(--mist);
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
  --accent: var(--blue-hi);
  --fg: var(--mist);
}
.site-header.is-scrolled { border-bottom-color: rgba(233, 238, 245, 0.08); background: rgba(7, 16, 24, 0.94); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.wordmark-mark { flex: none; width: 26px; height: 26px; fill: var(--gold); }

.header-nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.header-nav ul { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 28px); }
.header-nav ul a {
  color: rgba(233, 238, 245, 0.82);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}
.header-nav ul a:hover { color: var(--white); }

@media (max-width: 1099px) {
  .header-nav-section { display: none; }
}
@media (max-width: 719px) {
  .header-nav .btn-small { max-width: 12.5rem; padding: 6px 14px; font-size: 0.8125rem; line-height: 1.25; text-wrap: balance; }
  /* With JS, a floating CTA replaces the header button on small screens. */
  .js .header-cta { display: none; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(48px, 7.5vh, 112px);
  padding-bottom: 0;
  isolation: isolate;
}
.hero-aurora {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  z-index: -2;
  background:
    radial-gradient(40% 36% at 22% 28%, rgba(47, 123, 255, 0.34), transparent 70%),
    radial-gradient(34% 30% at 80% 22%, rgba(56, 189, 248, 0.18), transparent 70%),
    radial-gradient(42% 30% at 55% 78%, rgba(47, 123, 255, 0.22), transparent 70%),
    radial-gradient(26% 20% at 68% 58%, rgba(232, 212, 139, 0.10), transparent 70%);
  filter: blur(8px);
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(233, 238, 245, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 238, 245, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 55% at 50% 30%, #000 20%, transparent 75%);
}

.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--mist);
  font-size: 0.9375rem;
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47, 123, 255, 0.22);
}

.hero-title {
  font-size: clamp(2.875rem, 7vw, 7.75rem);
  font-weight: 800;
  letter-spacing: -0.048em;
  line-height: 0.98;
  max-width: 13.5em;
  color: var(--white);
}
.hero-title em {
  display: block;
  font-style: normal;
  padding-bottom: 0.08em;
  background: linear-gradient(92deg, var(--blue-hi) 0%, var(--blue) 32%, #9cc2ff 62%, var(--gold-2) 100%);
  background-size: 150% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  margin-top: 26px;
  max-width: 50rem;
  font-size: clamp(1.125rem, 1.7vw, 1.4375rem);
  line-height: 1.5;
  color: var(--mist-muted);
}

.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }

.door-link { margin-top: 22px; font-size: 1rem; }
.door-link a { color: var(--accent); font-weight: 500; }
.door-link a::after { content: " \2192"; display: inline-block; transition: transform 0.3s var(--ease); }
.door-link a:hover::after { transform: translateX(4px); }

/* Hero console: an illustration of an agent waiting for a human. Decorative, aria-hidden. */
.hero-stage {
  margin-top: clamp(44px, 7vh, 88px);
  perspective: 1600px;
}
.console {
  position: relative;
  max-width: 1080px;
  margin-inline: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid rgba(233, 238, 245, 0.14);
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(19, 35, 58, 0.92), rgba(9, 19, 30, 0.98));
  box-shadow: 0 -30px 120px -40px rgba(47, 123, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform-origin: 50% 100%;
  will-change: transform;
  -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent);
  mask-image: linear-gradient(180deg, #000 78%, transparent);
}
.console-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(233, 238, 245, 0.08);
  font-size: 0.875rem;
}
.console-title { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--mist); }
.console-live { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18); }
.console-chip { padding: 4px 12px; border-radius: 999px; background: rgba(47, 123, 255, 0.16); color: var(--blue-hi); font-weight: 600; white-space: nowrap; }

.console-body {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 18px;
  padding: 22px;
  text-align: left;
}
.console-steps { display: grid; gap: 10px; align-content: start; }
.c-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(233, 238, 245, 0.06);
  font-size: 0.9375rem;
  color: var(--mist);
}
.c-icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}
.c-done { background: var(--blue); color: var(--white); }
.c-done::before { content: "\2713"; }
.c-flag { background: var(--amber); color: var(--ink); }
.c-flag::before { content: "!"; }
.c-wait { border: 2px solid var(--gold-2); }

.console-approval {
  align-self: start;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(232, 212, 139, 0.14), rgba(232, 212, 139, 0.03));
  border: 1px solid rgba(232, 212, 139, 0.35);
}
.console-k { font-size: 0.8125rem; font-weight: 600; color: var(--gold-2); }
.console-t { margin-top: 6px; font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; color: var(--white); }
.console-actions { display: flex; gap: 8px; margin-top: 18px; }
.fake-btn { padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(233, 238, 245, 0.25); font-size: 0.875rem; font-weight: 600; color: var(--mist); }
.fake-btn-primary { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }

.console-log { display: grid; gap: 8px; align-content: start; font-family: var(--mono); font-size: 0.8125rem; color: var(--mist-muted); }
.c-log { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.18); }
.c-time { opacity: 0.85; }
.c-actor { padding: 1px 8px; border-radius: 999px; background: rgba(47, 123, 255, 0.18); color: var(--blue-hi); font-family: var(--text); font-weight: 600; font-size: 0.75rem; }
.c-actor-human { background: rgba(232, 212, 139, 0.16); color: var(--gold-2); }

.console-note { padding: 0 22px 18px; font-size: 0.75rem; color: var(--mist-muted); text-align: left; }

/* ============ Why now ============ */
.statement {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3.8vw, 3.375rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.14;
  max-width: 24em;
  margin-bottom: clamp(56px, 8vw, 104px);
}
.scrub .w { transition: color 0.35s linear; }
.motion-ok .scrub.is-split .w { color: rgba(11, 21, 32, 0.2); }
.motion-ok .scrub.is-split .w.is-lit { color: var(--fg); }

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.prose { display: grid; gap: 22px; max-width: 38rem; font-size: 1.1875rem; line-height: 1.65; color: var(--muted); }
.prose p:first-child { color: var(--fg); }

.principles { display: grid; gap: 16px; }
.principle { padding: 26px 28px; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 4px; box-shadow: 0 1px 2px rgba(11, 21, 32, 0.04), 0 18px 40px -28px rgba(11, 21, 32, 0.25); }
.principle-icon { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(29, 92, 230, 0.1); color: var(--blue-ink); }
.principle h3 { font-size: 1.1875rem; }
.principle p { color: var(--muted); font-size: 1rem; }

/* ============ Demo (agent at work) ============ */
.demo-section { overflow: hidden; }
.demo-glow {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(47, 123, 255, 0.22), transparent);
  pointer-events: none;
}
.label-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232, 212, 139, 0.4);
  color: var(--gold-2);
  font-size: 0.875rem;
  font-weight: 600;
}
.label-pill .icon { width: 16px; height: 16px; }

/* No JS: static description of each workflow */
.demo-static { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; position: relative; }
.demo-flow { padding: 26px; }
.demo-flow h3 { font-size: 1.25rem; }
.demo-flow > p { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }
.demo-flow-steps { margin-top: 16px; padding-left: 1.2em; display: grid; gap: 6px; font-size: 0.9375rem; }
.demo-flow-steps li::marker { color: var(--blue-hi); font-weight: 700; }

.demo-app {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.demo-tabs { display: grid; gap: 10px; }
.demo-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  width: 100%;
  padding: 18px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.demo-tab:hover { background: var(--surface-2); }
.demo-tab[aria-selected="true"] {
  background: linear-gradient(150deg, rgba(47, 123, 255, 0.22), rgba(47, 123, 255, 0.06));
  border-color: rgba(122, 169, 255, 0.6);
  box-shadow: 0 20px 50px -30px rgba(47, 123, 255, 0.9);
}
.demo-tab-icon { width: 40px; height: 40px; padding: 7px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); color: var(--blue-hi); stroke-width: 2.4; }
.demo-tab[aria-selected="true"] .demo-tab-icon { background: var(--blue-ink); color: var(--white); }
.demo-tab-text { display: grid; gap: 4px; }
.demo-tab-title { font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.25; }
.demo-tab-desc { font-size: 0.875rem; line-height: 1.45; color: var(--muted); }

.demo-panel {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(233, 238, 245, 0.14);
  background: linear-gradient(180deg, rgba(19, 35, 58, 0.85), rgba(9, 19, 30, 0.95));
  box-shadow: 0 40px 100px -50px rgba(47, 123, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: clamp(20px, 3vw, 32px);
  min-width: 0;
}
.demo-panel-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; }
.demo-kicker { font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.demo-flow-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.375rem, 2.4vw, 1.875rem); letter-spacing: -0.03em; line-height: 1.15; color: var(--white); }
.demo-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(47, 123, 255, 0.16); color: var(--blue-hi); font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.demo-chip-blocks { display: inline-flex; flex-direction: column-reverse; gap: 2px; }
.demo-chip-blocks i { display: block; width: 14px; height: 4px; border-radius: 1px; background: var(--blue-hi); }
.demo-chip-blocks i:nth-child(2) { width: 12px; margin-left: 1px; }
.demo-chip-blocks i:nth-child(3) { width: 10px; margin-left: 2px; }

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 22px;
  padding-block: 16px;
  border-block: 1px solid var(--line);
}
.demo-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--mist); }
.demo-status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mist-muted); }
.demo-status[data-state="running"] .demo-status-dot { background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.18); }
.demo-status[data-state="waiting"] .demo-status-dot { background: var(--gold-2); box-shadow: 0 0 0 4px rgba(232, 212, 139, 0.2); }
.demo-status[data-state="stopped"] .demo-status-dot { background: var(--red); box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2); }
.demo-status[data-state="done"] .demo-status-dot { background: var(--blue); }

/* Switch */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--fg);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.switch:hover { background: var(--surface-2); }
.switch-track { position: relative; width: 46px; height: 28px; border-radius: 999px; background: rgba(233, 238, 245, 0.2); transition: background-color 0.25s var(--ease); }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); transition: transform 0.3s var(--spring); }
.switch-state { min-width: 2em; font-size: 0.8125rem; color: var(--muted); }
.switch[aria-checked="true"] { border-color: rgba(255, 107, 107, 0.7); background: rgba(255, 107, 107, 0.1); }
.switch[aria-checked="true"] .switch-track { background: #e5484d; }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(18px); }
.switch[aria-checked="true"] .switch-state { color: #ffb4b4; }

.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }

.demo-steps { display: grid; gap: 8px; align-content: start; counter-reset: dstep; }
.dstep {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(233, 238, 245, 0.06);
  background: rgba(255, 255, 255, 0.025);
  color: var(--mist-muted);
  font-size: 0.9375rem;
  line-height: 1.35;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.dstep-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  font-weight: 800;
  border: 2px solid rgba(233, 238, 245, 0.22);
  color: var(--mist-muted);
}
.dstep-icon::before { counter-increment: dstep; content: counter(dstep); }
.dstep-text { text-wrap: pretty; }
.dstep-state { font-size: 0.75rem; font-weight: 600; text-transform: none; color: var(--mist-muted); white-space: nowrap; }

.dstep[data-state="working"] { color: var(--white); border-color: rgba(122, 169, 255, 0.45); background: rgba(47, 123, 255, 0.1); }
.dstep[data-state="working"] .dstep-icon { border-color: rgba(122, 169, 255, 0.35); border-top-color: var(--blue-hi); }
.dstep[data-state="working"] .dstep-icon::before { content: ""; }
.dstep[data-state="working"] .dstep-state { color: var(--blue-hi); }

.dstep[data-state="done"] { color: var(--mist); }
.dstep[data-state="done"] .dstep-icon { background: var(--blue); border-color: var(--blue); color: var(--white); }
.dstep[data-state="done"] .dstep-icon::before { content: "\2713"; }

.dstep[data-state="flagged"] { color: var(--mist); border-color: rgba(245, 181, 68, 0.4); background: rgba(245, 181, 68, 0.08); }
.dstep[data-state="flagged"] .dstep-icon { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.dstep[data-state="flagged"] .dstep-icon::before { content: "!"; }
.dstep[data-state="flagged"] .dstep-state { color: var(--amber); }

.dstep[data-state="waiting"] { color: var(--white); border-color: rgba(232, 212, 139, 0.6); background: rgba(232, 212, 139, 0.1); }
.dstep[data-state="waiting"] .dstep-icon { border-color: var(--gold-2); color: var(--gold-2); }
.dstep[data-state="waiting"] .dstep-icon::before { content: "?"; }
.dstep[data-state="waiting"] .dstep-state { color: var(--gold-2); }

.dstep[data-state="approved"] { color: var(--mist); border-color: rgba(232, 212, 139, 0.3); }
.dstep[data-state="approved"] .dstep-icon { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.dstep[data-state="approved"] .dstep-icon::before { content: "\2713"; }
.dstep[data-state="approved"] .dstep-state { color: var(--gold-2); }

.dstep[data-state="stopped"] { color: var(--white); border-color: rgba(255, 107, 107, 0.55); background: rgba(255, 107, 107, 0.08); }
.dstep[data-state="stopped"] .dstep-icon { border-color: var(--red); color: var(--red); }
.dstep[data-state="stopped"] .dstep-icon::before { content: "\25A0"; font-size: 0.625rem; }
.dstep[data-state="stopped"] .dstep-state { color: #ffb4b4; }

.demo-side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.demo-approval {
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(232, 212, 139, 0.16), rgba(232, 212, 139, 0.04));
  border: 1px solid rgba(232, 212, 139, 0.45);
}
.demo-approval[hidden] { display: none; }
.demo-approval-k { font-size: 0.8125rem; font-weight: 700; color: var(--gold-2); }
.demo-approval-t { margin-top: 6px; font-family: var(--display); font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.015em; line-height: 1.25; color: var(--white); }
.demo-approval-hint { margin-top: 4px; font-size: 0.875rem; color: var(--mist-muted); }
.demo-approval .btn { margin-top: 16px; min-width: 9rem; }

.demo-log-wrap { border-radius: 18px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(233, 238, 245, 0.06); padding: 14px; }
.demo-log-title { font-size: 0.8125rem; font-weight: 700; color: var(--mist); margin-bottom: 10px; padding-inline: 4px; }
.demo-log {
  list-style: none;
  display: grid;
  gap: 6px;
  max-height: 264px;
  min-height: 132px;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--mist);
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14px);
  mask-image: linear-gradient(180deg, transparent, #000 14px);
}
.log-row { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: baseline; padding: 7px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.log-time { color: var(--mist-muted); }
.log-actor { justify-self: start; padding: 1px 8px; border-radius: 999px; font-family: var(--text); font-size: 0.75rem; font-weight: 700; background: rgba(47, 123, 255, 0.2); color: var(--blue-hi); }
.log-actor-human { background: rgba(232, 212, 139, 0.18); color: var(--gold-2); }
.log-empty { color: var(--mist-muted); font-family: var(--text); font-size: 0.875rem; padding: 6px 8px; }

.cases-note { margin-top: 36px; text-align: center; color: var(--muted); }

/* ============ Permission blocks (sticky story) ============ */
.perm {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.perm-stage {
  position: sticky;
  top: calc(var(--header-h) + 5vh);
  display: grid;
  gap: 22px;
}
.perm-hint { font-size: 0.9375rem; color: var(--muted); }

.perm-stack {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 14px;
  padding: 8px 0 12px;
}
.perm-block {
  --c: #cfe0ff;
  --c-side: #a8c4f7;
  --c-fg: var(--ink);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 64px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: var(--c);
  color: var(--c-fg);
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 0 var(--c-side), 0 22px 30px -16px rgba(7, 16, 24, 0.45);
  transition: transform 0.45s var(--spring), background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease);
}
.perm-block-1 { width: 100%; }
.perm-block-2 { width: 92%; --c: #8fb6ff; --c-side: #6a9bf0; }
.perm-block-3 { width: 84%; --c: var(--blue-ink); --c-side: #1440a8; --c-fg: var(--white); }
.perm-block-4 { width: 76%; --c: var(--navy); --c-side: #000; --c-fg: var(--white); box-shadow: inset 0 2px 0 var(--gold), 0 8px 0 #000, 0 22px 30px -16px rgba(7, 16, 24, 0.55); }
.perm-block-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 800;
}
.perm-block-3 .perm-block-num { background: rgba(255, 255, 255, 0.2); color: var(--white); }
.perm-block-4 .perm-block-num { background: var(--gold); color: var(--ink); }
.perm-stack.is-live .perm-block:hover { transform: translateY(-3px); }
/* Without JS the blocks are a static illustration. */
.perm-stack:not(.is-live) .perm-block { cursor: default; }

/* Interactive states (JS adds .is-live to the stack) */
.perm-stack.is-live .perm-block:not(.is-placed) {
  background: transparent;
  color: var(--ink-muted);
  box-shadow: inset 0 0 0 2px rgba(11, 21, 32, 0.22);
  transform: translateY(-14px);
}
.perm-stack.is-live .perm-block:not(.is-placed) .perm-block-num { background: rgba(11, 21, 32, 0.08); color: var(--ink-muted); }
.perm-stack.is-live .perm-block:not(.is-placed):hover { transform: translateY(-18px); box-shadow: inset 0 0 0 2px rgba(29, 92, 230, 0.6); }
.perm-block[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: -22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue-ink);
  box-shadow: 0 0 0 5px rgba(29, 92, 230, 0.18);
  transform: translateY(-50%);
}
.perm-block.is-dropping { animation: block-drop 0.62s var(--ease) both; }
@keyframes block-drop {
  0% { transform: translateY(-110px); opacity: 0; }
  55% { transform: translateY(5px) scaleY(0.92); opacity: 1; }
  75% { transform: translateY(-4px) scaleY(1.03); }
  100% { transform: none; }
}

.perm-panels { min-height: 13.5rem; }
.perm-panel {
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -36px rgba(11, 21, 32, 0.35);
}
.perm-panel + .perm-panel { margin-top: 12px; }
.perm-panel[hidden] { display: none; }
.perm-panel:focus-visible { outline-offset: 4px; }
.perm-panel-level { font-family: var(--display); font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.perm-rules { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 16px; }
.perm-rule-title { font-size: 0.8125rem; font-weight: 700; margin-bottom: 8px; }
.perm-may .perm-rule-title { color: var(--blue-ink); }
.perm-maynot .perm-rule-title { color: var(--red-ink); }
.perm-rule ul { display: grid; gap: 8px; }
.perm-rule li { position: relative; padding-left: 26px; font-size: 0.9375rem; line-height: 1.45; color: var(--ink); }
.perm-rule li::before {
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  font-weight: 800;
}
.perm-may li::before { content: "\2713"; background: rgba(29, 92, 230, 0.12); color: var(--blue-ink); }
.perm-maynot li::before { content: "\2715"; background: rgba(180, 35, 24, 0.1); color: var(--red-ink); }

.perm-steps { display: grid; }
.perm-step {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 32px;
  border-top: 1px solid var(--line);
}
.perm-step:first-child { border-top: 0; min-height: 44vh; justify-content: flex-start; padding-top: 0; }
.perm-step:last-child { min-height: 52vh; }
.rung-level { font-size: 1rem; font-weight: 700; color: var(--accent); }
.perm-step h3 { margin-top: 6px; font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; transition: color 0.4s var(--ease); }
.perm-step p:last-child { margin-top: 14px; max-width: 26rem; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); color: var(--muted); }
.perm.is-story .perm-step:not(.is-active) h3 { color: #6b7684; }

.ladder-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: clamp(40px, 6vw, 72px);
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 1.0625rem;
  color: var(--muted);
}
.ladder-note strong { color: var(--fg); }
.ladder-note-icon { flex: none; width: 28px; height: 28px; padding: 4px; border-radius: 8px; background: rgba(29, 92, 230, 0.1); color: var(--blue-ink); }

/* Bento: five safeguards */
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px;
  margin-top: clamp(72px, 10vw, 128px);
}
.bento-lead {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 80% at 0% 0%, rgba(47, 123, 255, 0.45), transparent 60%), var(--navy);
  color: var(--white);
}
.bento-five {
  font-family: var(--display);
  font-size: clamp(6rem, 12vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.8;
  background: linear-gradient(180deg, var(--blue-hi), rgba(47, 123, 255, 0.15));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bento-title { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.bento-note { margin-top: auto; color: var(--mist); font-size: 1rem; padding-top: 18px; border-top: 1px solid rgba(232, 212, 139, 0.45); }
.bento-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bento-tile {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(11, 21, 32, 0.04), 0 18px 40px -30px rgba(11, 21, 32, 0.3);
}
.bento-tile:last-child { grid-column: span 2; }
.bento-icon { width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: rgba(29, 92, 230, 0.1); color: var(--blue-ink); margin-bottom: 18px; }
.bento-tile h4 { font-size: 1.25rem; font-weight: 700; }
.bento-tile p { margin-top: 6px; color: var(--muted); font-size: 1rem; }

/* ============ Advantages ============ */
.advantages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.advantage {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--navy-2), var(--navy-2)) padding-box,
    linear-gradient(150deg, rgba(122, 169, 255, 0.7), rgba(233, 238, 245, 0.06) 45%, rgba(232, 212, 139, 0.35)) border-box;
  border-radius: var(--radius-lg);
  transform-style: preserve-3d;
}
.advantage-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(180deg, var(--blue-hi), rgba(47, 123, 255, 0.25));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 28px;
}
.advantage h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 800; letter-spacing: -0.025em; color: var(--white); }
.advantage p { margin-top: 14px; color: var(--muted); }

/* ============ How it works ============ */
.steps {
  --p: 1;
  --gap: clamp(20px, 3vw, 40px);
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  top: 31px;
  left: 32px;
  right: calc((100% - 3 * var(--gap)) / 4 - 32px);
  height: 3px;
  border-radius: 3px;
  background: rgba(11, 21, 32, 0.1);
}
.steps::after {
  background: linear-gradient(90deg, var(--blue-ink), var(--blue));
  transform: scale(var(--p), 1);
  transform-origin: left center;
}
.step { position: relative; }
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--blue-ink);
  color: var(--white);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 0 0 8px var(--paper), 0 16px 30px -12px rgba(29, 92, 230, 0.7);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--spring), box-shadow 0.4s var(--ease);
}
.step h3 { margin-top: 28px; font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 800; letter-spacing: -0.02em; }
.step p { margin-top: 10px; color: var(--muted); }
.motion-ok .step:not(.is-lit) .step-num { background: var(--white); color: var(--ink-muted); box-shadow: 0 0 0 8px var(--paper), inset 0 0 0 2px rgba(11, 21, 32, 0.12); transform: scale(0.9); }

/* ============ Team ============ */
.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.team-head { position: sticky; top: calc(var(--header-h) + 48px); }
.facts { display: grid; }
.fact { padding-block: 32px; border-top: 1px solid var(--line); }
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--white); }
.fact p { margin-top: 10px; font-size: 1.125rem; color: var(--muted); max-width: 34rem; }

/* ============ Why book now ============ */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.reason {
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(11, 21, 32, 0.04), 0 24px 50px -36px rgba(11, 21, 32, 0.35);
}
.reason-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--blue-ink); color: var(--white); margin-bottom: 26px; }
.reason-mark .icon { width: 26px; height: 26px; stroke-width: 2.4; }
.reason h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 800; letter-spacing: -0.03em; }
.reason p { margin-top: 10px; color: var(--muted); font-size: 1.0625rem; }

/* ============ Book ============ */
.book-section { overflow: hidden; }
.book-glow {
  position: absolute;
  right: -10%;
  top: 10%;
  width: 900px;
  height: 900px;
  background: radial-gradient(closest-side, rgba(47, 123, 255, 0.28), transparent);
  pointer-events: none;
}
.book-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.book-intro .display { font-size: clamp(2.375rem, 4.8vw, 4.25rem); }
.book-intro .door-link { margin-top: 26px; }

.pdpa {
  margin-top: 40px;
  padding: 24px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9375rem;
  color: var(--muted);
}
.pdpa h3 { font-size: 1.0625rem; color: var(--white); margin-bottom: 12px; }
.pdpa dl { display: grid; gap: 4px; }
.pdpa dt { font-weight: 600; color: var(--mist); margin-top: 8px; }
.pdpa dd { margin: 0; }
.pdpa > p { margin-top: 14px; }

.book-form {
  --bg: var(--white);
  --fg: var(--ink);
  --muted: var(--ink-muted);
  --accent: var(--blue-ink);
  --focus: var(--blue-ink);
  color-scheme: light;
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 50px 120px -50px rgba(47, 123, 255, 0.55), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label, .choices legend { font-weight: 600; font-size: 0.9375rem; color: var(--ink); }
.optional { font-weight: 400; color: var(--ink-muted); }
.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #868f9c;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field textarea:hover { border-color: #5d6674; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--blue-ink); box-shadow: 0 0 0 4px rgba(29, 92, 230, 0.22); }
.was-validated .field input:invalid { border-color: var(--red-ink); }

.choices { border: 0; display: grid; gap: 10px; }
.choices legend { margin-bottom: 10px; }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid #868f9c;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.choice:hover { border-color: var(--blue-ink); }
.choice input { width: 20px; height: 20px; accent-color: var(--blue-ink); flex: none; }
.choice label { flex: 1; padding-block: 14px; cursor: pointer; font-weight: 500; }
.choice:has(input:checked) { border-color: var(--blue-ink); background: rgba(29, 92, 230, 0.07); box-shadow: inset 0 0 0 1px var(--blue-ink); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(29, 92, 230, 0.22); }
.choice input:focus-visible { outline-offset: 2px; }

.check { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue-ink); flex: none; }

.form-help { font-size: 0.875rem; color: var(--ink-muted); }
.form-status { font-size: 0.9375rem; font-weight: 600; color: var(--blue-ink); }
.form-status:empty { display: none; }

/* Floating CTA on small screens (JS only) */
.mobile-cta { display: none; }
@media (max-width: 719px) {
  .js .mobile-cta {
    display: flex;
    position: fixed;
    z-index: 40;
    left: 16px;
    right: 16px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    min-height: 54px;
    font-size: 0.9688rem;
    box-shadow: 0 18px 40px -10px rgba(7, 16, 24, 0.7), 0 14px 34px -14px rgba(47, 123, 255, 0.85);
    transform: translateY(140%);
    visibility: hidden;
    transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .js .mobile-cta.is-shown { transform: none; visibility: visible; transition: transform 0.45s var(--ease), visibility 0s; }
}

/* ============ Footer ============ */
.site-footer {
  --bg: var(--night);
  background: var(--night);
  padding-block: 0 48px;
  font-size: 0.9375rem;
  color: var(--mist-muted);
  border-top: 1px solid rgba(233, 238, 245, 0.06);
}
.footer-inner { display: grid; gap: 14px; }
.skyline { width: 100%; height: 96px; margin-bottom: 36px; fill: none; stroke: rgba(122, 169, 255, 0.28); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid rgba(233, 238, 245, 0.08); }
.footer-brand { font-family: var(--display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--white); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { color: var(--mist); text-decoration: none; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { text-decoration: underline; }
.disclaimer { max-width: 52rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 6px; }

/* ============ Legal pages ============ */
.legal-hero { padding-block: clamp(72px, 10vw, 128px) clamp(48px, 6vw, 72px); position: relative; overflow: hidden; }
.legal-hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto 30%;
  height: 180%;
  background: radial-gradient(closest-side, rgba(47, 123, 255, 0.28), transparent);
  pointer-events: none;
}
.legal-hero .container { position: relative; }
.legal-hero h1 { font-size: clamp(2.75rem, 6.5vw, 5.5rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--white); }
.legal-hero .updated { margin-top: 18px; color: var(--muted); }
.legal-body { padding-block: clamp(56px, 8vw, 104px); }
.legal-content { max-width: calc(46rem + 2 * var(--gutter)); }
.legal-content h2 { margin-top: 48px; font-size: clamp(1.375rem, 2.2vw, 1.75rem); font-weight: 800; letter-spacing: -0.025em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content ul { margin-top: 14px; color: #2b3542; font-size: 1.0625rem; line-height: 1.7; }
.legal-content ul { padding-left: 1.3em; }
.legal-content li + li { margin-top: 6px; }
.legal-content strong { color: var(--ink); }

/* ============ Motion ============ */
.hero-enter { animation: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-enter { animation: rise 1s var(--ease) both; }
  .hero-enter-2 { animation-delay: 0.08s; }
  .hero-enter-3 { animation-delay: 0.2s; }
  .hero-enter-4 { animation-delay: 0.3s; }
  .hero-enter-5 { animation-delay: 0.4s; }
  .hero-stage { animation: rise-far 1.3s var(--ease) 0.35s both; }

  .hero-aurora { animation: aurora 22s ease-in-out infinite alternate; }
  .hero-title em { animation: sheen 9s ease-in-out infinite alternate; }
  .pulse-dot { animation: pulse 2.4s ease-in-out infinite; }
  .console-live { animation: pulse 2.4s ease-in-out infinite; }

  .c-step, .c-log, .console-approval { animation: pop-in 0.6s var(--ease) both; }
  .c-step-1 { animation-delay: 0.9s; }
  .c-step-2 { animation-delay: 1.2s; }
  .c-step-3 { animation-delay: 1.5s; }
  .c-step-4 { animation-delay: 1.8s; }
  .console-approval { animation-delay: 2.2s; }
  .c-log-1 { animation-delay: 1.05s; }
  .c-log-2 { animation-delay: 1.35s; }
  .c-log-3 { animation-delay: 1.65s; }
  .c-log-4 { animation-delay: 2.35s; }
  .fake-btn-primary { animation: glow 2.6s ease-in-out 3s infinite; }

  .motion-ok .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .motion-ok .reveal.reveal-d1 { transition-delay: 0.08s; }
  .motion-ok .reveal.reveal-d2 { transition-delay: 0.16s; }
  .motion-ok .reveal.is-in { opacity: 1; transform: none; }

  .motion-ok .steps::after { transition: transform 0.2s linear; }

  .dstep-new { animation: pop-in 0.45s var(--ease) both; }
  .dstep[data-state="working"] .dstep-icon { animation: spin 0.9s linear infinite; }
  .dstep[data-state="waiting"] { animation: wait-pulse 1.8s ease-in-out infinite; }
  .log-row { animation: log-in 0.4s var(--ease) both; }
  .demo-approval:not([hidden]) { animation: pop-in 0.5s var(--spring) both; }
  .perm-panel:not([hidden]) { animation: fade-up 0.45s var(--ease) both; }

  .lift { transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
  .tilt { transition: transform 0.5s var(--ease); }
  .skyline path { stroke-dasharray: 3200; stroke-dashoffset: 3200; }
  .skyline.is-in path { stroke-dashoffset: 0; transition: stroke-dashoffset 3.2s var(--ease); }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .lift:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(11, 21, 32, 0.04), 0 32px 60px -30px rgba(11, 21, 32, 0.4); }
  .tone-dark .lift:hover { box-shadow: 0 32px 60px -30px rgba(0, 0, 0, 0.7); }
}

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes rise-far { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes log-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.02); }
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.28); } 50% { box-shadow: 0 0 0 7px rgba(47, 123, 255, 0.06); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 212, 139, 0.5); } 50% { box-shadow: 0 0 0 8px rgba(232, 212, 139, 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wait-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 212, 139, 0.35); } 50% { box-shadow: 0 0 0 6px rgba(232, 212, 139, 0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

@media (forced-colors: active) {
  .hero-title em, .advantage-num, .bento-five { color: CanvasText; background: none; }
  .btn, .perm-block, .switch, .demo-tab { border: 2px solid ButtonText; }
  .perm-block[aria-selected="true"], .demo-tab[aria-selected="true"] { outline: 3px solid Highlight; }
}

/* ============ Responsive ============ */
@media (max-width: 1099px) {
  .console-body { grid-template-columns: 1fr 1fr; }
  .console-log { display: none; }
  .advantages, .reasons { grid-template-columns: 1fr; }
  .advantage { display: grid; grid-template-columns: auto 1fr; column-gap: 28px; }
  .advantage-num { grid-row: span 2; margin-bottom: 0; }
  .advantage p { margin-top: 10px; }
  .demo-app { grid-template-columns: 1fr; }
  .demo-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-tab-desc { display: none; }
  .demo-tab { align-items: center; }
}

@media (max-width: 959px) {
  .why-grid, .team-grid, .book-grid { grid-template-columns: 1fr; }
  .team-head { position: static; }
  .perm { grid-template-columns: 1fr; gap: 40px; }
  .perm-stage { position: static; max-width: 34rem; width: 100%; margin-inline: auto; }
  .perm-step, .perm-step:first-child, .perm-step:last-child { min-height: 0; padding-block: 24px; justify-content: flex-start; }
  .perm-step:first-child { border-top: 1px solid var(--line); }
  .perm-step h3 { font-size: 1.75rem; }
  .bento { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before, .steps::after { top: 32px; bottom: 32px; left: 30px; right: auto; width: 3px; height: auto; }
  .steps::after { transform: scale(1, var(--p)); transform-origin: center top; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 24px; }
  .step-num { grid-row: span 2; }
  .step h3 { margin-top: 4px; }
  .demo-body { grid-template-columns: 1fr; }
}

@media (max-width: 719px) {
  :root { --header-h: 60px; }
  .hero { padding-top: 48px; }
  .hero-title { letter-spacing: -0.042em; }
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-row .btn { width: 100%; }
  .btn-large { padding-inline: 20px; }
  .console-body { grid-template-columns: 1fr; padding: 16px; gap: 12px; }
  .console-bar { padding: 12px 16px; }
  .console-chip { display: none; }
  .c-step-1, .c-step-2 { display: none; }
  .console-note { padding: 0 16px 14px; }
  .principle { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-tile:last-child { grid-column: auto; }
  .perm-rules { grid-template-columns: 1fr; }
  .perm-block { height: 58px; font-size: 1.0625rem; padding: 0 16px; }
  .perm-block[aria-selected="true"]::after { right: -16px; }
  .perm-stack { padding-right: 18px; }
  .advantage { display: block; }
  .advantage-num { margin-bottom: 18px; }
  .demo-tabs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .demo-tab { grid-template-columns: 1fr; gap: 10px; padding: 14px; border-radius: 16px; }
  .demo-tab-icon { width: 34px; height: 34px; padding: 6px; }
  .demo-tab-title { font-size: 0.9375rem; }
  .demo-status { margin-left: 0; width: 100%; }
  .demo-panel { padding: 18px 16px; border-radius: 22px; }
  .dstep { grid-template-columns: 26px 1fr; column-gap: 10px; row-gap: 2px; padding: 10px 12px; }
  .dstep-icon { width: 26px; height: 26px; }
  .dstep-state { grid-column: 2; }
  .log-row { grid-template-columns: auto 1fr; }
  .log-row .log-text { grid-column: 1 / -1; }
  .site-footer { padding-bottom: 96px; }
  .skyline { height: 64px; }
}

/* Hero CTA reassurance line */
.cta-note { margin-top: 14px; font-size: 0.9375rem; color: var(--mist-muted); letter-spacing: 0.01em; }

/* About: two generic capability cards */
.facts-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.facts-cards .fact {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(47, 123, 255, 0.14), rgba(12, 24, 36, 0.6) 55%);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.facts-cards .fact:last-child { border-bottom: 1px solid var(--line); }
.facts-cards .fact-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 14px; background: rgba(47, 123, 255, 0.18); color: var(--blue-hi); }
.facts-cards .fact-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .facts-cards .fact:hover { transform: translateY(-4px); border-color: rgba(122, 169, 255, 0.5); }
}
@media (max-width: 719px) { .facts-cards { grid-template-columns: 1fr; } }
