/* ==========================================================================
   Peg Drop — marketing site
   Committed dark theme: every colour is stated explicitly and nothing
   depends on prefers-color-scheme, so a visitor in light mode sees exactly
   the same page.
   ========================================================================== */

:root {
  --bg-base:   #0D0F21;
  --bg-mid:    #140E2B;
  --bg-end:    #1A0F33;

  --cyan:      #5CD4FF;
  --purple:    #B873FF;
  --gold:      #FFCC4D;
  --orange:    #FF944A;
  --lpurple:   #A878F2;
  --green:     #6BE3A8;

  --ink:       #EDEBF7;
  --ink-panel: #C4BEDD;
  --muted:     #A9A5C4;
  --muted-dim: #8E89AD;
  --footer-dim:#7C769B;

  --panel:        rgba(255,255,255,0.07);
  --panel-border: rgba(255,255,255,0.10);
  --hairline:     rgba(255,255,255,0.08);

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Space Grotesk", "Helvetica Neue", Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-base);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Per-page background washes ---------------------------------------------- */
body.page-home {
  background-image:
    radial-gradient(120% 80% at 85% -10%, rgba(184,115,255,0.18), transparent 60%),
    radial-gradient(90% 60% at 5% 5%, rgba(92,212,255,0.12), transparent 55%),
    linear-gradient(165deg, var(--bg-base) 0%, var(--bg-mid) 48%, var(--bg-end) 100%);
}
body.page-privacy {
  background-image:
    radial-gradient(110% 60% at 85% -10%, rgba(184,115,255,0.16), transparent 60%),
    linear-gradient(170deg, var(--bg-base) 0%, var(--bg-mid) 55%, var(--bg-end) 100%);
}
body.page-support {
  background-image:
    radial-gradient(110% 60% at 15% -10%, rgba(92,212,255,0.14), transparent 60%),
    linear-gradient(170deg, var(--bg-base) 0%, var(--bg-mid) 55%, var(--bg-end) 100%);
}

/* Links & focus ----------------------------------------------------------- */
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--purple); }

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

p { text-wrap: pretty; }

/* Shell ------------------------------------------------------------------- */
.shell { max-width: 1080px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.shell--narrow { max-width: 760px; }

/* Wordmark ---------------------------------------------------------------- */
.wordmark {
  display: flex;
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.wordmark .peg {
  background: linear-gradient(92deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--cyan); /* fallback if background-clip: text is unsupported */
}
.wordmark .drop { color: var(--gold); }

/* Header ------------------------------------------------------------------ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a,
.site-footer nav a { color: var(--muted); }
.site-nav a:hover,
.site-footer nav a:hover { color: var(--cyan); }

/* Footer ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--hairline); }
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 44px;
}
.site-footer .wordmark { font-size: 14px; font-weight: 600; gap: 5px; }
.site-footer .wordmark .peg {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--cyan);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.copyright {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--footer-dim);
}
.copyright a { color: var(--footer-dim); }
.copyright a:hover { color: var(--cyan); }

/* Typography helpers ------------------------------------------------------ */
.eyebrow {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow--muted  { color: var(--muted); }
.eyebrow--purple { color: var(--purple); }
.eyebrow--gold   { color: var(--gold); }

.mono-label {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.mono-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted-dim);
}

.page-title {
  margin: 0;
  font-size: clamp(32px, 8vw, 48px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: pretty;
}
.section-heading {
  margin: 0 0 30px;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.lead {
  font-size: clamp(15px, 3.6vw, 17px);
  line-height: 1.6;
  color: var(--muted);
}

/* Panels ------------------------------------------------------------------ */
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 24px;
}
.callout { border-radius: 20px; padding: 24px 26px; }
.callout--cyan   { background: rgba(92,212,255,0.08);  border: 1px solid rgba(92,212,255,0.22); }
.callout--purple { background: rgba(184,115,255,0.08); border: 1px solid rgba(184,115,255,0.22); padding: 22px 24px; }
.callout--gold   { background: rgba(255,204,77,0.08);  border: 1px solid rgba(255,204,77,0.20); border-radius: 16px; padding: 18px 20px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.card-grid--tight { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card-grid--wide  { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.card .step {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 13px;
}
.step--1 { color: var(--cyan); }
.step--2 { color: var(--purple); }
.step--3 { color: var(--gold); }

/* Buttons ----------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 14px;
  background: linear-gradient(96deg, var(--cyan), var(--purple));
  color: var(--bg-base);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px rgba(92,212,255,0.22);
}
.btn-primary:hover { filter: brightness(1.08); color: var(--bg-base); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 13px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); }

/* ==========================================================================
   Home
   ========================================================================== */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 6vw, 56px);
  align-items: center;
  padding-top: clamp(18px, 5vw, 44px);
  padding-bottom: clamp(56px, 10vw, 96px);
}
.hero > div { min-width: 0; }
.hero .eyebrow { margin-bottom: 22px; }

.hero h1 {
  margin: 0;
  font-size: clamp(52px, 15vw, 104px);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.hero h1 .peg {
  background: linear-gradient(92deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--cyan);
}
.hero h1 .drop { color: var(--gold); }

.tagline {
  margin: 24px 0 0;
  font-size: clamp(20px, 4.4vw, 26px);
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
  max-width: 20ch;
}
.hero .lead { margin: 16px 0 0; max-width: 46ch; }

.cta-stack {
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Board illustration — pure CSS, no images or SVG */
.board-wrap { display: flex; justify-content: center; min-width: 0; }
.board {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 26px;
  padding: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.board-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.board-status .power { color: var(--gold); }

.rail { position: relative; height: 22px; }
.rail::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 9px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.12);
}
.ball {
  position: absolute;
  left: 26%;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 22px rgba(255,204,77,0.55);
  animation: pd-float 3.2s ease-in-out infinite;
}
@keyframes pd-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .ball { animation: none; }
  html { scroll-behavior: auto; }
}

.peg-field {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 5vw, 28px);
  padding: 6px 4px 2px;
}
.peg-row {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 30px);
}
.peg-row--offset { transform: translateX(-13px); }
.board-peg {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(92,212,255,0.82);
  box-shadow: 0 0 10px rgba(92,212,255,0.3);
}
.board-peg--kicker { background: var(--orange);  box-shadow: 0 0 13px rgba(255,148,74,0.45); }
.board-peg--damper { background: var(--lpurple); box-shadow: 0 0 13px rgba(168,120,242,0.45); }

.slots { display: flex; gap: 7px; }
.slot {
  flex: 1;
  height: 46px;
  border-radius: 11px;
  border: 1px dashed rgba(255,255,255,0.14);
}
.slot--target {
  border: 1px solid var(--gold);
  background: rgba(255,204,77,0.14);
  box-shadow: inset 0 0 24px rgba(255,204,77,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 19px;
  line-height: 1;
}

.home-section { padding-bottom: clamp(56px, 10vw, 96px); }
.home-section--last { padding-bottom: clamp(64px, 12vw, 104px); }

/* Peg legend swatches */
.swatch {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-bottom: 16px;
  background: rgba(92,212,255,0.9);
  box-shadow: 0 0 16px rgba(92,212,255,0.4);
}
.swatch--kicker { background: var(--orange);  box-shadow: 0 0 16px rgba(255,148,74,0.45); }
.swatch--damper { background: var(--lpurple); box-shadow: 0 0 16px rgba(168,120,242,0.45); }

.callout--purple p { margin: 0; font-size: clamp(15px, 3.6vw, 17px); line-height: 1.6; color: #DCD6F2; }
.callout--purple strong { color: var(--purple); font-weight: 600; }

/* Physics cards */
.phys-card { border-radius: 18px; padding: 20px; }
.phys-card .mono-label { color: var(--cyan); font-size: 11.5px; letter-spacing: 0.1em; margin-bottom: 8px; }
.phys-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

.callout--cyan .callout-title {
  margin: 0 0 8px;
  font-size: clamp(18px, 4.2vw, 21px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #FFFFFF;
}
.callout--cyan .callout-body {
  margin: 0;
  font-size: clamp(15px, 3.6vw, 17px);
  line-height: 1.6;
  color: #C6E7F7;
  max-width: 54ch;
}

.stat-card { padding: 26px; }
.stat-number {
  margin: 0 0 6px;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--gold);
  line-height: 1;
}

.cta-band {
  background: linear-gradient(130deg, rgba(92,212,255,0.12), rgba(184,115,255,0.12));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 26px;
  padding: clamp(30px, 7vw, 56px);
  text-align: center;
}
.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.028em;
  text-wrap: pretty;
}
.cta-band p.lead { margin: 0 auto 28px; color: var(--ink-panel); max-width: 44ch; }
.cta-band .btn-primary { padding: 15px 28px; box-shadow: 0 10px 30px rgba(92,212,255,0.2); }
.cta-band .mono-note { margin-top: 14px; color: #9A94B8; }

/* ==========================================================================
   Privacy
   ========================================================================== */
.doc-main {
  padding-top: clamp(16px, 5vw, 40px);
  padding-bottom: clamp(64px, 12vw, 96px);
}
.doc-meta {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted-dim);
}
.intro-callout { margin-top: 32px; }
.intro-callout p {
  margin: 0;
  font-size: clamp(16px, 3.9vw, 18px);
  line-height: 1.65;
  color: #DCF0FA;
}
.intro-callout strong { color: #FFFFFF; font-weight: 600; }

.toc { margin: 14px 0 0; padding: 20px 22px; }
.toc .links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 22px;
}
.toc .links a { font-size: 14.5px; color: var(--ink-panel); }
.toc .links a:hover { color: var(--cyan); }

.legal-section { margin: clamp(30px, 6vw, 42px) 0 0; scroll-margin-top: 24px; }
.legal-section:first-of-type { margin-top: clamp(34px, 7vw, 48px); }
.legal-section h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 4.6vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.legal-section h2 .num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--cyan);
}
.legal-section p {
  margin: 0;
  font-size: clamp(16px, 3.9vw, 17.5px);
  line-height: 1.7;
  color: var(--ink-panel);
}
.legal-section strong { color: #FFFFFF; font-weight: 600; }
.legal-section em { color: var(--ink); }
.legal-section p.has-button { margin-bottom: 20px; }

/* ==========================================================================
   Support
   ========================================================================== */
.support-lead {
  margin: 18px 0 0;
  font-size: clamp(16px, 3.9vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 48ch;
}
.support-title { max-width: 22ch; }

.contact-panel {
  margin: 32px 0 0;
  border-radius: 22px;
  padding: clamp(24px, 6vw, 32px);
}
.contact-email {
  font-size: clamp(19px, 4.6vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: break-all;
}
.contact-note {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
}
.checklist { margin-top: 22px; }
.checklist-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}
.checklist-items { display: flex; flex-direction: column; gap: 7px; }
.checklist-items p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-panel);
}

.support-section { margin: clamp(38px, 8vw, 56px) 0 0; }
.support-section h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 5.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.support-section > .lead {
  margin: 0 0 18px;
  font-size: clamp(15px, 3.7vw, 16.5px);
  line-height: 1.65;
  max-width: 50ch;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-card { border-radius: 18px; padding: 22px 24px; }
.faq-card h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 600; letter-spacing: -0.01em; }
.faq-card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
.faq-card em { color: var(--ink); }

.status-card {
  border-radius: 18px;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(107,227,168,0.5);
  flex: none;
}
.status-card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-panel); }
.status-card .dim { color: var(--muted-dim); }
