/* ============================================================
   Isocenter — landing page styles
   Tokens per spec §2: paper / ink / slate / hairline / laser / amber
   ============================================================ */

:root {
  --paper: #FAFBFC;
  --ink: #14201E;
  --slate: #5B6B68;
  --hairline: #D9E0DE;
  --laser: #0E8A5A;
  --amber: #B07A1E;

  --display: "Instrument Sans", "Helvetica Neue", Helvetica, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;

  --axis: 38%;
  --maxw: 1120px;
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(14, 138, 90, 0.16); }

a { color: var(--laser); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

/* ---------- page frame & the axis ---------- */

.page {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* The persistent vertical hairline at the 38% column.
   Sections carry a paper background, so the line reads only in the
   margins between blocks — like a registration mark on certificate stock. */
.axis-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(32px + (100% - 64px) * 0.38);
  width: 1px;
  background: var(--hairline);
  z-index: 0;
  pointer-events: none;
}

section, .covers-axis { position: relative; z-index: 1; }

/* ---------- shared atoms ---------- */

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

.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--slate);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 5px 8px 4px;
  white-space: nowrap;
  background: var(--paper);
}
.chip::before { content: "[ "; color: var(--laser); }
.chip::after  { content: " ]"; color: var(--laser); }

/* chips fade in 80ms after their parent block scrolls into view */
.js .chip {
  opacity: 0;
  transition: opacity 400ms ease 80ms;
}
.js .chip.chip-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .chip { opacity: 1; transition: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  background: var(--laser);
  border: 1px solid var(--laser);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #0C7A50; text-decoration: none; }

.textlink {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

/* section separator: full-width hairline with a mono label sitting on it */
.sec-rule {
  position: relative;
  border-top: 1px solid var(--hairline);
  margin-bottom: 56px;
}
.sec-label {
  position: absolute;
  top: -8px;
  left: 0;
  background: var(--paper);
  padding-right: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--slate);
}

/* content grid: left margin column ends at the axis; main content
   left-aligns to the 38% line */
.sec-grid {
  display: grid;
  grid-template-columns: 38% 1fr;
}
.sec-main { padding-left: 48px; }

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: pretty;
  margin-bottom: 24px;
}

section { padding: 88px 0; }

/* ---------- nav ---------- */

.nav-wrap {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.12em;
  color: var(--ink);
}
.wordmark:hover { text-decoration: none; }
.wordmark svg { display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a:not(.btn) {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav-links a:not(.btn):hover { color: var(--laser); text-decoration: none; }

/* ---------- hero ---------- */

.hero {
  padding: 96px 0 104px;
  display: grid;
  grid-template-columns: calc(38% - 48px) minmax(0, 1fr);
  column-gap: 96px;
  align-items: center;
  /* transparent over the gap: the axis line shows between copy and mock */
  z-index: 1;
}
.hero-copy { position: relative; background: var(--paper); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 22px;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 50px;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 22px;
}

.subhead {
  font-size: 18.5px;
  line-height: 1.6;
  max-width: 52ch;
  margin-bottom: 18px;
}

.trustline {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--slate);
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* hero load choreography */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * {
    opacity: 0;
    transform: translateY(10px);
    animation: rise 520ms cubic-bezier(0.2, 0.6, 0.2, 1) forwards;
  }
  .js .hero-copy .eyebrow   { animation-delay: 620ms; }
  .js .hero-copy h1         { animation-delay: 700ms; }
  .js .hero-copy .subhead   { animation-delay: 800ms; }
  .js .hero-copy .trustline { animation-delay: 880ms; }
  .js .hero-copy .hero-ctas { animation-delay: 960ms; }
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- unit clock mock + crosshair ---------- */

.mock-zone {
  position: relative;
  padding: 48px 0;
  min-width: 0;
}
.mock-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.unit-clock { min-width: 560px; }

.crosshair {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.crosshair .ch-v,
.crosshair .ch-h {
  position: absolute;
  background: var(--laser);
  opacity: 0.55;
}
.crosshair .ch-v {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}
.crosshair .ch-h {
  top: 50%;
  left: -28px;
  right: -28px;
  height: 1px;
}
.crosshair .ch-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 1px solid var(--laser);
  border-radius: 50%;
  background: transparent;
}

/* draw-in: the two hairlines sweep to intersection (600ms), ring after */
@media (prefers-reduced-motion: no-preference) {
  .js .crosshair .ch-v { transform: scaleY(0); animation: sweep 600ms cubic-bezier(0.3, 0, 0.2, 1) forwards; }
  .js .crosshair .ch-h { transform: scaleX(0); animation: sweep 600ms cubic-bezier(0.3, 0, 0.2, 1) forwards; }
  .js .crosshair .ch-ring { opacity: 0; animation: ringin 300ms ease 560ms forwards; }
}
@keyframes sweep  { to { transform: scale(1); } }
@keyframes ringin { to { opacity: 1; } }

.unit-clock {
  position: relative;
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-family: var(--mono);
  overflow: hidden;
}
.uc-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hairline);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--slate);
}
.uc-head .uc-title { font-weight: 500; color: var(--ink); }

.uc-table { width: 100%; border-collapse: collapse; }
.uc-table th {
  text-align: left;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--slate);
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--hairline);
}
.uc-table td {
  font-size: 13px;
  font-weight: 400;
  padding: 14px 12px;
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
  vertical-align: middle;
}
.uc-table tr:last-child td { border-bottom: none; }
.uc-table th:first-child, .uc-table td:first-child { padding-left: 18px; }
.uc-table th:last-child,  .uc-table td:last-child  { padding-right: 18px; }

.uc-table .num { font-variant-numeric: tabular-nums; color: var(--slate); }
.uc-table .unit { color: var(--ink); font-weight: 500; }

.st { font-weight: 500; white-space: nowrap; }
.st-pass { color: var(--laser); }
.st-review { color: var(--amber); }
.due-soon { color: var(--amber); font-weight: 500; }

.uc-table .chip { font-size: 10px; padding: 4px 6px 3px; margin-left: 10px; }

/* ---------- trust strip ---------- */

.trust-strip {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
  padding: 34px 0;
}
.trust-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.trust-grid p {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
.trust-grid p span { color: var(--laser); margin-right: 10px; }

/* ---------- problem ---------- */

.prose p { max-width: 58ch; margin-bottom: 20px; }
.prose p:last-of-type { margin-bottom: 0; }
.sec-chip { margin-top: 28px; }

/* ---------- capabilities ---------- */

.cap-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.card {
  background: #FFFFFF;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--laser);
}
.card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.card p {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  flex: 1;
}
.card .chip {
  align-self: flex-start;
  white-space: normal;
  line-height: 1.5;
  padding-top: 4px;
}

/* ---------- how it works ---------- */

.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--hairline);
  max-width: 62ch;
}
.step:last-child { border-bottom: none; }
.step-num {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--laser);
  padding-top: 5px;
}
.step h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.step p { font-size: 16.5px; }
.step .chip { margin-top: 12px; }

/* ---------- who it's for ---------- */

.aud-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.aud {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  background: var(--paper);
}
.aud h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}
.aud p {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--slate);
}

/* ---------- Isocenter Watch (dark block) ---------- */

.watch-wrap {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.watch {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 32px;
}
.watch-grid {
  display: grid;
  grid-template-columns: 38% 1fr;
}
.watch-main { padding-left: 48px; max-width: 640px; }
.watch .kicker { color: var(--laser); margin-bottom: 18px; display: block; }
.watch h2 { color: #FFFFFF; }
.watch p {
  color: rgba(250, 251, 252, 0.78);
  max-width: 56ch;
  margin-bottom: 32px;
}

.watch-mark {
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.14;
  pointer-events: none;
}

.watch-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
}
.watch-form input[type="email"] {
  flex: 1;
  min-height: 44px;
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--paper);
  background: rgba(250, 251, 252, 0.06);
  border: 1px solid rgba(250, 251, 252, 0.28);
  border-radius: var(--radius);
}
.watch-form input[type="email"]::placeholder { color: rgba(250, 251, 252, 0.45); }
.watch-form input[type="email"]:focus-visible {
  outline: 2px solid var(--laser);
  outline-offset: 2px;
  border-color: var(--laser);
}
.watch-micro {
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(250, 251, 252, 0.55);
  margin-top: 12px;
}
.watch-confirm {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--laser);
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* ---------- closing CTA ---------- */

.closing { padding: 112px 0; }
.closing h2 { font-size: 38px; }
.closing .lede { max-width: 52ch; margin-bottom: 32px; }
.closing-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.pilot-line {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--slate);
}

/* ---------- footer ---------- */

.footer-wrap {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--hairline);
  background: var(--paper);
}
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px 32px 52px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.brandline {
  font-size: 16px;
  font-style: italic;
  color: var(--slate);
  margin-left: 14px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}
.compliance {
  font-size: 13.5px;
  color: var(--slate);
}

/* ============================================================
   Responsive — single column below 880px (spec §4)
   ============================================================ */

@media (max-width: 880px) {
  .axis-line { display: none; }

  .nav { height: 60px; padding: 0 20px; }
  .nav-links { gap: 18px; }
  .nav-links a:not(.btn) { display: none; }

  .page { padding: 0 20px; }
  section { padding: 64px 0; }

  .hero {
    grid-template-columns: 1fr;
    row-gap: 48px;
    padding: 56px 0 64px;
  }
  h1 { font-size: 38px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .hero-ctas .textlink { text-align: center; }

  /* mock stays horizontally scrollable; crosshair stays (hero only) */
  .mock-zone { padding: 32px 0; }

  .sec-grid, .watch-grid { grid-template-columns: 1fr; }
  .sec-main, .watch-main { padding-left: 0; }
  .sec-rule { margin-bottom: 44px; }

  h2 { font-size: 28px; }
  .closing h2 { font-size: 30px; }

  .trust-grid { grid-template-columns: 1fr; gap: 18px; padding: 0 20px; }
  .cap-cards, .aud-cards { grid-template-columns: 1fr; }
  .step { grid-template-columns: 44px 1fr; }

  .watch { padding: 64px 20px; }
  .watch-form { flex-direction: column; max-width: none; }
  .watch-form .btn { width: 100%; }
  .watch-mark { display: none; }

  .closing-actions { align-items: stretch; }
  .closing-actions .btn { width: 100%; text-align: center; }
  .pilot-line { text-align: center; }

  .footer-top { flex-direction: column; gap: 16px; }
  .brandline { margin-left: 0; display: block; margin-top: 6px; }
}
