/* eve.hartle.tech — the landing page.
 *
 * One stylesheet, no framework, no font service. The site's CSP is
 * `style-src 'self'` with no 'unsafe-inline', so a <style> block or a style=""
 * attribute is dropped silently and the page renders unstyled. Everything
 * visual has to live in this file.
 *
 * Palette comes from the app icon: a teal that goes mint at the highlight, a
 * coral kept for the one thing eve says in red — a disk that is nearly full.
 */

:root {
  --bg: #05080a;
  --bg-2: #080d10;
  --ink: #f2f5f5;
  --dim: rgba(242, 245, 245, .64);
  --faint: rgba(242, 245, 245, .42);
  --line: rgba(242, 245, 245, .11);
  --card: rgba(242, 245, 245, .04);
  --card-edge: rgba(242, 245, 245, .085);
  --teal: #2fc4b8;
  --mint: #4fe7c8;
  --coral: #ff6b62;
  --amber: #ffb100;
  --max: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter",
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

h1, h2, h3 { letter-spacing: -.021em; }

code {
  font: 500 .875em/1.5 ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 6px;
  padding: .12em .42em;
  color: var(--mint);
}

/* A <code> inside a <pre> is the block itself, not a token in a sentence. The
   rule above would otherwise draw a bordered pill around every line. */
pre code {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: inherit;
  font: inherit;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 18px;
  background: var(--teal);
  color: #04121a;
  border-radius: 0 0 10px 0;
  font-weight: 600;
  z-index: 200;
}
.skip:focus { left: 0; }

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

/* ───────────────────────────── the bar ──────────────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px max(22px, calc((100vw - var(--max)) / 2));
  background: rgba(5, 8, 10, .72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.bar.stuck { border-bottom-color: var(--line); }

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -.01em;
}
.wordmark:hover { text-decoration: none; }
.wordmark img { width: 23px; height: 23px; display: block; }

.bar nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.bar nav a { color: var(--dim); font-size: 14.5px; }
.bar nav a:hover { color: var(--ink); text-decoration: none; }

.bar nav a.cta {
  color: #04121a;
  background: linear-gradient(120deg, var(--mint), var(--teal));
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 640;
}
.bar nav a.cta:hover { color: #04121a; filter: brightness(1.08); }

@media (max-width: 720px) {
  .bar nav a.hide-narrow { display: none; }
}

/* ───────────────────────────── the hero ─────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 108px) max(22px, calc((100vw - var(--max)) / 2))
           clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(46% 52% at 22% 30%, rgba(47, 196, 184, .20), transparent 70%),
    radial-gradient(40% 46% at 80% 12%, rgba(79, 231, 200, .13), transparent 72%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}

.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.eyebrow {
  margin: 0 0 18px;
  font-size: 12.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 620;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.045;
  font-weight: 700;
}
.grad {
  background: linear-gradient(104deg, var(--mint) 8%, var(--teal) 74%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 30px;
  font-size: clamp(17.5px, 2vw, 20.5px);
  line-height: 1.6;
  color: var(--dim);
  max-width: 62ch;
}

.does {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 10px 30px;
  max-width: 760px;
}
.does li {
  position: relative;
  padding-left: 24px;
  color: var(--dim);
  font-size: 15.5px;
  line-height: 1.55;
}
.does li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 2.5px;
  background: linear-gradient(135deg, var(--mint), var(--teal));
}
.does b { color: var(--ink); font-weight: 620; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 620;
  border: 1px solid transparent;
  transition: transform .18s var(--ease), filter .18s var(--ease),
              border-color .18s var(--ease), background .18s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(120deg, var(--mint), var(--teal));
  color: #04121a;
}
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost {
  border-color: var(--card-edge);
  background: var(--card);
  color: var(--ink);
}
.btn.ghost:hover { border-color: var(--teal); background: rgba(47, 196, 184, .08); }

.fineprint { margin: 0; color: var(--faint); font-size: 14px; }

.hero-shot {
  position: relative;
  z-index: 1;
  margin: clamp(38px, 5vw, 62px) auto 0;
  max-width: 1080px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-edge);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9),
              0 0 0 1px rgba(47, 196, 184, .07);
}
.hero-shot img { display: block; width: 100%; }

/* ──────────────────────────── the pitch ─────────────────────────────── */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(52px, 7vw, 84px) max(22px, calc((100vw - var(--max)) / 2));
}
.pitch { max-width: 820px; }
.pitch h2 {
  margin: 0 0 16px;
  font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.2;
}
.pitch p { margin: 0; color: var(--dim); font-size: 17.5px; max-width: 68ch; }
.pitch p + p { margin-top: 14px; }

/* ─────────────────────────── the features ───────────────────────────── */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 92px) 22px;
}
.feature.reverse .copy { order: 2; }
.feature.reverse .shot { order: 1; }

/* A grid item's automatic minimum size is min-content, and a <pre> does not
   wrap — so its min-content is its longest line, and the track grows to fit it
   however narrow the screen. That is a horizontal scrollbar on the whole page,
   not a scrollbar on the code block.
   `minmax(0, 1fr)` above and `min-width: 0` here opt out of that, which lets
   the pre's own `overflow-x: auto` do the scrolling it was meant to do.
   Measured at 390px: 518px wide before, 390px after. */
.feature > * { min-width: 0; }

@media (max-width: 900px) {
  /* NOT `1fr` — that is `minmax(auto, 1fr)`, and the `auto` minimum brings the
     whole problem back at exactly the widths where it matters most. */
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.reverse .copy,
  .feature.reverse .shot { order: initial; }
}

.kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 620;
}
.feature h3 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3.2vw, 33px);
  line-height: 1.22;
}
.feature p { margin: 0 0 14px; color: var(--dim); max-width: 56ch; }
.feature p:last-child { margin-bottom: 0; }

.shot {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--card-edge);
  background: var(--card);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .95);
}
.shot img { display: block; width: 100%; }

.term {
  margin: 0;
  padding: 22px 24px;
  background: #04090c;
  border: 1px solid var(--card-edge);
  border-radius: 14px;
  overflow-x: auto;
  font: 500 14px/1.85 ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  color: #cfe9e6;
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, .95);
}
.term .c { color: var(--faint); }
.term .p { color: var(--teal); }
.term .k { color: var(--mint); }
.term .w { color: var(--coral); }

/* ────────────────────────────── the gates ───────────────────────────── */

.gates {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(56px, 7vw, 92px) max(22px, calc((100vw - var(--max)) / 2));
}
.gates > h2 {
  margin: 0 0 12px;
  font-size: clamp(27px, 3.8vw, 40px);
}
.gates > .sub {
  margin: 0 0 42px;
  color: var(--dim);
  max-width: 64ch;
  font-size: 17.5px;
}

.gate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gate {
  padding: 24px 24px 26px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.gate:hover { border-color: rgba(47, 196, 184, .38); background: rgba(47, 196, 184, .05); }
.gate .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--mint), var(--teal));
  color: #04121a;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 15px;
}
.gate b { display: block; font-size: 17.5px; margin: 0 0 8px; font-weight: 620; }
.gate span { display: block; color: var(--dim); font-size: 15px; line-height: 1.6; }

.tiers { margin: 46px 0 0; }
.tiers h3 { margin: 0 0 8px; font-size: 21px; }
.tiers > p { margin: 0 0 20px; color: var(--dim); max-width: 64ch; }

.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--card-edge); }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 520px; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); }
thead th {
  color: var(--faint);
  font-size: 11.5px;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 620;
  white-space: nowrap;
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 500; color: var(--ink); white-space: nowrap; }
tbody td { color: var(--dim); }
td.y { color: var(--mint); }
td.n { color: var(--coral); font-weight: 620; }

/* ────────────────────────────── the stats ───────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 76px) 22px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  background: linear-gradient(130deg, var(--mint), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat span {
  display: block;
  margin-top: 10px;
  color: var(--faint);
  font-size: 14px;
  letter-spacing: .02em;
}

/* ─────────────────────────────── get eve ────────────────────────────── */

.get {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(56px, 7vw, 92px) max(22px, calc((100vw - var(--max)) / 2));
}
.get h2 { margin: 0 0 12px; font-size: clamp(27px, 3.8vw, 40px); }
.get > .sub { margin: 0 0 40px; color: var(--dim); max-width: 64ch; font-size: 17.5px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 28px;
  border-radius: 17px;
  background: var(--card);
  border: 1px solid var(--card-edge);
}
.card h3 { margin: 0 0 10px; font-size: 20px; }
.card > p { margin: 0 0 20px; color: var(--dim); font-size: 15.5px; line-height: 1.6; }
.card .btn { align-self: flex-start; margin-bottom: 16px; }
.card .note { margin: auto 0 0; color: var(--faint); font-size: 13.5px; line-height: 1.6; }
.card pre {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #04090c;
  border: 1px solid var(--card-edge);
  border-radius: 11px;
  overflow-x: auto;
  font: 500 13px/1.7 ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  color: #cfe9e6;
}

/* ────────────────────────────── the support ─────────────────────────── */

.support {
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 92px) max(22px, calc((100vw - var(--max)) / 2));
}
.support-inner { max-width: 760px; }
.support h2 { margin: 0 0 14px; font-size: clamp(26px, 3.6vw, 38px); }
.support p { margin: 0 0 22px; color: var(--dim); max-width: 62ch; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--card-edge);
  background: var(--card);
  color: var(--dim);
  font-size: 14.5px;
  transition: border-color .2s var(--ease), color .2s var(--ease),
              background .2s var(--ease);
}
.pill:hover {
  text-decoration: none;
  color: var(--ink);
  border-color: var(--teal);
  background: rgba(47, 196, 184, .08);
}
.or { color: var(--faint); font-size: 15px; }
.or .plain { color: var(--dim); }

/* ─────────────────────────────── the foot ───────────────────────────── */

footer {
  border-top: 1px solid var(--line);
  padding: 40px max(22px, calc((100vw - var(--max)) / 2)) 52px;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: flex-start;
  justify-content: space-between;
}
.brand { margin: 0 0 6px; font-weight: 680; letter-spacing: .06em; font-size: 15px; }
.muted { margin: 0; color: var(--faint); font-size: 14.5px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--dim); font-size: 14.5px; }
.legal {
  margin: 30px 0 0;
  color: var(--faint);
  font-size: 13px;
  line-height: 1.65;
  max-width: 78ch;
}

/* ───────────────────────────── the reveal ───────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }

/* A grid should arrive as a wave, not a jump. The delay lives here rather than
   being written from the script: it is knowable at author time, and it keeps
   the script from touching `style` at all. */
.gate:nth-child(2), .card:nth-child(2), .stat:nth-child(2) { transition-delay: 60ms; }
.gate:nth-child(3), .card:nth-child(3), .stat:nth-child(3) { transition-delay: 120ms; }
.gate:nth-child(4), .stat:nth-child(4) { transition-delay: 180ms; }
.gate:nth-child(5) { transition-delay: 240ms; }
.gate:nth-child(6) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}

/* No script, no problem: the reveal is an enhancement, not a requirement.
   Without JS the `in` class is never added, so this keeps the page readable. */
.no-js [data-reveal] { opacity: 1; transform: none; }
