:root {
  color-scheme: light;
  --paper: #fbf9f6;
  --ink: #15171c;
  --ink-soft: #4d5361;
  --rule: rgba(21, 23, 28, 0.1);
  --blue: #0062e6;
  --sky: #c8ddfa;
  --periwinkle: #c9d6f7;
  --sticky: #f6d86b;
  --white: #ffffff;
  --good: #1f8a4c;
  --bad: #b04545;
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-card: 32px;
  --page: 1180px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

figure { margin: 0; }

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  margin: 0;
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1, h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; }

h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; }

h3 { margin: 0; font: 600 17px/1.3 var(--sans); letter-spacing: -0.01em; }

.lede { margin: 0; font-size: clamp(17px, 1.8vw, 21px); color: var(--ink-soft); max-width: 30em; text-wrap: pretty; }

.fine { margin: 0; font-size: 13px; color: var(--ink-soft); }

.text-link { font-weight: 600; color: var(--blue); text-decoration: none; }

.text-link:hover { text-decoration: underline; }

.nav {
  position: sticky;
  top: calc(12px + env(safe-area-inset-top, 0px));
  z-index: 20;
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
  margin-top: 12px;
  pointer-events: none;
}

.nav-bar {
  pointer-events: auto;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 8px 8px 14px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(21, 23, 28, 0.04), 0 10px 30px -12px rgba(20, 50, 92, 0.28);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }

.brand img { width: 30px; height: 30px; }

.nav-links { display: flex; gap: 4px; margin: 0 auto; padding: 0; list-style: none; }

.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-soft); }

.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(21, 23, 28, 0.06); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 0;
  font: 600 15px/1.2 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.pill-dark { background: var(--ink); color: var(--white); }

.pill-dark:hover { background: #2a2e37; }

.pill-light { background: var(--white); color: var(--ink); box-shadow: 0 6px 20px -10px rgba(20, 50, 92, 0.4); }

.pill .soon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.pill-light .soon { background: rgba(0, 98, 230, 0.1); color: var(--blue); }

.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.hero { padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)); margin-top: -64px; }

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--sky) url("assets/hero-paper.svg") center / cover no-repeat;
  padding-top: 136px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
}

.hero-copy .lede { color: #2c3546; }

.device {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 40px));
  margin: 56px auto -5.5%;
  padding: 1.15%;
  border-radius: 4.2% / 5.6%;
  background: #17191e;
  box-shadow: inset 0 0 0 1.5px #3b3f48, 0 40px 80px -30px rgba(16, 40, 80, 0.55), 0 12px 24px -12px rgba(16, 40, 80, 0.4);
}

.device img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 3.2% / 4.3%; background: #2b2d32; }

.section { padding-block: clamp(80px, 11vw, 140px) 0; }

.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  padding: clamp(32px, 6vw, 72px);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.15 0 0 0 0 0.35 0 0 0 0.12 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

.panel > * { position: relative; z-index: 1; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.split-copy { display: grid; gap: 20px; align-content: center; min-width: 0; }

.speed-panel { background: var(--periwinkle); }

.speed-panel .lede { color: #2f3a52; }

.speed-panel .fine { color: #4a5672; }

.demo {
  min-width: 0;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 30px 60px -28px rgba(20, 40, 90, 0.55), 0 0 0 1px rgba(20, 40, 90, 0.06);
  overflow: hidden;
}

.demo-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--rule); font-size: 14px; }

.demo-name { display: grid; flex: 1; min-width: 0; line-height: 1.2; }

.demo-name b { font-weight: 600; }

.demo-name span { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.demo-clock {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: 600 15px/1 var(--sans);
  font-variant-numeric: tabular-nums;
}

.demo-clock small { font-weight: 500; opacity: 0.7; }

.demo-view { position: relative; height: clamp(240px, 30vw, 330px); overflow: hidden; background: #e9ecf2; }

.demo-view::before, .demo-view::after { content: ""; position: absolute; left: 0; right: 0; height: 28px; z-index: 2; pointer-events: none; }

.demo-view::before { top: 0; background: linear-gradient(#e9ecf2, rgba(233, 236, 242, 0)); }

.demo-view::after { bottom: 0; background: linear-gradient(rgba(233, 236, 242, 0), #e9ecf2); }

.demo-strip {
  position: absolute;
  left: 50%;
  top: 0;
  width: 74%;
  display: grid;
  gap: 16px;
  transform: translate(-50%, var(--end, 0px));
  will-change: transform, filter;
}

.demo-page {
  position: relative;
  aspect-ratio: 210 / 160;
  border-radius: 6px;
  background: var(--white) url("assets/page-a.svg") center / 100% 100% no-repeat;
  box-shadow: 0 2px 6px rgba(20, 40, 90, 0.12);
}

.demo-page.b { background-image: url("assets/page-b.svg"); }

.demo-page.c { background-image: url("assets/page-c.svg"); }

.demo-page span { position: absolute; right: 8px; bottom: 6px; font-size: 11px; color: #7a8396; font-variant-numeric: tabular-nums; }

.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 14px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-soft); }

.demo-foot button { min-height: 36px; padding: 6px 14px; font-size: 13px; }

.demo.run .demo-strip { animation: fling 500ms cubic-bezier(0.22, 0.75, 0.18, 1) both; }

@keyframes fling {
  0% { transform: translate(-50%, 0); filter: blur(0); }
  12% { filter: blur(5px); }
  75% { filter: blur(3px); }
  100% { transform: translate(-50%, var(--end, 0px)); filter: blur(0); }
}

.sticky {
  position: relative;
  justify-self: center;
  width: min(400px, 100%);
  aspect-ratio: 1;
  transform: rotate(2.5deg);
  filter: drop-shadow(0 22px 26px rgba(90, 70, 10, 0.22)) drop-shadow(0 3px 4px rgba(90, 70, 10, 0.18));
}

.sticky-paper { position: absolute; inset: 0; background: var(--sticky); clip-path: url(#torn-top); }

.sticky-ink { position: absolute; inset: 0; width: 100%; height: 100%; }

.sticky-tape { position: absolute; top: -14px; left: 50%; width: 132px; height: 34px; transform: translateX(-50%) rotate(-4deg); background: rgba(159, 224, 194, 0.85); }

.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; font-weight: 600; }

.ticks li { display: flex; gap: 9px; align-items: baseline; }

.ticks li::before {
  content: "";
  flex: none;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: translateY(-4px) rotate(-45deg);
}

.closing { text-align: center; display: grid; justify-items: center; gap: 22px; padding-block: clamp(96px, 13vw, 160px) clamp(72px, 9vw, 110px); }

.closing .icon { width: 72px; height: 72px; filter: drop-shadow(0 12px 18px rgba(0, 98, 230, 0.3)); }

.page-head { padding-block: clamp(64px, 9vw, 110px) clamp(36px, 5vw, 56px); display: grid; gap: 18px; justify-items: center; text-align: center; }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }

.card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 22px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--rule);
  min-width: 0;
}

.card p { margin: 0; font-size: 15px; color: var(--ink-soft); }

.ico {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--tile, #e6effc);
  color: var(--tile-ink, var(--blue));
}

.ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.t-blue { --tile: #e3edfd; --tile-ink: #0062e6; }

.t-pink { --tile: #fde4ec; --tile-ink: #d0285f; }

.t-lime { --tile: #edf6d3; --tile-ink: #5d8a12; }

.t-teal { --tile: #d9f4ec; --tile-ink: #128a69; }

.t-orange { --tile: #fdebd8; --tile-ink: #c4600b; }

.t-purple { --tile: #eee5fb; --tile-ink: #7a3fc4; }

.later-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; font-size: 14px; color: var(--ink-soft); }

.later-row span { padding: 6px 12px; border-radius: 999px; box-shadow: 0 0 0 1px var(--rule); background: var(--white); }

.marked { padding: 0 0.08em; background: linear-gradient(transparent 58%, var(--mark, #f9e27d) 58%, var(--mark, #f9e27d) 92%, transparent 92%); }

.m-pink { --mark: #f9c6d6; }

.m-teal { --mark: #b9ecdc; }

.table-wrap { max-width: 860px; margin: 0 auto; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.compare { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 15px; }

.compare th, .compare td { padding: 15px 14px; text-align: center; border-bottom: 1px solid var(--rule); }

.compare thead th { font-weight: 600; font-size: 15px; border-bottom: 1.5px solid var(--ink); }

.compare tbody th { text-align: left; font-weight: 500; }

.compare .us { background: rgba(0, 98, 230, 0.07); font-weight: 600; }

.compare thead .us { border-radius: 14px 14px 0 0; color: var(--blue); }

.compare tbody tr:last-child .us { border-radius: 0 0 14px 14px; }

.compare thead .us img { width: 22px; height: 22px; display: inline-block; vertical-align: -6px; margin-right: 6px; }

.y, .n { display: inline-block; width: 24px; height: 24px; border-radius: 50%; vertical-align: middle; position: relative; }

.y { background: #dcf1e4; }

.y::after { content: ""; position: absolute; left: 7px; top: 6px; width: 10px; height: 6px; border-left: 2.4px solid var(--good); border-bottom: 2.4px solid var(--good); transform: rotate(-45deg); }

.n { background: #f6e1e1; }

.n::before, .n::after { content: ""; position: absolute; left: 6px; top: 11px; width: 12px; height: 2.4px; border-radius: 2px; background: var(--bad); transform: rotate(45deg); }

.n::after { transform: rotate(-45deg); }

.dash { color: #9aa0ab; }

.fair { margin: 28px auto 0; text-align: center; font-size: 16px; color: var(--ink-soft); }

.sources { max-width: 860px; margin: 48px auto 0; font-size: 13px; color: var(--ink-soft); }

.sources summary { cursor: pointer; font-weight: 600; }

.sources ul { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 4px; }

.sources a { word-break: break-word; }

footer { border-top: 1px solid var(--rule); }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--ink-soft); }

.foot nav { display: flex; gap: 18px; }

.foot nav a { text-decoration: none; }

.foot nav a:hover { color: var(--ink); }

.foot .brand { font-size: 15px; color: var(--ink); }

.foot .brand img { width: 22px; height: 22px; }

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

@media (prefers-reduced-motion: no-preference) {
  .hero .device { animation: rise 900ms cubic-bezier(0.2, 0.7, 0.2, 1) both 120ms; }
  @keyframes rise { from { transform: translateY(40px); } to { transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  .demo.run .demo-strip { animation: none; }
}

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .sticky { width: min(320px, 84%); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 10px; font-size: 14px; }
  .nav-bar { gap: 8px; padding-left: 12px; }
  .nav-bar .pill { display: none; }
  .brand span { display: none; }
  .hero-card { padding-top: 112px; border-radius: 24px; }
  .device { padding: 1.6%; }
  .hero .device { margin-top: 40px; }
  .card { padding: 18px; }
}

@media (max-width: 460px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 13px 8px; }
}
