/* Guardian website. Clean, Apple-like flow on gunmetal graphite.
   One idea per section, generous space, soft rounded tiles, frosted nav, gentle scroll reveals.
   The pixel logo and the white-outlined wordmark/headline keep the brand. */
:root {
  --bg: #121315; --bg-2: #17191C; --tile: #1E2024; --tile-2: #26292E; --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
  --fg: #F2F2F4; --muted: #A1A5AD; --faint: #6E737B;
  --blue: #3D85F0; --blue-2: #5C9BFF; --coral: #FF6F5E; --peacock: #2BA9BC; --gold: #E8B94F;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --pixel: "Pixelify Sans", "Silkscreen", ui-monospace, monospace;
  --title: "Silkscreen", "Pixelify Sans", ui-monospace, monospace;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--sans); letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
code { font: 14px var(--mono); background: var(--tile-2); border-radius: 6px; padding: 2px 6px; }
.muted { color: var(--muted); }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 22px; }

/* ---------- nav: thin, frosted, sticky ---------- */
.nav-bar { position: sticky; top: 0; z-index: 10; background: rgba(18, 19, 21, .72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.nav { height: 52px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none !important;
  font: 700 17px var(--title); letter-spacing: .14em; text-transform: uppercase;
  color: #fff; -webkit-text-stroke: 1px #000; paint-order: stroke fill; text-shadow: 2px 2px 0 #000; }
.brand img { width: 26px; height: 26px; image-rendering: pixelated; }
.nav a:not(.brand) { font-size: 13px; color: var(--muted); letter-spacing: 0; }
.nav a:not(.brand):hover, .nav a[aria-current] { color: var(--fg); text-decoration: none; }
.nav .pill { color: #fff !important; background: var(--blue); padding: 5px 14px; border-radius: 99px; }
.nav .pill:hover { background: var(--blue-2); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--sans); letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.eyebrow { font: 600 15px var(--sans); color: var(--coral); letter-spacing: 0; margin-bottom: 10px; }
.display { font: 700 clamp(44px, 8vw, 88px)/1.02 var(--pixel); letter-spacing: 0;
  color: #fff; -webkit-text-stroke: 2.5px #000; paint-order: stroke fill; text-shadow: 4px 4px 0 #000; }
.headline { font-size: clamp(34px, 5.4vw, 60px); font-weight: 700; line-height: 1.06; }
.sub { font-size: clamp(19px, 2.2vw, 24px); color: var(--muted); line-height: 1.4; max-width: 34ch; margin: 18px auto 0; font-weight: 500; letter-spacing: -.015em; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }

/* ---------- sections ---------- */
section { padding-block: 120px; }
.hero { padding-block: 96px 40px; text-align: center; position: relative; }
.hero::before { content: ""; position: absolute; inset: 20% 10% auto; height: 520px; z-index: -1;
  background: radial-gradient(closest-side, rgba(61, 133, 240, .28), transparent), radial-gradient(closest-side at 70% 60%, rgba(255, 111, 94, .14), transparent); filter: blur(10px); }
.hero .sub { max-width: 30ch; }
.actions { display: flex; gap: 22px; justify-content: center; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 500; border-radius: 99px; padding: 12px 24px; background: var(--blue); color: #fff; }
.btn:hover { background: var(--blue-2); text-decoration: none; }
.link-arrow { font-size: 17px; color: var(--blue-2); }
.link-arrow::after { content: " ›"; }
.hero-art { width: min(340px, 70vw); aspect-ratio: 1; margin: 64px auto 0; image-rendering: pixelated; display: block;
  filter: drop-shadow(0 30px 80px rgba(61, 133, 240, .35)); }

/* product preview: a mock "Today" card */
.preview { margin: 56px auto 0; max-width: 760px; background: linear-gradient(180deg, var(--tile-2), var(--tile)); border: 1px solid var(--line-2); border-radius: 28px; padding: 28px 30px; text-align: left; box-shadow: 0 40px 100px rgba(0, 0, 0, .45); }
.preview-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.preview-head b { font-size: 21px; letter-spacing: -.02em; }
.preview-head span { color: var(--faint); font-size: 14px; }
.top3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: n; }
.top3 li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; font-size: 18px; }
.top3 li::before { content: counter(n); font: 600 22px var(--sans); color: var(--gold); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.chips span { font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; }
.chips span b { color: var(--fg); font-weight: 600; }

/* bento tiles */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.tile { grid-column: span 2; background: var(--tile); border-radius: 26px; padding: 30px 28px; min-height: 250px; display: flex; flex-direction: column; border: 1px solid var(--line); position: relative; overflow: hidden; text-align: left; }
.tile.wide { grid-column: span 3; }
.tile.full { grid-column: span 6; min-height: 0; }
.tile .k { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.tile h3 { font-size: 26px; line-height: 1.15; font-weight: 700; position: relative; }
.tile p { color: var(--muted); margin: 12px 0 0; font-size: 16px; position: relative; }
.tile .big { margin-top: auto; padding-top: 22px; font: 700 52px/1 var(--sans); letter-spacing: -.03em; position: relative; }
.k.blue { color: var(--blue-2); } .k.coral { color: var(--coral); } .k.peacock { color: var(--peacock); } .k.gold { color: var(--gold); }
.tile.glow-blue::after, .tile.glow-coral::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; bottom: -110px; border-radius: 50%; filter: blur(50px); opacity: .45; }
.tile.glow-blue::after { background: var(--blue); }
.tile.glow-coral::after { background: var(--coral); }

/* privacy statements */
.statements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 56px; text-align: left; }
.statements h3 { font-size: 24px; }
.statements p { color: var(--muted); margin: 10px 0 0; }
.statements .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tile-2); margin-bottom: 16px; color: var(--blue-2); }
.statements .ico svg { width: 22px; height: 22px; }

/* get it */
.cta-box { background: linear-gradient(160deg, var(--tile-2), var(--tile)); border: 1px solid var(--line-2); border-radius: 32px; padding: 72px 28px; text-align: center; }
.cta-box .sub { max-width: 40ch; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 26px 40px; color: var(--faint); font-size: 12.5px; }
footer .wrap { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--muted); }

/* reveal on scroll (only where supported; content is always visible otherwise) */
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .reveal { animation: none !important; } html { scroll-behavior: auto; } }

/* ---------- reading pages (privacy, terms, guide) ---------- */
.doc { max-width: 720px; margin: 0 auto; padding-block: 72px 40px; padding-inline: 22px; }
.doc .eyebrow { margin-bottom: 8px; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); font-weight: 700; line-height: 1.05; }
.doc .lead { font-size: 21px; color: var(--muted); margin: 18px 0 8px; line-height: 1.45; }
.doc h2 { font-size: 26px; margin: 52px 0 12px; }
.doc h3 { font-size: 20px; margin: 30px 0 8px; }
.doc p, .doc li { color: #D3D5DA; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc b, .doc strong { color: var(--fg); }
.note { background: var(--tile); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 20px; margin: 22px 0; }
.tblwrap { overflow-x: auto; margin: 16px 0; }
.tbl, .md table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td, .md th, .md td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th, .md th { font-size: 13px; font-weight: 600; color: var(--muted); }
.md table { display: block; overflow-x: auto; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0; }
.md blockquote { margin: 18px 0; background: var(--tile); border-radius: 14px; padding: 6px 18px; color: var(--muted); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.wide { grid-column: span 1; }
  .tile.full { grid-column: span 2; }
  .statements { grid-template-columns: 1fr; gap: 32px; }
  section { padding-block: 84px; }
}
@media (max-width: 600px) {
  .nav { gap: 16px; }
  .nav a.hide-sm { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide, .tile.full { grid-column: span 1; min-height: 0; }
  .preview { padding: 22px; border-radius: 22px; }
  .top3 li { font-size: 16px; }
  .hero { padding-top: 64px; }
}
