/* GPTKYC V2 Design System — OpenAI / Vercel Minimalist Modern Tech */
:root {
  /* Core Neutrals (Pure White Canvas + Carbon Black + Obsidian Code) */
  --bg-canvas: #FFFFFF;
  --bg-surface: #FAFAFA;
  --bg-subtle: #F4F4F5;
  --bg-glass: rgba(255, 255, 255, 0.86);
  --bg-code: #0A0A0B;
  --bg-code-head: #141417;

  --ink-primary: #0A0A0A;
  --ink-secondary: #52525B;
  --ink-muted: #71717A;
  --ink-on-dark: #FAFAFA;
  --ink-on-dark-muted: rgba(250, 250, 250, 0.68);

  --border-hairline: rgba(10, 10, 10, 0.08);
  --border-strong: rgba(10, 10, 10, 0.16);
  --border-code: rgba(255, 255, 255, 0.12);

  /* Brand Accent & Semantic Triplets (Restrained Emerald / Amber / Crimson) */
  --accent-emerald: #10A37F;
  --status-pass-fg: #047857;
  --status-pass-bg: #ECFDF5;
  --status-pass-border: rgba(16, 163, 127, 0.28);

  --status-fix-fg: #B45309;
  --status-fix-bg: #FFFBEB;
  --status-fix-border: rgba(245, 158, 11, 0.45);
  --dot-amber: #F59E0B;

  --status-block-fg: #B91C1C;
  --status-block-bg: #FEF2F2;
  --status-block-border: rgba(239, 68, 68, 0.35);

  /* Multi-layer Hairline Shadows */
  --shadow-pill: 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(10, 10, 10, 0.08);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(10, 10, 10, 0.08);
  --shadow-card-hover: 0 10px 28px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(10, 10, 10, 0.15);
  --shadow-hero: 0 20px 50px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(10, 10, 10, 0.08);

  /* Typography */
  --font-display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-hero: clamp(2.25rem, 4.5vw, 3.625rem);
  --text-h1: clamp(1.95rem, 3vw, 2.625rem);
  --text-h2: clamp(1.375rem, 2vw, 1.75rem);
  --text-h3: clamp(1.0625rem, 1.25vw, 1.1875rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  /* Scale & Radii */
  --container-max: 1200px;
  --prose-max: 720px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg {
  max-width: 100%;
}

a {
  color: var(--ink-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink-secondary);
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--bg-canvas), 0 0 0 4px var(--ink-primary);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-primary);
  color: var(--bg-canvas);
  padding: 10px 16px;
  z-index: 100;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 32px;
}

/* 56px Frosted-Glass Topbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-hairline);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink-primary);
  flex-shrink: 0;
}

.brand-link .gf-site-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: block;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 11px;
  min-height: 36px;
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-link::-webkit-details-marker {
  display: none;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink-primary);
  background: var(--bg-subtle);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 8px);
  width: 312px;
  background: var(--bg-canvas);
  border-radius: 12px;
  box-shadow: var(--shadow-hero);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}

.nav-drop-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-primary);
  transition: background-color 0.15s ease;
}

.nav-drop-item:hover {
  background: var(--bg-subtle);
  color: var(--ink-primary);
}

.nav-drop-title {
  font-size: var(--text-sm);
  font-weight: 600;
}

.nav-drop-desc {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  line-height: 1.4;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  background: var(--ink-primary);
  color: var(--bg-canvas);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.header-cta:hover {
  opacity: 0.86;
  color: var(--bg-canvas);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--bg-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
}

.menu-bars {
  position: relative;
  width: 16px;
  height: 1.5px;
  background: var(--ink-primary);
  display: block;
  transform: translateY(-3px);
}

.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 1.5px;
  background: var(--ink-primary);
}

.mobile-drawer {
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  padding-block: 12px 20px;
  gap: 4px;
}

.mobile-nav-group-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  padding: 10px 10px 4px;
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink-primary);
  font-weight: 500;
  font-size: 0.9375rem;
}

.mobile-nav-link:hover {
  background: var(--bg-subtle);
}

.mobile-nav-tool {
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  margin-bottom: 4px;
}

.mobile-nav-sub {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  font-weight: 400;
}

/* Shared Atoms */
.kicker,
.card-kicker {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.section-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
}

.section-head {
  margin-bottom: 32px;
}

.section-block {
  padding-block: 88px;
}

.section-bordered {
  border-top: 1px solid var(--border-hairline);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  display: inline-block;
  flex-shrink: 0;
}

.dot-emerald,
.dot-pass { background: var(--accent-emerald); }
.dot-fix { background: var(--dot-amber); }
.dot-block { background: var(--status-block-fg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.btn-pill {
  border-radius: var(--radius-pill);
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.8125rem;
}

.btn-primary {
  background: var(--ink-primary);
  color: var(--bg-canvas);
}

.btn-primary:hover {
  opacity: 0.86;
  color: var(--bg-canvas);
}

.btn-secondary {
  background: var(--bg-canvas);
  color: var(--ink-primary);
  box-shadow: var(--shadow-pill);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  color: var(--ink-primary);
}

.btn-full {
  width: 100%;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}

.text-action:hover {
  color: var(--ink-secondary);
}

.text-action .arrow,
.btn .arrow,
.header-cta .arrow,
.hc-audit-link .arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}

.text-action:hover .arrow,
.btn:hover .arrow,
.header-cta:hover .arrow,
.hc-audit-link:hover .arrow {
  transform: translateX(3px);
}

.pill-badge,
.chip,
.mono-pill,
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
}

.mono-pill,
.chip-neutral,
.meta-pill {
  background: var(--bg-subtle);
  color: var(--ink-secondary);
}

.pill-pass,
.chip-pass {
  background: var(--status-pass-bg);
  color: var(--status-pass-fg);
  border: 1px solid var(--status-pass-border);
}

.pill-fix,
.chip-fix {
  background: var(--status-fix-bg);
  color: var(--status-fix-fg);
  border: 1px solid var(--status-fix-border);
}

.pill-block,
.chip-block {
  background: var(--status-block-bg);
  color: var(--status-block-fg);
  border: 1px solid var(--status-block-border);
}

/* MODULE 1: CENTERED SCULPTURAL HERO + RADIAL 48PX ARCHITECTURAL GRID */
.hero-section {
  position: relative;
  padding-block: 44px 72px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border-hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-hairline) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 28%, #000000 10%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 28%, #000000 10%, transparent 78%);
  opacity: 0.65;
}

.hero-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.announce-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 14px;
  margin-bottom: 20px;
  border-radius: var(--radius-pill);
  background: var(--bg-canvas);
  box-shadow: var(--shadow-pill);
  font-size: 0.8125rem;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: box-shadow 0.15s ease, color 0.15s ease;
}

.announce-pill:hover {
  box-shadow: var(--shadow-card-hover);
  color: var(--ink-primary);
}

.announce-pill-date {
  font-weight: 600;
  color: var(--ink-primary);
}

.hero-h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.045em;
  color: var(--ink-primary);
  max-width: 18ch;
}

.hero-h1-muted {
  color: var(--ink-secondary);
}

.hero-lead {
  margin: 0 0 24px;
  font-size: 1.0625rem;
  line-height: 1.58;
  color: var(--ink-secondary);
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Floating 10-Second Interactive Console */
.hero-console {
  width: 100%;
  max-width: 920px;
  margin: 36px auto 0;
  background: var(--bg-canvas);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero);
  overflow: hidden;
  text-align: left;
}

.hc-bar {
  min-height: 44px;
  padding: 6px 14px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hc-tabs {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.hc-tab {
  min-height: 30px;
  padding: 4px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hc-tab.is-active {
  background: var(--bg-canvas);
  color: var(--ink-primary);
  box-shadow: var(--shadow-pill);
}

.hc-local-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.hc-controls {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hc-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.hc-seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: 9px;
}

.hc-opt {
  min-height: 36px;
  padding: 6px 8px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.hc-opt.is-active {
  background: var(--bg-canvas);
  color: var(--ink-primary);
  font-weight: 600;
  box-shadow: var(--shadow-pill);
}

.hc-verdict {
  padding: 14px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hc-verdict-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 240px;
  flex-wrap: wrap;
}

.hc-verdict-copy {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.45;
}

.hc-audit-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--ink-primary);
  color: var(--bg-canvas);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.hc-audit-link:hover {
  opacity: 0.86;
  color: var(--bg-canvas);
}

/* Tab B: Manifest Pre-Scan */
.hc-manifest-grid {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.hc-code-box {
  grid-column: span 7;
  background: var(--bg-code);
  border-radius: 10px;
  border: 1px solid var(--border-code);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hc-code-head {
  padding: 8px 12px;
  background: var(--bg-code-head);
  border-bottom: 1px solid var(--border-code);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hc-code-file {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-on-dark-muted);
}

.hc-code-switch {
  display: inline-flex;
  gap: 4px;
}

.hc-sw-btn {
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid var(--border-code);
  background: transparent;
  color: var(--ink-on-dark-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  cursor: pointer;
}

.hc-sw-btn.is-active {
  background: var(--bg-canvas);
  color: var(--ink-primary);
  border-color: var(--bg-canvas);
  font-weight: 600;
}

.hc-pre {
  margin: 0;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.55;
  color: var(--ink-on-dark);
  overflow-x: auto;
}

.hc-rules-col {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hc-rule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  font-size: var(--text-xs);
}

.hc-rule-name {
  color: var(--ink-primary);
  font-weight: 500;
}

.hc-rule-name code {
  font-family: var(--font-mono);
  color: var(--ink-muted);
  margin-right: 4px;
}

.hc-val-cta {
  margin-top: auto;
  width: 100%;
}

/* MODULE 2: STAGGERED BENTO GRID */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.bento-flow-card {
  grid-column: span 12;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.flow-node {
  background: var(--bg-canvas);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
}

.flow-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.flow-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-muted);
}

.flow-arrow {
  font-family: var(--font-mono);
  color: var(--ink-muted);
  font-size: 1rem;
  text-align: center;
}

.bento-card {
  background: var(--bg-canvas);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.bento-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-4 { grid-column: span 4; }

.bento-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink-primary);
}

.bento-title a {
  text-decoration: none;
  color: inherit;
}

.bento-title a:hover {
  text-decoration: underline;
}

.bento-copy {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.55;
  flex: 1;
}

.bento-copy code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  background: var(--bg-subtle);
  padding: 1px 5px;
  border-radius: 4px;
}

.tool-showcase-ui {
  background: var(--bg-surface);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 14px;
  margin-bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ts-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ts-ticket-line {
  background: var(--bg-code);
  color: var(--ink-on-dark);
  border-radius: 7px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ts-prompt {
  color: var(--accent-emerald);
  margin-right: 6px;
}

.tool-mini-term {
  background: var(--bg-code);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.75;
}

.tmt-ok { color: var(--accent-emerald); }
.tmt-dim { color: var(--ink-on-dark-muted); }

.guide-bento .mono-pill,
.guide-bento .pill-badge {
  align-self: flex-start;
}

.guide-bento-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

/* Vercel Changelog Troubleshooting Index */
.changelog-wrap {
  margin-top: 40px;
}

.changelog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.changelog-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.changelog-box {
  background: var(--bg-canvas);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.changelog-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-hairline);
  text-decoration: none;
  color: var(--ink-primary);
  transition: background-color 0.15s ease;
}

.changelog-row:last-child {
  border-bottom: none;
}

.changelog-row:hover {
  background: var(--bg-surface);
  color: var(--ink-primary);
}

.cl-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cl-title {
  font-weight: 600;
  font-size: 0.9375rem;
}

.cl-desc {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
}

.cl-cta {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
}

/* GUIDE, TOOL & LEGAL SHELLS (Vercel Docs / Mintlify) */
.guide-shell,
.legal-shell,
.tool-page-shell,
.notfound-shell {
  padding-block: 36px 80px;
}

.guide-layout {
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 720px) 256px;
  gap: 64px;
  align-items: start;
}

.guide-sidebar {
  align-self: stretch;
}

.legal-inner {
  max-width: 784px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink-primary);
}

.crumb-current {
  color: var(--ink-primary);
  font-weight: 500;
}

.guide-header,
.tool-header {
  margin-bottom: 24px;
}

.guide-h1,
.tool-h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink-primary);
}

.tool-sub {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-secondary);
  max-width: 66ch;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  margin-bottom: 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  box-shadow: var(--shadow-pill);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-secondary);
}

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.tldr-box {
  background: var(--bg-surface);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.tldr-kicker {
  margin: 0 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tldr-text {
  margin: 0;
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

/* Sticky Sidebar TOC */
.sticky-rail {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.toc-panel {
  border-left: 1px solid var(--border-hairline);
  padding-left: 16px;
}

.toc-heading {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-link {
  display: block;
  padding: 4px 0 4px 12px;
  margin-left: -17px;
  border-left: 2px solid transparent;
  font-size: var(--text-sm);
  color: var(--ink-muted);
  text-decoration: none;
  line-height: 1.4;
}

.toc-link:hover,
.toc-link.is-active {
  color: var(--ink-primary);
  border-left-color: var(--ink-primary);
  font-weight: 600;
}

.sidebar-tool-card {
  background: var(--bg-canvas);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: 16px;
}

.sidebar-tool-title {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.sidebar-tool-desc {
  margin: 0 0 12px;
  font-size: var(--text-xs);
  color: var(--ink-secondary);
  line-height: 1.5;
}

.mobile-toc {
  display: none;
  background: var(--bg-surface);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 12px 16px;
  margin-bottom: 24px;
}

.mobile-toc summary {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.mobile-toc .toc-list {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-hairline);
}

.mobile-toc a {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  text-decoration: none;
}

/* Prose & Code */
.prose {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink-primary);
}

.home-ref-prose {
  max-width: var(--prose-max);
}

.prose h2 {
  margin: 48px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.025em;
  scroll-margin-top: 84px;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.35;
  scroll-margin-top: 84px;
}

.prose p {
  margin: 0 0 16px;
  color: var(--ink-secondary);
}

.prose p strong {
  color: var(--ink-primary);
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--ink-secondary);
}

.prose li {
  margin-bottom: 6px;
}

.prose li strong {
  color: var(--ink-primary);
}

.prose a {
  color: var(--ink-primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
}

.prose a:hover {
  text-decoration-color: var(--ink-primary);
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-subtle);
  color: var(--ink-primary);
  padding: 2px 6px;
  border-radius: 5px;
  word-break: break-word;
}

.prose pre {
  margin: 18px 0 24px;
  background: var(--bg-code);
  color: var(--ink-on-dark);
  border: 1px solid var(--border-code);
  border-radius: 10px;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.prose pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  word-break: normal;
}

/* Tables */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  background: var(--bg-canvas);
  margin: 20px 0 24px;
}

.prose table,
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  line-height: 1.5;
  text-align: left;
  min-width: 560px;
}

.prose th,
.table-scroll th {
  background: var(--bg-surface);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-hairline);
}

.prose td,
.table-scroll td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-hairline);
  vertical-align: top;
  color: var(--ink-secondary);
}

.prose tr:last-child td,
.table-scroll tr:last-child td {
  border-bottom: none;
}

/* Before / After Obsidian Diff Panes */
.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 26px;
}

.ba-pane {
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-code);
  border: 1px solid var(--border-code);
  display: flex;
  flex-direction: column;
}

.ba-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--bg-code-head);
  color: var(--ink-on-dark);
  border-bottom: 1px solid var(--border-code);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
}

.ba-head-bad,
.ba-before .ba-head {
  color: var(--status-block-bg);
}

.ba-head-good,
.ba-after .ba-head {
  color: var(--status-pass-bg);
}

.ba-head span:first-child {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ba-head span:last-child,
.ba-head .code-copy-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.ba-pane pre {
  margin: 0;
  border: none;
  border-radius: 0;
  flex: 1;
}

.code-copy-btn {
  background: var(--bg-canvas);
  color: var(--ink-primary);
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
}

.code-copy-btn:hover {
  opacity: 0.88;
}

/* Callouts */
.callout {
  padding: 16px 20px;
  border-radius: 10px;
  margin: 20px 0;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.callout-warn {
  background: var(--status-fix-bg);
  border: 1px solid var(--status-fix-border);
  color: var(--status-fix-fg);
}

.callout-block {
  background: var(--status-block-bg);
  border: 1px solid var(--status-block-border);
  color: var(--status-block-fg);
}

.callout-pass {
  background: var(--status-pass-bg);
  border: 1px solid var(--status-pass-border);
  color: var(--status-pass-fg);
}

/* Minimal Open Hairline FAQ Accordion */
.faq-block {
  margin-top: 56px;
}

.faq-list {
  margin-top: 20px;
  border-top: 1px solid var(--border-hairline);
}

.faq-item {
  border-bottom: 1px solid var(--border-hairline);
  padding: 16px 0;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink-primary);
  list-style: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-plus {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--ink-muted);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-plus {
  transform: rotate(45deg);
  color: var(--ink-primary);
}

.faq-a {
  margin: 10px 0 0;
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  line-height: 1.65;
  max-width: 70ch;
}

/* Next Step Cards & Official Sources */
.next-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 48px;
}

.next-card {
  text-decoration: none;
  color: var(--ink-primary);
}

.next-title {
  font-weight: 600;
  font-size: 1rem;
}

.next-desc {
  font-size: var(--text-sm);
  color: var(--ink-secondary);
  margin-bottom: 4px;
}

.sources-box {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--bg-surface);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

.sources-heading {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.sources-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sources-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  font-size: var(--text-sm);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-hairline);
}

.sources-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.source-domain {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.tool-docs-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border-hairline);
}

.tool-prose {
  max-width: 920px;
}

/* Shared Tool Controls & Inputs (Vercel / Linear Style) */
.seg-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: 10px;
  align-self: flex-start;
}

.seg-tab {
  min-height: 38px;
  padding: 7px 15px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-secondary);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.seg-tab.is-active {
  background: var(--bg-canvas);
  color: var(--ink-primary);
  font-weight: 600;
  box-shadow: var(--shadow-pill);
}

.q-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-secondary);
  background: var(--bg-subtle);
  padding: 2px 7px;
  border-radius: 5px;
}

.field-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 5px;
  font-family: var(--font-mono);
}

.text-input,
.select-input {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ink-primary);
  background: var(--bg-canvas);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
}

.text-input:focus,
.select-input:focus {
  outline: none;
  border-color: var(--ink-primary);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.08);
}

/* V2 Minimal Light-Gray Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
  padding-block: 56px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-disclaimer {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--ink-muted);
  line-height: 1.6;
  max-width: 44ch;
}

.footer-heading {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-primary);
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer-list a:hover {
  color: var(--ink-primary);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.mono-meta {
  font-family: var(--font-mono);
}

/* Tablet <= 1023px */
@media (max-width: 1023px) {
  .container {
    padding-inline: 24px;
  }
  .hc-controls {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .hc-code-box,
  .hc-rules-col {
    grid-column: span 12;
  }
  .bento-flow-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .flow-arrow {
    transform: rotate(90deg);
  }
  .bento-span-7,
  .bento-span-5,
  .bento-span-4 {
    grid-column: span 12;
  }
  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .guide-sidebar {
    display: none;
  }
  .mobile-toc {
    display: block;
  }
  .before-after {
    grid-template-columns: minmax(0, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile <= 767px */
@media (max-width: 767px) {
  .container {
    padding-inline: 16px;
  }
  .desktop-nav,
  .header-cta {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-section {
    padding-block: 28px 48px;
  }
  .section-block {
    padding-block: 56px;
  }
  .announce-pill {
    font-size: var(--text-xs);
    padding: 4px 12px;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-actions {
    width: 100%;
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hc-verdict {
    flex-direction: column;
    align-items: stretch;
  }
  .hc-audit-link {
    justify-content: center;
  }
  .changelog-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 14px 16px;
  }
  .changelog-row .pill-badge,
  .changelog-row .mono-pill {
    justify-self: start;
  }
  .next-step-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-kind-tool .site-footer {
    padding-bottom: 84px;
  }
}

@media (max-width: 640px) {
  .tldr-box {
    padding: 16px;
  }
  .hc-bar {
    padding: 8px 12px;
  }
  .hc-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hc-tab {
    font-size: var(--text-xs);
    padding: 6px;
  }
}


/* === V2 Bilingual (zh-CN) Typography & EN / 中文 Switcher === */
html[lang="zh-CN"] {
  --font-display: 'Geist', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Geist', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

html[lang="zh-CN"] .hero-h1,
html[lang="zh-CN"] .guide-h1,
html[lang="zh-CN"] .tool-h1 {
  letter-spacing: -0.015em;
  line-height: 1.22;
}

html[lang="zh-CN"] .hero-h1 {
  max-width: 920px;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
}

html[lang="zh-CN"] .section-h2 {
  letter-spacing: -0.01em;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  gap: 2px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  min-height: 28px;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1;
  color: var(--ink-secondary);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.lang-opt:hover {
  color: var(--ink-primary);
}

.lang-opt.is-active {
  background: var(--bg-canvas);
  color: var(--ink-primary);
  font-weight: 600;
  box-shadow: var(--shadow-pill);
}

@media (max-width: 1024px) {
  .desktop-nav {
    gap: 2px;
  }
  .nav-link {
    padding: 6px 8px;
  }
}

@media (max-width: 767px) {
  .lang-opt {
    padding: 5px 9px;
    min-height: 30px;
  }
}
