/*
 * Mearc landing page and its secondary pages (privacy, terms, 404).
 * Visual rules follow the landing-page-design skill: Tailwind type scale only,
 * spacing tokens only, Tailwind radii with the nested radius formula, flat
 * backgrounds, one typeface (Geist, with Geist Mono for hashes and data).
 */

:root {
  /* Color */
  --bg: #ffffff;
  --surface: #f6f8fb;
  --surface-strong: #eef2f8;
  --ink: #151a23;
  --ink-muted: rgba(21, 26, 35, 0.3);
  --body: #4a5361;
  --subtle: #6b7482;
  --line: #e2e7ef;
  --brand: #635bdf;
  --brand-soft: #efeefe;
  --primary: #1473f6;
  --primary-hover: #0865e2;
  --success: #1c7f47;
  --success-soft: #e8f6ee;
  --danger: #b3372b;
  --danger-soft: #fdeeec;
  --focus: #1473f6;

  /* Spacing (B2) */
  --s-25: 2px;
  --s-50: 4px;
  --s-75: 8px;
  --s-100: 12px;
  --s-200: 16px;
  --s-300: 24px;
  --s-400: 32px;
  --s-500: 40px;
  --s-600: 48px;
  --s-700: 64px;
  --s-800: 80px;
  --s-900: 96px;

  /* Radius (Tailwind) */
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-full: 9999px;

  /* Motion (B7) */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --page: 1152px;
  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--s-900); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
/* Components set their own display, which would otherwise override the hidden attribute. */
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; letter-spacing: -0.02em; }
p, li, dd, summary { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-md);
}

.skip-link {
  position: absolute;
  top: var(--s-200);
  left: var(--s-200);
  z-index: 100;
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 300ms var(--ease);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--page) + var(--s-400) * 2);
  margin: 0 auto;
  padding: 0 var(--s-400);
}

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

/* ---------------------------------------------------------------- */
/* Buttons                                                          */
/* ---------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: scale(0.98); }
.button-primary { background: var(--primary); color: #fff; }
.button-primary:hover { background: var(--primary-hover); }
.button-quiet { background: var(--bg); border-color: var(--line); color: var(--ink); }
.button-quiet:hover { background: var(--surface); }
.button-sm { font-size: 14px; line-height: 20px; }
.button-lg { padding: var(--s-100) var(--s-300); }
.button[disabled] { cursor: progress; opacity: 0.75; transform: none; }

/* ---------------------------------------------------------------- */
/* Navigation                                                       */
/* ---------------------------------------------------------------- */

.nav {
  position: fixed;
  top: var(--s-200);
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--s-300);
  padding: var(--s-75);
  padding-left: var(--s-200);
  border: 1px solid rgba(226, 231, 239, 0.9);
  border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  transform: translateX(-50%);
  box-shadow: 0 8px 24px rgba(21, 26, 35, 0.06);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.logo svg { width: 28px; height: 28px; fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.nav-links { display: flex; align-items: center; gap: var(--s-50); margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: block;
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.nav-links a:hover { background: var(--surface-strong); color: var(--ink); }
.nav-links a[aria-current="true"] { background: var(--surface-strong); color: var(--ink); }

.menu-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--r-lg);
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--ink);
  transition: transform 500ms var(--ease);
}
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: var(--s-75);
  padding: var(--s-900) var(--s-300) var(--s-400);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ease), visibility 0s linear 300ms;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity 300ms var(--ease); }
.mobile-menu a:not(.button) {
  padding: var(--s-100) 0;
  font-size: 30px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.mobile-menu > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.mobile-menu .button { margin-top: var(--s-300); }
.menu-open .mobile-menu > * { opacity: 1; transform: none; }
.menu-open .mobile-menu > :nth-child(1) { transition-delay: 0ms; }
.menu-open .mobile-menu > :nth-child(2) { transition-delay: 60ms; }
.menu-open .mobile-menu > :nth-child(3) { transition-delay: 120ms; }
.menu-open .mobile-menu > :nth-child(4) { transition-delay: 180ms; }

/* ---------------------------------------------------------------- */
/* Sections                                                         */
/* ---------------------------------------------------------------- */

.section { position: relative; padding: var(--s-900) 0; }
.center { text-align: center; }
.center .section-title,
.center .section-lead { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  margin-bottom: var(--s-200);
  color: var(--brand);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.section-title {
  max-width: 680px;
  font-size: 44px;
  line-height: 48px;
  letter-spacing: -0.03em;
}
.section-lead {
  max-width: 560px;
  margin-top: var(--s-200);
  color: var(--body);
  font-size: 18px;
  line-height: 28px;
}

.button-ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.button-ghost:hover { background: rgba(255, 255, 255, 0.14); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
  padding: var(--s-25) var(--s-75);
  border-radius: var(--r-full);
  background: var(--surface-strong);
  color: var(--subtle);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}
.badge-warn { background: #fff4dc; color: #8a5a00; }
.badge-inference { background: #fff4dc; color: #8a5a00; }

.icon-tile {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-xl);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 22px;
}

/* Cursor spotlight on cards: main.js sets --mx and --my. */
.glow { position: relative; isolation: isolate; }
.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, -40%), rgba(99, 91, 223, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 400ms var(--ease);
  pointer-events: none;
}
.glow:hover::before { opacity: 1; }

/* One background for the whole page: a dot grid with soft, drifting color glows. */
.page-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(21, 26, 35, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.55));
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.55));
}
.page-bg span {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.28;
  animation: drift 18s var(--ease) infinite alternate;
}
.page-bg span:nth-child(1) { top: -180px; left: 4%; background: #8c84ff; }
.page-bg span:nth-child(2) { top: 20%; right: -6%; background: #5aa9ff; animation-delay: -6s; }
.page-bg span:nth-child(3) { bottom: -160px; left: 30%; background: #7ee0d2; opacity: 0.2; animation-delay: -12s; }

/* Scroll progress */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--primary), #22b8cf);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

/* ---------------------------------------------------------------- */
/* Hero                                                             */
/* ---------------------------------------------------------------- */

/* The fixed nav needs room: main's 64px top padding plus the hero's own. */
main { padding-top: var(--s-700); }
.hero { position: relative; overflow: hidden; padding: var(--s-800) 0 var(--s-900); text-align: center; }
.hero .container { position: relative; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.15); }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-50) var(--s-100);
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  color: var(--body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.05); } }

.hero h1 {
  max-width: 760px;
  margin: var(--s-300) auto 0;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.045em;
}
.gradient-text {
  background: linear-gradient(100deg, var(--brand) 10%, var(--primary) 55%, #22b8cf 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite alternate;
}
@keyframes shimmer { to { background-position: 100% 0; } }
.hero-sub {
  max-width: 520px;
  margin: var(--s-300) auto 0;
  color: var(--body);
  font-size: 20px;
  line-height: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-100); margin-top: var(--s-400); }

/* Demo window */
.demo-window {
  max-width: 720px;
  margin: var(--s-700) auto 0;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 #fff inset, 0 32px 80px rgba(46, 52, 120, 0.16);
  text-align: left;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: var(--s-200);
  padding: var(--s-100) var(--s-200);
  border-bottom: 1px solid var(--line);
}
.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e3e6ec; }
.window-dots i:nth-child(1) { background: #ff6b5e; }
.window-dots i:nth-child(2) { background: #ffbd2e; }
.window-dots i:nth-child(3) { background: #28c840; }
.window-title { flex: 1; overflow: hidden; color: var(--subtle); font-size: 13px; line-height: 20px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.window-body { padding: var(--s-300); }

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-lg);
  background: var(--surface-strong);
}
.segmented button {
  padding: var(--s-50) var(--s-100);
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--subtle);
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 300ms var(--ease), color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(21, 26, 35, 0.12); }
.segmented-lg { margin-top: var(--s-400); }
.segmented-lg button { padding: var(--s-75) var(--s-200); font-size: 14px; }

.diff-line { padding: var(--s-200); border: 1px solid var(--line); border-radius: var(--r-xl); background: #fff; }
.diff-meta { display: flex; align-items: center; gap: var(--s-75); color: var(--subtle); font-family: var(--mono); font-size: 12px; line-height: 16px; }
.diff-tag { padding: 1px var(--s-75); border-radius: var(--r-full); background: #fff4dc; color: #8a5a00; font-family: var(--font); font-weight: 600; animation: pop 500ms var(--ease); }
.diff-line p { margin-top: var(--s-100); font-size: 20px; line-height: 30px; font-weight: 500; letter-spacing: -0.01em; }
.diff-num { display: inline-flex; gap: var(--s-50); }
.diff-num del,
.diff-num ins { display: none; padding: 0 var(--s-50); border-radius: var(--r-md); text-decoration: none; }
.diff-num del { background: #fde3df; color: #9b3d1f; text-decoration: line-through; }
.diff-num ins { background: #dcf3e5; color: #1c7f47; }
.is-v2 .diff-num del,
.is-v2 .diff-num ins { display: inline; animation: pop 500ms var(--ease) both; }
.is-v2 .diff-num ins { animation-delay: 120ms; }
.is-v2 .diff-current { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.96); } }

.why { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-100); margin-top: var(--s-200); }
.why-button {
  display: inline-flex;
  align-items: center;
  gap: var(--s-50);
  padding: var(--s-75) var(--s-100);
  border: 1px solid #d9d6fb;
  border-radius: var(--r-lg);
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}
.why-button:hover:not([disabled]) { transform: translateY(-1px); }
.why-button[disabled] { cursor: not-allowed; opacity: 0.45; }
.why-hint { color: var(--subtle); font-size: 13px; line-height: 20px; }
.why-answer { margin-top: var(--s-200); padding: var(--s-200); border-left: 3px solid #f2b84b; border-radius: 0 var(--r-lg) var(--r-lg) 0; background: #fffaf0; animation: pop 400ms var(--ease); }
.why-text { margin-top: var(--s-75); color: var(--ink); font-size: 15px; line-height: 24px; }
.why-text::after { content: "▍"; margin-left: 1px; color: var(--brand); animation: blink 1s steps(1) infinite; }
.why-text.is-done::after { content: none; }
@keyframes blink { 50% { opacity: 0; } }

/* Marquee */
.marquee { overflow: hidden; padding: var(--s-200) 0; border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.55); backdrop-filter: blur(8px); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: var(--s-600); width: max-content; margin: 0; padding: 0; list-style: none; animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee li { display: inline-flex; align-items: center; gap: var(--s-75); color: var(--body); font-size: 15px; line-height: 24px; font-weight: 500; white-space: nowrap; }
.marquee i { color: var(--brand); font-size: 20px; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- */
/* Explain at your level                                            */
/* ---------------------------------------------------------------- */

.split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-700); align-items: center; }
.paper-card {
  padding: var(--s-400);
  border: 1px solid var(--line);
  border-radius: var(--r-3xl);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 64px rgba(21, 26, 35, 0.08);
}
.paper-head { display: flex; align-items: center; gap: var(--s-200); padding-bottom: var(--s-300); border-bottom: 1px solid var(--line); }
.paper-head > div { flex: 1; }
.paper-head h3 { font-size: 18px; line-height: 24px; }
.paper-ref { color: var(--subtle); font-family: var(--mono); font-size: 12px; line-height: 16px; }
.level-text { min-height: 176px; padding-top: var(--s-300); animation: pop 450ms var(--ease); }
.level-text p { color: var(--ink); font-size: 18px; line-height: 30px; }
.level-text p + p { margin-top: var(--s-200); }
.level-text .inference { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-75); color: var(--body); font-size: 16px; line-height: 26px; }
.term {
  padding: 0;
  border: 0;
  border-bottom: 2px dotted var(--brand);
  background: none;
  color: inherit;
  font: inherit;
  cursor: help;
}
.term:hover, .term[aria-expanded="true"] { background: var(--brand-soft); }
.cite {
  margin-left: var(--s-50);
  padding: 0 6px;
  border: 1px solid #c9dbf2;
  border-radius: var(--r-md);
  background: #f2f7fd;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  vertical-align: 2px;
  cursor: help;
}
.cite:hover, .cite[aria-expanded="true"] { border-color: var(--primary); }
.paper-foot { display: flex; align-items: center; gap: var(--s-75); margin-top: var(--s-300); padding-top: var(--s-200); border-top: 1px solid var(--line); color: var(--subtle); font-size: 13px; line-height: 20px; }
.tooltip {
  position: absolute;
  z-index: 5;
  max-width: 280px;
  padding: var(--s-75) var(--s-100);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  line-height: 19px;
  box-shadow: 0 12px 32px rgba(21, 26, 35, 0.24);
  animation: pop 250ms var(--ease);
  pointer-events: none;
}

/* ---------------------------------------------------------------- */
/* Verify: tamper-evident chain                                     */
/* ---------------------------------------------------------------- */

.dark-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--s-800) var(--s-600);
  border-radius: var(--r-3xl);
  background: #0e1220;
  color: #fff;
  box-shadow: 0 32px 80px rgba(14, 18, 32, 0.25);
}
.dark-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 15% 0%, rgba(99, 91, 223, 0.35), transparent 60%),
    radial-gradient(500px circle at 90% 100%, rgba(34, 184, 207, 0.22), transparent 60%);
  pointer-events: none;
}
.dark-panel .eyebrow { color: #b7b2ff; }
.dark-panel .section-lead { color: #aab2c2; }

.chain { margin-top: var(--s-600); }
.chain-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-200); margin: 0; padding: 0; list-style: none; counter-reset: event; }
.chain-node {
  position: relative;
  display: grid;
  gap: var(--s-75);
  align-content: start;
  padding: var(--s-200);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  transition: border-color 400ms var(--ease), background-color 400ms var(--ease), transform 400ms var(--ease);
}
/* The link to the next event. */
.chain-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--s-200) * -1);
  width: var(--s-200);
  height: 2px;
  background: linear-gradient(90deg, #6ee7a8, #34d399);
  transition: background 400ms var(--ease);
}
.chain-node.is-broken-link::after { background: repeating-linear-gradient(90deg, #ff6b5e 0 4px, transparent 4px 8px); }
.chain-node.is-tampered { border-color: #ff6b5e; background: rgba(255, 107, 94, 0.12); transform: translateY(-4px); }
.chain-node.is-invalid { border-color: rgba(255, 107, 94, 0.5); }
.chain-who { display: flex; align-items: center; gap: var(--s-50); color: #aab2c2; font-size: 12px; line-height: 16px; font-weight: 600; }
.chain-who i { font-size: 15px; }
.chain-who .is-agent { color: #b7b2ff; }
.chain-what { color: #fff; font-size: 14px; line-height: 20px; font-weight: 500; min-height: 40px; }
.chain-hash { font-family: var(--mono); font-size: 11px; line-height: 16px; color: #6ee7a8; word-break: break-all; }
.chain-hash s { color: #8b93a3; }
.chain-node.is-invalid .chain-hash,
.chain-node.is-tampered .chain-hash { color: #ff8a80; }
.chain-edit {
  justify-self: start;
  margin-top: var(--s-50);
  padding: 2px var(--s-75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--r-md);
  background: transparent;
  color: #d6dbe5;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 300ms var(--ease);
}
.chain-edit:hover { background: rgba(255, 255, 255, 0.1); }
.chain-edit[disabled] { opacity: 0.4; cursor: default; }
.chain-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-200); margin-top: var(--s-400); }
.chain-state {
  display: inline-flex;
  align-items: center;
  gap: var(--s-75);
  padding: var(--s-75) var(--s-200);
  border-radius: var(--r-full);
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7a8;
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
  transition: background-color 400ms var(--ease), color 400ms var(--ease);
}
.chain-state i { font-size: 20px; }
.chain.is-broken .chain-state { background: rgba(255, 107, 94, 0.16); color: #ff8a80; }

/* ---------------------------------------------------------------- */
/* Features: tabs                                                   */
/* ---------------------------------------------------------------- */

.tabs { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s-400); align-items: center; margin-top: var(--s-600); }
.tab-list { display: grid; gap: var(--s-100); }
.tab-list [role="tab"] {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--s-200);
  align-items: center;
  overflow: hidden;
  padding: var(--s-200);
  border: 1px solid transparent;
  border-radius: var(--r-xl);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease);
}
.tab-list [role="tab"] > i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-xl);
  background: var(--surface-strong);
  color: var(--subtle);
  font-size: 22px;
  transition: background-color 300ms var(--ease), color 300ms var(--ease);
}
.tab-list strong { display: block; font-size: 17px; line-height: 24px; }
.tab-list small { display: block; color: var(--subtle); font-size: 14px; line-height: 20px; }
.tab-list [role="tab"]:hover { background: var(--surface); }
.tab-list [aria-selected="true"] { border-color: var(--line); background: #fff; box-shadow: 0 8px 24px rgba(21, 26, 35, 0.06); }
.tab-list [aria-selected="true"] > i { background: var(--brand-soft); color: var(--brand); }
.tab-progress { position: absolute; inset: auto 0 0; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; }
/* main.js sets the progress bar's scale from the clip's playback position. */
.tab-panels { position: relative; }
.clip-toggle { position: absolute; right: var(--s-300); bottom: var(--s-300); z-index: 2; display: inline-flex; align-items: center; gap: var(--s-50); padding: var(--s-50) var(--s-100); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--r-full); background: rgba(21, 26, 35, 0.72); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.clip-toggle:hover { background: rgba(21, 26, 35, 0.88); }
.clip-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.clip-toggle[hidden] { display: none; }

/* Screenshot frame: outer 16px radius, 8px padding, so the image gets 8px. */
.frame {
  margin: 0;
  padding: var(--s-75);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(21, 26, 35, 0.08);
}
.frame img,
.frame video { border-radius: var(--r-lg); }
.clip { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: var(--surface-strong); }
.tab-panel:not([hidden]) { animation: pop 500ms var(--ease); }

/* ---------------------------------------------------------------- */
/* Tagline and steps                                                */
/* ---------------------------------------------------------------- */

.tagline { padding: var(--s-900) 0; }
.tagline p {
  max-width: 880px;
  margin: 0 auto;
  font-size: 56px;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-align: center;
  text-wrap: balance;
}
.tagline .word { color: var(--ink-muted); transition: color 500ms var(--ease); }
.tagline .word.is-on { color: var(--ink); }
.tagline .accent.is-on { color: var(--brand); }

.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-300); margin: var(--s-600) 0 0; padding: 0; list-style: none; }
/* A line joining the three numbers. */
.steps::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--primary), #22b8cf);
  opacity: 0.35;
}
.step {
  padding: var(--s-400) var(--s-300);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 500ms var(--ease), border-color 300ms var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: #cfd6e2; }
.step-number {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--brand), var(--primary));
  color: #fff;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.9);
}
.step h3 { margin-top: var(--s-200); font-size: 22px; line-height: 28px; }
.step p { margin-top: var(--s-75); color: var(--body); }

/* FAQ */

.faq { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s-600); align-items: start; }
.faq > :first-child { position: sticky; top: var(--s-900); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-200);
  padding: var(--s-300) 0;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: color 300ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary i { flex: none; color: var(--subtle); font-size: 20px; transition: transform 500ms var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s-600) var(--s-300) 0; color: var(--body); }

/* Final CTA and form */

.cta-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-600);
  padding: var(--s-600);
  border-radius: var(--r-3xl);
  background: var(--ink);
  color: #fff;
}
.cta-card .eyebrow { color: #b7b2ff; }
.cta-card .section-title { color: #fff; }
.cta-card .section-lead { color: #c3c9d3; }
.assurances { display: grid; gap: var(--s-100); margin: var(--s-400) 0 0; padding: 0; list-style: none; color: #e4e8ee; }
.assurances li { display: flex; align-items: center; gap: var(--s-100); }
.assurances i { color: #b7b2ff; font-size: 20px; }

.form {
  display: grid;
  gap: var(--s-200);
  align-content: start;
  padding: var(--s-300);
  border-radius: var(--r-2xl);
  background: #fff;
  color: var(--ink);
}
.field { display: grid; gap: var(--s-75); }
.field label { font-size: 14px; line-height: 20px; font-weight: 600; }
.field .optional { color: var(--subtle); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: var(--s-75) var(--s-100);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  font-size: 16px;
  line-height: 24px;
  transition: border-color 300ms var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: #c9d1dd; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field-error { min-height: 0; color: var(--danger); font-size: 14px; line-height: 20px; }
.field-error:empty { display: none; }
.form .button { width: 100%; }
.form-note { color: var(--subtle); font-size: 14px; line-height: 20px; }
.form-note a { color: var(--ink); }
.form-status { padding: var(--s-100) var(--s-200); border-radius: var(--r-lg); font-size: 14px; line-height: 20px; }
.form-status:empty { display: none; }
.form-status.is-error { background: var(--danger-soft); color: var(--danger); }
.form-status.is-success { background: var(--success-soft); color: var(--success); }
.form-success { display: grid; gap: var(--s-100); align-content: center; min-height: 100%; text-align: center; }
.form-success i { justify-self: center; color: var(--success); font-size: 40px; }
.form-success h3 { font-size: 24px; line-height: 32px; }
.form-success p { color: var(--body); }

/* Footer */

.footer { padding: var(--s-600) 0 var(--s-400); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s-300); }
.footer-tagline { margin-top: var(--s-75); color: var(--subtle); font-size: 14px; line-height: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-300); margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.footer-links a { color: var(--body); text-decoration: none; transition: color 300ms var(--ease); }
.footer-links a:hover { color: var(--ink); }
.footer-legal { margin-top: var(--s-400); color: var(--subtle); font-size: 14px; line-height: 20px; }

/* Simple pages (privacy, terms, 404) */

.page { padding: var(--s-900) 0; }
.page .container { max-width: calc(720px + var(--s-400) * 2); }
.page h1 { font-size: 48px; line-height: 1; }
.page h2 { margin-top: var(--s-500); font-size: 24px; line-height: 32px; }
.page p,
.page li { margin-top: var(--s-100); color: var(--body); }
.page ul { padding-left: var(--s-300); }
.page .updated { margin-top: var(--s-200); color: var(--subtle); font-size: 14px; line-height: 20px; }
.page .button { margin-top: var(--s-400); }
.not-found { text-align: center; }
.not-found .code { color: var(--brand); font-family: var(--mono); font-size: 14px; line-height: 20px; }
.not-found h1 { margin-top: var(--s-200); }
.not-found p { max-width: 480px; margin: var(--s-200) auto 0; }

/* CTA glow */
.cta-card { position: relative; overflow: hidden; isolation: isolate; }
.cta-glow {
  position: absolute;
  inset: -40% -10% auto auto;
  z-index: -1;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 91, 223, 0.55), transparent 65%);
  filter: blur(20px);
  animation: drift 14s var(--ease) infinite alternate;
}

/* ---------------------------------------------------------------- */
/* Scroll reveals (B7)                                              */
/* ---------------------------------------------------------------- */

.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 700ms var(--ease); }
  .button:hover,
  .button:active,
  .step:hover { transform: none; }
  .mobile-menu > * { transform: none; }
  .menu-toggle span { transition: opacity 300ms var(--ease); }
  .page-bg span,
  .cta-glow,
  .gradient-text,
  .pill-dot,
  .why-text::after { animation: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; width: auto; animation: none; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .tab-progress { display: none; }
}

/* ---------------------------------------------------------------- */
/* Responsive                                                       */
/* ---------------------------------------------------------------- */

@media (max-width: 960px) {
  .split,
  .tabs,
  .faq,
  .cta-card { grid-template-columns: 1fr; }
  .chain-list { grid-template-columns: 1fr; gap: var(--s-200); }
  .chain-node:not(:last-child)::after { top: auto; bottom: calc(var(--s-200) * -1); left: 32px; right: auto; width: 2px; height: var(--s-200); background: linear-gradient(180deg, #6ee7a8, #34d399); }
  .chain-node.is-broken-link::after { background: repeating-linear-gradient(180deg, #ff6b5e 0 4px, transparent 4px 8px); }
  .chain-node { gap: var(--s-50); }
  .chain-what { min-height: 0; }
  .tagline p { font-size: 40px; line-height: 44px; }
}

@media (max-width: 760px) {
  .container { padding: 0 var(--s-200); }
  .nav { left: var(--s-200); right: var(--s-200); justify-content: space-between; transform: none; }
  .nav-links,
  .nav > .button { display: none; }
  .menu-toggle { display: block; }
  .section { padding: var(--s-700) 0; }
  .hero { padding: var(--s-600) 0 var(--s-700); }
  .hero h1 { font-size: 44px; line-height: 48px; }
  .hero-sub { font-size: 18px; line-height: 28px; }
  .page-bg span { width: 320px; height: 320px; }
  .dark-panel { padding: var(--s-600) var(--s-200); border-radius: var(--r-2xl); }
  .window-title { display: none; }
  .window-bar { justify-content: space-between; }
  .window-body { padding: var(--s-200); }
  .diff-line p { font-size: 17px; line-height: 26px; }
  .section-title { font-size: 32px; line-height: 38px; }
  .segmented-lg { display: flex; }
  .segmented-lg button { flex: 1; padding: var(--s-75) var(--s-50); font-size: 13px; }
  .paper-card { padding: var(--s-300); border-radius: var(--r-2xl); }
  .level-text p { font-size: 16px; line-height: 27px; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .tagline p { font-size: 32px; line-height: 38px; }
  .cta-card { padding: var(--s-300); border-radius: var(--r-2xl); }
  /* 16px radius minus 24px padding is below 2, so the nested formula does not apply; keep 8px. */
  .cta-card .form { padding: var(--s-200); border-radius: var(--r-lg); }
  .faq details p { padding-right: 0; }
  .faq > :first-child { position: static; }
  .page h1 { font-size: 36px; line-height: 40px; }
}

/* ---------------------------------------------------------------- */
/* v2 colours: sky blue for accents and a light sun yellow for     */
/* primary actions, matching the app. The page background is the   */
/* original one.                                                    */
/* ---------------------------------------------------------------- */

:root {
  --bg: #ffffff;
  --line: #d9e5f2;
  --brand: #2c6cb0;
  --brand-soft: #e3effc;
  --primary: #ffe999;
  --primary-hover: #ffde70;
  --primary-ink: #4f3c00;
  --focus: #2c6cb0;
}

.button-primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 4px 14px rgba(176, 134, 0, .16); }
.button-primary:hover { background: var(--primary-hover); }
.button-quiet { background: rgba(255, 255, 255, .72); }
.nav { border-color: rgba(201, 220, 240, .9); background: rgba(255, 255, 255, .7); }
.marquee { border-color: rgba(201, 220, 240, .9); background: rgba(255, 255, 255, .45); }
.scroll-progress { background: linear-gradient(90deg, #7fb7ee, var(--brand), #f4c84a); }
.gradient-text { background-image: linear-gradient(100deg, #1f5c9e 10%, #3d8fdc 55%, #6bb8f0 92%); }
.pill-dot { background: #f4c430; box-shadow: 0 0 0 4px rgba(244, 196, 48, .25); }
.tagline .accent.is-on { color: var(--brand); }
.not-found .code { color: var(--brand); }

/* The hash-chain demo and the early-access card are light frosted glass, so the page's dot
   grid and glows show through. Everything inside uses the light palette: ink text, sky
   accents, the success green for an intact chain, and the danger red for a tampered one. */
.dark-panel,
.cta-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 24px 64px rgba(44, 108, 176, 0.10);
  color: var(--ink);
}
.dark-panel::before {
  background:
    radial-gradient(600px circle at 15% 0%, rgba(75, 155, 227, .14), transparent 60%),
    radial-gradient(500px circle at 90% 100%, rgba(244, 196, 48, .10), transparent 60%);
}
.dark-panel .eyebrow, .cta-card .eyebrow, .assurances i { color: var(--brand); }
.dark-panel .section-title, .cta-card .section-title { color: var(--ink); }
.dark-panel .section-lead, .cta-card .section-lead { color: var(--body); }
.cta-glow { background: radial-gradient(circle, rgba(75, 155, 227, .18), transparent 65%); }
.cta-card .assurances { color: var(--body); }
.cta-card .form { border: 1px solid var(--line); }

.chain-node { border-color: var(--line); background: rgba(255, 255, 255, 0.9); }
.chain-node:not(:last-child)::after { background: linear-gradient(90deg, #34d399, var(--success)); }
.chain-node.is-broken-link::after { background: repeating-linear-gradient(90deg, var(--danger) 0 4px, transparent 4px 8px); }
.chain-node.is-tampered { border-color: var(--danger); background: var(--danger-soft); }
.chain-node.is-invalid { border-color: rgba(179, 55, 43, 0.45); }
.chain-who { color: var(--subtle); }
.chain-who .is-agent { color: var(--brand); }
.chain-what { color: var(--ink); }
.chain-hash { color: var(--success); }
.chain-hash s { color: var(--subtle); }
.chain-node.is-invalid .chain-hash,
.chain-node.is-tampered .chain-hash { color: var(--danger); }
.chain-edit { border-color: var(--line); background: #fff; color: var(--ink); }
.chain-edit:hover { background: var(--surface-strong); }
.chain-state { background: var(--success-soft); color: var(--success); }
.chain.is-broken .chain-state { background: var(--danger-soft); color: var(--danger); }
/* The Restore button was ghost-styled for the dark panel. */
.dark-panel .button-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.dark-panel .button-ghost:hover { background: var(--surface-strong); }


/* Public claims */
.mini-steps { display: grid; gap: var(--s-200); margin: var(--s-400) 0; padding: 0; list-style: none; }
.mini-steps li { display: flex; align-items: flex-start; gap: var(--s-200); }
.mini-steps span { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 14px; line-height: 20px; font-weight: 600; }
.mini-steps p { margin: 2px 0 0; color: var(--body); }
.mini-steps strong { color: var(--ink); }
.claim-mock {
  display: grid; gap: var(--s-200); padding: var(--s-400);
  border: 1px solid var(--line); border-radius: var(--r-3xl);
  background: rgba(255, 255, 255, .9); box-shadow: 0 24px 64px rgba(30, 60, 100, .1);
  color: var(--ink); text-decoration: none;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease);
}
.claim-mock:hover { transform: translateY(-2px); border-color: #b9d3ee; }
.claim-mock-head { display: flex; align-items: center; gap: var(--s-200); padding-bottom: var(--s-200); border-bottom: 1px solid var(--line); }
.claim-mock-head strong { display: block; font-size: 18px; line-height: 24px; }
.claim-mock-head .paper-ref { display: block; }
.claim-mock-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-100); }
.claim-mock-meta code { color: var(--subtle); font-family: var(--mono); font-size: 13px; }
.status-chip { padding: 2px 10px; border-radius: var(--r-full); background: var(--surface-strong); color: var(--body); font-size: 12px; line-height: 18px; font-weight: 600; }
.claim-mock-quote { padding-left: var(--s-200); border-left: 3px solid #b9d3ee; font-size: 18px; line-height: 28px; }
.claim-mock-note { color: var(--subtle); font-size: 13px; line-height: 20px; }
.status-legend { display: flex; flex-wrap: wrap; gap: var(--s-75); padding-top: var(--s-200); border-top: 1px solid var(--line); }
.status-legend span { padding: 2px 10px; border-radius: var(--r-full); background: var(--surface-strong); color: var(--body); font-size: 12px; line-height: 18px; font-weight: 600; }
.status-legend .ok { background: var(--success-soft); color: var(--success); }
.status-legend .part { background: #fff4dc; color: #8a5a00; }
.status-legend .no { background: var(--danger-soft); color: var(--danger); }

/* Before you submit */
.check-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--s-300); margin-top: var(--s-600); }
.check-card { display: flex; flex-direction: column; gap: var(--s-200); padding: var(--s-300); border: 1px solid var(--line); border-radius: var(--r-2xl); background: rgba(255, 255, 255, .9); box-shadow: 0 16px 48px rgba(30, 60, 100, .08); }
.check-card header { display: flex; align-items: center; gap: var(--s-100); }
.check-card header h3 { flex: 1; font-size: 18px; line-height: 24px; }
.check-card .icon-tile { width: 36px; height: 36px; font-size: 20px; }
.badge-ok { background: var(--success-soft); color: var(--success); }
.check-quote { margin: 0; padding: var(--s-100) var(--s-200); border-radius: var(--r-lg); background: #fdf3f1; color: var(--ink); font-size: 15px; line-height: 22px; }
.check-quote-reviewed { background: var(--success-soft); }
.check-label { display: block; margin-bottom: 2px; color: var(--subtle); font-size: 12px; line-height: 16px; font-weight: 600; }
.check-foot { display: flex; align-items: center; gap: var(--s-75); margin: auto 0 0; color: var(--brand); font-size: 14px; line-height: 20px; font-weight: 600; }
.scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-75); margin: 0; }
.scores div { padding: var(--s-100); border-radius: var(--r-lg); background: var(--surface); }
.scores dt { color: var(--subtle); font-size: 12px; line-height: 16px; }
.scores dd { margin: 2px 0 0; font-size: 22px; line-height: 28px; font-weight: 600; }
.scores .scores-text { font-size: 13px; line-height: 18px; font-weight: 500; }
.rules { display: grid; gap: var(--s-75); margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; }
.rules li { display: flex; align-items: center; gap: var(--s-75); color: var(--body); }
.rules i { flex: none; font-size: 16px; }
.rules .pass i { color: var(--success); }
.rules .fail i { color: var(--danger); }
.rules .warn i { color: #b07d00; }
.check-hash { margin: auto 0 0; color: var(--subtle); font-size: 13px; line-height: 20px; }

/* For organizers: a light panel, so the page keeps a single dark band */
.organizers { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-600); align-items: center; padding: var(--s-600); border: 1px solid var(--line); border-radius: var(--r-3xl); background: rgba(255, 255, 255, .78); box-shadow: 0 24px 64px rgba(30, 60, 100, .08); }
.organizers .assurances { margin-bottom: var(--s-400); color: var(--body); }
.organizers .assurances i { color: var(--brand); }
.terminal { overflow: hidden; border-radius: var(--r-2xl); background: #0f1b2d; box-shadow: 0 24px 64px rgba(15, 27, 45, .22); }
.terminal .window-bar { border-bottom-color: rgba(255, 255, 255, .08); }
.terminal .window-title { color: #8fa3bd; }
.terminal pre { margin: 0; padding: var(--s-300); overflow-x: auto; color: #dbe6f3; font-family: var(--mono); font-size: 13px; line-height: 22px; }
.terminal .prompt { color: #f4c84a; }
.terminal .out { color: #9fcaf3; }

@media (max-width: 960px) {
  .check-grid, .organizers { grid-template-columns: 1fr; }
  .organizers { padding: var(--s-400) var(--s-300); }
}
@media (prefers-reduced-motion: reduce) {
  .claim-mock:hover { transform: none; }
}
@media (max-width: 560px) {
  .terminal pre { padding: var(--s-200); font-size: 12px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
}

/* Contact */
#contact { padding-top: 0; }
.contact-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s-500); align-items: center; padding: var(--s-500); border: 1px solid var(--line); border-radius: var(--r-3xl); background: #fff; }
.contact-actions { display: grid; gap: var(--s-200); }
.contact-email { display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 14px 20px; border-radius: var(--r-lg); background: var(--primary); color: var(--primary-ink); font-size: 20px; font-weight: 600; text-decoration: none; }
.contact-email:hover { background: var(--primary-hover); }
.contact-buttons { display: flex; flex-wrap: wrap; gap: var(--s-100); }
.contact-call { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--ink); font-size: 20px; font-weight: 600; text-decoration: none; }
.contact-call:hover { border-color: var(--brand); color: var(--brand); }
.contact-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.contact-topics a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 14px; text-decoration: none; }
.contact-topics a:hover { border-color: var(--brand); color: var(--brand); }
.contact-social { display: inline-flex; align-items: center; gap: 8px; justify-self: start; color: var(--ink); font-size: 15px; text-decoration: none; }
.contact-social i { font-size: 18px; }
.contact-social:hover { color: var(--brand); }
@media (max-width: 860px) { .contact-card { grid-template-columns: 1fr; padding: var(--s-300); border-radius: var(--r-2xl); } .contact-email, .contact-call { font-size: 17px; } }

/* ---------------------------------------------------------------- */
/* Pricing page                                                     */
/* ---------------------------------------------------------------- */

.pricing-hero { padding-bottom: var(--s-500); }
.pricing-hero h1.section-title { font-size: 48px; line-height: 52px; }
.pricing-note { display: inline-flex; align-items: center; gap: var(--s-75); margin-top: var(--s-300); padding: var(--s-75) var(--s-200); border-radius: var(--r-full); background: var(--surface); color: var(--body); font-size: 15px; }
.pricing-plans { padding-top: 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-300); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: var(--s-200); padding: var(--s-400); border: 1px solid var(--line); border-radius: var(--r-3xl); background: #fff; }
.plan-featured { border-color: var(--brand); box-shadow: 0 18px 50px rgba(44, 108, 176, 0.14); }
.plan-badge { position: absolute; top: calc(-1 * var(--s-200)); left: var(--s-400); padding: var(--s-50) var(--s-200); border-radius: var(--r-full); background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; }
.plan-name { font-size: 22px; line-height: 28px; }
.plan-for { min-height: 48px; color: var(--body); font-size: 15px; line-height: 24px; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-75); color: var(--subtle); font-size: 15px; }
.plan-price strong { color: var(--ink); font-size: 44px; line-height: 48px; letter-spacing: -0.03em; }
.plan-cta { width: 100%; }
.plan-list { display: grid; gap: var(--s-100); margin: var(--s-100) 0 0; padding: var(--s-300) 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--body); font-size: 15px; line-height: 22px; }
.plan-list li { display: grid; grid-template-columns: 20px 1fr; gap: var(--s-75); }
.plan-list i { padding-top: 2px; color: var(--brand); font-size: 18px; }
.nav-links a[aria-current="page"], .footer-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav > .button { white-space: nowrap; }
/* Pages without the landing page's menu keep their one action visible on phones. */
@media (max-width: 760px) { .nav-simple > .button { display: inline-flex; } }
@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: var(--s-500); }
  .plan-for { min-height: 0; }
}
@media (max-width: 760px) {
  .pricing-hero h1.section-title { font-size: 36px; line-height: 40px; }
  .plan { padding: var(--s-300); border-radius: var(--r-2xl); }
  .pricing-note { border-radius: var(--r-lg); text-align: left; }
}
/* Seven links and a button stop fitting below about 900px: use the menu there too. */
@media (max-width: 900px) {
  .nav { left: var(--s-200); right: var(--s-200); justify-content: space-between; transform: none; }
  .nav-links, .nav > .button { display: none; }
  .nav-simple > .button { display: inline-flex; }
  .menu-toggle { display: block; }
}
