/* NotaBene beta — one stylesheet, no framework, no webfonts.
   The type is the system's: SF on Apple platforms, which is the same face the app
   itself is set in, and it costs no request. */

:root {
  --navy-900: #08172c;
  --navy-800: #0e2547;
  --blue:      #2872fa;
  --blue-600:  #1b5ae0;
  --blue-50:   #eef4ff;

  --ink:   #1d1d1f;
  --ink-2: #55555a;
  --ink-3: #86868b;

  --bg:   #ffffff;
  --bg-2: #f5f5f7;
  --card: #ffffff;
  --line: rgba(0, 0, 0, .09);

  --shadow-card: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-hero: 0 24px 70px rgba(8, 23, 44, .28);

  --radius:    18px;
  --radius-lg: 26px;

  --wrap: 1120px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:   #f5f5f7;
    --ink-2: #b8b8bf;
    --ink-3: #8b8b93;
    --bg:    #0b0b0d;
    --bg-2:  #141417;
    --card:  #16161a;
    --line:  rgba(255, 255, 255, .12);
    --blue-50: rgba(40, 114, 250, .12);
    --shadow-card: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ── Type ─────────────────────────────────────────────────────────────── */

h1, h2, h3 { margin: 0; letter-spacing: -.022em; line-height: 1.1; font-weight: 700; }
h1 { font-size: clamp(2.35rem, 5.6vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.65rem); letter-spacing: -.03em; }
h3 { font-size: 1.16rem; letter-spacing: -.015em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.06rem, 1.8vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 44ch;
}

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tint { background: var(--bg-2); }

.section__head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head .lead { margin-top: 16px; max-width: 56ch; }

.eyebrow {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .98rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color .18s ease, border-color .18s ease,
              transform .18s ease, color .18s ease;
}
.btn:active { transform: scale(.975); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-600); }

.btn--ghost {
  background: transparent; color: #fff;
  border-color: rgba(255, 255, 255, .38);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255,255,255,.6); }

.btn--quiet {
  background: var(--bg-2); color: var(--ink);
  border-color: var(--line);
}
.btn--quiet:hover { background: var(--card); border-color: var(--ink-3); }

.btn--sm { min-height: 36px; padding: 0 15px; font-size: .9rem; }

/* ── Navigation ───────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: 58px;
}

.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -.02em; font-size: 1.05rem;
  color: var(--ink); text-decoration: none !important;
  margin-right: auto;
}
.nav__brand img { width: 28px; height: 28px; border-radius: 7px; }

.nav__links { display: flex; gap: 26px; }
.nav__links a {
  color: var(--ink-2); font-size: .93rem; font-weight: 500;
  text-decoration: none;
}
.nav__links a:hover { color: var(--ink); }

.lang {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; font-size: .82rem; font-weight: 600;
}
.lang a, .lang span { padding: 5px 11px; color: var(--ink-3); text-decoration: none !important; }
.lang a:hover { color: var(--ink); background: var(--bg-2); }
.lang [aria-current] { background: var(--blue); color: #fff; }

@media (max-width: 900px) { .nav__links { display: none; } }
@media (max-width: 520px) { .nav__cta { display: none; } }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  background: linear-gradient(170deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  padding-top: clamp(64px, 9vw, 104px);
  padding-bottom: clamp(150px, 17vw, 220px);   /* room for the overlapping shot */
  overflow: hidden;
}
.hero::after {                                  /* one soft blue glow, top right */
  content: ""; position: absolute; inset: auto -10% 30% 40%;
  height: 520px;
  background: radial-gradient(closest-side, rgba(40,114,250,.4), transparent 72%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero h1 { margin-bottom: 20px; }
.hero .lead { color: rgba(255, 255, 255, .8); font-size: clamp(1.1rem, 2vw, 1.35rem); }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  font-size: .85rem; font-weight: 600;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 26px;
}
.badge__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; flex: none;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .22);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero__note {
  margin-top: 22px;
  font-size: .87rem;
  color: rgba(255, 255, 255, .58);
}

/* The render straddles the navy and the white below it, Apple-fashion. */
.shot { margin-top: clamp(-130px, -13vw, -180px); position: relative; z-index: 2; }
.shot img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero);
}

/* ── Platform strip ───────────────────────────────────────────────────── */

.platforms {
  display: grid; gap: 20px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 940px) { .platforms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .platforms { grid-template-columns: 1fr; } }

.platform {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}
.platform svg { width: 30px; height: 30px; color: var(--blue); margin-bottom: 16px; }
.platform h3 { margin-bottom: 8px; }
.platform p { color: var(--ink-2); font-size: .96rem; }

/* ── Feature grid ─────────────────────────────────────────────────────── */

.features {
  display: grid; gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 940px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 14px 34px rgba(0,0,0,.09); }
@media (prefers-reduced-motion: reduce) { .feature:hover { transform: none; } }

.feature__icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue);
  margin-bottom: 16px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 7px; }
.feature p { color: var(--ink-2); font-size: .95rem; }

/* ── Steps ────────────────────────────────────────────────────────────── */

.steps { counter-reset: step; display: grid; gap: 4px; }

.step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 4px 22px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }

.step__no {
  counter-increment: step;
  font-size: 2rem; font-weight: 700; line-height: 1;
  color: var(--blue);
  letter-spacing: -.03em;
}
.step__no::before { content: counter(step); }

.step h3 { margin-bottom: 7px; }
.step p { color: var(--ink-2); font-size: .97rem; max-width: 62ch; }
.step .btn { margin-top: 14px; }

@media (max-width: 560px) {
  .step { grid-template-columns: 1fr; gap: 10px; }
  .step__no { font-size: 1.5rem; }
}

/* ── Two-up cards (feedback) ──────────────────────────────────────────── */

.duo { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
}
.card__icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue);
  margin-bottom: 16px;
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: .96rem; }
.card .btn { margin-top: 18px; }

/* ── Lists ────────────────────────────────────────────────────────────── */

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.checklist li {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px;
  align-items: start;
  color: var(--ink-2); font-size: .96rem;
}
.checklist svg { width: 20px; height: 20px; color: var(--blue); margin-top: 2px; }
.checklist b { color: var(--ink); font-weight: 600; }

/* ── Callout ──────────────────────────────────────────────────────────── */

.callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 14px;
  background: var(--blue-50);
  padding: 22px 24px;
  margin-top: 36px;
}
.callout h3 { font-size: 1.02rem; margin-bottom: 6px; }
.callout p { color: var(--ink-2); font-size: .94rem; }

/* ── Pending work ─────────────────────────────────────────────────────── */

.pending { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pending li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr auto; gap: 8px 20px;
  align-items: baseline;
}
.pending li:last-child { border-bottom: 1px solid var(--line); }
.pending b { font-weight: 600; }
.pending span { color: var(--ink-3); font-size: .88rem; }
.pending p { color: var(--ink-2); font-size: .93rem; grid-column: 1 / -1; margin: 0; }

/* ── Closing CTA ──────────────────────────────────────────────────────── */

.cta {
  background: linear-gradient(170deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 76px) clamp(28px, 5vw, 60px);
  text-align: center;
}
.cta h2 { margin-bottom: 16px; }
.cta p { color: rgba(255, 255, 255, .76); max-width: 48ch; margin-inline: auto; }
.cta .btn { margin-top: 30px; }

/* ── Footer ───────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 56px;
  color: var(--ink-3);
  font-size: .88rem;
}
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; }
.footer__inner p { margin: 0; }
.footer a { color: var(--ink-2); }
.footer .sep { margin-left: auto; }

/* ── Reveal on scroll (only when JS is running) ───────────────────────── */

.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ── Icons that sit inline in running text ────────────────────────────── */

.callout h3 { display: flex; align-items: center; gap: 9px; }
.callout h3 svg { width: 19px; height: 19px; flex: none; color: var(--blue); }

.footer__inner p { display: inline-flex; align-items: center; gap: 7px; }
.footer svg { width: 15px; height: 15px; flex: none; }

.callout .checklist { margin-top: 14px; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: .88em;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  padding: .12em .38em;
  border-radius: 5px;
}

/* A warning is not a note: the backup caution gets amber, so it is not read as
   one more blue aside. */
.callout--warn {
  border-left-color: #e8940c;
  background: color-mix(in srgb, #e8940c 9%, transparent);
}
.callout--warn h3 svg { color: #b8730a; }
@media (prefers-color-scheme: dark) {
  .callout--warn { background: color-mix(in srgb, #e8940c 13%, transparent); }
  .callout--warn h3 svg { color: #f0a93a; }
}

/* ── Prose pages (privacy) ────────────────────────────────────────────── */

.prose { max-width: 68ch; }
.prose h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.prose h2 { font-size: 1.35rem; margin: 44px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; margin: 0 0 1em; }
.prose .updated { color: var(--ink-3); font-size: .9rem; margin-bottom: 36px; }
.prose .back { margin-top: 48px; }

/* ── Comparison ───────────────────────────────────────────────────────── */

.jump {
  margin: -18px 0 40px;
  font-size: .93rem;
  color: var(--ink-3);
  line-height: 2;
}
.jump a { color: var(--ink-2); }

.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.legend b { color: var(--ink); margin-right: 4px; }

/* One tick, one dash, one cross — sized and coloured the same, so a column reads as a
   pattern rather than as a row of different shapes. */
.mark {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  flex: none;
}
.mark svg { width: 15px; height: 15px; stroke-width: 2.4; }
.mark--yes  { background: color-mix(in srgb, #1a9e52 15%, transparent); color: #168244; }
.mark--part { background: color-mix(in srgb, #e8940c 18%, transparent); color: #a9690a; }
.mark--no   { background: color-mix(in srgb, #d63a35 13%, transparent); color: #bd3530; }
@media (prefers-color-scheme: dark) {
  .mark--yes  { background: rgba(38, 190, 105, .17); color: #4ad584; }
  .mark--part { background: rgba(232, 148, 12, .20); color: #f0a93a; }
  .mark--no   { background: rgba(230, 80, 74, .17); color: #ff7b74; }
}

.versus__list { display: grid; gap: clamp(48px, 7vw, 84px); }

.versus h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -.025em;
  margin-bottom: 8px;
  scroll-margin-top: 80px;
}
.versus h3 span { color: var(--ink-3); font-weight: 500; margin: 0 6px; }
.versus { scroll-margin-top: 76px; }
.versus__lead { color: var(--ink-2); font-size: 1.02rem; margin-bottom: 22px; max-width: 62ch; }
.versus p { max-width: 66ch; color: var(--ink-2); font-size: .97rem; }

.versus__edge {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  align-items: start;
  margin-top: 18px; padding: 16px 18px;
  border-radius: 14px;
  background: var(--blue-50);
  color: var(--ink) !important;
  font-size: .96rem;
}
.versus__edge svg { width: 22px; height: 22px; color: var(--blue); margin-top: 1px; }

/* A table is the one thing on this page allowed to scroll sideways — never the page. */
.tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 22px;
}

.matrix { border-collapse: collapse; width: 100%; min-width: 460px; font-size: .95rem; }
.matrix th, .matrix td { padding: 13px 18px; text-align: left; }
.matrix thead th {
  font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.matrix thead th:nth-child(2) { color: var(--blue); }
.matrix thead th a { color: inherit; }
.matrix tbody th { font-weight: 500; color: var(--ink-2); }
.matrix tbody tr + tr th, .matrix tbody tr + tr td { border-top: 1px solid var(--line); }
.matrix td { width: 96px; text-align: center; }
.matrix tbody tr:hover th { color: var(--ink); }

/* ── News ─────────────────────────────────────────────────────────────── */

.entries { display: grid; gap: 0; margin-top: 40px; }

.entry {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 8px 28px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.entry:last-child { border-bottom: 1px solid var(--line); }

.entry__meta { display: flex; flex-direction: column; gap: 7px; }
.entry__meta time { font-weight: 600; font-size: .96rem; }
.entry__build {
  align-self: start;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  color: var(--blue);
  background: var(--blue-50);
  padding: 3px 9px; border-radius: 999px;
}
.entry h3 { margin-bottom: 14px; }
.entry .checklist li { align-items: start; }

@media (max-width: 720px) {
  .entry { grid-template-columns: 1fr; gap: 14px; }
  .entry__meta { flex-direction: row; align-items: center; gap: 12px; }
}
