/* TrueTake design tokens (design/tokens.css) */
/*
 * TrueTake design tokens - CSS custom properties.
 * Mirror of design/tokens.json (source of truth). Dark is the default theme.
 *
 *   <html>                     -> dark (default, brand-first)
 *   <html data-theme="light">  -> light
 *   <html data-theme="auto">   -> follows prefers-color-scheme
 *
 * Fonts (add once in <head>):
 * <link rel="preconnect" href="https://fonts.googleapis.com">
 * <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
 * <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap" rel="stylesheet">
 * (Self-host the woff2 files if the CSP forbids third-party fonts - spec 13 §5.)
 */

:root {
  color-scheme: dark;

  /* ---------- Brand primitives (theme independent) ---------- */
  --tt-brand-signal: #23f0a6; /* Proof Green */
  --tt-brand-signal-deep: #00d68f;
  --tt-brand-loop: #2ed3ff; /* Loop Cyan */
  --tt-brand-loop-deep: #00a8d6;
  --tt-brand-chain: #8b5cf6; /* Chain Violet */
  --tt-brand-chain-text: #a88bff;
  --tt-brand-void: #05070d;
  --tt-brand-ink: #0a0f1c;
  --tt-brand-paper: #f5f7fb;

  --tt-gradient-brand: linear-gradient(135deg, #2ed3ff 0%, #23f0a6 100%);
  --tt-gradient-chain: linear-gradient(135deg, #8b5cf6 0%, #2ed3ff 100%);
  --tt-gradient-text-hero: linear-gradient(
    100deg,
    #f2f5fb 0%,
    #f2f5fb 45%,
    #23f0a6 75%,
    #2ed3ff 100%
  );
  --tt-gradient-aurora:
    radial-gradient(60% 50% at 20% 0%, rgba(139, 92, 246, 0.22) 0%, rgba(139, 92, 246, 0) 70%),
    radial-gradient(50% 45% at 85% 10%, rgba(46, 211, 255, 0.16) 0%, rgba(46, 211, 255, 0) 70%),
    radial-gradient(40% 40% at 50% 100%, rgba(35, 240, 166, 0.1) 0%, rgba(35, 240, 166, 0) 70%);

  /* ---------- Semantic colours: DARK (default) ---------- */
  --tt-bg-canvas: #05070d;
  --tt-bg-base: #080b14;
  --tt-surface-1: #0d1220;
  --tt-surface-2: #131a2b;
  --tt-surface-3: #1b2438;
  --tt-surface-overlay: rgba(8, 11, 20, 0.72);
  --tt-surface-glass: rgba(19, 26, 43, 0.62);

  --tt-border-subtle: #1e2740;
  --tt-border-default: #2a3550;
  --tt-border-strong: #3a4766;
  --tt-border-focus: #2ed3ff;

  --tt-text-primary: #f2f5fb;
  --tt-text-secondary: #aeb8cf;
  --tt-text-muted: #8490ad;
  --tt-text-disabled: #4a5572;
  --tt-text-inverse: #0a0f1c;
  --tt-text-link: #2ed3ff;
  --tt-text-hash: #a88bff;

  --tt-accent-primary: #23f0a6;
  --tt-accent-on-primary: #03140d;
  --tt-accent-primary-hover: #5cf6bf;
  --tt-accent-primary-pressed: #00d68f;
  --tt-accent-secondary: #7346f0;
  --tt-accent-on-secondary: #ffffff;
  --tt-accent-secondary-hover: #7c4dff;
  --tt-accent-loop: #2ed3ff;
  --tt-accent-on-loop: #021620;

  --tt-grid-line: rgba(148, 163, 200, 0.06);
  --tt-grid-dot: rgba(148, 163, 200, 0.12);

  /* Verdict states - always paired with an icon + text title */
  --tt-verified-fg: #23f0a6;
  --tt-verified-bg: rgba(35, 240, 166, 0.1);
  --tt-verified-border: rgba(35, 240, 166, 0.38);
  --tt-verified-solid: #23f0a6;
  --tt-verified-on-solid: #03140d;
  --tt-verified-glow: 0 0 0 1px rgba(35, 240, 166, 0.35), 0 0 32px rgba(35, 240, 166, 0.28);

  --tt-partial-fg: #ffb547;
  --tt-partial-bg: rgba(255, 181, 71, 0.1);
  --tt-partial-border: rgba(255, 181, 71, 0.38);
  --tt-partial-solid: #ffb547;
  --tt-partial-on-solid: #1f1400;
  --tt-partial-glow: 0 0 0 1px rgba(255, 181, 71, 0.32), 0 0 28px rgba(255, 181, 71, 0.22);

  --tt-warning-fg: #ff8a4c;
  --tt-warning-bg: rgba(255, 138, 76, 0.1);
  --tt-warning-border: rgba(255, 138, 76, 0.38);
  --tt-warning-solid: #ff8a4c;
  --tt-warning-on-solid: #1f0b00;
  --tt-warning-glow: 0 0 0 1px rgba(255, 138, 76, 0.32), 0 0 28px rgba(255, 138, 76, 0.22);

  --tt-failed-fg: #ff5c78;
  --tt-failed-bg: rgba(255, 92, 120, 0.1);
  --tt-failed-border: rgba(255, 92, 120, 0.4);
  --tt-failed-solid: #ff5c78;
  --tt-failed-on-solid: #1a0308;
  --tt-failed-glow: 0 0 0 1px rgba(255, 92, 120, 0.35), 0 0 28px rgba(255, 92, 120, 0.24);

  --tt-pending-fg: #93a6d6;
  --tt-pending-bg: rgba(147, 166, 214, 0.1);
  --tt-pending-border: rgba(147, 166, 214, 0.34);
  --tt-pending-solid: #93a6d6;
  --tt-pending-on-solid: #0a1020;
  --tt-pending-glow: 0 0 0 1px rgba(147, 166, 214, 0.28);

  /* QR zone - never themed (spec 10 §4.1, §9) */
  --tt-qr-bg: #ffffff;
  --tt-qr-fg: #000000;
  --tt-qr-frame-radius: 24px;
  --tt-qr-frame-padding: 16px;

  /* Elevation (dark) */
  --tt-elevation-0: none;
  --tt-elevation-1: inset 0 1px 0 0 rgba(255, 255, 255, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.5);
  --tt-elevation-2: inset 0 1px 0 0 rgba(255, 255, 255, 0.05), 0 8px 24px -8px rgba(0, 0, 0, 0.65);
  --tt-elevation-3:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 24px 64px -16px rgba(0, 0, 0, 0.75);
  --tt-elevation-4:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08), 0 40px 120px -24px rgba(0, 0, 0, 0.85);

  /* Glow */
  --tt-glow-signal:
    0 0 0 1px rgba(35, 240, 166, 0.35), 0 0 24px rgba(35, 240, 166, 0.3),
    0 0 64px rgba(35, 240, 166, 0.12);
  --tt-glow-loop:
    0 0 0 1px rgba(46, 211, 255, 0.35), 0 0 24px rgba(46, 211, 255, 0.28),
    0 0 64px rgba(46, 211, 255, 0.1);
  --tt-glow-chain:
    0 0 0 1px rgba(139, 92, 246, 0.4), 0 0 24px rgba(139, 92, 246, 0.3),
    0 0 64px rgba(139, 92, 246, 0.12);
  --tt-glow-danger: 0 0 0 1px rgba(255, 92, 120, 0.4), 0 0 24px rgba(255, 92, 120, 0.24);
  --tt-glow-text-signal: 0 0 18px rgba(35, 240, 166, 0.45);
  --tt-focus-ring: 0 0 0 2px var(--tt-bg-canvas), 0 0 0 4px var(--tt-border-focus);

  /* ---------- Typography ---------- */
  --tt-font-display:
    'Space Grotesk', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    sans-serif;
  --tt-font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tt-font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --tt-weight-regular: 400;
  --tt-weight-medium: 500;
  --tt-weight-semibold: 600;
  --tt-weight-bold: 700;

  /* Fluid display sizes: mobile size -> desktop size */
  --tt-text-display-xl: clamp(2.75rem, 1.6rem + 4.6vw, 4.75rem); /* 44 -> 76 */
  --tt-text-display-l: clamp(2.375rem, 1.6rem + 3.2vw, 3.75rem); /* 38 -> 60 */
  --tt-text-h1: clamp(2.125rem, 1.6rem + 2vw, 3rem); /* 34 -> 48 */
  --tt-text-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.375rem); /* 28 -> 38 */
  --tt-text-h3: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); /* 24 -> 30 */
  --tt-text-h4: 1.5rem; /* 24 */
  --tt-text-title: 1.25rem; /* 20 */
  --tt-text-body-l: 1.125rem; /* 18 */
  --tt-text-body: 1rem; /* 16 */
  --tt-text-body-s: 0.875rem; /* 14 */
  --tt-text-label: 0.875rem; /* 14 */
  --tt-text-caption: 0.75rem; /* 12 */
  --tt-text-overline: 0.75rem;
  --tt-text-mono: 0.875rem;
  --tt-text-mono-s: 0.75rem;
  --tt-text-stat: 2.5rem; /* 40 */

  --tt-leading-tight: 1.05;
  --tt-leading-heading: 1.15;
  --tt-leading-snug: 1.35;
  --tt-leading-body: 1.6;
  --tt-tracking-display: -0.03em;
  --tt-tracking-heading: -0.02em;
  --tt-tracking-overline: 0.14em;

  /* ---------- Space (4px grid) ---------- */
  --tt-space-0: 0px;
  --tt-space-0-5: 2px;
  --tt-space-1: 4px;
  --tt-space-2: 8px;
  --tt-space-3: 12px;
  --tt-space-4: 16px;
  --tt-space-5: 20px;
  --tt-space-6: 24px;
  --tt-space-8: 32px;
  --tt-space-10: 40px;
  --tt-space-12: 48px;
  --tt-space-16: 64px;
  --tt-space-20: 80px;
  --tt-space-24: 96px;
  --tt-space-32: 128px;

  --tt-container-max: 1200px;
  --tt-container-narrow: 760px;
  --tt-gutter: 16px;
  --tt-section-y: 64px;
  --tt-touch-min: 44px;

  /* ---------- Radius ---------- */
  --tt-radius-none: 0px;
  --tt-radius-xs: 4px;
  --tt-radius-sm: 8px;
  --tt-radius-md: 12px;
  --tt-radius-lg: 16px;
  --tt-radius-xl: 24px;
  --tt-radius-2xl: 32px;
  --tt-radius-pill: 999px;

  /* ---------- Motion ---------- */
  --tt-duration-instant: 80ms;
  --tt-duration-fast: 140ms;
  --tt-duration-base: 220ms;
  --tt-duration-slow: 360ms;
  --tt-duration-slower: 560ms;
  --tt-duration-pulse: 1600ms;
  --tt-duration-scan: 2400ms;
  --tt-duration-loop: 6000ms;
  --tt-duration-ambient: 12000ms;

  --tt-ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --tt-ease-enter: cubic-bezier(0, 0, 0.2, 1);
  --tt-ease-exit: cubic-bezier(0.4, 0, 1, 1);
  --tt-ease-emphasized: cubic-bezier(0.3, 0, 0, 1);
  --tt-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---------- Z-index ---------- */
  --tt-z-raised: 10;
  --tt-z-sticky: 100;
  --tt-z-header: 200;
  --tt-z-overlay: 900;
  --tt-z-modal: 1000;
  --tt-z-toast: 1100;
}

@media (min-width: 768px) {
  :root {
    --tt-gutter: 24px;
  }
}
@media (min-width: 1024px) {
  :root {
    --tt-gutter: 32px;
    --tt-section-y: 128px;
  }
}

/* ---------- LIGHT theme ---------- */
:root[data-theme='light'] {
  color-scheme: light;

  --tt-bg-canvas: #f5f7fb;
  --tt-bg-base: #ffffff;
  --tt-surface-1: #ffffff;
  --tt-surface-2: #eef2f8;
  --tt-surface-3: #e4e9f2;
  --tt-surface-overlay: rgba(245, 247, 251, 0.78);
  --tt-surface-glass: rgba(255, 255, 255, 0.72);

  --tt-border-subtle: #e3e8f1;
  --tt-border-default: #cdd5e3;
  --tt-border-strong: #a9b5cc;
  --tt-border-focus: #006c99;

  --tt-text-primary: #0a0f1c;
  --tt-text-secondary: #3d4760;
  --tt-text-muted: #5a6580;
  --tt-text-disabled: #9aa4ba;
  --tt-text-inverse: #f2f5fb;
  --tt-text-link: #006c99;
  --tt-text-hash: #5b32d6;

  --tt-accent-primary: #00774f;
  --tt-accent-on-primary: #ffffff;
  --tt-accent-primary-hover: #00643f;
  --tt-accent-primary-pressed: #00512f;
  --tt-accent-secondary: #5b32d6;
  --tt-accent-on-secondary: #ffffff;
  --tt-accent-secondary-hover: #4a24bf;
  --tt-accent-loop: #006c99;
  --tt-accent-on-loop: #ffffff;

  --tt-grid-line: rgba(10, 15, 28, 0.05);
  --tt-grid-dot: rgba(10, 15, 28, 0.1);

  --tt-gradient-text-hero: linear-gradient(
    100deg,
    #0a0f1c 0%,
    #0a0f1c 45%,
    #00774f 75%,
    #006c99 100%
  );
  --tt-gradient-aurora:
    radial-gradient(60% 50% at 20% 0%, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0) 70%),
    radial-gradient(50% 45% at 85% 10%, rgba(46, 211, 255, 0.1) 0%, rgba(46, 211, 255, 0) 70%);

  --tt-verified-fg: #00774f;
  --tt-verified-bg: rgba(0, 150, 100, 0.08);
  --tt-verified-border: rgba(0, 119, 79, 0.32);
  --tt-verified-solid: #00774f;
  --tt-verified-on-solid: #ffffff;
  --tt-verified-glow: 0 0 0 1px rgba(0, 119, 79, 0.25), 0 8px 24px -8px rgba(0, 119, 79, 0.35);

  --tt-partial-fg: #8a5600;
  --tt-partial-bg: rgba(200, 130, 0, 0.1);
  --tt-partial-border: rgba(138, 86, 0, 0.32);
  --tt-partial-solid: #8a5600;
  --tt-partial-on-solid: #ffffff;
  --tt-partial-glow: 0 0 0 1px rgba(138, 86, 0, 0.22);

  --tt-warning-fg: #ad4310;
  --tt-warning-bg: rgba(220, 90, 20, 0.09);
  --tt-warning-border: rgba(173, 67, 16, 0.32);
  --tt-warning-solid: #ad4310;
  --tt-warning-on-solid: #ffffff;
  --tt-warning-glow: 0 0 0 1px rgba(173, 67, 16, 0.22);

  --tt-failed-fg: #c01c40;
  --tt-failed-bg: rgba(192, 28, 64, 0.07);
  --tt-failed-border: rgba(192, 28, 64, 0.32);
  --tt-failed-solid: #c01c40;
  --tt-failed-on-solid: #ffffff;
  --tt-failed-glow: 0 0 0 1px rgba(192, 28, 64, 0.22);

  --tt-pending-fg: #475a88;
  --tt-pending-bg: rgba(71, 90, 136, 0.08);
  --tt-pending-border: rgba(71, 90, 136, 0.3);
  --tt-pending-solid: #475a88;
  --tt-pending-on-solid: #ffffff;
  --tt-pending-glow: 0 0 0 1px rgba(71, 90, 136, 0.2);

  --tt-elevation-1: 0 1px 2px 0 rgba(10, 15, 28, 0.06);
  --tt-elevation-2: 0 6px 20px -8px rgba(10, 15, 28, 0.14);
  --tt-elevation-3: 0 18px 48px -16px rgba(10, 15, 28, 0.2);
  --tt-elevation-4: 0 32px 96px -24px rgba(10, 15, 28, 0.28);

  --tt-glow-signal: 0 0 0 1px rgba(0, 119, 79, 0.25), 0 8px 24px -8px rgba(0, 119, 79, 0.35);
  --tt-glow-loop: 0 0 0 1px rgba(0, 108, 153, 0.25), 0 8px 24px -8px rgba(0, 108, 153, 0.3);
  --tt-glow-chain: 0 0 0 1px rgba(91, 50, 214, 0.25), 0 8px 24px -8px rgba(91, 50, 214, 0.3);
  --tt-glow-text-signal: none;
}

/* data-theme="auto": follow the OS preference */
@media (prefers-color-scheme: light) {
  :root[data-theme='auto'] {
    color-scheme: light;
    --tt-bg-canvas: #f5f7fb;
    --tt-bg-base: #ffffff;
    --tt-surface-1: #ffffff;
    --tt-surface-2: #eef2f8;
    --tt-surface-3: #e4e9f2;
    --tt-surface-overlay: rgba(245, 247, 251, 0.78);
    --tt-surface-glass: rgba(255, 255, 255, 0.72);
    --tt-border-subtle: #e3e8f1;
    --tt-border-default: #cdd5e3;
    --tt-border-strong: #a9b5cc;
    --tt-border-focus: #006c99;
    --tt-text-primary: #0a0f1c;
    --tt-text-secondary: #3d4760;
    --tt-text-muted: #5a6580;
    --tt-text-disabled: #9aa4ba;
    --tt-text-inverse: #f2f5fb;
    --tt-text-link: #006c99;
    --tt-text-hash: #5b32d6;
    --tt-accent-primary: #00774f;
    --tt-accent-on-primary: #ffffff;
    --tt-accent-primary-hover: #00643f;
    --tt-accent-primary-pressed: #00512f;
    --tt-accent-secondary: #5b32d6;
    --tt-accent-on-secondary: #ffffff;
    --tt-accent-secondary-hover: #4a24bf;
    --tt-accent-loop: #006c99;
    --tt-accent-on-loop: #ffffff;
    --tt-grid-line: rgba(10, 15, 28, 0.05);
    --tt-grid-dot: rgba(10, 15, 28, 0.1);
    --tt-gradient-text-hero: linear-gradient(
      100deg,
      #0a0f1c 0%,
      #0a0f1c 45%,
      #00774f 75%,
      #006c99 100%
    );
    --tt-gradient-aurora:
      radial-gradient(60% 50% at 20% 0%, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0) 70%),
      radial-gradient(50% 45% at 85% 10%, rgba(46, 211, 255, 0.1) 0%, rgba(46, 211, 255, 0) 70%);
    --tt-verified-fg: #00774f;
    --tt-verified-bg: rgba(0, 150, 100, 0.08);
    --tt-verified-border: rgba(0, 119, 79, 0.32);
    --tt-verified-solid: #00774f;
    --tt-verified-on-solid: #ffffff;
    --tt-verified-glow: 0 0 0 1px rgba(0, 119, 79, 0.25), 0 8px 24px -8px rgba(0, 119, 79, 0.35);
    --tt-partial-fg: #8a5600;
    --tt-partial-bg: rgba(200, 130, 0, 0.1);
    --tt-partial-border: rgba(138, 86, 0, 0.32);
    --tt-partial-solid: #8a5600;
    --tt-partial-on-solid: #ffffff;
    --tt-partial-glow: 0 0 0 1px rgba(138, 86, 0, 0.22);
    --tt-warning-fg: #ad4310;
    --tt-warning-bg: rgba(220, 90, 20, 0.09);
    --tt-warning-border: rgba(173, 67, 16, 0.32);
    --tt-warning-solid: #ad4310;
    --tt-warning-on-solid: #ffffff;
    --tt-warning-glow: 0 0 0 1px rgba(173, 67, 16, 0.22);
    --tt-failed-fg: #c01c40;
    --tt-failed-bg: rgba(192, 28, 64, 0.07);
    --tt-failed-border: rgba(192, 28, 64, 0.32);
    --tt-failed-solid: #c01c40;
    --tt-failed-on-solid: #ffffff;
    --tt-failed-glow: 0 0 0 1px rgba(192, 28, 64, 0.22);
    --tt-pending-fg: #475a88;
    --tt-pending-bg: rgba(71, 90, 136, 0.08);
    --tt-pending-border: rgba(71, 90, 136, 0.3);
    --tt-pending-solid: #475a88;
    --tt-pending-on-solid: #ffffff;
    --tt-pending-glow: 0 0 0 1px rgba(71, 90, 136, 0.2);
    --tt-elevation-1: 0 1px 2px 0 rgba(10, 15, 28, 0.06);
    --tt-elevation-2: 0 6px 20px -8px rgba(10, 15, 28, 0.14);
    --tt-elevation-3: 0 18px 48px -16px rgba(10, 15, 28, 0.2);
    --tt-elevation-4: 0 32px 96px -24px rgba(10, 15, 28, 0.28);
    --tt-glow-signal: 0 0 0 1px rgba(0, 119, 79, 0.25), 0 8px 24px -8px rgba(0, 119, 79, 0.35);
    --tt-glow-loop: 0 0 0 1px rgba(0, 108, 153, 0.25), 0 8px 24px -8px rgba(0, 108, 153, 0.3);
    --tt-glow-chain: 0 0 0 1px rgba(91, 50, 214, 0.25), 0 8px 24px -8px rgba(91, 50, 214, 0.3);
    --tt-glow-text-signal: none;
  }
}

/* Reduced motion: ambient/scan/loop animations collapse; state changes stay instant. */
@media (prefers-reduced-motion: reduce) {
  :root {
    --tt-duration-base: 0ms;
    --tt-duration-slow: 0ms;
    --tt-duration-slower: 0ms;
    --tt-duration-pulse: 0ms;
    --tt-duration-scan: 0ms;
    --tt-duration-loop: 0ms;
    --tt-duration-ambient: 0ms;
  }
}

/* ---------- Minimal base (opt-in: add class="tt" on <html> or <body>) ---------- */
.tt {
  background: var(--tt-bg-canvas);
  color: var(--tt-text-primary);
  font-family: var(--tt-font-body);
  font-size: var(--tt-text-body);
  line-height: var(--tt-leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
}
.tt :focus-visible {
  outline: none;
  box-shadow: var(--tt-focus-ring);
  border-radius: var(--tt-radius-sm);
}
.tt ::selection {
  background: rgba(35, 240, 166, 0.28);
  color: var(--tt-text-primary);
}
.tt-mono,
.tt code,
.tt kbd {
  font-family: var(--tt-font-mono);
  font-variant-ligatures: none;
}
.tt-tabular {
  font-variant-numeric: tabular-nums;
}
.tt-overline {
  font-family: var(--tt-font-mono);
  font-size: var(--tt-text-overline);
  font-weight: var(--tt-weight-medium);
  letter-spacing: var(--tt-tracking-overline);
  text-transform: uppercase;
  color: var(--tt-accent-loop);
}
.tt-gradient-text {
  background: var(--tt-gradient-text-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* Signature backdrop: faint module grid, like a QR seen up close */
.tt-grid-bg {
  background-image:
    linear-gradient(var(--tt-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--tt-grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
.tt-aurora {
  background-image: var(--tt-gradient-aurora);
}

/* Self-hosted fonts (design/fonts, SIL OFL 1.1) */
@font-face{font-family:'Inter';src:url("/assets/fonts/Inter-var-latin.84197d4b0b.woff2") format('woff2');font-weight:400 700;font-style:normal;font-display:swap;}
@font-face{font-family:'Space Grotesk';src:url("/assets/fonts/SpaceGrotesk-var-latin.057f6f5d1b.woff2") format('woff2');font-weight:500 700;font-style:normal;font-display:swap;}
@font-face{font-family:'JetBrains Mono';src:url("/assets/fonts/JetBrainsMono-var-latin.6a12316588.woff2") format('woff2');font-weight:400 600;font-style:normal;font-display:swap;}

/* ==========================================================================
   TrueTake website. Built on design/tokens.css (prepended at build time).
   Dark deep-tech, one neon signal, motion that explains the loop.
   No inline styles anywhere (CSP style-src 'self').
   ========================================================================== */

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  background: var(--tt-bg-canvas);
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--tt-bg-canvas);
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: var(--tt-text-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button {
  font: inherit;
  color: inherit;
}
code,
pre {
  font-family: var(--tt-font-mono);
}
code {
  font-size: 0.92em;
  color: var(--tt-text-hash);
  overflow-wrap: anywhere;
}
strong {
  font-weight: 600;
  color: var(--tt-text-primary);
}
[hidden] {
  display: none !important;
}
::selection {
  background: rgba(35, 240, 166, 0.28);
}
.tt :focus-visible {
  outline: none;
  box-shadow: var(--tt-focus-ring);
  border-radius: var(--tt-radius-sm);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mono {
  font-family: var(--tt-font-mono);
  font-variant-ligatures: none;
  font-variant-numeric: tabular-nums;
}
.muted {
  color: var(--tt-text-muted);
}
.fine {
  font-size: var(--tt-text-body-s);
  color: var(--tt-text-muted);
  line-height: 1.5;
}
.center {
  text-align: center;
}
.i {
  flex: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: var(--tt-z-toast);
  padding: 10px 16px;
  border-radius: var(--tt-radius-md);
  background: var(--tt-accent-primary);
  color: var(--tt-accent-on-primary);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--tt-duration-fast) var(--tt-ease-standard);
}
.skip-link:focus {
  top: 12px;
}
main:focus {
  outline: none;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--tt-container-max) + var(--tt-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--tt-gutter);
}
.container-narrow {
  max-width: calc(var(--tt-container-narrow) + var(--tt-gutter) * 2);
}
.section {
  position: relative;
  padding-block: var(--tt-section-y);
}
.section:nth-of-type(even) {
  background: var(--tt-bg-base);
}

/* ---------- Typography helpers ---------- */
.overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tt-font-mono);
  font-size: var(--tt-text-overline);
  font-weight: 500;
  letter-spacing: var(--tt-tracking-overline);
  text-transform: uppercase;
  color: var(--tt-accent-loop);
  margin: 0;
}
.overline-muted {
  color: var(--tt-text-muted);
}
.overline-signal {
  color: var(--tt-brand-signal);
}
.grad-text {
  background: linear-gradient(100deg, #23f0a6 0%, #2ed3ff 55%, #a88bff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (prefers-reduced-motion: no-preference) {
  .grad-text {
    animation: tt-shimmer 8s var(--tt-ease-standard) infinite alternate;
  }
}
@keyframes tt-shimmer {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 100% 50%;
  }
}

.section-head {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head-center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.section-title {
  font-family: var(--tt-font-display);
  font-size: var(--tt-text-h1);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.section-title .grad-text {
  display: inline;
}
.section-lead {
  font-size: var(--tt-text-body-l);
  color: var(--tt-text-secondary);
  max-width: 680px;
  text-wrap: pretty;
}
.section-subtitle {
  font-family: var(--tt-font-display);
  font-size: var(--tt-text-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.section-cta {
  margin-top: 40px;
  text-align: center;
}
.section-cta-left {
  text-align: left;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  color: var(--tt-text-link);
}
.link-arrow .i {
  transition: transform var(--tt-duration-fast) var(--tt-ease-standard);
}
.link-arrow:hover .i {
  transform: translateX(4px);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 0 20px;
  border-radius: var(--tt-radius-lg);
  border: 1px solid transparent;
  font-family: var(--tt-font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--tt-duration-fast) var(--tt-ease-standard),
    border-color var(--tt-duration-fast) var(--tt-ease-standard),
    box-shadow var(--tt-duration-fast) var(--tt-ease-standard),
    transform var(--tt-duration-instant) var(--tt-ease-standard),
    color var(--tt-duration-fast) var(--tt-ease-standard);
}
.btn:active {
  transform: scale(0.98);
}
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-lg {
  --btn-h: 56px;
  padding: 0 24px;
  font-size: 16px;
}
.btn-sm {
  --btn-h: 40px;
  padding: 0 14px;
  font-size: 14px;
  border-radius: var(--tt-radius-md);
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--tt-accent-primary);
  color: var(--tt-accent-on-primary);
}
.btn-primary:hover:not(:disabled) {
  background: var(--tt-accent-primary-hover);
  box-shadow: var(--tt-glow-signal);
}
.btn-primary:active:not(:disabled) {
  background: var(--tt-accent-primary-pressed);
}
.btn-secondary {
  background: var(--tt-accent-secondary);
  color: var(--tt-accent-on-secondary);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--tt-accent-secondary-hover);
  box-shadow: var(--tt-glow-chain);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--tt-text-primary);
  border-color: var(--tt-border-strong);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--tt-text-secondary);
  background: rgba(255, 255, 255, 0.06);
}
.btn-ghost {
  background: transparent;
  color: var(--tt-text-link);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(46, 211, 255, 0.08);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--tt-radius-md);
  background: transparent;
  color: var(--tt-text-secondary);
  cursor: pointer;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--tt-text-primary);
}

/* Copy button (hash chips) */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  margin-left: 8px;
  border-radius: var(--tt-radius-md);
  border: 1px solid var(--tt-border-subtle);
  background: var(--tt-surface-2);
  color: var(--tt-text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  vertical-align: middle;
  transition:
    border-color var(--tt-duration-fast) var(--tt-ease-standard),
    color var(--tt-duration-fast) var(--tt-ease-standard);
  position: relative;
}
.copy-btn::before {
  /* 44 px hit area */
  content: '';
  position: absolute;
  inset: -6px;
}
.copy-btn:hover {
  border-color: rgba(139, 92, 246, 0.5);
  color: var(--tt-text-primary);
}
.copy-btn .i-done {
  display: none;
}
.copy-btn.is-copied {
  border-color: var(--tt-verified-border);
  color: var(--tt-verified-fg);
}
.copy-btn.is-copied .i-done {
  display: block;
}
.copy-btn.is-copied .i-copy {
  display: none;
}
.copy-btn-sm .copy-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.copy-btn-sm {
  width: 32px;
  padding: 0;
  justify-content: center;
}

/* Switch (role=switch) */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--tt-text-secondary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}
.switch:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.switch-track {
  position: relative;
  flex: none;
  width: 46px;
  height: 26px;
  border-radius: var(--tt-radius-pill);
  background: var(--tt-surface-3);
  border: 1px solid var(--tt-border-strong);
  transition: background var(--tt-duration-base) var(--tt-ease-standard);
}
.switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--tt-text-secondary);
  transition:
    transform var(--tt-duration-base) var(--tt-ease-spring),
    background var(--tt-duration-base) var(--tt-ease-standard);
}
.switch[aria-checked='true'] {
  color: var(--tt-failed-fg);
}
.switch[aria-checked='true'] .switch-track {
  background: var(--tt-failed-bg);
  border-color: var(--tt-failed-border);
}
.switch[aria-checked='true'] .switch-thumb {
  transform: translateX(20px);
  background: var(--tt-failed-solid);
}

/* ---------- Chips, badges, pills ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: var(--tt-radius-pill);
  border: 1px solid var(--tt-border-default);
  background: var(--tt-surface-2);
  font-family: var(--tt-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tt-text-secondary);
  white-space: nowrap;
}
.chip-xs {
  min-height: 20px;
  padding: 1px 8px;
  font-size: 10px;
}
.chip[data-channel='stable'],
.chip-signal {
  color: var(--tt-verified-fg);
  border-color: var(--tt-verified-border);
  background: var(--tt-verified-bg);
}
.chip[data-channel='beta'] {
  color: var(--tt-text-link);
  border-color: rgba(46, 211, 255, 0.4);
  background: rgba(46, 211, 255, 0.08);
}
.chip[data-channel='qa'] {
  color: var(--tt-partial-fg);
  border-color: var(--tt-partial-border);
  background: var(--tt-partial-bg);
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--tt-radius-pill);
  font-size: 12px;
}
.pill-loop {
  color: var(--tt-brand-loop);
  background: rgba(46, 211, 255, 0.1);
  border: 1px solid rgba(46, 211, 255, 0.35);
}
.badge {
  --tone-fg: var(--tt-pending-fg);
  --tone-bg: var(--tt-pending-bg);
  --tone-border: var(--tt-pending-border);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: var(--tt-radius-pill);
  border: 1px solid var(--tone-border);
  background: var(--tone-bg);
  color: var(--tone-fg);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.badge[data-tone='verified'] {
  --tone-fg: var(--tt-verified-fg);
  --tone-bg: var(--tt-verified-bg);
  --tone-border: var(--tt-verified-border);
}
.badge[data-tone='partial'] {
  --tone-fg: var(--tt-partial-fg);
  --tone-bg: var(--tt-partial-bg);
  --tone-border: var(--tt-partial-border);
}
.badge[data-tone='failed'] {
  --tone-fg: var(--tt-failed-fg);
  --tone-bg: var(--tt-failed-bg);
  --tone-border: var(--tt-failed-border);
}
.badge[data-tone='chain'] {
  --tone-fg: var(--tt-brand-chain-text);
  --tone-bg: rgba(139, 92, 246, 0.12);
  --tone-border: rgba(139, 92, 246, 0.42);
}
.hash {
  font-family: var(--tt-font-mono);
  font-size: 13px;
  color: var(--tt-text-hash);
  font-variant-ligatures: none;
  white-space: nowrap;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tt-text-muted);
  flex: none;
}
.dot-signal {
  background: var(--tt-brand-signal);
  box-shadow: 0 0 10px rgba(35, 240, 166, 0.7);
}
.live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tt-brand-signal);
  flex: none;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--tt-brand-signal);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot::after {
    animation: tt-ping 1.6s var(--tt-ease-standard) infinite;
  }
}
@keyframes tt-ping {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--tt-surface-1);
  border: 1px solid var(--tt-border-subtle);
  border-radius: var(--tt-radius-xl);
  padding: 24px;
  box-shadow: var(--tt-elevation-2);
}
@media (max-width: 767px) {
  .card {
    padding: 20px;
  }
}
.card-interactive {
  transition:
    border-color var(--tt-duration-base) var(--tt-ease-standard),
    transform var(--tt-duration-base) var(--tt-ease-standard),
    box-shadow var(--tt-duration-base) var(--tt-ease-standard);
}
.card-interactive:hover {
  border-color: var(--tt-border-default);
  transform: translateY(-2px);
  box-shadow: var(--tt-elevation-3);
}
.card-glass {
  background: var(--tt-surface-glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.06);
}
.card-highlight {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--tt-surface-1), var(--tt-surface-1)) padding-box,
    linear-gradient(135deg, rgba(46, 211, 255, 0.7), rgba(35, 240, 166, 0.7)) border-box;
  box-shadow:
    var(--tt-elevation-3),
    0 0 48px -12px rgba(35, 240, 166, 0.35);
}
.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--tt-font-display);
  font-size: var(--tt-text-title);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--tt-text-primary);
}
.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--tt-radius-md);
  background: var(--tt-surface-3);
  color: var(--tt-brand-loop);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  flex: none;
}
.icon-tile-sm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.icon-tile-danger {
  color: var(--tt-failed-fg);
  background: var(--tt-failed-bg);
}
.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--tt-radius-lg);
  border: 1px solid var(--tt-pending-border);
  background: var(--tt-pending-bg);
  color: var(--tt-text-primary);
  font-size: var(--tt-text-body-s);
  line-height: 1.55;
}
.callout .i {
  margin-top: 2px;
  color: var(--tt-pending-fg);
}
.callout-partial {
  border-color: var(--tt-partial-border);
  background: var(--tt-partial-bg);
}
.callout-partial .i {
  color: var(--tt-partial-fg);
}
.callout-failed {
  border-color: var(--tt-failed-border);
  background: var(--tt-failed-bg);
}
.callout-failed .i {
  color: var(--tt-failed-fg);
}
.callout-loop {
  border-color: rgba(46, 211, 255, 0.35);
  background: rgba(46, 211, 255, 0.07);
}
.callout-loop .i {
  color: var(--tt-brand-loop);
}
.callout-title {
  font-weight: 600;
  margin-bottom: 4px;
}
mark.todo {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--tt-partial-bg);
  border: 1px dashed var(--tt-partial-border);
  color: var(--tt-partial-fg);
  font-family: var(--tt-font-mono);
  font-size: 0.86em;
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--tt-z-header);
  height: 64px;
  background: rgba(5, 7, 13, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition:
    background var(--tt-duration-base) var(--tt-ease-standard),
    border-color var(--tt-duration-base) var(--tt-ease-standard);
}
.site-header.is-scrolled {
  background: var(--tt-surface-overlay);
  border-bottom-color: var(--tt-border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  border-radius: var(--tt-radius-sm);
}
.brand img {
  height: 28px;
  width: auto;
}
.nav-desktop {
  display: none;
  gap: 4px;
  margin-left: 12px;
}
.nav-desktop a {
  padding: 8px 12px;
  border-radius: var(--tt-radius-md);
  color: var(--tt-text-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition:
    color var(--tt-duration-fast) var(--tt-ease-standard),
    background var(--tt-duration-fast) var(--tt-ease-standard);
}
.nav-desktop a:hover,
.nav-desktop a[aria-current='page'] {
  color: var(--tt-text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--tt-text-muted);
  text-decoration: none;
  border-radius: var(--tt-radius-sm);
}
.lang-switch .on {
  color: var(--tt-text-primary);
}
.lang-switch .sep {
  color: var(--tt-border-strong);
}
.lang-switch:hover span:not(.on):not(.sep) {
  color: var(--tt-text-link);
}
.header-cta {
  display: none;
}
.nav-mobile {
  position: relative;
}
.nav-mobile summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--tt-radius-md);
  color: var(--tt-text-primary);
  cursor: pointer;
  list-style: none;
}
.nav-mobile summary::-webkit-details-marker {
  display: none;
}
.nav-mobile[open] summary {
  background: rgba(255, 255, 255, 0.06);
}
.nav-mobile-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  min-width: 240px;
  padding: 8px;
  border-radius: var(--tt-radius-lg);
  background: var(--tt-surface-2);
  border: 1px solid var(--tt-border-default);
  box-shadow: var(--tt-elevation-4);
}
.nav-mobile-panel a {
  padding: 12px 14px;
  border-radius: var(--tt-radius-md);
  color: var(--tt-text-primary);
  text-decoration: none;
  font-weight: 500;
}
.nav-mobile-panel a:hover {
  background: rgba(255, 255, 255, 0.05);
}
@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}
@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
  .nav-mobile {
    display: none;
  }
}

.lang-banner {
  position: relative;
  z-index: calc(var(--tt-z-header) + 1);
  background: linear-gradient(90deg, rgba(46, 211, 255, 0.12), rgba(139, 92, 246, 0.12));
  border-bottom: 1px solid var(--tt-border-subtle);
}
.lang-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  font-size: 14px;
  color: var(--tt-text-primary);
}
.lang-banner-inner > .i {
  color: var(--tt-brand-loop);
}
.lang-banner-inner p {
  flex: 1;
}
@media (max-width: 559px) {
  /* Phones: one compact line, the action button says it all. */
  .lang-banner-inner {
    min-height: 44px;
    gap: 8px;
    font-size: 13px;
  }
  .lang-banner-inner p {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .lang-banner-inner .btn {
    margin-left: auto;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  padding: 72px 0 32px;
  background: var(--tt-bg-base);
  border-top: 1px solid var(--tt-border-subtle);
  font-size: 14px;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(640px, 80%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(46, 211, 255, 0.7),
    rgba(35, 240, 166, 0.7),
    transparent
  );
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.footer-brand {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  align-content: start;
}
.footer-brand img {
  height: 34px;
  width: auto;
}
.footer-tagline {
  font-family: var(--tt-font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--tt-text-primary);
  letter-spacing: -0.01em;
}
.footer-privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tt-text-muted);
}
.footer-privacy .i {
  color: var(--tt-brand-signal);
}
.footer-col h2 {
  margin-bottom: 16px;
}
.footer-col ul {
  display: grid;
  gap: 4px;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--tt-text-secondary);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer-col a:hover {
  color: var(--tt-text-primary);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--tt-border-subtle);
  color: var(--tt-text-muted);
}
.footer-version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.site-footer-minimal {
  padding: 24px 0;
}
.site-footer-minimal .footer-bottom {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
.footer-inline-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-inline-links a {
  color: var(--tt-text-secondary);
  text-decoration: none;
}
.footer-col-contact {
  grid-column: 1 / -1;
}
.footer-col-contact a {
  overflow-wrap: normal;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)) max-content;
    column-gap: 32px;
  }
  .footer-brand,
  .footer-col-contact {
    grid-column: auto;
  }
}

/* ---------- Shared backgrounds ---------- */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(var(--tt-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--tt-grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-aurora {
  position: absolute;
  inset: 0;
  background-image: var(--tt-gradient-aurora);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-grid {
    animation: tt-grid-drift 24s linear infinite;
  }
}
@keyframes tt-grid-drift {
  to {
    background-position:
      0 32px,
      32px 0;
  }
}

/* ==========================================================================
   HOME
   ========================================================================== */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(40px, 7vw, 96px);
  margin-top: -64px;
  padding-block-start: calc(64px + clamp(32px, 6vw, 88px));
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.orb-a {
  width: 520px;
  height: 520px;
  left: -160px;
  top: -120px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55), transparent 65%);
}
.orb-b {
  width: 460px;
  height: 460px;
  right: -120px;
  top: 60px;
  background: radial-gradient(circle, rgba(46, 211, 255, 0.4), transparent 65%);
}
.orb-c {
  width: 420px;
  height: 420px;
  left: 40%;
  bottom: -220px;
  background: radial-gradient(circle, rgba(35, 240, 166, 0.3), transparent 65%);
}
@media (prefers-reduced-motion: no-preference) {
  .orb-a {
    animation: tt-orb-a 18s ease-in-out infinite alternate;
  }
  .orb-b {
    animation: tt-orb-b 22s ease-in-out infinite alternate;
  }
  .orb-c {
    animation: tt-orb-c 26s ease-in-out infinite alternate;
  }
}
@keyframes tt-orb-a {
  to {
    transform: translate(120px, 80px) scale(1.1);
  }
}
@keyframes tt-orb-b {
  to {
    transform: translate(-100px, 120px) scale(0.92);
  }
}
@keyframes tt-orb-c {
  to {
    transform: translate(-140px, -60px) scale(1.15);
  }
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero-head,
.hero-body {
  display: grid;
  gap: 24px;
  justify-items: start;
}
.hero-overline {
  padding: 6px 12px 6px 10px;
  border-radius: var(--tt-radius-pill);
  background: rgba(46, 211, 255, 0.07);
  border: 1px solid rgba(46, 211, 255, 0.22);
  letter-spacing: 0.12em;
  font-size: 11px;
}
.hero-title {
  font-family: var(--tt-font-display);
  font-size: clamp(2.6rem, 1.2rem + 3.6vw, 3.875rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}
.hero-title .line {
  display: block;
}
@media (min-width: 1024px) {
  .hero-title .line {
    white-space: nowrap;
  }
}
.hero-title .l2 {
  padding-bottom: 0.08em;
}
.hero-lead {
  max-width: 580px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--tt-text-secondary);
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-demo {
  margin-top: -4px;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--tt-radius-pill);
  border: 1px solid var(--tt-border-subtle);
  background: rgba(13, 18, 32, 0.6);
  font-size: 13px;
  color: var(--tt-text-secondary);
}
.trust-row .i {
  color: var(--tt-brand-signal);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-head > *,
  .hero-body > * {
    animation: tt-rise var(--tt-duration-slower) var(--tt-ease-emphasized) both;
  }
  .hero-head > :nth-child(2) {
    animation-delay: 80ms;
  }
  .hero-body > :nth-child(1) {
    animation-delay: 160ms;
  }
  .hero-body > :nth-child(2) {
    animation-delay: 240ms;
  }
  .hero-body > :nth-child(3) {
    animation-delay: 300ms;
  }
  .hero-body > :nth-child(4) {
    animation-delay: 360ms;
  }
  .hero-title .l1,
  .hero-title .l2 {
    animation: tt-rise 800ms var(--tt-ease-emphasized) both;
  }
  .hero-title .l2 {
    animation-delay: 140ms;
  }
  .hero-visual {
    animation: tt-fade-scale 1100ms var(--tt-ease-emphasized) 120ms both;
  }
}
@keyframes tt-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tt-fade-scale {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  aspect-ratio: 1200 / 820;
}
@keyframes tt-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@property --tt-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.hero-ring {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 88%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: conic-gradient(
    from var(--tt-angle),
    rgba(139, 92, 246, 0) 0deg,
    rgba(139, 92, 246, 0.6) 60deg,
    rgba(46, 211, 255, 0.7) 140deg,
    rgba(35, 240, 166, 0.75) 200deg,
    rgba(35, 240, 166, 0) 260deg
  );
  -webkit-mask: radial-gradient(circle, transparent 64%, #000 65%, #000 66%, transparent 67%);
  mask: radial-gradient(circle, transparent 64%, #000 65%, #000 66%, transparent 67%);
  opacity: 0.9;
  filter: drop-shadow(0 0 12px rgba(46, 211, 255, 0.6));
}
.hero-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 211, 255, 0.14), transparent 62%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-ring {
    animation: tt-spin 6s linear infinite;
  }
}
@keyframes tt-spin {
  to {
    --tt-angle: 360deg;
  }
}
.hero-orbit {
  position: absolute;
  z-index: 1;
  inset: 6%;
  pointer-events: none;
}
.hero-orbit .mod {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--tt-brand-signal);
  box-shadow: 0 0 14px rgba(35, 240, 166, 0.9);
  offset-path: ellipse(50% 50% at 50% 50%);
  offset-rotate: 0deg;
  offset-distance: 0%;
  left: 0;
  top: 0;
  opacity: 0;
}
.hero-orbit .m2 {
  background: var(--tt-brand-loop);
  box-shadow: 0 0 14px rgba(46, 211, 255, 0.9);
}
.hero-orbit .m3 {
  background: var(--tt-brand-chain);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.9);
  width: 8px;
  height: 8px;
}
.hero-orbit .m4 {
  width: 6px;
  height: 6px;
}
@supports (offset-path: ellipse(50% 50% at 50% 50%)) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-orbit .mod {
      opacity: 1;
      animation: tt-orbit 9s linear infinite;
    }
    .hero-orbit .m2 {
      animation-delay: -2.25s;
    }
    .hero-orbit .m3 {
      animation-delay: -4.5s;
      animation-duration: 12s;
    }
    .hero-orbit .m4 {
      animation-delay: -6.75s;
    }
  }
}
@keyframes tt-orbit {
  to {
    offset-distance: 100%;
  }
}

.hero-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--tt-radius-md);
  background: var(--tt-surface-glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--tt-elevation-3);
  font-size: 12px;
  color: var(--tt-text-secondary);
  white-space: nowrap;
}
.chip-label {
  font-family: var(--tt-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tt-text-muted);
}
.chip-live {
  /* Sits under the artwork so it never covers the illustration's labels. */
  left: 0;
  right: 0;
  bottom: -4%;
  width: max-content;
  margin-inline: auto;
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow:
    var(--tt-elevation-3),
    0 0 28px -6px rgba(139, 92, 246, 0.6);
}
.chip-live .hash {
  min-width: 15ch;
}
.chip-live .hash.is-fresh {
  animation: tt-hash-flash 900ms var(--tt-ease-standard);
}
@keyframes tt-hash-flash {
  0% {
    color: #fff;
    text-shadow: 0 0 12px rgba(168, 139, 255, 0.9);
  }
  100% {
    color: var(--tt-text-hash);
    text-shadow: none;
  }
}
.chip-accepted {
  right: 2%;
  top: 4%;
  border-color: var(--tt-verified-border);
}
.chip-accepted .chip-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--tt-brand-signal);
  color: var(--tt-accent-on-primary);
}
.chip-step {
  color: var(--tt-brand-signal);
  font-weight: 600;
}
@media (prefers-reduced-motion: no-preference) {
  .chip-live {
    animation: tt-float 6s ease-in-out -2s infinite;
  }
  .chip-accepted {
    animation: tt-float 6.5s ease-in-out -4s infinite;
  }
}

.hero-strip {
  position: relative;
  z-index: 1;
  margin-top: clamp(48px, 7vw, 88px);
  padding: 14px 0;
  border-block: 1px solid var(--tt-border-subtle);
  background: rgba(8, 11, 20, 0.6);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.strip-track {
  display: flex;
  width: max-content;
  gap: 12px;
}
@media (prefers-reduced-motion: no-preference) {
  .strip-track {
    animation: tt-marquee 48s linear infinite;
  }
}
@keyframes tt-marquee {
  to {
    transform: translateX(-50%);
  }
}
.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 6px 12px;
  white-space: nowrap;
}
.strip-step {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--tt-text-muted);
}
.strip-link {
  color: var(--tt-brand-loop);
  opacity: 0.7;
  margin-left: 2px;
}

@media (min-width: 1200px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-areas:
      'head visual'
      'body visual';
    column-gap: 24px;
    row-gap: 24px;
  }
  .hero-head {
    grid-area: head;
    align-self: end;
  }
  .hero-body {
    grid-area: body;
    align-self: start;
  }
  .hero-visual {
    grid-area: visual;
    max-width: none;
    width: 112%;
    margin-right: -12%;
  }
}
@media (max-width: 1199px) {
  /* Below 1200px: headline, then the loop, then the pitch; the visual stays in (or right
     under) the first screen on a phone. */
  .hero-inner {
    gap: 28px;
  }
}
@media (max-width: 639px) {
  .hero-ctas > .btn {
    flex: 1 1 100%;
  }
  .hero-overline {
    letter-spacing: 0.08em;
    font-size: 10px;
  }
  .hero-visual {
    margin-bottom: 24px;
  }
  /* The accepted chip would cover the artwork's own labels on a phone. */
  .chip-accepted {
    display: none;
  }
  .hero-chip {
    padding: 6px 10px;
    font-size: 11px;
  }
  .chip-live {
    bottom: -9%;
  }
}

/* ---------- Scroll reveal (CSS only, progressive) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: tt-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes tt-reveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Problem ---------- */
.problem-grid {
  display: grid;
  gap: 16px;
}
.problem-card {
  display: grid;
  gap: 14px;
  align-content: start;
}
.problem-card p {
  color: var(--tt-text-secondary);
}
.problem-answer {
  display: flex;
  gap: 20px;
  align-items: center;
  max-width: 920px;
  margin: 48px auto 0;
  padding: 28px 32px;
  border-radius: var(--tt-radius-2xl);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--tt-surface-1), var(--tt-surface-1)) padding-box,
    linear-gradient(
        120deg,
        rgba(139, 92, 246, 0.55),
        rgba(46, 211, 255, 0.45),
        rgba(35, 240, 166, 0.55)
      )
      border-box;
  box-shadow: 0 30px 80px -30px rgba(46, 211, 255, 0.35);
}
.answer-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--tt-gradient-brand);
  color: var(--tt-accent-on-primary);
}
.problem-answer p {
  font-family: var(--tt-font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.answer-1 {
  color: var(--tt-text-secondary);
}
.answer-2 {
  font-weight: 600;
  color: var(--tt-text-primary);
}
@media (min-width: 768px) {
  .problem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 599px) {
  .problem-answer {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
}

/* ---------- Simulator ---------- */
.section-sim {
  overflow: hidden;
}
.section-sim::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(46, 211, 255, 0.1), transparent 70%),
    radial-gradient(40% 40% at 90% 90%, rgba(139, 92, 246, 0.1), transparent 70%);
  pointer-events: none;
}
.sim {
  position: relative;
  display: grid;
  gap: 24px;
  padding: clamp(16px, 3vw, 32px);
  border-radius: var(--tt-radius-2xl);
  background: linear-gradient(180deg, rgba(19, 26, 43, 0.75), rgba(13, 18, 32, 0.85));
  border: 1px solid var(--tt-border-subtle);
  box-shadow: var(--tt-elevation-4);
  transition:
    border-color var(--tt-duration-slow) var(--tt-ease-standard),
    box-shadow var(--tt-duration-slow) var(--tt-ease-standard);
}
.sim.is-broken {
  border-color: var(--tt-failed-border);
  box-shadow:
    var(--tt-elevation-4),
    0 0 60px -20px rgba(255, 92, 120, 0.5);
}
.sim.is-sealed {
  border-color: var(--tt-verified-border);
  box-shadow:
    var(--tt-elevation-4),
    0 0 60px -20px rgba(35, 240, 166, 0.5);
}
.sim-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}
.sim-phone {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  border-radius: 28px;
  background: #0b101d;
  border: 1.5px solid var(--tt-border-strong);
  box-shadow:
    inset 0 0 0 6px #0d1220,
    0 24px 60px -24px rgba(0, 0, 0, 0.8);
}
.sim-phone-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 4px 0;
}
.sim-phone-top .overline {
  font-size: 10px;
  letter-spacing: 0.1em;
}
.sim-qr-frame {
  padding: 10px;
  border-radius: 20px;
  border: 2px solid var(--tt-border-default);
}
.sim-qr {
  /* The evidence zone: white, never animated, swapped instantly. */
  display: block;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 14px;
  background: var(--tt-qr-bg);
  overflow: hidden;
}
.sim-qr svg,
.sim-qr img,
.sim-mirror svg,
.sim-mirror img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.sim-carries {
  min-height: 2.6em;
  font-size: 11px;
  line-height: 1.4;
  color: var(--tt-text-muted);
  overflow-wrap: anywhere;
}
.sim-link {
  position: relative;
  align-self: center;
  height: 70%;
}
.sim-beam {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  translate: -50% 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(46, 211, 255, 0.7) 0 4px,
    transparent 4px 10px
  );
  opacity: 0.5;
}
.sim-packet {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 10px;
  translate: -50% 0;
  border-radius: 3px;
  background: var(--tt-brand-chain);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.9);
  opacity: 0;
}
.sim-phone-b {
  background: linear-gradient(180deg, #121c31, #0a111f);
}
.sim-rec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--tt-text-muted);
}
.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tt-text-disabled);
}
.sim-viewfinder {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 40%, #1a2742, #0a111f 75%);
  overflow: hidden;
}
.sim-mirror {
  width: 56%;
  aspect-ratio: 1;
  padding: 3%;
  background: #fff;
  border-radius: 6px;
  transform: perspective(500px) rotateX(8deg) rotateZ(-3deg);
  opacity: 0.9;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.8);
}
.bracket {
  position: absolute;
  width: 22%;
  aspect-ratio: 1;
  border: 3px solid rgba(242, 245, 251, 0.8);
  transition:
    border-color var(--tt-duration-base) var(--tt-ease-standard),
    opacity var(--tt-duration-base) var(--tt-ease-standard);
}
.bracket.tl {
  left: 12%;
  top: 12%;
  border-right: 0;
  border-bottom: 0;
  border-top-left-radius: 14px;
}
.bracket.tr {
  right: 12%;
  top: 12%;
  border-left: 0;
  border-bottom: 0;
  border-top-right-radius: 14px;
}
.bracket.bl {
  left: 12%;
  bottom: 12%;
  border-right: 0;
  border-top: 0;
  border-bottom-left-radius: 14px;
}
.bracket.br {
  right: 12%;
  bottom: 12%;
  border-left: 0;
  border-top: 0;
  border-bottom-right-radius: 14px;
}
.sim-progress {
  height: 4px;
  border-radius: var(--tt-radius-pill);
  background: var(--tt-surface-3);
  overflow: hidden;
}
.sim-progress span {
  display: block;
  height: 100%;
  background: var(--tt-gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
}
.sim-bstatus {
  min-height: 2.8em;
  font-size: 13px;
  font-weight: 500;
  color: var(--tt-text-secondary);
}
.sim-phone-b[data-state='recording'] .rec-dot {
  background: var(--tt-failed-solid);
  box-shadow: 0 0 10px rgba(255, 92, 120, 0.9);
}
.sim-phone-b[data-state='recording'] .sim-rec {
  color: var(--tt-failed-fg);
}
.sim-phone-b[data-state='recording'] .bracket,
.sim-phone-b[data-state='accepted'] .bracket,
.sim-phone-b[data-state='done'] .bracket {
  border-color: var(--tt-brand-signal);
}
.sim-phone-b[data-state='sending'] .bracket {
  border-color: var(--tt-brand-loop);
}
.sim-phone-b[data-state='accepted'] .sim-bstatus,
.sim-phone-b[data-state='done'] .sim-bstatus {
  color: var(--tt-verified-fg);
}
@media (prefers-reduced-motion: no-preference) {
  .sim-phone-b[data-state='idle'] .bracket {
    animation: tt-breathe 2.4s ease-in-out infinite;
  }
  .sim-phone-b[data-state='recording'] .rec-dot {
    animation: tt-blink 1s steps(2, start) infinite;
  }
  .sim-phone-b[data-state='sending'] ~ .sim-link .sim-packet,
  .sim-stage:has(.sim-phone-b[data-state='sending']) .sim-packet {
    animation: tt-packet 380ms var(--tt-ease-standard) both;
  }
  .sim-phone-b[data-state='accepted'] .sim-viewfinder {
    animation: tt-accept 600ms var(--tt-ease-standard);
  }
}
@keyframes tt-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}
@keyframes tt-blink {
  to {
    visibility: hidden;
  }
}
@keyframes tt-packet {
  0% {
    top: 100%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    top: 0%;
    opacity: 0;
  }
}
@keyframes tt-accept {
  0% {
    box-shadow: inset 0 0 0 0 rgba(35, 240, 166, 0);
  }
  30% {
    box-shadow: inset 0 0 0 3px rgba(35, 240, 166, 0.85);
  }
  100% {
    box-shadow: inset 0 0 0 0 rgba(35, 240, 166, 0);
  }
}

.sim-segbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.sim-segbar .cells {
  display: flex;
  flex: 1;
  min-width: 160px;
  gap: 6px;
}
.cell {
  flex: 1;
  height: 10px;
  border-radius: var(--tt-radius-pill);
  border: 1px solid var(--tt-border-strong);
  transition: background var(--tt-duration-base) var(--tt-ease-spring);
}
.cell.is-capturing {
  border-color: var(--tt-brand-loop);
  background: rgba(46, 211, 255, 0.25);
}
.cell.is-validated {
  border-color: transparent;
  background: var(--tt-brand-signal);
  box-shadow: 0 0 10px rgba(35, 240, 166, 0.5);
}
.cell.is-rejected {
  border-color: transparent;
  background: var(--tt-failed-solid);
}
.sim-count {
  font-size: 13px;
  color: var(--tt-text-secondary);
}
.sim-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.sim-tamper-hint {
  margin-top: -14px;
  font-size: 13px;
  color: var(--tt-text-muted);
}
.sim-chain-wrap {
  display: grid;
  gap: 12px;
}
.sim-chain {
  display: grid;
  gap: 12px;
  counter-reset: node;
}
.sim-node {
  position: relative;
  padding: 12px 14px;
  border-radius: var(--tt-radius-lg);
  background: var(--tt-surface-1);
  border: 1px dashed var(--tt-border-default);
  transition:
    border-color var(--tt-duration-base) var(--tt-ease-standard),
    background var(--tt-duration-base) var(--tt-ease-standard),
    box-shadow var(--tt-duration-base) var(--tt-ease-standard);
}
.sim-node::after {
  /* connector to the next node */
  content: '';
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 2px;
  height: 12px;
  translate: -50% 0;
  background: var(--tt-border-default);
}
.sim-node:last-child::after {
  display: none;
}
.sim-node-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.sim-node-name {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--tt-text-secondary);
}
.sim-node-state {
  font-size: 11px;
  font-weight: 600;
  color: var(--tt-text-muted);
}
.sim-node-hashes {
  display: grid;
  gap: 2px;
}
.sim-node-hashes div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.sim-node-hashes dt {
  color: var(--tt-text-muted);
  font-family: var(--tt-font-mono);
  font-size: 11px;
}
.sim-node-hashes .hash {
  font-size: 12px;
}
.sim-node.is-next {
  border-color: rgba(46, 211, 255, 0.5);
}
.sim-node.is-done {
  border-style: solid;
  border-color: var(--tt-verified-border);
  background: linear-gradient(180deg, rgba(35, 240, 166, 0.06), var(--tt-surface-1));
}
.sim-node.is-done .sim-node-state {
  color: var(--tt-verified-fg);
}
.sim-node.is-done::after {
  background: var(--tt-gradient-chain);
}
.sim-node.is-broken {
  border-style: solid;
  border-color: var(--tt-failed-border);
  background: linear-gradient(180deg, rgba(255, 92, 120, 0.08), var(--tt-surface-1));
}
.sim-node.is-broken .sim-node-state {
  color: var(--tt-failed-fg);
}
.sim-node.is-broken .hash-chain,
.sim-node.is-tampered [data-node-seg] {
  color: var(--tt-failed-fg);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.sim-node.is-broken::after {
  background: repeating-linear-gradient(180deg, var(--tt-failed-solid) 0 3px, transparent 3px 6px);
}
.sim-node.is-tampered {
  box-shadow:
    0 0 0 1px var(--tt-failed-border),
    0 0 28px -6px rgba(255, 92, 120, 0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .sim-node.just-added {
    animation: tt-node-in 520ms var(--tt-ease-spring);
  }
}
@keyframes tt-node-in {
  0% {
    transform: scale(0.94);
    box-shadow: 0 0 0 0 rgba(35, 240, 166, 0);
  }
  50% {
    transform: scale(1.02);
    box-shadow:
      0 0 0 4px rgba(35, 240, 166, 0.25),
      0 0 30px rgba(35, 240, 166, 0.35);
  }
  100% {
    transform: none;
  }
}
.sim-status {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--tt-radius-lg);
  border: 1px solid var(--tt-pending-border);
  background: var(--tt-pending-bg);
  transition:
    background var(--tt-duration-base) var(--tt-ease-standard),
    border-color var(--tt-duration-base) var(--tt-ease-standard);
}
.sim-badge {
  flex: none;
  padding: 4px 10px;
  border-radius: var(--tt-radius-pill);
  background: var(--tt-pending-solid);
  color: var(--tt-pending-on-solid);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.sim-status-text {
  display: grid;
  gap: 4px;
  font-size: 15px;
}
.sim-detail {
  font-size: 12px;
  color: var(--tt-text-muted);
}
.sim-detail:empty {
  display: none;
}
.sim-status[data-state='ok'] {
  border-color: var(--tt-verified-border);
  background: var(--tt-verified-bg);
}
.sim-status[data-state='ok'] .sim-badge,
.sim-status[data-state='sealed'] .sim-badge {
  background: var(--tt-verified-solid);
  color: var(--tt-verified-on-solid);
}
.sim-status[data-state='sealed'] {
  border-color: var(--tt-verified-border);
  background: var(--tt-verified-bg);
  box-shadow: var(--tt-verified-glow);
}
.sim-status[data-state='broken'] {
  border-color: var(--tt-failed-border);
  background: var(--tt-failed-bg);
  box-shadow: var(--tt-failed-glow);
}
.sim-status[data-state='broken'] .sim-badge {
  background: var(--tt-failed-solid);
  color: var(--tt-failed-on-solid);
}
.sim-formula {
  padding: 12px 16px;
  border-radius: var(--tt-radius-md);
  background: var(--tt-surface-2);
  border: 1px solid var(--tt-border-subtle);
  color: var(--tt-text-hash);
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
}
.sim-note {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: var(--tt-text-muted);
}
.sim-note .i {
  margin-top: 2px;
}
.sim-noscript {
  color: var(--tt-partial-fg);
}
.sim[data-state='error'] .sim-status {
  border-color: var(--tt-partial-border);
  background: var(--tt-partial-bg);
}
@media (min-width: 768px) {
  .sim-stage {
    grid-template-columns: minmax(0, 1fr) minmax(48px, 120px) minmax(0, 1fr);
    gap: 16px;
  }
  .sim-link {
    height: auto;
    align-self: center;
    width: 100%;
    height: 2px;
  }
  .sim-beam {
    left: 0;
    right: 0;
    top: 50%;
    bottom: auto;
    width: auto;
    height: 2px;
    translate: 0 -50%;
    background: repeating-linear-gradient(
      90deg,
      rgba(46, 211, 255, 0.7) 0 6px,
      transparent 6px 14px
    );
  }
  .sim-packet {
    top: 50%;
    left: 100%;
    translate: -50% -50%;
  }
  @media (prefers-reduced-motion: no-preference) {
    .sim-stage:has(.sim-phone-b[data-state='sending']) .sim-packet {
      animation-name: tt-packet-h;
    }
  }
  .sim-phone {
    padding: 18px;
  }
  .sim-phone-top .overline {
    font-size: 11px;
  }
}
@keyframes tt-packet-h {
  0% {
    left: 100%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    left: 0%;
    opacity: 0;
  }
}
@media (min-width: 1024px) {
  /* Loop on the left, controls on the right, the chain grows below. */
  .sim {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-areas:
      'stage segbar'
      'stage controls'
      'stage hint'
      'stage status'
      'chain chain'
      'formula formula'
      'note note'
      'noscript noscript';
    grid-template-rows: auto auto auto 1fr auto auto auto auto;
    column-gap: 40px;
    row-gap: 20px;
    align-items: start;
  }
  .sim-stage {
    grid-area: stage;
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    gap: 12px;
  }
  .sim-segbar {
    grid-area: segbar;
    padding-top: 8px;
  }
  .sim-controls {
    grid-area: controls;
  }
  .sim-tamper-hint {
    grid-area: hint;
    margin-top: -8px;
  }
  .sim-status {
    grid-area: status;
    align-self: end;
  }
  .sim-chain-wrap {
    grid-area: chain;
  }
  .sim-chain {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .sim-node::after {
    left: auto;
    right: -13px;
    top: 50%;
    bottom: auto;
    width: 12px;
    height: 2px;
    translate: 0 -50%;
  }
  .sim-node.is-broken::after {
    background: repeating-linear-gradient(90deg, var(--tt-failed-solid) 0 3px, transparent 3px 6px);
  }
  .sim-formula {
    grid-area: formula;
  }
  .sim-note {
    grid-area: note;
  }
  .sim-noscript {
    grid-area: noscript;
  }
}
@media (max-width: 1023px) {
  .sim-node {
    padding: 10px 12px;
  }
  .sim-node-head {
    margin-bottom: 4px;
  }
  .sim-chain {
    gap: 10px;
  }
  .sim-node::after {
    bottom: -11px;
    height: 10px;
  }
  .sim-formula {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 420px) {
  .sim-controls .btn-ghost {
    margin-left: 0;
  }
  .sim-phone {
    padding: 10px;
    border-radius: 22px;
  }
  .sim-qr-frame {
    padding: 6px;
  }
}

/* ---------- How it works ---------- */
.how-rail {
  display: none;
}
.how-steps {
  display: grid;
  gap: clamp(56px, 8vw, 112px);
}
.how-step {
  display: grid;
  gap: 32px;
  align-items: center;
}
.how-copy {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
}
.how-num {
  font-family: var(--tt-font-display);
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(46, 211, 255, 0.35);
  margin-bottom: -8px;
}
.how-title {
  font-family: var(--tt-font-display);
  font-size: var(--tt-text-h2);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
  text-wrap: balance;
}
.how-text {
  font-size: var(--tt-text-body-l);
  color: var(--tt-text-secondary);
  max-width: 540px;
}
.fact-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.fact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--tt-font-mono);
  font-size: 13px;
  color: var(--tt-text-secondary);
}
.fact-list .i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 6px;
  background: var(--tt-verified-bg);
  color: var(--tt-brand-signal);
}
.fact-list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.how-art {
  position: relative;
  padding: clamp(16px, 3vw, 32px);
  border-radius: var(--tt-radius-2xl);
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(46, 211, 255, 0.09), transparent 70%),
    var(--tt-surface-1);
  border: 1px solid var(--tt-border-subtle);
  box-shadow: var(--tt-elevation-3);
  overflow: hidden;
}
.how-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--tt-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--tt-grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.how-art img {
  position: relative;
  margin-inline: auto;
}
.how-art-seal img {
  max-width: 380px;
}
.how-art-pair img {
  max-width: 460px;
}
.how-art-seal {
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(35, 240, 166, 0.12), transparent 70%),
    var(--tt-surface-1);
}
.how-art-anchor {
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(139, 92, 246, 0.14), transparent 70%),
    var(--tt-surface-1);
}
@media (min-width: 900px) {
  .how-rail {
    position: sticky;
    top: 76px;
    z-index: 5;
    display: block;
    width: max-content;
    margin: -32px auto 56px;
  }
  .how-rail ol {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    border-radius: var(--tt-radius-pill);
    background: var(--tt-surface-overlay);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--tt-border-subtle);
    box-shadow: var(--tt-elevation-2, 0 8px 24px rgba(0, 0, 0, 0.35));
  }
  .how-rail a {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--tt-radius-pill);
    font-size: 13px;
    font-weight: 600;
    color: var(--tt-text-secondary);
    text-decoration: none;
    transition:
      background-color var(--tt-duration-fast, 160ms) ease,
      color var(--tt-duration-fast, 160ms) ease;
  }
  .how-rail a:hover {
    color: var(--tt-text-primary);
  }
  .how-rail a[aria-current] {
    color: var(--tt-text-primary);
    background: rgba(46, 211, 255, 0.12);
    box-shadow: inset 0 0 0 1px rgba(46, 211, 255, 0.35);
  }
  .how-rail .mono {
    color: var(--tt-brand-loop);
    font-size: 11px;
  }
  .how-step {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
  }
  .how-step:nth-child(even) .how-copy {
    order: 2;
  }
  /* Wide figures (hash chain, Merkle tree): copy on top, art full width so
     the labels inside the artwork stay readable. */
  .how-step.how-step-loop,
  .how-step.how-step-anchor {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 64px;
  }
  .how-step-loop .how-copy,
  .how-step-anchor .how-copy {
    order: 0 !important;
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 48px;
  }
  .how-step-loop .how-copy > *,
  .how-step-anchor .how-copy > * {
    grid-column: 2;
  }
  .how-step-loop .how-num,
  .how-step-anchor .how-num {
    grid-column: 1;
    grid-row: 1 / span 5;
  }
  .how-step-loop .how-art,
  .how-step-anchor .how-art {
    grid-column: 1 / -1;
  }
}

/* ---------- Use cases ---------- */
.cases-grid {
  display: grid;
  gap: 16px;
}
.case-card {
  display: grid;
  gap: 14px;
  align-content: start;
  overflow: hidden;
}
.case-card::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 211, 255, 0.14), transparent 70%);
  pointer-events: none;
}
.case-text {
  color: var(--tt-text-secondary);
}
.case-proof {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--tt-border-subtle);
  font-size: 14px;
  color: var(--tt-text-primary);
}
.case-proof .overline {
  font-size: 10px;
}
.cases-footnote {
  display: flex;
  gap: 10px;
  justify-content: center;
  max-width: 720px;
  margin: 32px auto 0;
  font-size: 13px;
  color: var(--tt-text-muted);
  text-align: left;
}
.cases-footnote .i {
  margin-top: 2px;
}
@media (min-width: 640px) {
  .cases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .case-card {
    grid-column: span 2;
  }
  .case-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

/* ---------- Trust ---------- */
.trust-compare {
  display: grid;
  gap: 16px;
}
.trust-card {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: clamp(24px, 3vw, 36px);
}
.trust-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--tt-font-display);
  font-size: var(--tt-text-h4);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.state-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex: none;
}
.state-verified {
  color: var(--tt-verified-fg);
  background: var(--tt-verified-bg);
  box-shadow: inset 0 0 0 1px var(--tt-verified-border);
}
.state-pending {
  color: var(--tt-pending-fg);
  background: var(--tt-pending-bg);
  box-shadow: inset 0 0 0 1px var(--tt-pending-border);
}
.trust-proves {
  border-color: rgba(35, 240, 166, 0.25);
  background: linear-gradient(180deg, rgba(35, 240, 166, 0.05), var(--tt-surface-1) 50%);
}
.trust-limits {
  border-left: 3px solid var(--tt-pending-solid);
  background: var(--tt-surface-2);
}
.check-list {
  display: grid;
  gap: 14px;
}
.check-list li {
  display: flex;
  gap: 12px;
  color: var(--tt-text-secondary);
}
.check-list .i {
  margin-top: 3px;
}
.i-ok {
  color: var(--tt-brand-signal);
}
.i-limit {
  color: var(--tt-pending-fg);
}
.trust-stack {
  display: grid;
  gap: 16px;
  justify-items: center;
  margin-top: 56px;
  text-align: center;
}
.stack-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.stack-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--tt-radius-md);
  background: var(--tt-surface-2);
  border: 1px solid var(--tt-border-subtle);
  transition:
    border-color var(--tt-duration-fast) var(--tt-ease-standard),
    box-shadow var(--tt-duration-fast) var(--tt-ease-standard);
}
.stack-chip:hover {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 24px -6px rgba(139, 92, 246, 0.5);
}
.stack-name {
  font-family: var(--tt-font-display);
  font-weight: 600;
}
.stack-detail {
  font-size: 11px;
  color: var(--tt-text-hash);
}
.privacy-points {
  display: grid;
  gap: 12px;
  max-width: 980px;
  margin: 40px auto 0;
}
.privacy-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--tt-text-secondary);
}
.privacy-points .icon-tile {
  color: var(--tt-brand-signal);
}
@media (min-width: 900px) {
  .trust-compare {
    grid-template-columns: 1fr 1fr;
  }
  .privacy-points {
    grid-template-columns: repeat(3, 1fr);
  }
}

.assurance-list {
  display: grid;
  gap: 14px;
  color: var(--tt-text-secondary);
}
.assurance-list li {
  position: relative;
  padding-left: 30px;
}
.assurance-list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 4px;
  width: 6px;
  height: 11px;
  border: solid var(--tt-brand-signal);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.assurance-list strong {
  color: var(--tt-text-primary);
}

/* ---------- Live proof ---------- */
.live {
  display: grid;
  gap: 16px;
}
.live-head {
  display: flex;
  justify-content: center;
}
.live-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--tt-radius-pill);
  border: 1px solid var(--tt-border-default);
  background: var(--tt-surface-2);
  font-family: var(--tt-font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--tt-text-secondary);
}
.live-status[data-state='offline'] .live-dot,
.live-status[data-state='loading'] .live-dot {
  background: var(--tt-text-muted);
}
.live-status[data-state='offline'] .live-dot::after,
.live-status[data-state='loading'] .live-dot::after {
  border-color: var(--tt-text-muted);
}
.live-status[data-state='demoPending'] .live-dot {
  background: var(--tt-partial-solid);
}
.live-status[data-state='demoPending'] .live-dot::after {
  border-color: var(--tt-partial-solid);
}
.live-status[data-state='live'] {
  color: var(--tt-verified-fg);
  border-color: var(--tt-verified-border);
  background: var(--tt-verified-bg);
}
.live-note {
  max-width: 640px;
  margin: 0 auto;
  font-size: 13px;
  text-align: center;
  color: var(--tt-text-muted);
}
.live-grid {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}
.live-card {
  display: grid;
  gap: 20px;
  align-content: start;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--tt-radius-2xl);
  border: 1px solid transparent;
  background:
    linear-gradient(var(--tt-surface-1), var(--tt-surface-1)) padding-box,
    linear-gradient(
        140deg,
        rgba(35, 240, 166, 0.65),
        rgba(46, 211, 255, 0.35),
        rgba(139, 92, 246, 0.5)
      )
      border-box;
  box-shadow:
    var(--tt-elevation-3),
    0 0 80px -30px rgba(35, 240, 166, 0.45);
}
.live-card-head {
  display: flex;
  gap: 16px;
  align-items: center;
}
.seal-disc {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--tt-verified-fg);
  background: rgba(35, 240, 166, 0.14);
  box-shadow:
    inset 0 0 0 2px var(--tt-verified-border),
    0 0 24px rgba(35, 240, 166, 0.3);
}
.live-card-title {
  font-family: var(--tt-font-display);
  font-size: var(--tt-text-h4);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.live-pending {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--tt-radius-lg);
  background: var(--tt-partial-bg);
  border: 1px solid var(--tt-partial-border);
  color: var(--tt-partial-fg);
  font-weight: 500;
}
.live-card[data-state='pending'] .live-pending {
  display: flex;
}
.live-card[data-state='pending'] .live-facts,
.live-card[data-state='pending'] .badge-row {
  display: none;
}
.live-facts {
  display: grid;
  gap: 1px;
  border-radius: var(--tt-radius-lg);
  overflow: hidden;
  background: var(--tt-border-subtle);
  border: 1px solid var(--tt-border-subtle);
}
.fact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  background: var(--tt-surface-1);
}
.fact dt {
  font-size: 13px;
  color: var(--tt-text-muted);
}
.fact dd {
  display: flex;
  align-items: center;
  text-align: right;
  font-size: 14px;
  font-weight: 500;
  min-width: 0;
}
.fact .fact-value {
  overflow-wrap: anywhere;
}
.live[data-sample='true'] .live-card .fact-value,
.live[data-sample='true'] .live-card .hash,
.live[data-sample='true'] .stat-value,
.live[data-sample='true'] .ledger-row {
  opacity: 0.62;
}
.live.is-loading .fact-value,
.live.is-loading .live-card .hash,
.live.is-loading .stat-value {
  background: linear-gradient(90deg, var(--tt-surface-2), var(--tt-surface-3), var(--tt-surface-2));
  background-size: 200% 100%;
  color: transparent;
  border-radius: 6px;
}
@media (prefers-reduced-motion: no-preference) {
  .live.is-loading .fact-value,
  .live.is-loading .live-card .hash,
  .live.is-loading .stat-value {
    animation: tt-skeleton 1.2s linear infinite;
  }
}
@keyframes tt-skeleton {
  to {
    background-position: -200% 0;
  }
}
.live-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.live-side {
  display: grid;
  gap: 16px;
  align-content: start;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.stat-tile {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: var(--tt-radius-xl);
  background: var(--tt-surface-1);
  border: 1px solid var(--tt-border-subtle);
  box-shadow: var(--tt-elevation-1);
}
.stat-tile .overline {
  font-size: 10px;
}
.stat-value {
  font-family: var(--tt-font-display);
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-tile:last-child .stat-value {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.stat-accent .stat-value {
  color: var(--tt-brand-signal);
  text-shadow: var(--tt-glow-text-signal);
}
.stat-hint {
  margin-top: -6px;
  font-size: 12px;
  color: var(--tt-text-muted);
  text-align: right;
}
.ledger {
  padding: 18px 20px;
  border-radius: var(--tt-radius-xl);
  background: var(--tt-surface-1);
  border: 1px solid var(--tt-border-subtle);
}
.ledger-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  margin-bottom: 12px;
}
.ledger-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.ledger-title .i {
  color: var(--tt-brand-chain-text);
}
.ledger-sub {
  font-size: 12px;
  color: var(--tt-text-muted);
}
.ledger-list {
  display: grid;
}
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--tt-border-subtle);
  font-size: 12px;
  color: var(--tt-text-muted);
}
.ledger-row .hash {
  font-size: 12px;
}
.ledger-leaves,
.ledger-time {
  text-align: right;
}
.ledger-block {
  color: var(--tt-text-secondary);
}
.ledger-row.is-new {
  animation: tt-row-in 900ms var(--tt-ease-standard);
}
@keyframes tt-row-in {
  from {
    background: rgba(139, 92, 246, 0.25);
  }
  to {
    background: transparent;
  }
}
.ledger-empty {
  font-size: 13px;
  color: var(--tt-text-muted);
}
@media (min-width: 1024px) {
  .live-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 24px;
  }
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 10px;
}
.faq-item {
  border-radius: var(--tt-radius-lg);
  background: var(--tt-surface-1);
  border: 1px solid var(--tt-border-subtle);
  transition: border-color var(--tt-duration-base) var(--tt-ease-standard);
}
.faq-item[open] {
  border-color: var(--tt-border-default);
  background: var(--tt-surface-2);
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  border-radius: var(--tt-radius-lg);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--tt-surface-3);
  color: var(--tt-brand-loop);
  transition: transform var(--tt-duration-base) var(--tt-ease-standard);
}
.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 20px 20px;
  color: var(--tt-text-secondary);
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px);
  border-radius: var(--tt-radius-2xl);
  text-align: center;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, #0f1730, #0a0f1c) padding-box,
    linear-gradient(
        120deg,
        rgba(139, 92, 246, 0.7),
        rgba(46, 211, 255, 0.6),
        rgba(35, 240, 166, 0.7)
      )
      border-box;
  box-shadow: 0 40px 120px -40px rgba(46, 211, 255, 0.4);
}
.cta-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 70% at 50% 0%, rgba(46, 211, 255, 0.22), transparent 70%),
    radial-gradient(40% 60% at 90% 100%, rgba(35, 240, 166, 0.16), transparent 70%),
    radial-gradient(40% 60% at 10% 100%, rgba(139, 92, 246, 0.2), transparent 70%);
}
.cta-mark {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 24px rgba(35, 240, 166, 0.5));
}
.cta-title {
  font-family: var(--tt-font-display);
  font-size: var(--tt-text-display-l);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 820px;
  text-wrap: balance;
}
.cta-lead {
  max-width: 560px;
  font-size: var(--tt-text-body-l);
  color: var(--tt-text-secondary);
}
.cta-actions {
  justify-content: center;
}

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: -64px;
  padding: calc(64px + clamp(40px, 6vw, 88px)) 0 clamp(32px, 5vw, 64px);
}
.page-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  justify-items: start;
}
.page-title {
  font-family: var(--tt-font-display);
  font-size: var(--tt-text-display-l);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 900px;
  text-wrap: balance;
}
.page-lead {
  max-width: 720px;
  font-size: var(--tt-text-body-l);
  color: var(--tt-text-secondary);
}
.page-meta {
  font-size: 12px;
  color: var(--tt-text-muted);
}
.page-body {
  padding-bottom: var(--tt-section-y);
}

/* ---------- Technology ---------- */
.formula {
  margin: 0;
  border-radius: var(--tt-radius-lg);
  background: #070a13;
  border: 1px solid var(--tt-border-subtle);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.formula pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.75;
}
.formula code {
  color: var(--tt-text-secondary);
  font-size: inherit;
  overflow-wrap: normal;
}
.f-line {
  white-space: pre;
}
.f-fn {
  color: var(--tt-brand-loop);
}
.f-str {
  color: var(--tt-brand-signal);
}
.f-op {
  color: var(--tt-text-muted);
}
.f-num {
  color: #ffb547;
}
.f-id {
  color: var(--tt-text-hash);
}
.f-com {
  color: var(--tt-text-muted);
  font-style: italic;
}
.formula-hero {
  margin-top: 8px;
  min-width: min(100%, 420px);
}
.doc-layout {
  display: grid;
  gap: 32px;
  padding-bottom: var(--tt-section-y);
}
.doc-toc {
  display: none;
}
.doc-body {
  display: grid;
  gap: clamp(56px, 7vw, 96px);
  min-width: 0;
}
.doc-section {
  display: grid;
  gap: 20px;
  scroll-margin-top: 88px;
  min-width: 0;
}
.doc-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--tt-font-display);
  font-size: var(--tt-text-h2);
  font-weight: 600;
  letter-spacing: -0.025em;
}
.doc-num {
  font-size: 13px;
  color: var(--tt-brand-loop);
  letter-spacing: 0.1em;
}
.doc-lead {
  max-width: 760px;
  font-size: var(--tt-text-body-l);
  color: var(--tt-text-secondary);
}
.doc-note {
  display: flex;
  gap: 10px;
  max-width: 760px;
  padding: 14px 16px;
  border-radius: var(--tt-radius-md);
  background: var(--tt-surface-2);
  border-left: 3px solid var(--tt-brand-loop);
  font-size: 14px;
  color: var(--tt-text-secondary);
}
.doc-note .i {
  margin-top: 3px;
  color: var(--tt-brand-loop);
}
.doc-figure {
  padding: clamp(12px, 3vw, 28px);
  border-radius: var(--tt-radius-xl);
  background: var(--tt-surface-1);
  border: 1px solid var(--tt-border-subtle);
}
.doc-split {
  display: grid;
  gap: 24px;
  align-items: center;
}
.primitive-grid {
  display: grid;
  gap: 12px;
}
.primitive {
  display: grid;
  gap: 8px;
  align-content: start;
}
.primitive-name {
  font-family: var(--tt-font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.primitive-text {
  font-size: 14px;
  color: var(--tt-text-secondary);
}
.primitive-ref {
  font-size: 11px;
  color: var(--tt-text-hash);
  letter-spacing: 0.04em;
}
.anchor-modes {
  display: grid;
  gap: 12px;
}
.anchor-mode {
  display: grid;
  gap: 12px;
  align-content: start;
}
.anchor-mode .badge {
  justify-self: start;
}
.anchor-mode p:last-child {
  font-size: 14px;
  color: var(--tt-text-secondary);
}
.table-wrap {
  overflow-x: auto;
  border-radius: var(--tt-radius-lg);
  border: 1px solid var(--tt-border-subtle);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--tt-border-subtle);
}
.data-table thead th {
  font-family: var(--tt-font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tt-text-muted);
  background: var(--tt-surface-2);
}
.data-table tbody th {
  font-weight: 500;
}
.data-table td {
  color: var(--tt-text-secondary);
}
.data-table tbody tr:last-child > * {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.check-steps {
  display: grid;
  gap: 8px;
  counter-reset: check;
}
.check-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 14px;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--tt-radius-md);
  background: var(--tt-surface-1);
  border: 1px solid var(--tt-border-subtle);
}
.check-node {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tt-verified-bg);
  border: 1px solid var(--tt-verified-border);
  color: var(--tt-verified-fg);
  font-size: 11px;
}
.check-label {
  font-weight: 500;
}
.check-steps code {
  font-size: 12px;
}
.privacy-grid {
  display: grid;
  gap: 12px;
}
.privacy-grid .card {
  display: grid;
  gap: 8px;
  align-content: start;
}
.privacy-grid .card p:last-child {
  font-size: 14px;
  color: var(--tt-text-secondary);
}
@media (min-width: 768px) {
  .primitive-grid,
  .anchor-modes,
  .privacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .check-steps li {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .check-node {
    grid-row: auto;
  }
  .doc-split {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  }
}
@media (min-width: 1024px) {
  .doc-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 64px;
  }
  .doc-toc {
    display: block;
    position: sticky;
    top: 96px;
    align-self: start;
  }
  .doc-toc ol {
    display: grid;
    gap: 2px;
    margin-top: 14px;
    border-left: 1px solid var(--tt-border-subtle);
  }
  .doc-toc a {
    display: flex;
    gap: 10px;
    padding: 7px 14px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--tt-text-secondary);
    text-decoration: none;
    font-size: 14px;
  }
  .doc-toc a:hover {
    color: var(--tt-text-primary);
    border-left-color: var(--tt-brand-loop);
  }
  .doc-toc .mono {
    font-size: 11px;
    color: var(--tt-text-muted);
    padding-top: 2px;
  }
  .primitive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .privacy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Download ---------- */
.dl-grid {
  display: grid;
  gap: 16px;
  align-items: start;
}
.dl-primary {
  display: grid;
  gap: 24px;
  padding: clamp(20px, 3vw, 36px);
}
.dl-primary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 10px 30px -8px rgba(35, 240, 166, 0.45);
}
.dl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 6px;
  font-size: 13px;
  color: var(--tt-text-muted);
}
.dl-reco {
  margin-left: auto;
}
.store-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 12px 22px;
  border-radius: var(--tt-radius-lg);
  background: var(--tt-accent-primary);
  color: var(--tt-accent-on-primary);
  text-decoration: none;
  transition:
    background var(--tt-duration-fast) var(--tt-ease-standard),
    box-shadow var(--tt-duration-fast) var(--tt-ease-standard),
    transform var(--tt-duration-instant) var(--tt-ease-standard);
}
.store-btn:hover {
  background: var(--tt-accent-primary-hover);
  box-shadow: var(--tt-glow-signal);
}
.store-btn:active {
  transform: scale(0.99);
}
.store-glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(3, 20, 13, 0.12);
}
.store-text {
  display: grid;
  gap: 2px;
}
.store-over {
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.78;
}
.store-label {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.dl-fingerprints {
  display: grid;
  gap: 14px;
}
.dl-fingerprints dl {
  display: grid;
  gap: 10px;
}
.fp-row {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--tt-radius-md);
  background: var(--tt-surface-2);
  border: 1px solid var(--tt-border-subtle);
}
.fp-row dt {
  font-size: 13px;
  color: var(--tt-text-muted);
}
.fp-row dd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.hash-full {
  font-size: 13px;
  line-height: 1.6;
  word-spacing: 0.1em;
  overflow-wrap: anywhere;
}
.dl-side {
  display: grid;
  gap: 16px;
}
.dl-side .card {
  display: grid;
  gap: 14px;
}
.dl-desktop {
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
}
.qr-white {
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}
.cmd-list {
  display: grid;
  gap: 12px;
}
.cmd-list li {
  display: grid;
  gap: 6px;
}
.cmd-os {
  font-size: 10px;
}
.cmd-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 8px 8px 12px;
  border-radius: var(--tt-radius-md);
  background: #070a13;
  border: 1px solid var(--tt-border-subtle);
}
.cmd-line code {
  font-size: 12px;
  color: var(--tt-brand-signal);
}
.cmd-line code::before {
  content: '$ ';
  color: var(--tt-text-muted);
}
.dl-ios p {
  color: var(--tt-text-secondary);
}
.dl-two {
  display: grid;
  gap: 40px;
  margin-top: 56px;
}
.timeline {
  display: grid;
  gap: 0;
}
.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 24px;
}
.timeline-step::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, rgba(35, 240, 166, 0.6), rgba(35, 240, 166, 0.1));
}
.timeline-step:last-child::before {
  display: none;
}
.timeline-node {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tt-verified-bg);
  border: 1.5px solid var(--tt-verified-border);
  color: var(--tt-verified-fg);
  font-size: 12px;
  font-weight: 600;
  flex: none;
}
.timeline-title {
  font-weight: 600;
  margin-bottom: 4px;
}
.timeline-text {
  font-size: 14px;
  color: var(--tt-text-secondary);
}
.req-list {
  display: grid;
  gap: 12px;
}
.req-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--tt-text-secondary);
}
.req-list .icon-tile {
  color: var(--tt-brand-loop);
}
.dl-history {
  margin-top: 56px;
}
.history-list {
  display: grid;
  border-radius: var(--tt-radius-lg);
  border: 1px solid var(--tt-border-subtle);
  overflow: hidden;
}
.history-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--tt-border-subtle);
  background: var(--tt-surface-1);
  font-size: 14px;
}
.history-row:last-child {
  border-bottom: 0;
}
.history-version {
  font-weight: 600;
}
.history-row time {
  color: var(--tt-text-muted);
}
.history-notes {
  flex: 1;
  min-width: 160px;
  color: var(--tt-text-secondary);
}
.dl-empty {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(32px, 6vw, 64px) 24px;
  text-align: center;
}
.dl-empty p {
  max-width: 460px;
  color: var(--tt-text-secondary);
}
.empty-art {
  width: 120px;
  height: 120px;
  opacity: 0.6;
}
.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
@media (min-width: 1024px) {
  .dl-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 24px;
  }
  .dl-two {
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
  }
}

/* ---------- Join ---------- */
.join-page {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 64px - 80px);
  padding: clamp(24px, 6vw, 72px) 0;
}
.join-page .container {
  position: relative;
  z-index: 1;
}
.join-card {
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: clamp(24px, 5vw, 40px);
  border-radius: var(--tt-radius-2xl);
  box-shadow: var(--tt-elevation-4);
}
.join-card > .join-state {
  width: 100%;
  display: grid;
  gap: 14px;
}
.join-mark {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 0 20px rgba(35, 240, 166, 0.45));
}
.join-title {
  font-family: var(--tt-font-display);
  font-size: var(--tt-text-h1);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
}
.join-lead {
  color: var(--tt-text-secondary);
  font-size: var(--tt-text-body-l);
}
.join-op {
  display: flex;
  align-items: center;
  gap: 10px;
}
.join-steps {
  display: grid;
  gap: 10px;
  margin: 4px 0;
}
.join-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--tt-text-secondary);
  font-size: 15px;
}
.join-install {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--tt-border-subtle);
}
.join-install-title {
  font-weight: 600;
}
.join-foot {
  display: grid;
  gap: 6px;
  width: 100%;
  padding-top: 12px;
  border-top: 1px solid var(--tt-border-subtle);
}
.join-foot li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.join-foot .i {
  margin-top: 3px;
  color: var(--tt-brand-signal);
}
.join-switch {
  justify-self: center;
}

/* ---------- Legal ---------- */
.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border-radius: var(--tt-radius-pill);
  background: var(--tt-surface-1);
  border: 1px solid var(--tt-border-subtle);
}
.legal-tabs a {
  padding: 8px 14px;
  border-radius: var(--tt-radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--tt-text-secondary);
  text-decoration: none;
}
.legal-tabs a[aria-current='page'] {
  background: var(--tt-surface-3);
  color: var(--tt-text-primary);
}
.legal-body {
  display: grid;
  gap: 40px;
  padding-bottom: var(--tt-section-y);
}
.legal-toc {
  padding: 18px 20px;
  border-radius: var(--tt-radius-lg);
  background: var(--tt-surface-1);
  border: 1px solid var(--tt-border-subtle);
}
.legal-toc ol {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  list-style: decimal inside;
  color: var(--tt-text-muted);
  font-size: 14px;
}
.legal-toc a {
  color: var(--tt-text-secondary);
}
.legal-section {
  display: grid;
  gap: 14px;
  scroll-margin-top: 88px;
}
.legal-section h2 {
  font-family: var(--tt-font-display);
  font-size: var(--tt-text-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.legal-section p,
.legal-list li {
  color: var(--tt-text-secondary);
  text-wrap: pretty;
}
.legal-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  list-style: disc;
}
.legal-list li::marker {
  color: var(--tt-brand-loop);
}
.legal-dl {
  display: grid;
  border-radius: var(--tt-radius-lg);
  border: 1px solid var(--tt-border-subtle);
  overflow: hidden;
}
.legal-dl div {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--tt-border-subtle);
  background: var(--tt-surface-1);
}
.legal-dl div:last-child {
  border-bottom: 0;
}
.legal-dl dt {
  font-size: 13px;
  color: var(--tt-text-muted);
}
@media (min-width: 640px) {
  .legal-dl div {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
  }
}

/* ---------- 404 ---------- */
.nf-page {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 8vw, 120px) 0;
}
.nf-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 20px;
  text-align: center;
}
.nf-code {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tt-font-display);
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(46, 211, 255, 0.55);
}
.nf-code img {
  width: 0.72em;
  height: 0.72em;
  filter: drop-shadow(0 0 30px rgba(35, 240, 166, 0.45));
}
@media (prefers-reduced-motion: no-preference) {
  .nf-code img {
    animation: tt-float 5s ease-in-out infinite;
  }
}
.nf-links {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 560px;
}
.nf-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  color: var(--tt-text-primary);
  text-decoration: none;
  font-weight: 500;
}
.nf-link > .i:first-child {
  color: var(--tt-brand-loop);
}
.nf-arrow {
  margin-left: auto;
  color: var(--tt-text-muted);
}
@media (min-width: 640px) {
  .nf-links {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .lang-banner,
  .hero-bg,
  .hero-strip,
  .site-footer,
  .copy-btn {
    display: none !important;
  }
  body,
  .section,
  .card {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
}

/* ---------- Forced colours (Windows high contrast) ---------- */
@media (forced-colors: active) {
  .btn,
  .card,
  .badge,
  .chip {
    border: 1px solid CanvasText;
  }
  .grad-text {
    color: CanvasText;
    background: none;
  }
}

/* ==========================================================================
   Polish pass (W2): responsive refinements found in screenshot review.
   ========================================================================== */

/* Inner-page heroes fade out instead of ending on a hard edge. */
.page-hero .hero-bg {
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
  mask-image: linear-gradient(180deg, #000 55%, transparent);
}

/* Formulas wrap with a hanging indent: no hidden horizontal scroll. */
.formula pre {
  white-space: normal;
  overflow-x: visible;
}
.formula .f-line {
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding-left: 2ch;
  text-indent: -2ch;
}

/* Long sentences read better in the text face than in mono. */
.doc-section .fact-list li {
  align-items: flex-start;
  font-family: var(--tt-font-body);
  font-size: 15px;
  line-height: 1.5;
}
.doc-section .fact-list .i {
  flex: none;
  margin-top: 1px;
}
.doc-section .fact-list-inline li {
  align-items: center;
}

/* Balanced multi-line overlines (no orphan word). */
.overline {
  text-wrap: balance;
}

/* Data table: stacked cards on phones, every value keeps its label. */
@media (max-width: 719px) {
  .table-wrap {
    overflow: visible;
    border: 0;
  }
  .data-table {
    min-width: 0;
  }
  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }
  .data-table tbody {
    display: grid;
    gap: 10px;
  }
  .data-table tr {
    padding: 14px 16px;
    border-radius: var(--tt-radius-lg);
    background: var(--tt-surface-1);
    border: 1px solid var(--tt-border-subtle);
  }
  .data-table th,
  .data-table td,
  .data-table tbody tr:last-child > * {
    padding: 0;
    border: 0;
  }
  .data-table tbody th {
    margin-bottom: 8px;
    overflow-wrap: anywhere;
  }
  .data-table td {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px;
    padding-top: 4px;
  }
  .data-table td::before {
    content: attr(data-label);
    font-family: var(--tt-font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tt-text-muted);
    padding-top: 3px;
  }
}

/* Live proof facts: label above value on phones. */
@media (max-width: 559px) {
  .fact {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .fact dd {
    text-align: left;
    width: 100%;
    justify-content: space-between;
  }
  .live-card-head {
    align-items: flex-start;
  }
  .seal-disc {
    width: 44px;
    height: 44px;
  }
}
.copy-btn {
  flex: none;
}

/* Calmer rhythm before the closing call to action. */
.section-final {
  padding-top: clamp(24px, 4vw, 48px);
}

/* Download: icon and title stay on one row. */
.dl-primary-head > div {
  flex: 1 1 180px;
  min-width: 0;
}

/* Legal tabs: one scrollable row instead of a wrapped pill. */
.legal-tabs {
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.legal-tabs::-webkit-scrollbar {
  display: none;
}
.legal-tabs a {
  flex: none;
  white-space: nowrap;
}
@media (max-width: 479px) {
  .legal-tabs a {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* Figures that are wide by nature scroll sideways on phones. */
@media (max-width: 719px) {
  .how-art-loop,
  .doc-figure-wide {
    overflow-x: auto;
    padding: 16px;
  }
  .how-art-loop img,
  .doc-figure-wide img {
    width: 640px;
    max-width: none;
  }
}

@media (max-width: 479px) {
  .sim-phone-top .overline {
    letter-spacing: 0.04em;
    font-size: 9.5px;
  }
}
@media (max-width: 1023px) {
  /* Keep the verdict next to the controls that produced it. */
  .sim-chain-wrap {
    order: 1;
  }
  .sim-formula,
  .sim-note,
  .sim-noscript {
    order: 2;
  }
}
@media (max-width: 719px) {
  .data-table td:not([data-label]) {
    grid-template-columns: minmax(0, 1fr);
  }
  .data-table td:not([data-label])::before {
    content: none;
  }
}
@media (max-width: 479px) {
  /* Three equal tabs; the long label may wrap instead of being cut. */
  .legal-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-radius: var(--tt-radius-lg);
    overflow: visible;
  }
  .legal-tabs a {
    display: grid;
    place-items: center;
    padding: 8px 6px;
    border-radius: var(--tt-radius-md);
    text-align: center;
    white-space: normal;
    line-height: 1.25;
  }
}

/* ---------- Scroll-spy, anchors, marquee pause ---------- */
.how-step {
  /* Clears the sticky header and the sticky step pill when jumped to. */
  scroll-margin-top: 150px;
}
.doc-toc a[aria-current] {
  color: var(--tt-text-primary);
  border-left-color: var(--tt-brand-signal);
}
.doc-toc a[aria-current] .mono {
  color: var(--tt-brand-signal);
}
@media (min-width: 900px) {
  /* The numerals sit below the sticky pill's band instead of under it. */
  .how-num {
    padding-top: 12px;
  }
}
/* WCAG 2.2.2: the hash marquee stops while hovered or focused. */
.hero-strip:hover .strip-track,
.hero-strip:focus-within .strip-track {
  animation-play-state: paused;
}
@media (max-width: 719px) {
  .how-art-anchor {
    overflow-x: auto;
    padding: 16px;
  }
  .how-art-anchor img {
    width: 720px;
    max-width: none;
  }
}

/* Live proof: counters block / "ledger open" line (before the first real proof). */
.stat-block {
  display: grid;
  gap: 16px;
}
.ledger-open {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--tt-radius-xl);
  background:
    linear-gradient(90deg, rgba(35, 240, 166, 0.08), transparent 70%), var(--tt-surface-1);
  border: 1px solid var(--tt-verified-border, rgba(35, 240, 166, 0.35));
  font-family: var(--tt-font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--tt-text-secondary);
}

/* Simulator: refused segment (broken chain) and phone A after sealing. */
.sim-phone-b[data-state='refused'] .bracket {
  border-color: var(--tt-failed-solid);
}
.sim-phone-b[data-state='refused'] .sim-bstatus {
  color: var(--tt-failed-fg);
}
.sim-phone-a.is-done .sim-qr {
  opacity: 0.18;
  filter: grayscale(1);
}
.sim-phone-a.is-done [data-sim-code] {
  color: var(--tt-verified-fg);
  border-color: var(--tt-verified-border);
}

/* ---------- Hero: the capture loop (HTML phones, live QR) ----------
   Geometry in container units (cqw) so the scene scales as one piece, while
   every label keeps a real font size (>= 11px). Phone A shows the code,
   phone B films it; hero.js drives data-phase: film -> hash -> issue. */
.hero-loop {
  container-type: inline-size;
  isolation: isolate;
}
.hero-loop .hero-ring,
.hero-loop .hero-orbit {
  pointer-events: none;
}
.hl-phone {
  --hl-w: 29cqw;
  position: absolute;
  z-index: 2;
  top: 50%;
  width: var(--hl-w);
  aspect-ratio: 300 / 540;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: calc(var(--hl-w) * 0.04);
  padding: calc(var(--hl-w) * 0.1) calc(var(--hl-w) * 0.07) calc(var(--hl-w) * 0.07);
  border-radius: calc(var(--hl-w) * 0.15);
  background: #080b14;
  border: 1px solid #3a4766;
  font-size: clamp(11px, calc(var(--hl-w) * 0.046), 13px);
  line-height: 1.3;
  color: var(--tt-text-secondary);
  overflow: hidden;
}
.hl-a {
  left: 13%;
  translate: 0 -50%;
  rotate: 4deg;
  box-shadow:
    0 0 0 5px #0b101d,
    0 0 0 6px #1e2740,
    0 30px 60px -10px rgba(0, 0, 0, 0.7),
    0 0 70px -10px rgba(46, 211, 255, 0.4);
}
.hl-b {
  right: 13%;
  translate: 0 -50%;
  rotate: -4deg;
  background: linear-gradient(180deg, #16233d, #0a111f);
  box-shadow:
    0 0 0 5px #0b101d,
    0 0 0 6px #1e2740,
    0 30px 60px -10px rgba(0, 0, 0, 0.7),
    0 0 70px -10px rgba(35, 240, 166, 0.35);
}
.hl-notch {
  position: absolute;
  top: 4.5cqw;
  left: 50%;
  width: 22cqw;
  height: 2.6cqw;
  translate: -50% 0;
  border-radius: 99px;
  background: #1b2438;
}
.hl-label {
  display: flex;
  gap: 0.5em;
  align-items: center;
  font-size: clamp(11px, 4.6cqw, 12px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hl-label {
  color: var(--tt-brand-loop);
}
.hl-sep {
  opacity: 0.6;
}
.hl-qr {
  padding: 3cqw;
  border-radius: 7cqw;
  background: var(--tt-qr-bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.hl-qr-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.hl-cells {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.4cqw;
}
.hl-cell {
  height: 3cqw;
  min-height: 4px;
  border-radius: 99px;
  border: 1px solid #3a4766;
}
.hl-cell.is-done {
  background: var(--tt-brand-signal);
  border-color: var(--tt-brand-signal);
  box-shadow: 0 0 8px -2px rgba(35, 240, 166, 0.8);
}
.hl-cell.is-now {
  border-color: var(--tt-brand-loop);
  background: rgba(46, 211, 255, 0.25);
}
.hl-title {
  margin-top: -1cqw;
  font-weight: 600;
  font-size: clamp(12px, 5.4cqw, 14px);
  color: var(--tt-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hl-sub {
  margin-top: -3.4cqw;
  color: var(--tt-text-secondary);
  font-variant-numeric: tabular-nums;
}
.hl-prev {
  display: flex;
  gap: 0.6em;
  align-items: center;
  margin-top: auto;
  padding: 3cqw 4cqw;
  border-radius: 4cqw;
  background: #0d1220;
  border: 1px solid #2a3550;
  font-size: clamp(11px, 4.4cqw, 12px);
  color: var(--tt-text-muted);
  white-space: nowrap;
  overflow: hidden;
}
.hl-prev-hash {
  color: #a88bff;
}
.hl-rec {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-variant-numeric: tabular-nums;
}
.hl-rec-dot {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: #ff5c78;
  box-shadow: 0 0 8px rgba(255, 92, 120, 0.9);
}
.hl-label-b {
  color: var(--tt-brand-signal);
}
.hl-view {
  position: relative;
  aspect-ratio: 1;
  margin-inline: 2cqw;
  display: grid;
  place-items: center;
}
.hl-mini {
  width: 62%;
  padding: 2.4cqw;
  border-radius: 4cqw;
  background: #05070d;
  border: 1px solid #2a3550;
  rotate: -4deg;
}
.hl-mini .hl-qr-svg {
  border-radius: 2cqw;
  opacity: 0.94;
}
.hl-bracket {
  position: absolute;
  width: 18%;
  aspect-ratio: 1;
  border: 0 solid var(--tt-brand-signal);
  filter: drop-shadow(0 0 6px rgba(35, 240, 166, 0.6));
}
.hl-bracket.tl {
  top: 6%;
  left: 6%;
  border-top-width: 3px;
  border-left-width: 3px;
  border-top-left-radius: 5cqw;
}
.hl-bracket.tr {
  top: 6%;
  right: 6%;
  border-top-width: 3px;
  border-right-width: 3px;
  border-top-right-radius: 5cqw;
}
.hl-bracket.bl {
  bottom: 6%;
  left: 6%;
  border-bottom-width: 3px;
  border-left-width: 3px;
  border-bottom-left-radius: 5cqw;
}
.hl-bracket.br {
  bottom: 6%;
  right: 6%;
  border-bottom-width: 3px;
  border-right-width: 3px;
  border-bottom-right-radius: 5cqw;
}
.hl-scan {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 10%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--tt-brand-signal), transparent);
  opacity: 0;
}
.hl-pill {
  display: inline-flex;
  align-self: center;
  align-items: center;
  gap: 0.4em;
  padding: 1.4cqw 5cqw;
  border-radius: 99px;
  background: rgba(35, 240, 166, 0.12);
  border: 1px solid rgba(35, 240, 166, 0.5);
  font-weight: 600;
  color: var(--tt-brand-signal);
  white-space: nowrap;
}
.hl-beam {
  position: absolute;
  z-index: 1;
  left: 38%;
  right: 38%;
  top: 33%;
  bottom: 33%;
  clip-path: polygon(0 0, 100% 34%, 100% 66%, 0 100%);
  background: linear-gradient(270deg, rgba(46, 211, 255, 0.42), rgba(46, 211, 255, 0.04));
  opacity: 0.6;
}
.hl-packet {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 58%;
  display: inline-flex;
  gap: 0.6em;
  align-items: center;
  padding: 6px 10px;
  border-radius: 99px;
  background: rgba(13, 18, 32, 0.92);
  border: 1px solid rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 24px -4px rgba(139, 92, 246, 0.7);
  font-size: 11px;
  color: var(--tt-text-secondary);
  white-space: nowrap;
  translate: -50% 0;
  opacity: 0;
  pointer-events: none;
}
.hl-packet-hash {
  color: #a88bff;
}
.hero-loop .chip-live {
  bottom: -3%;
}
.hero-loop .chip-accepted {
  right: -1%;
  top: 2%;
}
.hero-loop.is-sealed .hl-qr {
  opacity: 0.16;
}
.hero-loop.is-sealed .hl-title {
  color: var(--tt-brand-signal);
}
.hero-loop .hl-phone > * {
  transition: opacity 420ms ease;
}
.hero-loop.is-resetting .hl-phone > :not(.hl-notch) {
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-loop.is-live .hl-rec-dot {
    animation: tt-blink 1s steps(2, start) infinite;
  }
  .hero-loop.is-live .hl-beam {
    animation: hl-beam 1.6s ease-in-out infinite;
  }
  .hero-loop[data-phase='film'] .hl-bracket {
    animation: hl-pulse 560ms ease-out both;
  }
  .hero-loop[data-phase='film'] .hl-scan {
    animation: hl-scan 560ms cubic-bezier(0.2, 0, 0, 1) both;
  }
  .hl-packet.is-fresh {
    animation: hl-packet 760ms cubic-bezier(0.4, 0, 0.2, 1) both;
  }
  .hero-loop .chip-step.is-fresh,
  .hero-loop .chip-live .hash.is-fresh {
    animation: tt-hash-flash 700ms var(--tt-ease-standard);
  }
}
@keyframes hl-beam {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.95;
  }
}
@keyframes hl-pulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.12);
    filter: drop-shadow(0 0 12px rgba(35, 240, 166, 1));
  }
  100% {
    transform: scale(1);
  }
}
@keyframes hl-scan {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  20%,
  80% {
    opacity: 1;
  }
  100% {
    transform: translateY(22cqw);
    opacity: 0;
  }
}
@keyframes hl-packet {
  0% {
    transform: translateX(14cqw) scale(0.9);
    opacity: 0;
  }
  18%,
  80% {
    opacity: 1;
  }
  100% {
    transform: translateX(-14cqw) scale(1);
    opacity: 0;
  }
}
@media (max-width: 639px) {
  .hero-loop {
    aspect-ratio: 1 / 0.98;
  }
  .hl-phone {
    --hl-w: 45cqw;
  }
  .hl-a {
    left: 2%;
    rotate: 3deg;
  }
  .hl-b {
    right: 2%;
    rotate: -3deg;
  }
  .hl-beam {
    left: 42%;
    right: 42%;
  }
  .hl-packet {
    top: 66%;
  }
  .hero-loop .chip-live {
    bottom: -8%;
  }
}
/* Loop stepper (top of the scene): which of the four stations is happening. */
.hl-steps {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 2%;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border-radius: 99px;
  background: rgba(13, 18, 32, 0.9);
  border: 1px solid rgba(46, 211, 255, 0.4);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  font-size: 12px;
  color: var(--tt-text-primary);
  white-space: nowrap;
}
.hl-step-dots {
  display: inline-flex;
  gap: 4px;
}
.hl-step-dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #3a4766;
  color: var(--tt-text-muted);
  font-size: 11px;
  font-weight: 700;
  transition:
    background-color 240ms ease,
    color 240ms ease,
    border-color 240ms ease;
}
.hl-step-dot.is-on {
  background: var(--tt-brand-loop);
  border-color: var(--tt-brand-loop);
  color: #021620;
  box-shadow: 0 0 12px rgba(46, 211, 255, 0.7);
}
.hero-loop[data-phase='film'] .hl-step-dot.is-on {
  background: var(--tt-brand-signal);
  border-color: var(--tt-brand-signal);
  color: #03140d;
  box-shadow: 0 0 12px rgba(35, 240, 166, 0.7);
}
.hero-loop[data-phase='hash'] .hl-step-dot.is-on {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: #fff;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.8);
}
.hero-loop.is-sealed .hl-step-dot {
  background: var(--tt-brand-signal);
  border-color: var(--tt-brand-signal);
  color: #03140d;
}
.hl-step-label {
  min-width: 15ch;
}
.hl-step-label sub {
  font-size: 0.8em;
  vertical-align: -0.25em;
  color: var(--tt-brand-loop);
}
.hero-loop .chip-accepted {
  top: auto;
  bottom: 9%;
  right: -2%;
}
.hl-packet {
  top: 47%;
  padding: 5px 9px;
}
@keyframes hl-packet {
  0% {
    transform: translateX(9cqw) scale(0.9);
    opacity: 0;
  }
  18%,
  80% {
    opacity: 1;
  }
  100% {
    transform: translateX(-9cqw) scale(1);
    opacity: 0;
  }
}
@media (max-width: 639px) {
  .hero-loop {
    aspect-ratio: 1 / 1.08;
  }
  .hl-phone {
    top: 53%;
  }
  .hl-steps {
    top: 0;
  }
  .hl-packet {
    top: 50%;
  }
  @keyframes hl-packet {
    0% {
      transform: translateX(5cqw) scale(0.9);
      opacity: 0;
    }
    18%,
    80% {
      opacity: 1;
    }
    100% {
      transform: translateX(-5cqw) scale(1);
      opacity: 0;
    }
  }
}
.hl-label-b {
  color: var(--tt-brand-signal);
}
.hl-rec {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  translate: -50% -35%;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(5, 7, 13, 0.85);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--tt-text-primary);
  white-space: nowrap;
}
.hl-step-dot {
  transition-duration: 120ms;
}
.hero-loop .chip-live {
  left: 2%;
  right: auto;
  bottom: -4%;
  margin: 0;
}
.hero-loop .chip-accepted {
  top: auto;
  right: 0;
  bottom: -4%;
}
@media (max-width: 639px) {
  .hl-rec-word {
    display: none;
  }
  .hero-loop .chip-live {
    left: 0;
    right: 0;
    margin-inline: auto;
    bottom: -8%;
  }
}
/* The hash packet travels below the QR codes (never over them). */
.hl-packet {
  top: 74%;
}
.hl-title {
  font-size: clamp(11px, 5.2cqw, 14px);
}
@media (min-width: 1200px) and (max-width: 1279px) {
  .hero-visual {
    width: 100%;
    margin-right: 0;
  }
}
@media (max-width: 639px) {
  .hl-packet {
    top: 78%;
  }
}
