/* Elyd site. Tokens are the app's "ink on paper" system: near-black and white,
   one signal green that means "blocking". Hairlines do the work boxes would. */

:root {
  --paper: #F4F4F3;
  --card: #FFFFFF;
  --raised: #EDEDEC;
  --ink: #111111;
  --muted: #6E6E6C;
  --hairline: #E4E4E2;
  --rule: #D6D6D3;          /* slightly stronger hairline for structural rules on paper */
  --signal: #13A15A;
  --radius: 24px;
  --gutter: 16px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0B0B0B;
    --card: #181818;
    --raised: #242424;
    --ink: #F5F5F5;
    --muted: #9A9A98;
    --hairline: #2A2A2A;
    --rule: #333333;
    --signal: #3DDC84;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p, dd { text-wrap: pretty; }

a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: var(--gutter); top: -64px; z-index: 10;
  padding: 8px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none;
}
.skip:focus { top: 16px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }

/* Grid: one 1200px column with a 12-track grid inside sections */
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex: none; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none;
}
/* The app icon: a bar (what's stopped) over the signal dot (what gets through). */
.brand-mark {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: none;
  width: 22px; height: 22px; border-radius: 5px; background: var(--ink);
}
.brand-mark::before { content: ""; width: 11px; height: 2.5px; border-radius: 2px; background: var(--paper); }
.brand-mark::after { content: ""; width: 5.5px; height: 5.5px; border-radius: 50%; background: var(--signal); }
.masthead-note { font-size: 14px; color: var(--muted); }
@media (max-width: 479px) { .masthead-note { display: none; } }

/* Hero */
.hero {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 56px;
  align-items: center; padding-block: 48px 72px;
}
.hero-copy { grid-column: 1 / -1; }
.hero-stage { grid-column: 1 / -1; }
@media (min-width: 960px) {
  .hero { padding-block: 96px 128px; }
  .hero-copy { grid-column: 1 / span 7; }
  .hero-stage { grid-column: 9 / span 4; }
}
h1 {
  font-size: clamp(48px, 8vw, 104px);
  font-weight: 700; line-height: .98; letter-spacing: -0.05em;
}
.lede {
  margin-top: 28px; max-width: 28ch;
  font-size: clamp(20px, 2vw, 24px); line-height: 1.4; color: var(--muted);
}
.lede strong { display: block; margin-top: .3em; color: var(--ink); font-weight: 600; }
.hero-meta {
  margin-top: 40px; padding-top: 16px; max-width: 28rem;
  border-top: 1px solid var(--rule);
  font-size: 15px; color: var(--muted);
}

/* Device: iPhone proportions in container units (cqw = 1% of device width),
   so bezel, corners, island and type scale together. */
.device { container-type: inline-size; width: min(100%, 320px); margin-inline: auto; }
.device-body {
  position: relative; padding: 2.9cqw; border-radius: 15.6cqw; background: #0b0c0f;
  box-shadow:
    inset 0 0 0 .35cqw #23262c,
    0 0 0 .45cqw #61666f,
    0 0 0 .7cqw #2a2d33;
}
@media (prefers-color-scheme: dark) {
  .device-body { box-shadow: inset 0 0 0 .35cqw #23262c, 0 0 0 .45cqw #6d727c, 0 0 0 .7cqw #3a3e46; }
}
.device-body::after {
  content: ""; position: absolute; left: 50%; top: 5.3cqw; transform: translateX(-50%);
  width: 27cqw; height: 7.9cqw; border-radius: 99px; background: #000;
}
.screen {
  aspect-ratio: 9 / 19.5; border-radius: 12.7cqw; overflow: hidden;
  background: var(--paper); padding: 22cqw 6cqw 6cqw;
}
.app-status { display: flex; align-items: center; gap: 2.4cqw; font-size: 4.6cqw; font-weight: 500; }
.app-status .dot { width: 2.6cqw; height: 2.6cqw; }
.app-count {
  margin-top: 6cqw; font-size: 17cqw; font-weight: 700; letter-spacing: -0.045em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.app-count-label { margin-top: 1.5cqw; font-size: 5.2cqw; color: var(--muted); }
.app-card { margin-top: 9cqw; background: var(--card); border-radius: 7.5cqw; padding: 1cqw 5cqw; }
.app-row {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 4.2cqw; font-size: 4.6cqw; font-weight: 500;
}
.app-row + .app-row { border-top: 1px solid var(--hairline); }
.on { display: inline-flex; align-items: center; gap: 1.8cqw; color: var(--muted); font-weight: 400; }
.on .dot { width: 2.2cqw; height: 2.2cqw; }

/* Statement: one large sentence under a hairline */
.statement { padding-bottom: 96px; }
.statement::before { content: ""; display: block; border-top: 1px solid var(--rule); }
.statement p {
  padding-top: 40px;
  font-size: clamp(30px, 4.6vw, 60px); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em;
  max-width: 22ch;
}
.statement.name { padding-top: 32px; }
.statement.name em { font-style: italic; }

/* Blocks: heading row, then content on the same 12-track grid */
.block { padding-bottom: 128px; }
.block-head { padding-top: 40px; border-top: 1px solid var(--rule); margin-bottom: 56px; }
h2 {
  font-size: clamp(34px, 5vw, 64px); font-weight: 700; line-height: 1.02; letter-spacing: -0.045em;
  max-width: 18ch;
}
.block-lede { margin-top: 20px; max-width: 46ch; font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); }
h3 { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }

/* Metrics: numbers as type. Label in 4 tracks, values in 8. */
.metric {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 24px;
  padding-block: 32px; border-top: 1px solid var(--hairline);
}
.metric-label { grid-column: 1 / -1; }
.metric-label p { margin-top: 6px; color: var(--muted); font-size: 15px; max-width: 32ch; }
.metric-values { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 16px; }
@media (min-width: 900px) {
  .metric { padding-block: 40px; }
  .metric-label { grid-column: 1 / span 4; }
  .metric-values { grid-column: 5 / span 8; column-gap: 24px; }
}
.value dt { font-size: 14px; font-weight: 500; color: var(--muted); }
.value dd {
  margin-top: 4px;
  font-size: clamp(34px, 5.4vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums; color: var(--muted);
}
.value .unit { font-size: .42em; font-weight: 500; letter-spacing: 0; margin-left: .12em; }
.value::after {
  content: ""; display: block; margin-top: 16px; height: 3px; width: var(--w);
  background: var(--muted); border-radius: 2px;
}
.value.is-none::after { background: var(--rule); }
.is-elyd dt { color: var(--ink); font-weight: 600; }
.is-elyd dd { color: var(--ink); }
.is-elyd::after { background: var(--signal); }

/* Results table: rules only, no boxes */
.results { margin-top: 64px; }
.results h3 { margin-bottom: 16px; }
.table-scroll { overflow-x: auto; }
.table-scroll:focus-visible { outline-offset: 2px; }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 16px; text-align: right; white-space: nowrap; }
th:first-child { padding-left: 0; }
tr > :last-child { padding-right: 0; }
thead th { font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--ink); }
th[scope="row"] { text-align: left; font-weight: 500; position: sticky; left: 0; background: var(--paper); }
tbody tr { border-bottom: 1px solid var(--hairline); }
td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.col-elyd { color: var(--ink); font-weight: 600; }
thead .col-elyd { color: var(--ink); }
[data-placeholder] { color: var(--muted); }
td.col-elyd[data-placeholder] { font-weight: 400; }
.note { margin-top: 24px; max-width: 72ch; font-size: 14px; color: var(--muted); }

/* Points: ink rule on top instead of a card */
.points { display: grid; gap: 40px; }
@media (min-width: 768px) { .points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.points li { padding-top: 20px; border-top: 2px solid var(--ink); }
.points p { margin-top: 8px; color: var(--muted); max-width: 36ch; }

/* Facts: four columns, big figures */
.facts { display: grid; gap: 40px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; } }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fact { padding-top: 20px; border-top: 2px solid var(--ink); }
.fact dt {
  font-size: clamp(32px, 3.4vw, 44px); font-weight: 700; line-height: 1; letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.fact dd { margin-top: 12px; color: var(--muted); max-width: 32ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding-block: 24px 48px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.legal { margin-top: 8px; font-size: 13px; color: var(--muted); max-width: 72ch; }

/* Motion: hero enters in sequence, sections rise as they scroll in. */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes settle { from { opacity: 0; transform: translateY(32px) scale(.98); } }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .06s; }
  .hero-copy > :nth-child(3) { animation-delay: .12s; }
  .hero-stage { animation: settle 1.1s var(--ease) .15s both; }
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

@media (max-width: 767px) {
  .statement { padding-bottom: 72px; }
  .statement p { padding-top: 32px; }
  .block { padding-bottom: 88px; }
  .block-head { padding-top: 32px; margin-bottom: 32px; }
  .results { margin-top: 48px; }
}
