/* FILE: assets/css/main.css
   DESCRIPTION: Merged, deduplicated styles for NHK Vision WordPress theme.
   Source order: index.html (complete) → doc-page additions from privacy.html
   (terms.html is identical to privacy.html so nothing extra is added).
   WordPress core compatibility rules are appended at the end.
   ─────────────────────────────────────────────────────────────────────── */

/* ══════════════════════════════════════════════════════
   1. DESIGN TOKENS  (from index.html — authoritative)
   ══════════════════════════════════════════════════════ */
  :root {
    /* Brand colors (from NHK Vision identity guide) */
    --midnight: #0B1220;
    --midnight-2: #0E1628;
    --midnight-3: #131C33;
    --electric: hsl(217, 91%, 60%);     /* #3B82F6 */
    --electric-strong: hsl(217, 91%, 55%);
    --soft-blue: hsl(213, 94%, 78%);    /* #93C5FD */
    --cool-gray: #6B7280;
    --white: #FFFFFF;
    --light-gray: #F9FAFB;
    --border-gray: #E5E7EB;
    --ink: #0B1220;

    /* Theme-driven (set by data-theme on body) */
    --bg: var(--white);
    --bg-elev: var(--light-gray);
    --bg-section: var(--white);
    --fg: var(--midnight);
    --fg-muted: #4B5563;
    --fg-faint: #6B7280;
    --line: var(--border-gray);
    --line-strong: #D1D5DB;
    --accent: var(--electric);
    --accent-soft: hsl(213, 94%, 78%);
    --accent-tint: hsl(217, 91%, 96%);

    --maxw: 1200px;
    --gutter: clamp(20px, 4vw, 40px);
  }

  body[data-theme="dark"] {
    --bg: var(--midnight);
    --bg-elev: var(--midnight-2);
    --bg-section: var(--midnight);
    --fg: #F3F6FB;
    --fg-muted: #9AA4B8;
    --fg-faint: #6B7588;
    --line: rgba(255,255,255,0.08);
    --line-strong: rgba(255,255,255,0.16);
    --accent-tint: rgba(59,130,246,0.10);
  }

/* ══════════════════════════════════════════════════════
   2. RESET & BASE  (from index.html)
   ══════════════════════════════════════════════════════ */
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    line-height: 1.55;
    font-size: 16px;
    overflow-x: hidden;
  }

  ::selection { background: var(--accent); color: white; }

/* ══════════════════════════════════════════════════════
   3. LAYOUT PRIMITIVES  (from index.html)
   ══════════════════════════════════════════════════════ */
  .wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
  }

  .section {
    padding: clamp(72px, 9vw, 128px) 0;
    border-top: 1px solid var(--line);
    position: relative;
  }
  .section:first-of-type { border-top: 0; }

  .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
  }
  .section-tag::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 2px;
    background: var(--accent);
  }
  .section-tag .num { color: var(--fg-faint); }

  h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0;
    text-wrap: balance;
  }
  h1 { font-size: clamp(40px, 6.4vw, 76px); letter-spacing: -0.035em; line-height: 1.02; }
  h2 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.028em; }
  h3 { font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.015em; }
  p { margin: 0; }

  .lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--fg-muted); line-height: 1.6; max-width: 60ch; text-wrap: pretty; }

/* ══════════════════════════════════════════════════════
   4. BUTTONS  (from index.html)
   ══════════════════════════════════════════════════════ */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.005em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease;
    text-decoration: none;
    white-space: nowrap;
  }
  .btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 24px -12px var(--accent);
  }
  .btn-primary:hover { background: var(--electric-strong); transform: translateY(-1px); }
  .btn-secondary {
    background: transparent;
    color: var(--fg);
    border-color: var(--line-strong);
  }
  .btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
  .btn-arrow {
    display: inline-block;
    transition: transform .2s ease;
  }
  .btn:hover .btn-arrow { transform: translateX(3px); }

/* ══════════════════════════════════════════════════════
   5. NAV  (from index.html — most complete version)
   ══════════════════════════════════════════════════════ */
  .nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background .2s ease;
  }
  .nav.scrolled { border-bottom-color: var(--line); }
  .nav-inner {
    height: 68px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
  }
  .nav-links {
    display: flex; gap: 32px;
    font-size: 14px; color: var(--fg-muted);
  }
  .nav-links a {
    color: inherit; text-decoration: none;
    transition: color .15s ease;
  }
  .nav-links a:hover { color: var(--fg); }
  .nav-cta { display: flex; align-items: center; gap: 12px; }
  .nav-cta .btn { padding: 10px 16px; font-size: 14px; }

  @media (max-width: 820px) {
    .nav-links { display: none; }
  }

/* ══════════════════════════════════════════════════════
   6. LOGO  (from index.html)
   ══════════════════════════════════════════════════════ */
  .logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--fg);
  }
  .logo-mark {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .logo-text {
    display: flex; flex-direction: column;
    line-height: 1;
  }
  .logo-text .nhk {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
  }
  .logo-text .vision {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.32em;
    color: var(--accent);
    margin-top: 4px;
  }

/* ══════════════════════════════════════════════════════
   7. HERO  (from index.html)
   ══════════════════════════════════════════════════════ */
  .hero {
    padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 8vw, 100px);
    position: relative;
    overflow: hidden;
  }
  .hero-bg {
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 0;
  }
  .hero-bg::before {
    content: "";
    position: absolute;
    top: -10%; left: -10%;
    width: 60%; height: 80%;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 60%);
    filter: blur(40px);
  }
  .hero-grid-bg {
    position: absolute; inset: 0;
    background-image:
      linear-gradient(to right, var(--line) 1px, transparent 1px),
      linear-gradient(to bottom, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 75%);
    opacity: .55;
  }
  .hero-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(40px, 5vw, 80px);
    align-items: center;
  }
  @media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; }
  }

  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 6px 12px 6px 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 13px; color: var(--fg-muted);
    margin-bottom: 28px;
    background: var(--bg-elev);
  }
  .hero-eyebrow .dot {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--accent);
    display: grid; place-items: center;
    color: white;
    font-size: 10px;
  }
  .hero-eyebrow strong { color: var(--fg); font-weight: 600; }

  .hero h1 .accent {
    color: var(--accent);
    position: relative;
  }
  .hero h1 .accent::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 4px;
    height: 8px;
    background: color-mix(in srgb, var(--accent) 25%, transparent);
    z-index: -1;
    border-radius: 2px;
  }
  .hero-sub {
    margin: 24px 0 36px;
    max-width: 52ch;
  }
  .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

  .hero-meta {
    display: flex; gap: 36px; flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
  }
  .hero-meta-item .v {
    font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
    color: var(--fg);
  }
  .hero-meta-item .l {
    font-size: 12px; color: var(--fg-faint);
    letter-spacing: 0.04em;
    margin-top: 4px;
  }

  /* Hero diagram */
  .hero-diagram {
    position: relative;
    aspect-ratio: 1 / 1.05;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
      linear-gradient(180deg, var(--bg-elev), var(--bg));
    padding: 28px;
    overflow: hidden;
  }
  .hero-diagram::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
      linear-gradient(to right, var(--line) 1px, transparent 1px),
      linear-gradient(to bottom, var(--line) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: .35;
    pointer-events: none;
  }
  .hd-header {
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--fg-faint);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    margin-bottom: 28px;
  }
  .hd-status { display: inline-flex; align-items: center; gap: 6px; color: #16a34a; }
  .hd-status .pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 0 #16a34a;
    animation: pulse 1.8s infinite;
  }
  @keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(22,163,74,0.7); }
    70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
    100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
  }

  .hd-flow {
    position: relative;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 14px;
    height: calc(100% - 40px);
  }
  .hd-node {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: transform .3s ease, border-color .3s ease;
  }
  .hd-node:hover { border-color: var(--accent); transform: translateY(-1px); }
  .hd-node .icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--accent-tint);
    color: var(--accent);
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .hd-node .icon svg { width: 20px; height: 20px; }
  .hd-node .label {
    font-size: 11px;
    color: var(--fg-faint);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
  }
  .hd-node .name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-top: 2px;
  }
  .hd-node .metric {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--fg-faint);
    text-align: right;
    line-height: 1.3;
  }
  .hd-node .metric strong { display: block; color: var(--fg); font-weight: 600; font-size: 14px; }

  .hd-connector {
    position: absolute;
    left: 35px;
    width: 2px;
    background: var(--accent);
    opacity: .25;
  }

  .hd-pulse-dot {
    position: absolute;
    left: 30px;
    top: 0;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent);
    animation: flow 4s infinite ease-in-out;
  }
  @keyframes flow {
    0% { top: 8%; opacity: 0; }
    8% { opacity: 1; }
    25% { top: 30%; }
    50% { top: 55%; }
    75% { top: 78%; }
    92% { opacity: 1; }
    100% { top: 92%; opacity: 0; }
  }

/* ══════════════════════════════════════════════════════
   8. PARTNERS STRIP  (from index.html)
   ══════════════════════════════════════════════════════ */
  .partners {
    padding: clamp(56px, 7vw, 88px) 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-elev);
    overflow: hidden;
  }
  .partners-label {
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-faint);
    margin-bottom: 32px;
  }
  .partners-label::before, .partners-label::after {
    content: "—"; margin: 0 10px; opacity: .6;
  }
  .partners-marquee {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 8%, black 92%, transparent 100%);
  }
  .partners-track {
    display: flex;
    width: max-content;
    animation: marquee 50s linear infinite;
    will-change: transform;
  }
  .partners-set {
    display: flex;
    gap: 56px;
    padding-right: 56px;
    flex-shrink: 0;
    align-items: center;
  }
  .partners-marquee:hover .partners-track { animation-play-state: paused; }

  .partner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--fg-muted);
    font-weight: 600;
    letter-spacing: -0.01em;
    font-size: 22px;
    white-space: nowrap;
    opacity: .7;
    transition: opacity .25s ease, color .25s ease;
  }
  .partner:hover { opacity: 1; color: var(--fg); }
  .partner svg { flex-shrink: 0; }
  .partner .ptype {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--fg-faint);
    text-transform: uppercase;
    opacity: .8;
    margin-left: 2px;
  }
  .partner-divider {
    width: 1px; height: 28px;
    background: var(--line);
    flex-shrink: 0;
  }
  @media (max-width: 720px) {
    .partner { font-size: 18px; }
    .partners-set { gap: 36px; padding-right: 36px; }
    .partner-divider { height: 22px; }
  }

/* ══════════════════════════════════════════════════════
   9. PROBLEM SECTION  (from index.html)
   ══════════════════════════════════════════════════════ */
  .problem-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: start;
  }
  @media (max-width: 880px) {
    .problem-grid { grid-template-columns: 1fr; }
  }
  .problem-list { margin-top: 32px; display: grid; gap: 0; }
  .problem-item {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 16px;
    align-items: start;
    padding: 22px 0;
    border-top: 1px solid var(--line);
  }
  .problem-item:last-child { border-bottom: 1px solid var(--line); }
  .problem-item .x {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: color-mix(in srgb, #ef4444 12%, transparent);
    color: #ef4444;
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
  }
  .problem-item .t {
    font-size: 17px;
    font-weight: 500;
    color: var(--fg);
    letter-spacing: -0.01em;
  }
  .problem-item .s {
    font-size: 14px;
    color: var(--fg-muted);
    margin-top: 4px;
  }

  .problem-quote {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg-elev);
    position: relative;
  }
  .problem-quote .q-mark {
    font-size: 64px;
    line-height: 1;
    color: var(--accent);
    font-family: serif;
    margin-bottom: -10px;
  }
  .problem-quote p {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.4;
    text-wrap: balance;
  }
  .problem-quote .signature {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--fg-faint);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.04em;
  }
  .problem-quote .signature strong { color: var(--fg); }

/* ══════════════════════════════════════════════════════
   10. SOLUTION — 4 PILLARS  (from index.html)
   ══════════════════════════════════════════════════════ */
  .pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 56px;
  }
  @media (max-width: 980px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }

  .pillar {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px;
    background: var(--bg-elev);
    transition: border-color .2s ease, transform .2s ease;
    position: relative;
    overflow: hidden;
  }
  .pillar:hover { border-color: var(--accent); transform: translateY(-2px); }
  .pillar .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.14em;
    margin-bottom: 32px;
  }
  .pillar .icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--accent-tint);
    color: var(--accent);
    display: grid; place-items: center;
    margin-bottom: 18px;
  }
  .pillar h3 { margin-bottom: 8px; }
  .pillar p { font-size: 14px; color: var(--fg-muted); line-height: 1.55; }

/* ══════════════════════════════════════════════════════
   11. HOW IT WORKS — TIMELINE  (from index.html)
   ══════════════════════════════════════════════════════ */
  .timeline {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
  }
  @media (max-width: 880px) { .timeline { grid-template-columns: 1fr; } }

  .tl-step {
    padding: 32px 28px;
    border-left: 1px solid var(--line);
    position: relative;
  }
  .tl-step:first-child { border-left: 0; padding-left: 0; }
  @media (max-width: 880px) {
    .tl-step { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0; }
    .tl-step:first-child { border-top: 0; padding-top: 0; }
  }
  .tl-step .step-num {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--fg-faint);
    margin-bottom: 22px;
  }
  .tl-step .step-num::before {
    content: "";
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: grid; place-items: center;
    background: var(--bg);
  }
  .tl-step .step-num .n {
    position: absolute;
    margin-left: 10px;
    font-weight: 700;
    color: var(--accent);
  }
  .tl-step h3 { margin-bottom: 8px; }
  .tl-step p { color: var(--fg-muted); font-size: 14px; }

  .timeline::before {
    content: "";
    position: absolute;
    top: 46px;
    left: 0; right: 0;
    height: 1px;
    background: repeating-linear-gradient(to right, var(--line-strong) 0 6px, transparent 6px 12px);
    z-index: 0;
  }
  @media (max-width: 880px) { .timeline::before { display: none; } }

/* ══════════════════════════════════════════════════════
   12. RESULTS / DASHBOARD  (from index.html)
   ══════════════════════════════════════════════════════ */
  .results-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(32px, 4vw, 56px);
    align-items: stretch;
    margin-top: 56px;
  }
  @media (max-width: 980px) { .results-grid { grid-template-columns: 1fr; } }

  .dashboard {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg-elev);
    padding: 24px;
    display: flex; flex-direction: column;
    gap: 20px;
  }
  .dash-header {
    display: flex; justify-content: space-between; align-items: center;
  }
  .dash-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }
  .dash-tabs {
    display: flex; gap: 4px;
    background: var(--bg);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--line);
  }
  .dash-tabs button {
    border: 0; background: transparent;
    padding: 6px 10px;
    font-size: 11px;
    font-family: inherit;
    color: var(--fg-faint);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
  }
  .dash-tabs button.active {
    background: var(--accent);
    color: white;
  }

  .dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .stat {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
  }
  .stat .l {
    font-size: 11px; color: var(--fg-faint);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }
  .stat .v {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .stat .d {
    font-size: 11px;
    color: #16a34a;
    margin-top: 4px;
    font-family: 'JetBrains Mono', monospace;
  }
  .stat .d.down { color: #ef4444; }

  .dash-chart {
    height: 200px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    padding: 16px;
    position: relative;
  }
  .dash-chart svg { width: 100%; height: 100%; display: block; }

  .dash-funnel {
    display: grid; gap: 8px;
  }
  .funnel-row {
    display: grid; grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 12px;
    font-size: 12px;
  }
  .funnel-row .lab { color: var(--fg-muted); }
  .funnel-row .bar {
    height: 22px;
    border-radius: 4px;
    background: var(--accent);
    position: relative;
  }
  .funnel-row .bar.b2 { background: color-mix(in srgb, var(--accent) 80%, transparent); }
  .funnel-row .bar.b3 { background: color-mix(in srgb, var(--accent) 60%, transparent); }
  .funnel-row .bar.b4 { background: color-mix(in srgb, var(--accent) 40%, transparent); }
  .funnel-row .v {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: var(--fg);
  }

  .results-side {
    display: flex; flex-direction: column;
    gap: 16px;
  }
  .micro-proof {
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
    align-items: center;
  }
  .micro-proof .check {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: color-mix(in srgb, #16a34a 12%, transparent);
    color: #16a34a;
    display: grid; place-items: center;
  }
  .micro-proof .t {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
  }
  .micro-proof .s {
    font-size: 13px;
    color: var(--fg-muted);
    margin-top: 2px;
  }

/* ══════════════════════════════════════════════════════
   13. WHO WE WORK WITH  (from index.html)
   ══════════════════════════════════════════════════════ */
  .who-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
  }
  @media (max-width: 880px) { .who-grid { grid-template-columns: 1fr; } }

  .who-checklist { display: grid; gap: 0; margin-top: 40px; }
  .who-item {
    padding: 20px 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 16px;
    align-items: center;
  }
  .who-item:last-child { border-bottom: 1px solid var(--line); }
  .who-item .check {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: grid; place-items: center;
    flex-shrink: 0;
  }
  .who-item .t {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
  }
  .who-item .arrow {
    color: var(--fg-faint);
    transition: transform .2s ease, color .2s ease;
  }
  .who-item:hover .arrow { color: var(--accent); transform: translateX(4px); }

  .who-callout {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background:
      radial-gradient(circle at top right, var(--accent-tint), transparent 70%),
      var(--bg-elev);
    position: relative;
  }
  .who-callout .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 16px;
  }
  .who-callout p {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: -0.01em;
  }
  .who-callout .author {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--fg-faint);
    font-family: 'JetBrains Mono', monospace;
  }

/* ══════════════════════════════════════════════════════
   14. WHY NHK VISION  (from index.html)
   ══════════════════════════════════════════════════════ */
  .why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 56px;
  }
  @media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } }
  .why-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-elev);
  }
  .why-card .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--fg-faint);
    margin-bottom: 16px;
    letter-spacing: 0.06em;
  }
  .why-card .num strong { color: var(--accent); }
  .why-card h3 { font-size: 19px; margin-bottom: 10px; }
  .why-card p { font-size: 14px; color: var(--fg-muted); }

/* ══════════════════════════════════════════════════════
   15. PROCESS  (from index.html)
   ══════════════════════════════════════════════════════ */
  .process {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  @media (max-width: 880px) { .process { grid-template-columns: 1fr; } }

  .pr-step {
    padding: 32px 28px;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .pr-step:last-child { border-right: 0; }
  @media (max-width: 880px) {
    .pr-step { border-right: 0; border-bottom: 1px solid var(--line); }
    .pr-step:last-child { border-bottom: 0; }
  }
  .pr-step .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--accent);
    line-height: 1;
  }
  .pr-step h3 { font-size: 18px; }
  .pr-step p { font-size: 13px; color: var(--fg-muted); }
  .pr-step .when {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--fg-faint);
    letter-spacing: 0.06em;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
  }

/* ══════════════════════════════════════════════════════
   16. FINAL CTA  (from index.html)
   ══════════════════════════════════════════════════════ */
  .final-cta {
    padding: clamp(80px, 10vw, 120px) 0;
    background: var(--midnight);
    color: white;
    border-top: 1px solid var(--line);
    position: relative;
    overflow: hidden;
  }
  body[data-theme="dark"] .final-cta {
    background: linear-gradient(180deg, var(--midnight-2), var(--midnight));
  }
  .final-cta::before {
    content: "";
    position: absolute;
    top: -30%; left: 50%;
    transform: translateX(-50%);
    width: 120%; height: 80%;
    background: radial-gradient(ellipse, color-mix(in srgb, var(--electric) 28%, transparent), transparent 60%);
    filter: blur(60px);
    z-index: 0;
  }
  .final-cta-inner {
    position: relative; z-index: 1;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
  }
  .final-cta h2 { color: white; margin-bottom: 16px; }
  .final-cta .lede { color: rgba(255,255,255,0.7); margin: 0 auto 36px; }
  .final-cta .btn-primary {
    padding: 18px 30px;
    font-size: 16px;
  }
  .fc-meta {
    margin-top: 32px;
    display: flex; justify-content: center; gap: 32px; flex-wrap: wrap;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
  }
  .fc-meta span { display: inline-flex; align-items: center; gap: 8px; }

/* ══════════════════════════════════════════════════════
   17. FOOTER  (from index.html — most complete version)
   ══════════════════════════════════════════════════════ */
  .footer {
    padding: 56px 0 40px;
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: start;
  }
  .footer-tagline {
    font-size: 14px;
    color: var(--fg-muted);
    margin-top: 16px;
    max-width: 36ch;
  }
  .footer-links {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 56px;
    font-size: 14px;
  }
  @media (max-width: 720px) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  }
  .footer-col h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--fg-faint);
    margin-bottom: 12px;
    font-weight: 500;
  }
  .footer-col a {
    display: block;
    color: var(--fg-muted);
    text-decoration: none;
    padding: 4px 0;
  }
  .footer-col a:hover { color: var(--accent); }
  .footer-legal { display: inline-flex; align-items: center; gap: 8px; }
  .footer-legal a { color: var(--fg-muted); text-decoration: none; transition: color .2s ease; }
  .footer-legal a:hover { color: var(--accent); }
  .footer-sep { color: var(--fg-faint); opacity: .6; }
  .footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    font-size: 13px;
    color: var(--fg-faint);
  }

/* ══════════════════════════════════════════════════════
   18. TESTIMONIALS  (from index.html)
   ══════════════════════════════════════════════════════ */
  .testimonials {
    padding: clamp(80px, 10vw, 128px) 0;
    border-top: 1px solid var(--line);
    position: relative;
    overflow: hidden;
  }
  .testimonials::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 60% 50% at 80% 10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
      radial-gradient(ellipse 50% 40% at 10% 90%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
    pointer-events: none;
    z-index: 0;
  }
  .testimonials > .wrap { position: relative; z-index: 1; }

  .t-header {
    display: grid;
    grid-template-columns: 1.2fr auto;
    gap: 32px;
    align-items: end;
    margin-bottom: 56px;
  }
  @media (max-width: 880px) { .t-header { grid-template-columns: 1fr; align-items: start; } }

  .t-rating {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--bg-elev);
  }
  .t-rating .stars {
    display: inline-flex;
    gap: 2px;
    color: var(--accent);
  }
  .t-rating .stars svg { animation: starPop .6s ease backwards; }
  .t-rating .stars svg:nth-child(1) { animation-delay: .05s; }
  .t-rating .stars svg:nth-child(2) { animation-delay: .12s; }
  .t-rating .stars svg:nth-child(3) { animation-delay: .19s; }
  .t-rating .stars svg:nth-child(4) { animation-delay: .26s; }
  .t-rating .stars svg:nth-child(5) { animation-delay: .33s; }
  @keyframes starPop {
    0% { transform: scale(.3) rotate(-30deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
  }
  .t-rating .meta {
    font-size: 13px;
    line-height: 1.3;
  }
  .t-rating .meta strong { font-weight: 600; }
  .t-rating .meta span { color: var(--fg-faint); display: block; font-size: 11px; }

  .t-featured {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-elev);
    margin-bottom: 16px;
    position: relative;
  }
  @media (max-width: 880px) { .t-featured { grid-template-columns: 1fr; } }

  .t-featured-quote {
    padding: clamp(32px, 4vw, 56px);
    position: relative;
    border-right: 1px solid var(--line);
  }
  @media (max-width: 880px) {
    .t-featured-quote { border-right: 0; border-bottom: 1px solid var(--line); }
  }
  .t-featured-quote .qmark {
    position: absolute;
    top: 24px; right: 32px;
    font-family: 'Inter', serif;
    font-size: 120px;
    line-height: 1;
    color: var(--accent);
    opacity: .15;
    font-weight: 800;
    pointer-events: none;
  }
  .t-featured-quote blockquote {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.35;
    text-wrap: pretty;
  }
  .t-featured-quote blockquote em {
    color: var(--accent);
    font-style: normal;
  }
  .t-featured-author {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex; align-items: center; gap: 14px;
  }
  .t-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: grid; place-items: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.01em;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--midnight)));
    box-shadow: 0 0 0 3px var(--bg-elev), 0 0 0 4px var(--line);
  }
  .t-author-info .name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
  .t-author-info .role { font-size: 13px; color: var(--fg-muted); margin-top: 2px; }

  .t-featured-stats {
    padding: clamp(32px, 4vw, 48px);
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
    background: var(--bg);
  }
  .t-stat {
    padding: 18px 0;
    border-top: 1px solid var(--line);
  }
  .t-stat:first-child { border-top: 0; padding-top: 0; }
  .t-stat .label {
    font-size: 11px;
    color: var(--fg-faint);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 8px;
  }
  .t-stat .v {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--fg);
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .t-stat .v .arrow {
    color: #16a34a;
    font-size: 14px;
    font-weight: 600;
  }
  .t-stat .v .pct { color: var(--accent); }
  .t-stat .delta {
    font-size: 12px;
    color: var(--fg-muted);
    margin-top: 6px;
  }

  .t-stat .v[data-count] { font-variant-numeric: tabular-nums; }

  .t-marquee {
    margin-top: 32px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 6%, black 94%, transparent 100%);
  }
  .t-marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 60s linear infinite;
    will-change: transform;
  }
  .t-marquee-set {
    display: flex;
    gap: 16px;
    padding-right: 16px;
    flex-shrink: 0;
  }
  .t-marquee:hover .t-marquee-track { animation-play-state: paused; }
  @keyframes marquee {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
  }
  @media (max-width: 640px) {
    .t-card { width: 280px; }
    .t-marquee-track { animation-duration: 45s; }
  }

  .t-card {
    width: 380px;
    flex-shrink: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-elev);
    display: flex; flex-direction: column;
    gap: 16px;
    transition: border-color .25s ease, transform .25s ease;
  }
  .t-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
  }
  .t-card .stars-row {
    display: inline-flex;
    gap: 2px;
    color: var(--accent);
  }
  .t-card blockquote {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--fg);
    font-weight: 400;
    text-wrap: pretty;
  }
  .t-card .author {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex; align-items: center; gap: 12px;
  }
  .t-card .avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: grid; place-items: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
  }
  .t-card .author-info .name { font-weight: 600; font-size: 14px; }
  .t-card .author-info .role { font-size: 12px; color: var(--fg-muted); }

  .t-card.tag-funnel .avatar { background: linear-gradient(135deg, hsl(217,91%,60%), hsl(217,91%,40%)); }
  .t-card.tag-saas .avatar { background: linear-gradient(135deg, hsl(168,76%,42%), hsl(168,76%,28%)); }
  .t-card.tag-coach .avatar { background: linear-gradient(135deg, hsl(280,68%,60%), hsl(280,68%,40%)); }
  .t-card.tag-realestate .avatar { background: linear-gradient(135deg, hsl(28,90%,55%), hsl(28,90%,40%)); }
  .t-card.tag-edu .avatar { background: linear-gradient(135deg, hsl(340,82%,58%), hsl(340,82%,40%)); }
  .t-card.tag-brand .avatar { background: linear-gradient(135deg, hsl(120,42%,46%), hsl(120,42%,30%)); }

  .t-card .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-tint);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    align-self: flex-start;
    font-family: 'JetBrains Mono', monospace;
  }
  .t-card .badge::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
  }

/* ══════════════════════════════════════════════════════
   19. STICKY MOBILE CTA  (from index.html)
   ══════════════════════════════════════════════════════ */
  .sticky-cta {
    position: fixed;
    bottom: 16px; left: 16px; right: 16px;
    z-index: 60;
    display: none;
    transform: translateY(120%);
    transition: transform .3s ease;
  }
  .sticky-cta.visible { transform: translateY(0); }
  .sticky-cta .btn { width: 100%; padding: 16px; }
  @media (max-width: 720px) {
    .sticky-cta { display: block; }
  }

/* ══════════════════════════════════════════════════════
   20. REVEAL ON SCROLL  (from index.html)
   ══════════════════════════════════════════════════════ */
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s ease, transform .7s ease;
  }
  .reveal.in {
    opacity: 1; transform: none;
  }

/* ══════════════════════════════════════════════════════
   21. MOBILE POLISH  (from index.html)
   ══════════════════════════════════════════════════════ */
  @media (max-width: 720px) {
    :root { --gutter: 18px; }
    body { font-size: 15px; }
    h1 { font-size: clamp(34px, 9vw, 44px); }
    h2 { font-size: clamp(26px, 7vw, 34px); }
    .lede { font-size: 16px; }

    .nav-inner { height: 60px; gap: 12px; }
    .nav-cta #navSecondary { display: none; }
    .nav-cta .btn { padding: 9px 14px; font-size: 13px; }
    .logo-mark { width: 32px; height: 32px; }
    .logo-mark svg { width: 32px; height: 32px; }
    .logo-text .nhk { font-size: 16px; }
    .logo-text .vision { font-size: 8px; letter-spacing: 0.28em; }

    .hero { padding: 56px 0 64px; }
    .hero-eyebrow { font-size: 11px; padding: 5px 10px 5px 5px; }
    .hero-eyebrow span:last-child { white-space: normal; }
    .hero-cta .btn { width: 100%; }
    .hero-cta { flex-direction: column; gap: 10px; }
    .hero-meta { gap: 24px; }
    .hero-meta-item .v { font-size: 17px; }
    .hero-meta-item .l { font-size: 11px; }
    .hero-diagram { aspect-ratio: auto; padding: 20px; }
    .hd-flow { gap: 10px; }
    .hd-node {
      grid-template-columns: 36px 1fr;
      grid-template-rows: auto auto;
      padding: 12px;
      gap: 10px;
    }
    .hd-node .icon { width: 36px; height: 36px; }
    .hd-node .name { font-size: 14px; }
    .hd-node .label { font-size: 10px; }
    .hd-node .metric {
      grid-column: 2;
      text-align: left;
      font-size: 11px;
      margin-top: 2px;
    }
    .hd-node .metric strong { display: inline; font-size: 11px; }
    .hd-pulse-dot { left: 26px; width: 10px; height: 10px; }

    .section { padding: 64px 0; }
    .section-tag { margin-bottom: 18px; font-size: 10px; }

    .problem-quote { padding: 24px; }
    .problem-quote p { font-size: 18px; }
    .problem-item .t { font-size: 15px; }
    .problem-item .s { font-size: 13px; }

    .pillar, .why-card { padding: 22px; }
    .pillar h3, .why-card h3 { font-size: 17px; }

    .tl-step h3 { font-size: 17px; }
    .pr-step { padding: 24px 0; }
    .pr-step .num { font-size: 30px; }

    .dashboard { padding: 18px; }
    .dash-stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
    .stat { padding: 12px; }
    .stat .v { font-size: 18px; }
    .stat .l { font-size: 10px; }
    .stat .d { font-size: 10px; }
    .dash-chart { height: 160px; padding: 12px; }
    .funnel-row { grid-template-columns: 80px 1fr auto; font-size: 11px; }
    .funnel-row .bar { height: 18px; }

    .testimonials { padding: 64px 0; }
    .t-rating { padding: 10px 14px; gap: 10px; align-self: flex-start; }
    .t-rating .meta { font-size: 12px; }
    .t-featured { border-radius: 14px; }
    .t-featured-quote { padding: 28px 22px; }
    .t-featured-quote .qmark { font-size: 80px; top: 12px; right: 18px; }
    .t-featured-quote blockquote { font-size: 19px; line-height: 1.4; }
    .t-featured-stats { padding: 22px; }
    .t-stat .v { font-size: 26px; }
    .t-card { width: 280px; padding: 20px; }
    .t-card blockquote { font-size: 14px; }

    .who-callout { padding: 24px; }
    .who-callout p { font-size: 16px; }
    .who-item .t { font-size: 14px; }

    .final-cta { padding: 64px 0; }
    .final-cta .btn-primary { width: 100%; padding: 16px 20px; }
    .fc-meta { gap: 10px; flex-direction: column; align-items: center; font-size: 12px; }

    .footer { padding: 40px 0 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; }
  }

  @media (max-width: 980px) {
    body { overflow-x: clip; }
  }

/* ══════════════════════════════════════════════════════
   22. DOC PAGES — Privacy & Terms
       Source: privacy.html (terms.html is identical)
       Rules deduplicated against index.html above.
   ══════════════════════════════════════════════════════ */

  /* Back-to-home link shown in doc-page nav */
  .nav-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; color: var(--fg-muted);
    padding: 8px 14px; border-radius: 8px;
    border: 1px solid var(--line);
    transition: all .2s ease;
    text-decoration: none;
  }
  .nav-back:hover { color: var(--fg); border-color: var(--line-strong); text-decoration: none; }

  /* Doc page header band */
  .doc-head {
    padding: 80px 0 48px;
    border-bottom: 1px solid var(--line);
  }

  /* Eyebrow badge used on doc pages (distinct from .hero-eyebrow) */
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 6px 12px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    border-radius: 999px;
    margin-bottom: 20px;
  }

  /* Date row beneath the doc h1 */
  .doc-meta {
    display: flex; gap: 24px; flex-wrap: wrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--fg-faint);
    letter-spacing: 0.04em;
  }
  .doc-meta span::before { content: "—"; margin-right: 8px; opacity: .5; }

  /* Main prose area */
  .doc-body { padding: 56px 0 80px; }
  .doc-body h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 48px 0 12px;
    display: flex; align-items: baseline; gap: 14px;
  }
  .doc-body h2:first-child { margin-top: 0; }
  .doc-body h2 .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.04em;
  }
  .doc-body h3 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin: 28px 0 8px;
    color: var(--fg);
  }
  .doc-body p, .doc-body li {
    color: var(--fg-muted);
    font-size: 15px;
    line-height: 1.7;
  }
  .doc-body p { margin: 0 0 14px; }
  .doc-body ul { padding-left: 22px; margin: 0 0 16px; }
  .doc-body li { margin-bottom: 6px; }
  .doc-body strong { color: var(--fg); font-weight: 600; }

  /* Table of contents box */
  .toc {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 48px;
  }
  .toc-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--fg-faint);
    margin-bottom: 12px;
  }
  .toc ol {
    margin: 0; padding-left: 20px;
    columns: 2; column-gap: 32px;
  }
  .toc li { color: var(--fg-muted); font-size: 14px; padding: 4px 0; }
  .toc a { color: var(--fg-muted); text-decoration: none; }
  .toc a:hover { color: var(--accent); }

  /* Highlighted callout block */
  .callout {
    background: color-mix(in srgb, var(--accent) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 24px 0;
    font-size: 14px;
    color: var(--fg);
  }

  /* Doc page responsive overrides */
  @media (max-width: 720px) {
    .toc ol { columns: 1; }
    .doc-head { padding: 56px 0 40px; }
    .doc-body { padding: 40px 0 64px; }
  }

/* ══════════════════════════════════════════════════════
   23. PAGE TEMPLATE — hero + entry content
   ══════════════════════════════════════════════════════ */

  /* Page hero band (page.php) */
  .page-hero {
    padding: clamp(64px, 9vw, 112px) 0 clamp(40px, 5vw, 64px);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
  }
  .page-hero::before {
    content: "";
    position: absolute;
    top: -20%; left: -5%;
    width: 50%; height: 110%;
    background: radial-gradient(ellipse at center, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 65%);
    filter: blur(48px);
    pointer-events: none;
    z-index: 0;
  }
  .page-hero .wrap { position: relative; z-index: 1; }
  .page-hero .eyebrow { margin-bottom: 20px; }
  .page-hero .page-title {
    font-size: clamp(32px, 5.5vw, 64px);
    letter-spacing: -0.03em;
    line-height: 1.05;
    max-width: 18ch;
  }

  /* ── Entry content prose area ────────────────────────── */
  .entry-content {
    padding: clamp(48px, 7vw, 80px) 0 clamp(72px, 10vw, 120px);
    max-width: 800px;
  }

  .entry-content > * + * { margin-top: 1.3em; }

  .entry-content p {
    font-size: 16px;
    color: var(--fg-muted);
    line-height: 1.8;
    text-wrap: pretty;
  }

  .entry-content h2 {
    font-size: clamp(22px, 3vw, 34px);
    margin-top: 2.2em;
    margin-bottom: -.2em;
  }
  .entry-content h3 {
    font-size: clamp(18px, 2.2vw, 24px);
    margin-top: 1.8em;
    margin-bottom: -.2em;
  }
  .entry-content h4 {
    font-size: 17px;
    margin-top: 1.5em;
    margin-bottom: -.2em;
  }

  .entry-content ul,
  .entry-content ol {
    padding-left: 1.4em;
    font-size: 16px;
    color: var(--fg-muted);
    line-height: 1.8;
  }
  .entry-content li { margin-bottom: .4em; }
  .entry-content li::marker { color: var(--accent); }

  .entry-content hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 2.5em 0;
  }

  .entry-content blockquote,
  .entry-content .wp-block-quote {
    border-left: 3px solid var(--accent);
    padding: 18px 28px;
    margin: 2em 0;
    background: var(--bg-elev);
    border-radius: 0 10px 10px 0;
  }
  .entry-content blockquote p,
  .entry-content .wp-block-quote p {
    font-size: 18px;
    font-weight: 500;
    color: var(--fg);
    font-style: italic;
    line-height: 1.55;
    margin: 0;
  }
  .entry-content blockquote cite,
  .entry-content .wp-block-quote cite {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    color: var(--fg-faint);
    font-style: normal;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .04em;
  }

  .entry-content pre,
  .entry-content .wp-block-code {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px 24px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.65;
    color: var(--fg);
  }
  .entry-content :not(pre) > code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    padding: 2px 7px;
    border-radius: 5px;
    color: var(--accent);
  }

  .entry-content img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
  }
  .entry-content figure { margin: 2em 0; }
  .entry-content figcaption,
  .entry-content .wp-element-caption {
    font-size: 13px;
    color: var(--fg-faint);
    margin-top: 10px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: .03em;
  }

  /* Tables */
  .entry-content table,
  .entry-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin: 1.5em 0;
  }
  .entry-content th,
  .entry-content td {
    padding: 12px 16px;
    border: 1px solid var(--line);
    text-align: left;
  }
  .entry-content th {
    background: var(--bg-elev);
    font-weight: 600;
    font-size: 13px;
    color: var(--fg);
    letter-spacing: .03em;
    text-transform: uppercase;
  }
  .entry-content td { color: var(--fg-muted); }

  /* ── Responsive embed wrappers ───────────────────────── */
  /* Covers: oEmbed (YouTube/Vimeo), Gutenberg embed block, and raw iframes */
  .entry-content .wp-block-embed,
  .entry-content .wp-has-aspect-ratio {
    margin: 2em 0;
  }
  .entry-content .wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16 : 9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-elev);
  }
  .entry-content .wp-block-embed__wrapper iframe,
  .entry-content .wp-block-embed__wrapper video,
  .entry-content .wp-block-embed__wrapper object,
  .entry-content .wp-block-embed__wrapper embed {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
  }
  /* Raw iframe pasted into HTML block */
  .entry-content iframe {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
    display: block;
  }

  /* Gutenberg buttons block */
  .entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 2em 0; }
  .entry-content .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
  }
  .entry-content .wp-block-button__link:hover {
    background: var(--electric-strong);
    transform: translateY(-1px);
  }
  .entry-content .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--line-strong);
  }
  .entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  /* Gutenberg columns */
  .entry-content .wp-block-columns {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin: 1.5em 0;
  }
  .entry-content .wp-block-column { flex: 1 1 200px; min-width: 0; }

  /* Separator block */
  .entry-content .wp-block-separator {
    border: none;
    border-top: 1px solid var(--line);
    margin: 2.5em 0;
  }

  /* Multi-page post navigation */
  .page-links {
    display: flex; gap: 8px; flex-wrap: wrap;
    font-size: 13px;
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 1px solid var(--line);
    color: var(--fg-muted);
  }
  .page-links a {
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--line);
    color: var(--fg-muted);
    text-decoration: none;
    transition: border-color .15s, color .15s;
  }
  .page-links a:hover { border-color: var(--accent); color: var(--accent); }

  @media (max-width: 720px) {
    .page-hero { padding: 56px 0 36px; }
    .entry-content { padding: 40px 0 64px; }
    .entry-content .wp-block-columns { flex-direction: column; gap: 20px; }
  }

/* ══════════════════════════════════════════════════════
   24. PARTNER LOGO IMAGES + CUSTOM LOGO
   ══════════════════════════════════════════════════════ */

  /* Partner logo images — grayscale until hover */
  .partner img {
    height: 34px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    display: block;
    filter: grayscale(1) opacity(.55);
    transition: filter .3s ease;
  }
  .partner:hover img { filter: grayscale(0) opacity(1); }

  /* Text placeholder rendered when no logo image is uploaded */
  .partner-ph {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--fg-muted);
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 7px;
    white-space: nowrap;
    opacity: .65;
    transition: opacity .25s ease, color .25s ease, border-color .25s ease;
  }
  .partner:hover .partner-ph {
    opacity: 1;
    color: var(--fg);
    border-color: var(--line-strong);
  }

  /* Custom logo uploaded via Appearance → Customize → Site Identity */
  .logo .custom-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
  }
  @media (max-width: 720px) {
    .logo .custom-logo { height: 32px; }
    .partner img { height: 28px; }
    .partner-ph { height: 28px; font-size: 12px; padding: 0 10px; }
  }

/* ══════════════════════════════════════════════════════
   24. WORDPRESS CORE COMPATIBILITY
   ══════════════════════════════════════════════════════ */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--fg-muted); }
.alignwide { margin-inline: -40px; }
.alignfull { margin-inline: calc(-1 * var(--gutter)); width: calc(100% + 2 * var(--gutter)); }
.screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
img { max-width: 100%; height: auto; }
