/* ============================================================
   Second Sight — marketing site
   Design system: "clio bio" (light register). Type is monospace.
   Contrast note: teal / magenta / ochre / fog are for FILLS, borders
   and large display type only. Body & label text uses ink / slate /
   leadPress, all >= WCAG AA on the light paper ground.
   ============================================================ */

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/fonts/DMMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("/fonts/DMMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* clio-bio palette */
  --ground:    #EDEAE3;  /* light ash paper */
  --paper:     #F5F3EE;  /* raised surface */
  --white:     #FFFFFF;
  --ink:       #14181E;  /* graphite — body text */
  --slate:     #3A4250;  /* secondary text, eyebrows (AA) */
  --fog:       #7A8390;  /* decorative / borders only */
  --hairline:  #C4C9D1;
  --subtle:    #DFE3E8;
  --teal:      #5FB1AD;  /* lead — fills/accents */
  --lead-press:#2F6B68;  /* teal TEXT (AA on paper) */
  --lead-subtle:#EAF4F3;
  --ochre:     #C79A3E;  /* caution mid */
  --ochre-ink: #795C17;  /* ochre TEXT (AA on ochre pill) */
  --magenta:   #D94686;  /* companion — overtime/critical */
  --magenta-ink:#B3235F; /* magenta TEXT (AA) */

  --font-display: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --font-body: "DM Mono", ui-monospace, "SF Mono", monospace;

  --maxw: 1080px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 18px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--lead-press); }

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

/* ---------- signature hue-drift bar ---------- */
.hue-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 900;
  background: var(--teal); /* JS animates this; static fallback for reduced-motion */
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 12px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 500;
}
.skip-link:focus {
  left: 12px;
}

/* ---------- wordmark ---------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
}
.dot {
  display: inline-block;
  width: 0.32em; height: 0.32em;
  border-radius: 50%;
  vertical-align: 0.55em;
  margin-left: 0.14em;
}
.dot-teal { background: var(--teal); }
.dot-magenta { background: var(--magenta); }

/* ---------- header ---------- */
.site-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px var(--pad) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper);
}
.site-nav a:hover { border-color: var(--teal); }

/* ---------- shared section scaffolding ---------- */
.band { padding: clamp(56px, 9vw, 104px) 0; }
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.center { text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 14px;
}
.eyebrow.center { margin-inline: auto; }

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 6.2vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4.4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
h3 { margin: 0 0 20px; }

.lede {
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.55;
  color: var(--slate);
  max-width: 40ch;
  margin: 0 0 30px;
}
.section-lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--slate);
  max-width: 56ch;
  margin: 0 auto 44px;
}
.big-text {
  font-size: clamp(19px, 2.6vw, 26px);
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 20px;
  max-width: 30ch;
}
.big-text b { color: var(--lead-press); font-weight: 500; }

/* ---------- buttons ---------- */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
}
.cta-row-center { justify-content: center; }

.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
  line-height: 1.2;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(20, 24, 30, 0.18);
}
.btn-primary:hover { background: #20262E; }
.btn-primary .free { color: #B9C0BD; font-size: 13px; }
.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-secondary:hover { border-color: var(--teal); }
.btn-sub {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--slate);
}
.btn-secondary .btn-sub { color: var(--slate); }

.cta-note {
  font-size: 13.5px;
  color: var(--slate);
  margin: 16px 0 0;
  max-width: 46ch;
}
.cta-note b { color: var(--ink); font-weight: 500; }
.cta-tertiary {
  font-size: 14px;
  color: var(--slate);
  margin: 8px 0 0;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 7vw, 76px) var(--pad) clamp(48px, 8vw, 92px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero-copy { min-width: 0; }

.hero-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.coin {
  width: min(360px, 78vw);
  filter: drop-shadow(0 18px 40px rgba(20, 24, 30, 0.14));
}
.coin svg { width: 100%; height: auto; display: block; }
.coin-face { fill: var(--white); }
.coin-day { fill: none; stroke: var(--subtle); stroke-width: 1.5; }
.coin-center { fill: var(--ink); }
.coin-digits {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  fill: var(--paper);
  letter-spacing: -0.02em;
}
.coin-percent {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  fill: #AEB6BC;
  letter-spacing: 0.04em;
}
.hero-ticks-line { stroke-linecap: round; }
.coin-caption {
  font-size: 13px;
  color: var(--slate);
  text-align: center;
  max-width: 34ch;
  margin: 0;
}

/* ============================================================
   POSITIONING
   ============================================================ */
.band-positioning { background: var(--paper); }
.band-positioning .big-text:last-child { margin-bottom: 0; }

/* ============================================================
   SEE / HEAR
   ============================================================ */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}
.col {
  background: var(--paper);
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
}
.col-see { border-top: 3px solid var(--teal); }
.col-hear { border-top: 3px solid var(--magenta); }

.col-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.col-tag::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 10px;
  vertical-align: 0.12em;
}
.col-tag-alt::before { background: var(--magenta); }

.mode-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mode-list li {
  padding: 12px 0;
  border-top: 1px solid var(--subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mode-list li:first-child { border-top: none; }
.mode-list b {
  font-weight: 500;
  color: var(--ink);
  font-size: 16px;
}
.mode-list span {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.45;
}

.eyes-free {
  margin: clamp(36px, 5vw, 52px) auto 0;
  max-width: 62ch;
  text-align: center;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--lead-subtle);
  border: 1px solid var(--subtle);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
}
.eyes-free em { font-style: normal; color: var(--magenta-ink); font-weight: 500; }

/* ============================================================
   SCREENSHOTS
   ============================================================ */
.band-shots { background: var(--paper); }
.shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
}
.shot { margin: 0; }
.shot img {
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  background: var(--ground);
}
.shot figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--slate);
  line-height: 1.4;
  text-align: center;
}

/* ============================================================
   MICROWAVE
   ============================================================ */
.microwave-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.microwave-copy .big-text { margin-bottom: 0; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.chip {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(18px, 2.4vw, 24px);
  padding: 12px 22px;
  border-radius: 16px;
  border: 1.5px solid var(--teal);
  color: var(--lead-press);
  background: var(--white);
}
.chip-hot {
  background: var(--teal);
  color: var(--ink);
  border-color: var(--teal);
}

/* ============================================================
   PRICING
   ============================================================ */
.band-pricing { background: var(--paper); }
.price-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--subtle);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 18px 48px rgba(20, 24, 30, 0.08);
  text-align: center;
}
.price { margin: 0; }
.price-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 76px);
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.price-line {
  font-size: 15px;
  color: var(--slate);
  margin: 12px 0 26px;
}
.price-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  text-align: left;
  display: inline-block;
}
.price-list li {
  padding: 11px 0 11px 30px;
  position: relative;
  font-size: 15.5px;
  color: var(--ink);
  border-top: 1px solid var(--subtle);
}
.price-list li:first-child { border-top: none; }
.price-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 18px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.pill {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--lead-press);
  background: var(--lead-subtle);
  border: 1px solid var(--subtle);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 6px;
  white-space: nowrap;
}
.pill-soon {
  color: var(--ochre-ink);
  background: #F6EFDD;
}
.price-card .cta-row { margin-bottom: 6px; }
.free { color: #B9C0BD; font-size: 13px; }

.source-line {
  max-width: 56ch;
  margin: 34px auto 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--slate);
  line-height: 1.55;
}
.source-line a { color: var(--lead-press); font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  border-top: 1px solid var(--subtle);
  padding: clamp(40px, 6vw, 64px) var(--pad);
  text-align: center;
}
.wordmark-foot { font-size: 22px; margin-bottom: 14px; }
.foot-tag {
  font-size: 16px;
  color: var(--ink);
  margin: 0 0 16px;
}
.foot-meta {
  font-size: 13.5px;
  color: var(--slate);
  margin: 0;
}
.foot-meta a { color: var(--lead-press); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-demo { order: -1; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  .microwave-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cols { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; align-items: center; text-align: center; }
  .site-nav { display: none; }
}
@media (max-width: 380px) {
  .shots { grid-template-columns: 1fr; gap: 22px; }
  .shot { max-width: 300px; margin-inline: auto; }
}

/* ============================================================
   REDUCED MOTION — freeze every animation, incl. the hue-drift & coin
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
