/* ==========================================================================
   Robee - landing page design system
   Honey & charcoal. Light, airy premium with a dark espresso chapter.
   Used ONLY by index.html (funkce.html keeps styles.css).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;

  --bg: #fffdf9;
  --bg-soft: #faf6ee;
  --ink: #2d2d2d;
  --slate: #5c5650;
  --muted: #8a8378;
  --line: #ece5d8;
  --brand: #f5a623;
  --brand-deep: #e0931a;
  --honey-burn: #b06f0a;
  --grad-brand: linear-gradient(120deg, #e0931a, #f5a623 55%, #f7c948);

  --d-bg: #171310;
  --d-surface: rgba(255, 255, 255, .05);
  --d-line: rgba(245, 166, 35, .14);
  --d-text: #f3ede3;
  --d-muted: #b3a896;
  --mint: #34d399;
  --ember: #fb7185;
  --sun: #fbbf24;

  --ok: #15803d;   --ok-bg: #ecfdf3;   --ok-line: #bbe7c9;
  --warn: #92610a; --warn-bg: #fef6e7; --warn-line: #f3ddb0;
  --info: #1d4ed8; --info-bg: #eef4ff; --info-line: #c9daf8;

  --r-ctl: 12px;
  --r-card: 18px;
  --r-mock: 24px;
  --r-chapter: clamp(24px, 4vw, 44px);

  --shadow-card: 0 0 0 1px rgba(45, 45, 45, .04), 0 2px 4px rgba(45, 45, 45, .04), 0 16px 40px -16px rgba(45, 45, 45, .12);
  --shadow-card-hover: 0 0 0 1px rgba(45, 45, 45, .05), 0 4px 10px rgba(45, 45, 45, .06), 0 24px 56px -16px rgba(176, 111, 10, .22);
  --shadow-mock: 0 0 0 1px rgba(45, 45, 45, .05), 0 8px 16px rgba(45, 45, 45, .05), 0 32px 80px -24px rgba(224, 147, 26, .38);

  --container: 1180px;
  --sec-pad: clamp(88px, 10vw, 140px);
  --header-h: 72px;
  --header-h-compact: 60px;
}

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

/* No CSS scroll-behavior:smooth here - it makes ScrollTrigger's refresh
   measurements scroll asynchronously and mis-position pinned sections
   (start = real - scrollY). Smooth anchor scrolling is done in landing.js. */

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: rgba(245, 166, 35, .3); }

:focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: -.01em; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: 0 0 10px 10px; text-decoration: none; font-size: .875rem;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Layout utilities ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: var(--sec-pad); }
.section--soft { background: var(--bg-soft); }
.center { text-align: center; margin-top: 44px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--honey-burn);
  background: rgba(245, 166, 35, .12);
  border: 1px solid rgba(245, 166, 35, .25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow--dark {
  color: var(--sun);
  background: rgba(245, 166, 35, .12);
  border-color: rgba(245, 166, 35, .28);
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4.15rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -.025em;
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.13rem;
  letter-spacing: -.01em;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  color: var(--slate);
}

.sec-head { max-width: 680px; margin-bottom: clamp(40px, 6vw, 64px); position: relative; }
.sec-head h2 { margin-bottom: 16px; }
.sec-head--dark h2 { color: var(--d-text); }
.sec-head--dark .lead { color: var(--d-muted); }

.grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dot-amber { color: var(--brand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600; font-size: .95rem;
  padding: 14px 26px;
  border-radius: var(--r-ctl);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2, .7, .3, 1.2), box-shadow .25s ease, background-color .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn--primary {
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(45,45,45,.08), 0 8px 24px -10px rgba(224, 147, 26, .65);
}
.btn--primary:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 2px 0 rgba(45,45,45,.06), 0 14px 32px -10px rgba(224, 147, 26, .75);
}
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand); background: rgba(245, 166, 35, .08); transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: .875rem; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  background: rgba(255, 253, 249, .72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 32px -20px rgba(45, 45, 45, .25);
}
.progress {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  pointer-events: none;
}
.progress span {
  display: block; height: 100%;
  background: var(--grad-brand);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  transition: height .3s ease;
}
.site-header.is-scrolled .nav { height: var(--header-h-compact); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.brand-logo { width: 34px; height: 34px; border-radius: 9px; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em;
  color: var(--ink);
}
.brand-word b { color: var(--brand); font-weight: 800; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) {
  font-size: .92rem; font-weight: 500;
  color: var(--slate); text-decoration: none;
  position: relative; padding-block: 6px;
}
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--brand); border-radius: 2px;
  transition: right .25s ease;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after, .nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 9vw, 120px));
  padding-bottom: clamp(72px, 9vw, 128px);
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.blob--a { width: 560px; height: 560px; top: -180px; right: -80px; background: radial-gradient(circle, rgba(245,166,35,.5), transparent 65%); animation: drift 38s ease-in-out infinite alternate; }
.blob--b { width: 420px; height: 420px; bottom: -160px; left: -120px; background: radial-gradient(circle, rgba(247,201,72,.4), transparent 65%); animation: drift 46s ease-in-out -12s infinite alternate-reverse; }
.blob--c { width: 300px; height: 300px; top: 30%; left: 38%; background: radial-gradient(circle, rgba(52,211,153,.16), transparent 65%); animation: drift 52s ease-in-out -25s infinite alternate; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.12); }
}

.hexfield {
  position: absolute; inset: 0;
  color: rgba(224, 147, 26, .13);
  -webkit-mask-image: radial-gradient(120% 90% at 75% 10%, #000 0%, transparent 62%);
  mask-image: radial-gradient(120% 90% at 75% 10%, #000 0%, transparent 62%);
}

.hex-float {
  position: absolute;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(140deg, rgba(245,166,35,.28), rgba(247,201,72,.10));
}
.hex-float--1 { width: 54px; height: 60px; top: 18%; left: 6%; }
.hex-float--2 { width: 30px; height: 34px; top: 64%; left: 12%; }
.hex-float--3 { width: 40px; height: 45px; top: 12%; right: 30%; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lead { max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  margin-top: 38px;
  font-size: .9rem; color: var(--slate);
}
.hero-meta b { color: var(--ink); font-weight: 500; }

/* hero stage: mock + satellites */
.hero-stage { position: relative; }
.mock {
  position: relative;
  background: #fff;
  border-radius: var(--r-mock);
  box-shadow: var(--shadow-mock);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fffdf9, #faf6ee);
}
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-dots i:first-child { background: #f2c1bb; }
.mock-dots i:nth-child(2) { background: #f3ddb0; }
.mock-dots i:nth-child(3) { background: #bbe7c9; }
.mock-brand {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 800; font-size: .8rem;
  color: var(--ink);
}
.mock-brand b { color: var(--brand); }
.mock-body { padding: 10px; display: grid; gap: 6px; }
.mock-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease;
}
.mock-row:hover { background: var(--bg-soft); border-color: var(--line); }
.mock-txt { flex: 1; min-width: 0; }
.mock-row .t { font-weight: 600; font-size: .92rem; }
.mock-row .s { font-size: .8rem; color: var(--muted); }

.mico {
  flex: 0 0 auto;
  width: 40px; height: 44px;
  display: grid; place-items: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.mico svg { width: 20px; height: 20px; }
.mico--clock { background: rgba(245,166,35,.16); color: var(--honey-burn); }
.mico--med  { background: rgba(251,113,133,.14); color: #be3a52; }
.mico--doc  { background: rgba(29,78,216,.10); color: var(--info); }
.mico--grad { background: rgba(52,211,153,.16); color: var(--ok); }
.mico--sec  { background: rgba(245,166,35,.16); color: var(--honey-burn); }

.pill {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid;
}
.pill--ok   { color: var(--ok);   background: var(--ok-bg);   border-color: var(--ok-line); }
.pill--warn { color: var(--warn); background: var(--warn-bg); border-color: var(--warn-line); }
.pill--info { color: var(--info); background: var(--info-bg); border-color: var(--info-line); }

.sat {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 253, 249, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(236, 229, 216, .9);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  font-size: .82rem; line-height: 1.3;
}
.sat b { display: block; font-weight: 600; }
.sat i { font-style: normal; color: var(--muted); font-size: .74rem; }
.sat-ico {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: .85rem;
}
.sat-ico.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.sat-ico.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.sat--a { top: -26px; right: -18px; }
.sat--b { bottom: -24px; left: -26px; }

/* ---------- Page hero (funkce.html) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(56px, 8vw, 104px));
  padding-bottom: clamp(48px, 6vw, 80px);
  overflow: clip;
  text-align: center;
}
.page-hero .lead { max-width: 640px; margin-inline: auto; }
.page-hero h1 { margin-bottom: 20px; }

/* section head with category icon (funkce.html) */
.sec-head--icon {
  display: flex; align-items: flex-start; gap: 20px;
}
.sec-head--icon .hexicon { flex: 0 0 auto; margin-top: 6px; }

/* card title with a "Nové" pill (funkce.html) */
.card h3 .badge-new { position: static; }
.badge-new {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: .6rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--honey-burn);
  background: rgba(245, 166, 35, .14);
  border: 1px solid rgba(245, 166, 35, .35);
  border-radius: 999px;
  padding: 3px 9px;
  margin-left: 10px;
  transform: translateY(-2px);
}

/* ---------- Trust strip ---------- */
.trust {
  border-block: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 64px);
  background: linear-gradient(180deg, var(--bg), var(--bg-soft));
}
.trust-claim {
  text-align: center;
  font-size: .9rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: .12em;
  font-weight: 500;
  margin-bottom: 36px;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--ink);
  letter-spacing: -.03em;
}
/* child combinator: must not hit the <span data-count> nested inside <b> */
.stat > span { font-size: .88rem; color: var(--slate); }

/* ---------- Cards (value props) ---------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card h3 { margin: 18px 0 8px; }
.card p { font-size: .94rem; color: var(--slate); }

/* cursor-tracking glow */
.glow::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(245, 166, 35, .13), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.glow:hover::after { opacity: 1; }

.hexicon {
  width: 46px; height: 52px;
  display: grid; place-items: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(150deg, rgba(245,166,35,.22), rgba(247,201,72,.10));
  color: var(--honey-burn);
}
.hexicon svg { width: 23px; height: 23px; }
.hexicon--sm { width: 36px; height: 41px; }
.hexicon--sm svg { width: 19px; height: 19px; }
.hexicon--dark {
  background: linear-gradient(150deg, rgba(245,166,35,.2), rgba(245,166,35,.05));
  color: var(--sun);
}

/* ---------- Modules bento ---------- */
.beeline {
  width: min(560px, 100%); height: 28px;
  margin-top: 22px;
  color: var(--brand);
  overflow: visible;
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 20px;
}
.mod-card {
  grid-column: span 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.mod-card--wide { grid-column: span 6; }
.mod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: rgba(245,166,35,.4); }
.mod-card h3 {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.02rem;
  margin-bottom: 16px;
}
.mod-card ul {
  display: grid; gap: 8px;
  font-size: .9rem; color: var(--slate);
}
.mod-card--wide ul { grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.mod-card li {
  position: relative; padding-left: 18px;
}
.mod-card li::before {
  content: '';
  position: absolute; left: 0; top: .52em;
  width: 7px; height: 8px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--brand);
  opacity: .75;
}

/* ---------- Dark chapter ---------- */
.chapter {
  position: relative;
  background: var(--d-bg);
  border-radius: var(--r-chapter);
  margin-inline: clamp(8px, 1.2vw, 20px);
  overflow: clip;
  color: var(--d-text);
}
.chapter-hex {
  position: absolute; inset: 0;
  color: rgba(245, 166, 35, .05);
  -webkit-mask-image: radial-gradient(100% 60% at 50% 0%, #000, transparent 70%);
  mask-image: radial-gradient(100% 60% at 50% 0%, #000, transparent 70%);
  pointer-events: none;
}
.chapter-glow {
  position: absolute; border-radius: 50%;
  filter: blur(110px); pointer-events: none;
}
.chapter-glow--a { width: 640px; height: 640px; top: -220px; right: -160px; background: radial-gradient(circle, rgba(245,166,35,.17), transparent 65%); }
.chapter-glow--b { width: 540px; height: 540px; bottom: 10%; left: -200px; background: radial-gradient(circle, rgba(52,211,153,.08), transparent 65%); }

.story { position: relative; padding-block: clamp(88px, 11vw, 150px); }
.story + .story { padding-top: 0; }
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(44px, 6vw, 88px);
  align-items: start;
}
.story--mirror .story-grid > .story-copy { order: 2; }
.story--mirror .story-grid > :not(.story-copy) { order: 1; }

.story-copy h2 { color: var(--d-text); margin-bottom: 16px; }
.story-copy > p { color: var(--d-muted); max-width: 520px; }

.ticks { display: grid; gap: 12px; margin-top: 26px; }
.ticks li {
  position: relative; padding-left: 32px;
  color: var(--d-text); font-size: .95rem;
}
.ticks li::before {
  content: '';
  position: absolute; left: 0; top: 2px;
  width: 18px; height: 20px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: rgba(245, 166, 35, .18);
}
.ticks li::after {
  content: '';
  position: absolute; left: 5px; top: 8px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--sun);
  border-bottom: 2px solid var(--sun);
  transform: rotate(-45deg);
}

/* course & test builder timeline */
.tl { position: relative; padding-left: 64px; display: grid; gap: 22px; }
.tl-line {
  position: absolute; left: 24px; top: 8px; bottom: 8px;
  width: 4px; height: calc(100% - 16px);
}
.tl-line path { stroke-linecap: round; fill: none; }
.tl-line-bg { stroke: rgba(245, 166, 35, .15); }
.tl-line-fg { stroke: var(--brand); }

.tl-event { position: relative; transition: opacity .4s ease; }
.tl-node {
  position: absolute; left: -64px; top: 14px;
  width: 48px; text-align: center;
  font-size: .68rem; color: var(--d-muted);
  background: var(--d-bg);
  padding-block: 4px;
}
.tl-event::before {
  content: '';
  position: absolute; left: -42px; top: 38px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--d-muted);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.tl-card {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 2px 12px;
  padding: 16px 18px;
  background: var(--d-surface);
  border: 1px solid var(--d-line);
  border-radius: 14px;
  transition: border-color .3s ease, background-color .3s ease, transform .3s ease;
}
.tl-card .nm { font-weight: 600; font-family: var(--font-display); font-size: .98rem; grid-column: 1; }
.tl-card .meta { font-size: .8rem; color: var(--d-muted); grid-column: 1; }
.tl-card .st { grid-column: 2; grid-row: 1 / span 2; }

html.is-anim .tl-event { opacity: .35; }
html.is-anim .tl-event.is-lit { opacity: 1; }
.tl-event.is-lit .tl-card {
  border-color: rgba(245, 166, 35, .45);
  background: rgba(245, 166, 35, .07);
}
.tl-event.is-lit::before {
  background: var(--brand);
  box-shadow: 0 0 12px 2px rgba(245, 166, 35, .5);
}

.st {
  font-family: var(--font-mono); font-size: .68rem;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  border: 1px solid;
}
.st--ok   { color: var(--mint);  background: rgba(52, 211, 153, .1);  border-color: rgba(52, 211, 153, .3); }
.st--warn { color: var(--sun);   background: rgba(251, 191, 36, .1);  border-color: rgba(251, 191, 36, .3); }
.st--bad  { color: var(--ember); background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .3); }
.st--soft { color: var(--d-muted); background: rgba(255, 255, 255, .04); border-color: var(--d-line); }

/* medical watchlist */
.watch {
  display: grid; gap: 12px;
  padding: 18px;
  background: var(--d-surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--d-line);
  border-radius: 20px;
}
.watch-row {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 14px;
  transition: border-color .3s ease, background-color .3s ease;
}
.watch-row:hover { border-color: rgba(245,166,35,.3); background: rgba(245,166,35,.05); }
.watch-txt { flex: 1; }
.watch-row .nm { font-weight: 600; font-family: var(--font-display); font-size: .95rem; }
.watch-row .meta { font-size: .8rem; color: var(--d-muted); }

/* e-signing signer numbers + footnote */
.sign-num {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-mono); font-size: .82rem; font-weight: 500;
  color: var(--d-muted);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--d-line);
}
.sign-num.done {
  color: var(--mint);
  background: rgba(52, 211, 153, .1);
  border-color: rgba(52, 211, 153, .35);
}
.watch-foot {
  margin-top: 4px;
  padding: 4px 4px 2px;
  font-size: .76rem; line-height: 1.5;
  color: var(--d-muted);
}

.ringer { width: 38px; height: 38px; flex: 0 0 auto; transform: rotate(-90deg); }
.ringer circle { fill: none; stroke-width: 3; }
.ringer-bg { stroke: rgba(255, 255, 255, .1); }
.ringer-fg { stroke-linecap: round; stroke-dasharray: 94.25; }
.ringer-fg--full { stroke: var(--mint);  stroke-dashoffset: 6; }
.ringer-fg--mid  { stroke: var(--sun);   stroke-dashoffset: 56; }
.ringer-fg--low  { stroke: var(--ember); stroke-dashoffset: 87; }

/* security tiles */
.tile {
  background: var(--d-surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--d-line);
  border-radius: var(--r-card);
  padding: 28px 24px;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s ease, background-color .3s ease;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 166, 35, .4);
  background: rgba(245, 166, 35, .06);
}
.tile h3 { color: var(--d-text); margin: 18px 0 8px; font-size: 1.05rem; }
.tile p { font-size: .9rem; color: var(--d-muted); }

/* ---------- Steps ---------- */
.steps-wrap { position: relative; }
.steps-path {
  position: absolute; left: 4%; right: 4%; top: 18px;
  width: 92%; height: 60px;
  color: var(--brand);
  overflow: visible;
}
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 30px 26px;
  box-shadow: var(--shadow-card);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.num {
  width: 44px; height: 50px;
  display: grid; place-items: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--brand);
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .94rem; color: var(--slate); }

/* ---------- CTA ---------- */
.section--cta { padding-top: 0; }
.cta {
  position: relative;
  text-align: center;
  background: var(--d-bg);
  color: var(--d-text);
  border-radius: var(--r-chapter);
  padding: clamp(64px, 8vw, 110px) clamp(24px, 5vw, 80px);
  overflow: clip;
}
.cta-glow {
  position: absolute; top: -40%; left: 50%;
  width: 720px; height: 720px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(245, 166, 35, .22), transparent 60%);
  filter: blur(70px);
  pointer-events: none;
}
.cta h2 { color: var(--d-text); position: relative; margin-bottom: 16px; }
.cta > p { position: relative; color: var(--d-muted); max-width: 480px; margin: 0 auto 34px; }
.cta .btn { position: relative; }
.cta-pun {
  position: relative;
  margin-top: 26px !important;
  font-size: .9rem; color: var(--d-muted);
}
.cta-pun b { color: var(--sun); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 72px) 0 32px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-about { margin-top: 16px; max-width: 320px; font-size: .92rem; color: var(--slate); }
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.site-footer ul { display: grid; gap: 10px; }
.site-footer ul a {
  font-size: .92rem; color: var(--slate); text-decoration: none;
}
.site-footer ul a:hover { color: var(--honey-burn); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--muted);
}
.footer-bottom a { color: var(--slate); text-decoration: none; }
.footer-bottom a:hover { color: var(--honey-burn); }

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 26px 26px;
  box-shadow: var(--shadow-card);
}
.faq-item h3 { margin-bottom: 10px; }
.faq-item p { font-size: .94rem; color: var(--slate); }
.faq-item a { color: var(--honey-burn); text-decoration: none; font-weight: 500; }
.faq-item a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Animation gating
   Content is fully visible by default. Initial hidden states apply ONLY
   once JS confirms GSAP loaded (html.is-anim) or IO fallback (html.is-io).
   ========================================================================== */
html.is-anim [data-reveal],
html.is-anim [data-stagger] > *,
html.is-anim [data-hero],
html.is-anim [data-hero-h] .sl-line,
html.is-anim [data-hero-h]:not([data-split]) {
  opacity: 0;
}
html.is-anim [data-stage] { opacity: 0; }

html.is-io [data-reveal],
html.is-io [data-stagger] > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}
html.is-io .io-in[data-reveal],
html.is-io [data-stagger].io-in > * {
  opacity: 1;
  transform: none;
}
html.is-io [data-stagger].io-in > :nth-child(2) { transition-delay: .08s; }
html.is-io [data-stagger].io-in > :nth-child(3) { transition-delay: .16s; }
html.is-io [data-stagger].io-in > :nth-child(4) { transition-delay: .24s; }
html.is-io [data-stagger].io-in > :nth-child(5) { transition-delay: .32s; }
html.is-io [data-stagger].io-in > :nth-child(6) { transition-delay: .4s; }
html.is-io [data-stagger].io-in > :nth-child(7) { transition-delay: .48s; }
html.is-io [data-stagger].io-in > :nth-child(8) { transition-delay: .56s; }
html.is-io [data-stagger].io-in > :nth-child(9) { transition-delay: .64s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none !important; }
  .btn, .card, .mod-card, .tile, .step { transition: none; }
  html.is-io [data-reveal], html.is-io [data-stagger] > * {
    opacity: 1; transform: none; transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-copy .lead { max-width: 620px; }
  .hero-stage { max-width: 560px; margin-inline: auto; }
  .sat--a { top: -22px; right: -6px; }
  .sat--b { bottom: -20px; left: -8px; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .mod-card { grid-column: span 3; }
  .mod-card--wide { grid-column: span 6; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; gap: 56px; }
  .story--mirror .story-grid > .story-copy { order: 1; }
  .story--mirror .story-grid > :not(.story-copy) { order: 2; }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .steps-path { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 253, 249, .97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 16px; justify-content: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .mod-card, .mod-card--wide { grid-column: auto; }
  .mod-card--wide ul { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .sat { display: none; }
  .tl { padding-left: 0; }
  .tl-line { display: none; }
  .tl-node { position: static; width: auto; text-align: left; padding: 0 0 4px; background: none; display: block; }
  .tl-event::before { display: none; }
  .terminal { width: 100%; justify-content: space-between; }
  .footer-bottom { flex-direction: column; }
}
