@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:wght@500;600&display=swap");

:root {
  color-scheme: light;
  --ink: #282722;
  --muted: #5f5d55;
  --paper: #fffdf8;
  --ground: #f4f0e7;
  --rule: #d9d3c7;
  --navy: #1d3541;
  --navy-light: #294b59;
  --red: #9e4338;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; min-width: 320px; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 3px; z-index: 30; }
.skip:focus { left: 8px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 0 var(--gutter); background: rgba(244, 240, 231, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font: 600 21px var(--serif); }
.brand strong { font: 600 21px var(--serif); letter-spacing: .01em; }
.topbar nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.topbar nav a:not(.button) { text-decoration: none; font-size: 14px; color: var(--muted); }
.topbar nav a:not(.button):hover { color: var(--ink); }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border: 1px solid var(--navy); border-radius: 3px; background: var(--navy); color: #fff; font: 600 14px var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.button:hover { background: var(--navy-light); transform: translateY(-1px); }
.button.secondary { background: transparent; color: var(--navy); }
.button.secondary:hover { background: #ebe7de; }
.button.compact { min-height: 38px; padding: 8px 16px; }

/* Layout */
section { padding: clamp(56px, 8vw, 104px) var(--gutter); }
.wrap { width: min(1120px, 100%); margin: 0 auto; }
.eyebrow { margin: 0 0 14px; color: var(--red); text-transform: uppercase; letter-spacing: .2em; font-size: 11px; font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.02em; margin: 0; line-height: 1.08; }
h1 { font-size: clamp(40px, 6.2vw, 74px); }
h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 18px; }
h3 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.band { background: var(--paper); border-block: 1px solid var(--rule); }
.band.dark { background: var(--navy); color: #f4f0e7; border-color: var(--navy); }
.band.dark .eyebrow { color: #d7afa5; }
.band.dark .lede, .band.dark .muted { color: #cdd8dc; }

/* Hero */
.hero { padding-top: clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.fine { margin-top: 18px; font-size: 13px; color: var(--muted); }
.illustration { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: clamp(16px, 2.5vw, 28px); box-shadow: 0 24px 48px -32px rgba(40, 39, 34, .35); }
.illustration figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--rule); }
.steps li { counter-increment: step; padding: 28px 24px 0 0; }
.steps li::before { content: counter(step); display: block; font: 500 44px/1 var(--serif); color: var(--red); margin-bottom: 14px; }
.steps h3 { font-size: 20px; }
.steps p { color: var(--muted); font-size: 15px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.card { background: var(--ground); border: 1px solid var(--rule); border-radius: 6px; padding: 26px 24px 8px; }
.card p { color: var(--muted); font-size: 15px; }
.band .card { background: var(--ground); }

/* Two column text */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.facts li:first-child { border-top: 1px solid var(--rule); }
.band.dark .facts li { border-color: rgba(244, 240, 231, .22); }
.facts strong { font-weight: 600; white-space: nowrap; }
.facts span { color: var(--muted); text-align: right; }
.band.dark .facts span { color: #cdd8dc; }

.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.platform { border-top: 2px solid var(--ink); padding-top: 16px; }
.platform .status { display: inline-block; margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.platform p { color: var(--muted); font-size: 15px; }

.not-list { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; max-width: 46em; }
.not-list li { padding-left: 26px; position: relative; color: var(--muted); }
.not-list li::before { content: "–"; position: absolute; left: 4px; color: var(--red); font-weight: 600; }
.not-list strong { color: var(--ink); font-weight: 600; }

.cta { text-align: center; }
.cta .wrap { max-width: 720px; }
.cta .actions { justify-content: center; }

/* Footer */
footer { padding: 36px var(--gutter); border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); text-decoration: underline; }

/* Help article */
.article { width: min(780px, 100%); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) 96px; }
.article h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 22px; }
.article h2 { font-size: clamp(25px, 3vw, 32px); margin: 2em 0 .6em; }
.article table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.article th, .article td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.article th { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.article ul { padding-left: 1.2em; }
.article li { margin-bottom: .45em; }
.article code { font: 14px ui-monospace, Menlo, Consolas, monospace; background: #ebe7de; padding: 2px 6px; border-radius: 3px; }
.article .back { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: 14px; text-decoration: none; }
.article .back:hover { color: var(--ink); }

@media (max-width: 920px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid, .platforms { grid-template-columns: 1fr; }
  .topbar nav a:not(.button) { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .facts li { flex-direction: column; gap: 2px; }
  .facts span { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }
