/* Fonts served from our own domain (latin subset, variable weights): no third-party request before the text shows. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/inter-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600 700; font-display: swap; src: url(/fonts/inter-tight-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* PluginAnalytics' website, rule for rule, in userjourney's colors: cool paper, ink, cobalt and navy instead of grass and dirt. */
:root {
  --bg: #f3f3ef;
  --bg-2: #e8e8e2;
  --card: #fafaf7;
  --ink: #15161a;
  --ink-2: #4c4e56;
  --muted: #6c6f78;
  --line: #dcdcd4;
  --accent: #2f5bd8;
  --accent-2: #2448b3;
  --accent-soft: #e3eafc;
  --navy: #1c2440;
  --good: #0b7a3e;
  --code-bg: #ffffff;
  --radius: 14px;
  --head: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* anchors land below the floating nav */
[id] { scroll-margin-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.025em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 6.2vw, 68px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 650; }
h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.015em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--bg-2); padding: 0.1em 0.35em; border-radius: 5px; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* announcement + nav */
.announce { background: #f6d24a; color: #3d2f00; text-align: center; font-size: 13.5px; font-weight: 600; padding: 7px 16px; position: relative; z-index: 11; }
.announce a { text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.nav { position: sticky; top: 10px; z-index: 10; margin-top: 10px; }
.nav-inner { display: flex; align-items: center; gap: 28px; padding: 10px 12px 10px 18px; border-radius: 16px; transition: background 0.2s, box-shadow 0.2s; position: relative; }
.nav.stuck .nav-inner { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--line), 0 6px 24px rgba(0, 0, 0, 0.06); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--head); font-weight: 700; font-size: 19px; letter-spacing: -0.03em; text-decoration: none; }
.logo b { color: var(--accent); font-weight: 700; }
.logo-mark { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; gap: 22px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; }
.menu-btn { display: none; flex: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px; font: 600 15px/1 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform 0.1s, background 0.15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { background: var(--card); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* hero */
.hero { padding: 72px 0 0; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.hero h1 { margin: 22px auto 0; max-width: 15ch; }
.hero .lead { margin: 22px auto 0; max-width: 600px; font-size: 18.5px; color: var(--ink-2); }
.hero .ctas { margin-top: 32px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rotator { display: grid; align-items: center; }
.rotator span { display: block; transition: opacity 0.32s ease, transform 0.32s ease; }
.rotator span.out { opacity: 0; transform: translateY(-14px); }
.rotator span.in { opacity: 0; transform: translateY(14px); transition: none; }

/* sky hero: a soft blue sky, with what happens in a journey drifting through it */
.sky { position: relative; margin-top: -68px; padding-top: 68px; overflow: hidden; background: linear-gradient(180deg, #cfdcfb 0%, #e1e9fb 45%, var(--bg) 100%); }
.sky .hero { position: relative; z-index: 2; padding: 76px 0 36px; }
.sky .lead { color: #3e4452; }
.sky .pill { background: rgba(255, 255, 255, 0.75); color: var(--accent-2); }
/* a growth chart built from blocks, rising out of the sky */
.skyline { position: relative; z-index: 1; width: min(1160px, 100% - 32px); margin: 20px auto 0; height: 360px; display: grid; grid-template-columns: repeat(var(--cols, 24), 1fr); grid-template-rows: 100%; align-items: end; overflow: hidden; }
.col { display: grid; gap: 2px; align-content: end; padding: 0 1px; }
.blk { aspect-ratio: 1; border-radius: 2px; background: var(--c); opacity: 0; transform: translateY(14px); animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: var(--d); }
@keyframes rise { to { opacity: 1; transform: none; } }
.clouds { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cloud { position: absolute; left: 0; animation: drift linear infinite; will-change: transform; }
.chip-ev { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); box-shadow: 0 6px 18px -10px rgba(30, 50, 110, 0.3); font-size: 13.5px; font-weight: 600; color: #5a6070; white-space: nowrap; opacity: 0.85; }
@media (max-width: 900px) { .chip-ev { font-size: 11.5px; padding: 5px 10px; opacity: 0.55; } }
.chip-ev i { width: 8px; height: 8px; border-radius: 50%; }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }
@media (prefers-reduced-motion: reduce) {
  .blk { animation: none; opacity: 1; transform: none; }
  .cloud { animation-play-state: paused; }
}

/* works with */
.works-wrap { margin-top: 40px; }
.works-title { text-align: center; color: var(--ink-2); font-size: 15px; margin-bottom: 16px; }
.works-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--card) 70%, transparent); overflow: hidden; }
.works-cell { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 22px 8px; font-weight: 600; font-size: 15px; color: var(--ink-2); border-right: 1px solid var(--line); min-width: 0; white-space: nowrap; }
.works-cell:last-child { border-right: 0; }
.works-cell svg { width: 30px; height: 30px; flex: none; }

/* framed sections */
.frame { border: 1px solid var(--line); border-radius: 22px; background: color-mix(in srgb, var(--card) 55%, transparent); }
.section { padding: 96px 0 0; }
.eyebrow { display: block; color: var(--accent); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto; padding: 56px 24px 40px; }
.section-head p { margin-top: 16px; font-size: 17.5px; color: var(--ink-2); }

/* the code stage */
.stage { margin: 0 28px; padding: 40px; border-radius: 16px; background-color: var(--accent); background-image: url("/tile-blue.svg"); background-size: 528px 528px; }
.window { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(20, 35, 90, 0.5); display: grid; grid-template-columns: 1.05fr 1fr; min-height: 372px; }
.window-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid #ebebe6; font: 12px var(--mono); color: var(--muted); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e1e1db; }
.window-bar span { margin-left: auto; }
.code { margin: 0; padding: 22px 22px 26px; font: 13.5px/1.75 var(--mono); color: #2a2b30; overflow-x: auto; border-right: 1px solid #ebebe6; }
.code .k { color: #b0306e; } .code .s { color: #19794a; } .code .c { color: #75777f; } .code .f { color: #1f5fbf; }
.mini { padding: 22px; background: #fafaf8; display: grid; gap: 12px; align-content: start; }
.mini .h4 { margin: 0; font: 600 13px var(--body); color: var(--ink-2); }
.frow { display: grid; grid-template-columns: 110px 1fr 54px; gap: 10px; align-items: center; font-size: 13px; }
.frow .bar { height: 16px; border-radius: 4px; background: #e7e9f0; overflow: hidden; }
.frow .bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.frow b { text-align: right; font-variant-numeric: tabular-nums; }
.ev { display: grid; grid-template-columns: 1fr 70px 80px; gap: 10px; align-items: center; font-size: 13px; }
.ev code { background: none; padding: 0; font-size: 12.5px; }
.ev b { text-align: right; font-variant-numeric: tabular-nums; }
.ev .up { color: var(--good); font-weight: 600; text-align: right; font-size: 12px; }
.ev .down { color: #b4442a; font-weight: 600; text-align: right; font-size: 12px; }
.err { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid #ebebe6; border-radius: 10px; font-size: 13px; }
.err span:not(.tag) { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.err > b { font-variant-numeric: tabular-nums; }
.err .tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-2); margin-left: 4px; }
.err .tag.red { background: #fdeccf; color: #8a5300; }
.insight { display: flex; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #eef2fd; color: #23408f; font-size: 13px; }

/* feature cards: three on the first row, two wider ones below; every card the same: text on top, picture below */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, auto 1fr); }
.card-cell { display: grid; grid-column: span 2; grid-row: span 2; grid-template-rows: subgrid; border-right: 1px solid var(--line); min-width: 0; }
.card-cell:nth-child(n+4) { grid-column: span 3; border-top: 1px solid var(--line); }
.card-cell:nth-child(3), .card-cell:last-child { border-right: 0; }
.card-text { padding: 24px 24px 18px; }
.card-text .ficon { width: 34px; height: 34px; margin-bottom: 12px; }
.card-text h3 { font-size: 18px; }
.card-text p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.card-text a { display: inline-block; margin-top: 10px; color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; }
.card-text a:hover { text-decoration: underline; }
.card-visual { padding: 22px; display: grid; place-items: center; background-color: var(--accent); background-image: url("/tile-blue.svg"); background-size: 528px 528px; }
.card-visual.dark { background-color: var(--navy); background-image: url("/tile-navy.svg"); }
.card-visual .panel-card { width: 100%; box-shadow: 0 16px 32px -18px rgba(10, 20, 60, 0.6); }
.card-visual .mini { padding: 12px 14px; gap: 7px; }
.card-visual .mini .h4 { font-size: 12px; }
.card-visual .insight { font-size: 11.5px; padding: 7px 9px; }
.card-visual .frow { font-size: 11.5px; grid-template-columns: 84px 1fr 38px; }
.card-visual .ev { font-size: 11.5px; grid-template-columns: 1fr 34px 72px; }
.card-visual .log { grid-template-columns: 58px 40px 1fr; font-size: 11px; padding: 3px 0; }
.log { display: grid; grid-template-columns: 58px 50px 1fr; gap: 8px; align-items: baseline; font: 12px/1.45 var(--mono); padding: 5px 0; border-bottom: 1px solid #efefea; }
.log .t { color: var(--muted); }
.log .lv { font-weight: 700; font-size: 10.5px; }
.log .lv.info { color: #1f66bd; } .log .lv.warn { color: #946116; } .log .lv.error { color: #c0392b; } .log .lv.auto { color: var(--accent); } .log .lv.paid { color: var(--good); }
.log .m { color: var(--ink); overflow: hidden; }
.log small { display: block; color: var(--muted); font-family: var(--body); font-size: 11px; }
.panel-card { width: 100%; max-width: 460px; background: #fff; border-radius: 12px; box-shadow: 0 24px 48px -22px rgba(10, 20, 60, 0.55); overflow: hidden; }
.panel-card .mini { background: #fff; }
.ficon { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; margin-bottom: 18px; color: var(--ink); }

/* split rows */
.split { display: grid; grid-template-columns: 1fr 1.15fr; }
.split > div { padding: 44px 40px; min-width: 0; }
.split > div + div { border-left: 1px solid var(--line); }
.split h3 { font-size: 26px; }
.split p { margin-top: 14px; color: var(--ink-2); }
.list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.list li { display: flex; gap: 10px; align-items: flex-start; }
.list svg { flex: none; margin-top: 4px; color: var(--accent); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.25); }

/* email and in-app scenes (where PluginAnalytics shows the game's chat) */
.scene { margin-top: 18px; min-height: 190px; border-radius: 12px; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 18px; background-color: var(--accent); background-image: url("/tile-blue.svg"); background-size: 528px 528px; }
.mail { background: #fff; border-radius: 10px; padding: 14px 16px; font-size: 13.5px; line-height: 1.5; box-shadow: 0 16px 32px -16px rgba(10, 20, 60, 0.6); width: 100%; }
.mail-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.mail-head b { color: var(--ink); }
.mail-subj { display: block; margin-top: 6px; font-size: 15px; }
.mail p { margin-top: 6px; color: var(--ink-2); font-size: 13.5px; }
.scene.app { background-color: var(--navy); background-image: url("/tile-navy.svg"); display: block; padding: 0; }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: rgba(255, 255, 255, 0.08); font: 11.5px var(--mono); color: rgba(255, 255, 255, 0.6); }
.app-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.app-bar span { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-body { display: grid; gap: 8px; padding: 16px; }
.app-body span { height: 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.app-body span:nth-child(1) { width: 40%; } .app-body span:nth-child(2) { width: 70%; } .app-body span:nth-child(3) { width: 55%; }
.nudge { position: absolute; right: 14px; bottom: 14px; width: min(270px, calc(100% - 28px)); background: #fff; border-radius: 12px; padding: 13px 14px 12px; box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.5); display: grid; gap: 3px; justify-items: start; font-size: 13px; }
.nudge b { font-size: 14px; padding-right: 18px; }
.nudge span { color: var(--ink-2); margin-bottom: 6px; }
.nudge em { font-style: normal; font-weight: 600; color: #fff; background: var(--accent); border-radius: 7px; padding: 6px 12px; }
.nudge i { position: absolute; top: 6px; right: 10px; font-style: normal; color: var(--muted); font-size: 17px; }

/* funnel visual */
.afunnel { display: grid; gap: 10px; }
.astep { display: grid; grid-template-columns: 150px 1fr 70px; gap: 12px; align-items: center; font-size: 14px; }
.astep .t { height: 26px; background: var(--bg-2); border-radius: 6px; overflow: hidden; }
.astep .t i { display: block; height: 100%; min-width: 4px; border-radius: 6px; background: linear-gradient(90deg, var(--accent), #6f93f5); }
.astep b { text-align: right; font-variant-numeric: tabular-nums; }
.astep .src { font-size: 12px; color: var(--muted); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.plans.plans-3 { grid-template-columns: repeat(3, 1fr); max-width: 1120px; }
.plan { border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 18px; position: relative; overflow: hidden; }
.plan > .btn { margin-top: auto; }
.plan .tag { position: absolute; top: 26px; right: 26px; }
/* Free: light paper. Starter: a blue block. Growth: a navy one. All carry the same faint block grid. */
.plan { background-color: #e9e8e1; background-image: url("/tile-paper.svg"); background-size: 528px 528px; border: 1px solid #d9d8cf; }
.plan .list svg { color: var(--accent); }
.plan.pro { color: #fff; border: 0; background-color: var(--accent); background-image: linear-gradient(160deg, rgba(110, 150, 245, 0.35), rgba(20, 40, 120, 0.35)), url("/tile-blue.svg"); background-size: 100% 100%, 528px 528px; box-shadow: 0 28px 56px -26px rgba(36, 72, 179, 0.75); }
.plan.pro .list svg { color: #c4d4fb; }
.plan.pro .pill { background: rgba(255, 255, 255, 0.18); color: #fff; }
.plan.pro .btn-primary { background: #fff; color: var(--accent-2); }
.plan.pro .btn-primary:hover { background: #eef2fd; }
.plan.premium { color: #fff; border: 0; background-color: var(--navy); background-image: linear-gradient(160deg, rgba(60, 80, 140, 0.3), rgba(5, 10, 30, 0.45)), url("/tile-navy.svg"); background-size: 100% 100%, 528px 528px; box-shadow: 0 28px 56px -26px rgba(18, 24, 48, 0.8); }
.plan.premium .list svg { color: #9db8ff; }
.plan.premium .price small { color: rgba(255, 255, 255, 0.75); }
.plan.premium .btn-primary { background: #fff; color: var(--navy); }
.plan.premium .btn-primary:hover { background: #eef0f6; }
.plan .btn-light { background: var(--card); }
.plan .price { font: 700 44px/1 var(--head); letter-spacing: -0.03em; }
.plan .price small { font: 500 16px var(--body); color: var(--muted); letter-spacing: 0; }
.plan.pro .price small { color: rgba(255, 255, 255, 0.75); }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-2); }

/* final cta: a field of blue blocks */
.cta-band { margin-top: 96px; border-radius: 22px; position: relative; overflow: hidden; text-align: center; color: #fff; background: var(--accent); }
.mosaic { position: absolute; inset: 0; width: 100%; height: 100%; }
/* a soft shade behind the text so it reads on the light blocks */
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 46% 60% at 50% 50%, rgba(25, 50, 140, 0.78), rgba(25, 50, 140, 0) 100%); }
.cta-text { position: relative; z-index: 1; padding: 88px 32px; text-shadow: 0 1px 12px rgba(10, 25, 80, 0.45); }
.cta-band p { color: #e8eefd; margin-top: 14px; font-size: 17.5px; }
.cta-band .ctas { margin-top: 28px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; text-shadow: none; }
.btn-white { background: #fff; color: var(--accent-2); }
.btn-white:hover { background: #eef2fd; }
.btn-ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.55); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.24); }

/* the page frame: one bordered column, rows split by hairlines (like a grid) */
.grid-frame { overflow: hidden; }
.grid-frame > .row + .row { border-top: 1px solid var(--line); }
.grid-frame > .row:not(.split):not(.deco):not(.faq-row) { padding-bottom: 48px; }
.deco { display: grid; grid-template-columns: 1fr 2fr 1fr; height: 84px; }
.deco i + i { border-left: 1px solid var(--line); }
.deco i:nth-child(2) { background-image: radial-gradient(var(--line) 1.2px, transparent 1.3px); background-size: 14px 14px; }
.pricing-row .plans { padding: 0 28px; }
.faq-row { display: grid; grid-template-columns: 1fr 2fr; }
.faq-head { padding: 40px; border-right: 1px solid var(--line); }
.faq-head h2 { font-size: 30px; }
.faq-head p { margin-top: 12px; color: var(--ink-2); }
.faq-head a { color: var(--accent); font-weight: 600; }
.faq-row .faq { max-width: none; margin: 0; }
.faq-row .faq details { padding: 20px 32px; }
.faq-row .faq details:last-child { border-bottom: 0; }

/* tables (docs) */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
.yes { color: var(--good); font-weight: 700; }
.no { color: var(--muted); }

/* docs */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 48px 0 0; }
.doc nav { position: sticky; top: 90px; align-self: start; display: grid; gap: 2px; font-size: 14.5px; }
.doc nav a { text-decoration: none; color: var(--ink-2); padding: 5px 10px; border-radius: 8px; }
.doc nav a:hover { background: var(--bg-2); color: var(--ink); }
.doc article { display: grid; gap: 16px; max-width: 760px; min-width: 0; }
.doc article h1 { font-size: clamp(32px, 4vw, 44px); }
.doc article h2 { font-size: 26px; margin-top: 28px; scroll-margin-top: 90px; }
.doc article p, .doc article li { color: var(--ink-2); }
.doc pre.code { padding: 18px 20px; background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px; }

/* footer */
footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 48px 0 0; font-size: 14.5px; color: var(--ink-2); overflow: hidden; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.foot .h4 { margin: 0 0 12px; font: 600 13px var(--body); color: var(--ink); }
.foot a { display: block; text-decoration: none; padding: 3px 0; }
.foot a.logo { display: inline-flex; }
.foot a:hover { color: var(--ink); }
.foot p { margin-top: 12px; max-width: 32ch; }
.legal { margin-top: 36px; font-size: 13px; color: var(--muted); }
/* footer wordmark */
.wordmark { margin-top: 32px; text-align: center; font: 700 clamp(56px, 13.5vw, 196px)/0.9 var(--head); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.2px var(--line); white-space: nowrap; overflow: hidden; user-select: none; }

/* responsive */
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-light { display: none; }
  .nav-inner { gap: 8px; padding: 8px 6px 8px 12px; }
  .menu-btn { display: block; margin-left: 0; }
  .nav.open .nav-links { display: grid; position: absolute; top: 64px; left: 0; right: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; gap: 10px; }
  .window { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .card-cell, .card-cell:nth-child(n+4) { grid-column: auto; grid-row: auto; grid-template-rows: auto auto; border-right: 0; }
  .card-cell + .card-cell { border-top: 1px solid var(--line); }
  .code { border-right: 0; border-bottom: 1px solid #ebebe6; font-size: 12px; }
  .stage { margin: 0 12px; padding: 18px; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > div { padding: 32px 22px; }
  .split > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doc nav { position: static; display: flex; flex-wrap: wrap; }
  .foot { grid-template-columns: 1fr 1fr; }
  .faq-row { grid-template-columns: minmax(0, 1fr); }
  .faq-head { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 22px; }
  .faq-row .faq details { padding: 18px 22px; }
  .deco { height: 48px; }
  .pricing-row .plans { padding: 0 12px; }
  .plans.plans-3 { grid-template-columns: 1fr; }
  .sky .hero { padding-top: 48px; }
  .skyline { height: 220px; grid-template-columns: repeat(24, 1fr); }
  .skyline .col:nth-child(-n+36) { display: none; }
  .astep { grid-template-columns: 110px 1fr 56px; font-size: 13px; }
}
@media (min-width: 901px) and (max-width: 1100px) { .foot { grid-template-columns: repeat(3, 1fr); } .foot > div:first-child { grid-column: 1 / -1; } }

/* Tablets and small laptops: four per row. */
@media (max-width: 1100px) {
  .works-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .works-cell:nth-child(4n) { border-right: 0; }
  .works-cell:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
}
/* Phones: two per row, so names never get cut. */
@media (max-width: 560px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works-cell { justify-content: flex-start; padding: 16px 14px; font-size: 14px; border-bottom: 1px solid var(--line); }
  .works-cell:nth-child(4n) { border-right: 1px solid var(--line); }
  .works-cell:nth-child(2n) { border-right: 0; }
  .works-cell:nth-last-child(-n+2) { border-bottom: 0; }
  .works-cell svg { width: 24px; height: 24px; }
}
