/* Pagenib website.
   Colours come from the logo: blue page (#60A5FA -> #1D4ED8) and the nib (yellow -> orange -> pink). */

:root {
  --navy: #0b1220;
  --navy-2: #111a2e;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-tint: #f5f8ff;
  --blue: #1d4ed8;
  --blue-2: #2563eb;
  --blue-light: #60a5fa;
  --yellow: #fde047;
  --orange: #fb923c;
  --pink: #ec4899;
  --nib: linear-gradient(90deg, var(--yellow), var(--orange), var(--pink));
  --blue-grad: linear-gradient(135deg, var(--blue-light), var(--blue));
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 52px; padding: 0 26px; font-size: 16px; }
.btn-xl { --h: 62px; padding: 0 34px; font-size: 18px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, .65), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(37, 99, 235, .8), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-ghost-light { color: #e2e8f0; border-color: rgba(226, 232, 240, .25); background: rgba(255,255,255,.03); }
.btn-ghost-light:hover { border-color: rgba(226, 232, 240, .6); background: rgba(255,255,255,.08); }
.btn.is-pending { opacity: .75; }

/* ---------- Small labels above headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 12px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow span { width: 34px; height: 2px; border-radius: 2px; background: var(--nib); }
.eyebrow-light { color: var(--blue-light); }

.grad-text {
  background: linear-gradient(90deg, var(--blue-light), #a5b4fc 40%, var(--orange) 75%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Top bar ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav-inner { height: 72px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px/1 var(--font-display); letter-spacing: -.02em; color: #fff; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: #cbd5e1; position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--nib); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav.is-scrolled { background: rgba(11, 18, 32, .78); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 rgba(255,255,255,.06); }

/* ---------- Opening section ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 90px;
  background: radial-gradient(1200px 600px at 75% 40%, #16264a 0%, var(--navy) 60%);
  color: #e2e8f0;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(96,165,250,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,.07) 1px, transparent 1px),
    linear-gradient(rgba(96,165,250,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,165,250,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse at 60% 45%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 45%, #000 30%, transparent 80%);
  animation: grid-drift 40s linear infinite;
}
@keyframes grid-drift { to { background-position: 120px 120px, 120px 120px, 24px 24px, 24px 24px; } }
.hero-glow {
  position: absolute; width: 640px; height: 640px; right: -120px; top: 10%;
  background: radial-gradient(circle, rgba(236,72,153,.18), rgba(251,146,60,.08) 40%, transparent 70%);
  filter: blur(20px); pointer-events: none;
  animation: float 12s ease-in-out infinite;
}
@keyframes float { 50% { transform: translate(-40px, 30px) scale(1.08); } }

.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.12fr; gap: 56px; align-items: center; width: 100%; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.04; font-weight: 800; color: #fff; margin-bottom: 24px; }
.hero .lead { font-size: 18px; color: #a9b6cc; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 20px; }
.hero-meta { font-size: 14px; color: #7f8ca3; }

/* App window mock */
.window {
  border-radius: 14px; overflow: hidden;
  background: #1b2437;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03), 0 0 120px -40px rgba(96,165,250,.45);
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg);
  transition: transform .8s var(--ease);
}
.hero-visual:hover .window { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.window-bar { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; background: #222c40; border-bottom: 1px solid rgba(255,255,255,.06); }
.window-title { font-size: 13px; color: #cbd5e1; }
.window-tools { display: flex; gap: 8px; }
.window-tools i { width: 22px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); }
.window-tools i:first-child { background: var(--nib); }
.window-body { padding: 18px; background: #2a3448; }
.window-status { display: flex; justify-content: space-between; padding: 8px 14px; font-size: 12px; color: #94a3b8; background: #1b2437; }
.status-live { color: var(--blue-light); opacity: 0; animation: fade .6s ease 3.9s forwards; }

/* The animated floor plan */
.plan { width: 100%; height: auto; display: block; background: #fbfcfe; border-radius: 4px; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.plan .draw { fill: none; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1s var(--ease) var(--t, 0s) forwards; }
.plan .walls path { stroke: #1e293b; stroke-width: 6; stroke-linecap: square; }
.plan .thin path { stroke: #64748b; stroke-width: 1.5; }
.room-labels text { font: 600 11px var(--font-body); letter-spacing: .14em; fill: #94a3b8; text-anchor: middle; opacity: 0; animation: fade .8s ease 1.8s forwards; }
.mk .draw { stroke-linecap: round; stroke-linejoin: round; }
.mk-dim .draw { stroke: #dc2626; stroke-width: 2; }
.mk-dim .arrow { fill: #dc2626; }
.mk .tag { fill: #dc2626; }
.mk .tag-blue { fill: var(--blue-2); }
.mk .tag-text { font: 700 14px var(--font-body); fill: #fff; text-anchor: middle; }
.area-fill { fill: url(#hatch); }
.mk-area .area-fill { fill: rgba(37, 99, 235, .1); }
.area-line { stroke: var(--blue-2); stroke-width: 3; }
.cloud { stroke: #e11d48; stroke-width: 2.5; }
.mk-callout .draw { stroke: #0f766e; stroke-width: 2; }
.mk-callout .dot { fill: #0f766e; }
.callout-box { fill: #ecfeff; stroke: #0f766e; stroke-width: 2; }
.callout-text { font: 600 14px var(--font-body); fill: #0f766e; text-anchor: middle; }
.mk .arrow, .mk .tag, .mk .tag-text, .mk .area-fill, .mk .dot, .mk .callout-box, .mk .callout-text {
  opacity: 0; animation: pop .5s var(--ease) calc(var(--t) + .55s) forwards; transform-box: fill-box; transform-origin: center;
}
.nib { opacity: 0; animation: nib-path 6s var(--ease) forwards; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
@keyframes nib-path {
  0%, 33% { opacity: 0; transform: translate(40px, 30px); }
  35%     { opacity: 1; transform: translate(40px, 30px); }
  46%     { transform: translate(300px, 30px); }
  50%     { transform: translate(304px, 74px); }
  63%     { transform: translate(556px, 276px); }
  65%     { transform: translate(432px, 296px); }
  75%     { transform: translate(548px, 404px); }
  77%     { transform: translate(432px, 360px); }
  87%     { opacity: 1; transform: translate(268px, 400px); }
  100%    { opacity: 0; transform: translate(240px, 420px); }
}
/* On phones the drawing is below the fold: hold its animation until it scrolls into view */
.js .hero-visual:not(.is-in) .plan *, .js .hero-visual:not(.is-in) .status-live { animation-play-state: paused; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(226,232,240,.3); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--nib); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Moving strip ---------- */
.strip { background: var(--navy); border-top: 1px solid rgba(255,255,255,.06); padding: 22px 0; overflow: hidden; }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font: 600 18px var(--font-display); color: #8ea0bf; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--nib); }
.strip:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: 120px 0; }
.section-tint { background: var(--bg-tint); padding: 90px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.1; font-weight: 800; }
.section-sub { margin-top: 18px; font-size: 18px; color: var(--muted); }

/* Feature tiles */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  position: relative; overflow: hidden;
  padding: 32px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--nib); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(29,78,216,.35); border-color: #c7d6f5; }
.tile:hover::before { transform: scaleX(1); }
.tile-wide { grid-column: span 2; }
.tile h3 { font-size: 22px; margin: 18px 0 10px; }
.tile p { color: var(--body); max-width: 560px; }
.tile-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #eff6ff, #dbeafe); }
.tile-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tile .draw, [data-draw] .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.4s var(--ease) calc(var(--d, 0s) + var(--t, 0s) + .2s); }
.tile.is-in .draw, [data-draw].is-in .draw { stroke-dashoffset: 0; }
.tile-demo { display: flex; align-items: center; gap: 20px; margin-top: 26px; }
.ruler { flex: 1; height: 10px; border-radius: 6px; background: repeating-linear-gradient(90deg, #cbd5e1 0 1px, transparent 1px 12px), #f1f5f9; overflow: hidden; }
.ruler-fill { display: block; height: 100%; width: 0; background: var(--blue-grad); border-radius: 6px; transition: width 1.8s var(--ease) .3s; }
.tile.is-in .ruler-fill { width: 78%; }
.ruler-value { font: 800 26px var(--font-display); color: var(--blue); min-width: 150px; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--bg-tint); border: 1px solid #dbe5f7; color: var(--blue); }

/* Dark measuring section */
.section-dark { background: var(--navy); color: #e2e8f0; overflow: hidden; }
.section-dark h2 { color: #fff; }
.split { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 30px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); }
.steps b { font: 800 15px var(--font-display); color: transparent; background: var(--nib); -webkit-background-clip: text; background-clip: text; padding-top: 4px; }
.steps h3 { font-size: 20px; color: #fff; margin-bottom: 6px; }
.steps p { color: #94a3b8; }
.measure-visual { padding: 28px; border-radius: 22px; background: linear-gradient(160deg, #142038, #0e172a); border: 1px solid rgba(255,255,255,.07); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); }
.measure-visual svg { width: 100%; height: auto; display: block; }
.measure-visual .faint { fill: none; stroke: rgba(148,163,184,.35); stroke-width: 3; }
.measure-visual .m-line { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.snap { fill: none; stroke: #f472b6; stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(2); transition: opacity .4s ease calc(var(--t) + .2s), transform .5s var(--ease) calc(var(--t) + .2s); }
[data-draw].is-in .snap { opacity: 1; transform: scale(1); }
.m-tag { opacity: 0; transform: translateY(8px); transition: opacity .5s ease calc(var(--t) + .2s), transform .5s var(--ease) calc(var(--t) + .2s); }
.m-tag rect { fill: var(--orange); }
.m-tag text { font: 800 18px var(--font-display); fill: var(--navy); text-anchor: middle; }
[data-draw].is-in .m-tag { opacity: 1; transform: none; }

/* Screenshot tour */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 36px; padding: 6px; border-radius: 999px; background: var(--bg-tint); border: 1px solid #dbe5f7; }
.tabs button { border: 0; background: transparent; cursor: pointer; padding: 10px 22px; border-radius: 999px; font: 600 14px var(--font-body); color: var(--muted); transition: background .3s, color .3s, box-shadow .3s; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--blue); box-shadow: 0 4px 14px -6px rgba(29,78,216,.4); }
.showcase { perspective: 1600px; }
.showcase-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: #1e1e1e; border: 1px solid #1f2937;
  box-shadow: 0 60px 120px -50px rgba(15,23,42,.55), 0 0 0 8px rgba(29,78,216,.06);
  transform: rotateX(calc((1 - var(--p, 1)) * 22deg)) scale(calc(.9 + var(--p, 1) * .1));
  transform-origin: center top;
  transition: transform .1s linear;
}
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity .6s ease, transform 1.2s var(--ease); }
.shot.is-active { opacity: 1; transform: none; }
.shot-caption { margin-top: 22px; text-align: center; color: var(--muted); font-weight: 500; }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat b { display: block; font: 800 clamp(40px, 5vw, 60px)/1 var(--font-display); letter-spacing: -.03em; background: var(--blue-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat p { margin-top: 10px; color: var(--muted); }

/* Download */
.download-card {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: 880px; margin: 0 auto; padding: 72px 40px; text-align: center;
  border-radius: 28px; color: #e2e8f0;
  background: radial-gradient(800px 400px at 50% 0%, #1b3170, var(--navy) 70%);
  box-shadow: 0 50px 100px -40px rgba(29,78,216,.55);
}
.download-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(96,165,250,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(96,165,250,.08) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(circle at 50% 30%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 70%); }
.download-glow { position: absolute; z-index: -1; width: 420px; height: 420px; left: 50%; top: -160px; margin-left: -210px; background: radial-gradient(circle, rgba(251,146,60,.28), transparent 65%); animation: float 10s ease-in-out infinite; }
.download-logo { margin: 0 auto 22px; animation: bob 5s ease-in-out infinite; filter: drop-shadow(0 18px 30px rgba(0,0,0,.4)); }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-3deg); } }
.download-card h2 { color: #fff; }
.download-sub { margin: 14px auto 40px; color: #a9b6cc; font-size: 18px; }
.download-note { margin: 34px auto 0; max-width: 560px; font-size: 14px; color: #7f8ca3; }
.download-note a { color: var(--blue-light); }

.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; }
.platform {
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px; border-radius: 18px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  transition: border-color .3s, background .3s;
}
.platform.is-yours { border-color: rgba(96,165,250,.45); background: rgba(96,165,250,.07); }
.platform-head { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.platform-head h3 { font-size: 20px; color: #fff; }
.platform-head p { font-size: 14px; color: #94a3b8; }
.os-icon { width: 40px; height: 40px; flex: none; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.07); fill: none; stroke: #cbd5e1; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.platform .btn { width: 100%; }
.platform-meta { font-size: 13px; color: #7f8ca3; margin-top: auto; }
.btn-store {
  --h: 58px; position: relative; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px;
  padding: 0 22px; border-radius: 14px; color: #fff; background: #000; border: 1px solid rgba(255,255,255,.28);
}
.btn-store:hover { border-color: rgba(255,255,255,.6); transform: translateY(-2px); }
.store-small { font-size: 11px; font-weight: 500; letter-spacing: .02em; opacity: .85; }
.store-big { font: 700 17px/1.1 var(--font-display); }
.btn-store.is-soon { opacity: .55; cursor: default; }
.btn-store.is-soon:hover { transform: none; border-color: rgba(255,255,255,.28); }
.soon-tag { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); padding: 3px 10px; border-radius: 999px; font: 600 11px var(--font-body); letter-spacing: .06em; text-transform: uppercase; background: var(--nib); color: var(--navy); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: #c7d6f5; box-shadow: 0 18px 40px -26px rgba(29,78,216,.4); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; font: 700 17px var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, 0); }
.faq details p { padding: 0 26px 24px; color: var(--body); }

/* Footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .brand { color: var(--ink); font-size: 18px; }
.footer p { color: var(--muted); font-size: 14px; }
.footer p a { color: inherit; text-decoration: none; }
.footer p a:hover { color: var(--blue); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--body); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--blue); }

/* ---------- Text pages (privacy, 404) ---------- */
.doc-hero { position: relative; overflow: hidden; padding: 150px 0 70px; background: radial-gradient(900px 400px at 70% 20%, #16264a, var(--navy) 65%); color: #e2e8f0; }
.doc-hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; color: #fff; }
.doc-date { margin-top: 14px; color: #94a3b8; }
.doc { padding-top: 60px; padding-bottom: 100px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; }
.doc p { color: var(--body); font-size: 17px; }
.doc a { color: var(--blue); }
.doc-lead { font-size: 20px !important; color: var(--ink) !important; }
.doc-hero .btn { margin-top: 30px; }

/* ---------- Fade-in on scroll (only when JavaScript runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Narrow screens ---------- */
@media (max-width: 980px) {
  .hero-inner, .split { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: 0; padding-top: 110px; }
  .window { transform: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento > .tile:last-child { grid-column: span 2; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 84px 0; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide, .bento > .tile:last-child { grid-column: auto; }
  .tile { padding: 26px; }
  .ruler-value { min-width: 0; font-size: 22px; }
  .hero-cta .btn { width: 100%; }
  .download-card { padding: 56px 16px; }
  .platforms { grid-template-columns: 1fr; }
  .platform { padding: 20px; }
  .tabs { border-radius: 18px; }
  .btn-xl { --h: 56px; padding: 0 22px; font-size: 16px; }
  .tabs button { padding: 9px 14px; }
  .scroll-cue { display: none; }
}

/* ---------- People who turned animations off in Windows ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .nib { display: none; }
}
