/* Reflect & Build theme: light by default, dark when a visitor picks it (data-theme on <html>). Palette and type from docs/DESIGN.md. */
@font-face {
  font-family: "Inter Var";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-4-latin-opsz.woff2") format("woff2-variations");
  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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2-variations");
  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: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-latin-wght.woff2") format("woff2-variations");
  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;
}

/* Light theme: warm paper. Ink and paper rather than screen-white and cold grey, as
   docs/DESIGN.md argues for. Depth comes from a crisp hairline, not a soft drop shadow. */
:root {
  --primary: #1E2A5A;
  --secondary: #14B8A6;
  --accent: #F59E0B;
  --growth: #22C55E;
  --bg: #FAF8F4;
  --bg-2: #F3EFE7;
  --bg-soft: #F3EFE7;
  --sand: #F3EFE7;
  --surface: #FFFFFF;
  --card: var(--surface);
  --card-solid: var(--surface);
  --line: #E7E0D4;
  --line-strong: #D6CCBB;
  --line-hover: #BEB19C;
  --text: #3B3A33;
  --muted: #5B564B;
  --dim: #6F6759;
  --link: #0F766E;
  --coral: #B91C1C;
  --orange: #F59E0B;
  --violet: #0F766E;
  --blue: #1E2A5A;
  --green: #15803D;
  --gold: #D97706;
  --accent-2: var(--accent);
  --action: #1E2A5A;
  --action-hover: #2A3A74;
  --on-action: #FFFFFF;
  --ink-warm: #92400E;
  --ink-green: #166534;
  --ink-blue: #1E3A8A;
  --ink-teal: #0F766E;
  --header-bg: rgba(250, 248, 244, .82);
  --bar-bg: rgba(255, 255, 255, .9);
  --grid: rgba(61, 54, 42, .045);
  --grad: linear-gradient(135deg, #1E2A5A 0%, #14B8A6 100%);
  --grad-soft: linear-gradient(135deg, rgba(30, 42, 90, .06), rgba(217, 119, 6, .08));
  --radius: 14px;
  /* Flat by design: one hairline shadow, and a short lift on hover */
  --shadow: 0 1px 2px rgba(61, 54, 42, .05);
  --shadow-lift: 0 6px 18px -8px rgba(61, 54, 42, .22);
  --shadow-action: 0 2px 8px -3px rgba(30, 42, 90, .4);
  --shadow-action-lift: 0 4px 12px -4px rgba(30, 42, 90, .45);
  --avatar-shadow: 0 5px 14px -7px rgba(30, 42, 90, .45);
  --lift: -2px;
  --max: 1180px;
  --font-heading: "Plus Jakarta Sans", "Inter Var", system-ui, sans-serif;
  --font-body: "Inter Var", "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-code: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --font: var(--font-body);
  /* Tints used by blog tags, topics, and status pills */
  --peach-t: rgba(245, 158, 11, .18);
  --mint-t: rgba(34, 197, 94, .15);
  --sky-t: rgba(30, 42, 90, .09);
  --lav-t: rgba(15, 118, 110, .13);
  --butter-t: rgba(245, 158, 11, .18);
  /* Washes: the coloured glows on cards, doors and art. Light keeps them faint so the
     paper stays the surface; dark leans on them for depth. */
  --select: rgba(15, 118, 110, .18);
  --spot: rgba(30, 42, 90, .055);
  --band: rgba(109, 94, 70, .05);
  --wash-blog: rgba(15, 118, 110, .07);
  --wash-apps: rgba(217, 119, 6, .09);
  --wash-mock: rgba(15, 118, 110, .09);
  --wash-mail: rgba(15, 118, 110, .08);
  --wash-cta: rgba(15, 118, 110, .09);
  --halo: rgba(15, 118, 110, .16);
  --icon-grad: linear-gradient(140deg, rgba(15, 118, 110, .14), rgba(217, 119, 6, .16));
  --ring-track: rgba(109, 94, 70, .12);
  /* The brand mark is a fixed image, so only its drop shadow follows the theme */
  --mark-shadow: 0 3px 8px rgba(61, 54, 42, .16);
  --mode-light: #B45309;
  --mode-dark: #4338CA;
  --mode-system: #0F766E;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --primary: #F1F5F9;
  --bg: #0F172A;
  --bg-2: #1B2740;
  --bg-soft: #1B2740;
  --sand: #1B2740;
  --surface: #16213A;
  --line: #26324D;
  --line-strong: #33415F;
  --line-hover: #94A3B8;
  --text: #CBD5E1;
  --muted: #94A3B8;
  --dim: #7C8BA3;
  --link: #5EEAD4;
  --coral: #FCA5A5;
  --orange: #FBBF24;
  --violet: #5EEAD4;
  --blue: #A5B4FC;
  --green: #86EFAC;
  --gold: #FCD34D;
  --action: #5EEAD4;
  --action-hover: #99F6E4;
  --on-action: #0F172A;
  --ink-warm: #FCD34D;
  --ink-green: #86EFAC;
  --ink-blue: #A5B4FC;
  --ink-teal: #5EEAD4;
  --header-bg: rgba(15, 23, 42, .82);
  --bar-bg: rgba(22, 33, 58, .9);
  --grid: rgba(148, 163, 184, .06);
  --grad: linear-gradient(135deg, #A5B4FC 0%, #5EEAD4 100%);
  --grad-soft: linear-gradient(135deg, rgba(165, 180, 252, .08), rgba(94, 234, 212, .1));
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
  --shadow-lift: 0 18px 40px -18px rgba(0, 0, 0, .65);
  --shadow-action: 0 8px 22px -10px rgba(30, 42, 90, .55);
  --shadow-action-lift: 0 10px 26px -10px rgba(30, 42, 90, .65);
  --avatar-shadow: 0 10px 24px -10px rgba(30, 42, 90, .5);
  --lift: -4px;
  --peach-t: rgba(252, 211, 77, .14);
  --mint-t: rgba(134, 239, 172, .14);
  --sky-t: rgba(165, 180, 252, .14);
  --lav-t: rgba(94, 234, 212, .14);
  --butter-t: rgba(252, 211, 77, .14);
  --select: rgba(20, 184, 166, .25);
  --spot: rgba(20, 184, 166, .1);
  --band: rgba(30, 42, 90, .03);
  --wash-blog: rgba(20, 184, 166, .12);
  --wash-apps: rgba(245, 158, 11, .14);
  --wash-mock: rgba(20, 184, 166, .14);
  --wash-mail: rgba(20, 184, 166, .14);
  --wash-cta: rgba(20, 184, 166, .16);
  --halo: rgba(20, 184, 166, .22);
  --icon-grad: linear-gradient(140deg, rgba(20, 184, 166, .22), rgba(245, 158, 11, .22));
  --ring-track: rgba(15, 23, 42, .08);
  /* On the navy background the mark sits in a soft teal glow instead of a shadow */
  --mark-shadow: 0 4px 14px rgba(94, 234, 212, .22);
  --mode-light: #FBBF24;
  --mode-dark: #A5B4FC;
  --mode-system: #5EEAD4;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; font-family: var(--font-body); font-optical-sizing: auto; font-feature-settings: "cv11", "ss01", "ss03"; background: transparent; color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
h1, h2, h3, .brand { font-family: var(--font-heading); }
h1, h2, h3 { color: var(--primary); }
a { color: inherit; }
::selection { background: var(--select); }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; border-radius: 10px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card-solid); padding: 8px 12px; border-radius: 8px; z-index: 30; }

/* Backdrop: grid, glow, grain */
body::before { content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 75%); }
body::after { content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .03; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] body::after { mix-blend-mode: screen; opacity: .02; }
.aurora { position: absolute; inset: 0 0 auto; height: 900px; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: drift 24s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 560px; height: 380px; left: calc(50% - 520px); top: -180px; background: #0F766E; opacity: .1; }
.aurora span:nth-child(2) { width: 620px; height: 420px; left: calc(50% - 160px); top: -240px; background: #1E2A5A; opacity: .08; animation-duration: 30s; animation-delay: -8s; }
.aurora span:nth-child(3) { width: 480px; height: 340px; left: calc(50% + 180px); top: -140px; background: #F59E0B; opacity: .14; animation-duration: 36s; animation-delay: -14s; }
:root[data-theme="dark"] .aurora span:nth-child(1) { background: #14B8A6; opacity: .14; }
:root[data-theme="dark"] .aurora span:nth-child(2) { background: #A5B4FC; opacity: .12; }
:root[data-theme="dark"] .aurora span:nth-child(3) { opacity: .12; }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(40px, 30px, 0) scale(1.08); } 100% { transform: translate3d(-30px, 50px, 0) scale(.95); } }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.site-header.scrolled { background: var(--header-bg); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -.025em; color: var(--primary); white-space: nowrap; }
.brand .brand-mark { width: auto; height: 64px; flex: none; filter: drop-shadow(var(--mark-shadow)); transition: transform .4s cubic-bezier(.2, .8, .2, 1.2); }
.brand:hover .brand-mark { transform: translateY(-2px) scale(1.05); }
.brand b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--primary); }
.nav a[aria-current="page"] { color: var(--primary); background: var(--sky-t); }
.nav a.btn.primary { margin-left: 10px; padding: 9px 16px; color: var(--on-action); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; text-decoration: none; font: inherit; font-weight: 600; font-size: .98rem; border: 1px solid var(--line-strong); background: var(--surface); color: var(--primary); cursor: pointer; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); background: var(--bg-2); border-color: var(--line-hover); }
.btn.primary { background: var(--action); color: var(--on-action); border-color: var(--action); box-shadow: var(--shadow-action); }
.btn.primary:hover { background: var(--action-hover); border-color: var(--action-hover); box-shadow: var(--shadow-action-lift); }
.btn.dark { background: var(--bg-2); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
/* Appearance switcher: fixed in the bottom-left corner of every page. Hidden without JS, since it does nothing without it. */
.appearance { display: none; position: fixed; left: 24px; bottom: 24px; z-index: 25; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); }
.js .appearance { display: inline-flex; }
.appearance button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.appearance button:hover { color: var(--primary); background: var(--bg-2); }
.appearance button[data-theme-choice="light"] { --mode: var(--mode-light); }
.appearance button[data-theme-choice="dark"] { --mode: var(--mode-dark); }
.appearance button[data-theme-choice="system"] { --mode: var(--mode-system); }
.appearance button[aria-pressed="true"] { color: var(--mode); background: color-mix(in srgb, var(--mode) 16%, transparent); box-shadow: inset 0 0 0 1.5px var(--mode); }
.appearance button:focus-visible { outline-offset: 2px; }
.appearance svg { width: 18px; height: 18px; fill: currentColor; }
.appearance .ray { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* Landing page: the tour link floats in the bottom-left corner, stacked above the appearance switcher */
.tour-float { position: fixed; left: 24px; bottom: 80px; z-index: 25; box-shadow: var(--shadow); }
/* The tour link reaches 130px up, so the footer leaves more room for its last line on that page */
body:has(.tour-float) .site-footer { padding-bottom: 152px; }
.ico { width: 1.05em; height: 1.05em; flex: none; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Type */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 550; letter-spacing: .02em; color: var(--muted); background: var(--surface); border: 1px solid var(--line-strong); padding: 6px 14px; border-radius: 999px; }
.eyebrow.warm, .eyebrow.green { color: var(--muted); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--growth); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
h1 { font-family: var(--font-heading); font-size: clamp(2.7rem, 6.6vw, 5.2rem); line-height: 1.02; letter-spacing: -.045em; margin: 24px 0 22px; font-weight: 750; color: var(--primary); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -.04em; margin: 0 0 16px; line-height: 1.06; font-weight: 700; }
h3 { letter-spacing: -.02em; font-weight: 650; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.lead { font-size: clamp(1.08rem, 1.9vw, 1.28rem); color: var(--muted); max-width: 640px; margin: 0 0 34px; line-height: 1.55; }
.sub { color: var(--muted); max-width: 640px; margin: 0 0 44px; font-size: 1.08rem; }
.center { text-align: center; }
.center .sub, .center .lead { margin-left: auto; margin-right: auto; }
.center .actions { justify-content: center; }
.rotate { display: inline-block; transition: opacity .3s, transform .3s, filter .3s; }
.rotate.out { opacity: 0; transform: translateY(10px); filter: blur(4px); }
.note { font-size: .92rem; color: var(--dim); }
.note a, .more a, .links a { color: var(--link); font-weight: 500; }

section { padding: 96px 0; position: relative; }
section.tight { padding: 28px 0; }
section.sand { background: linear-gradient(180deg, transparent, var(--band) 20%, var(--band) 80%, transparent); }
.divider { height: 1px; max-width: var(--max); margin: 0 auto; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

/* Cards with spotlight */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); overflow: hidden; }
.card::before, .door::before, .idea::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 45%); }
.card:hover::before, .door:hover::before, .idea:hover::before { opacity: 1; }
.card h3 { margin: 14px 0 6px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); }
.card p a { color: var(--link); }
.lift { transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s; }
.lift:hover { transform: translateY(var(--lift)); border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; background: var(--bg-2); border: 1px solid var(--line-strong); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.tri { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.quad { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1), filter .9s; }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

/* Hero */
.hero { padding: 88px 0 40px; text-align: center; }
.hero .lead { margin-left: auto; margin-right: auto; }
.hero .actions { justify-content: center; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; text-align: left; }
.hero-grid .lead { margin-left: 0; }
.hero-grid .actions { justify-content: flex-start; }

/* Product shots in a window frame with a glowing edge */
.frame { position: relative; border-radius: 16px; padding: 1px; background: linear-gradient(160deg, rgba(30, 42, 90, .22), rgba(30, 42, 90, .05) 30%, rgba(109, 94, 70, .05) 70%, rgba(15, 118, 110, .3)); box-shadow: 0 18px 44px -28px rgba(61, 54, 42, .35), 0 0 0 1px rgba(61, 54, 42, .05); }
.frame::after { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: 17px; background: var(--grad); filter: blur(40px); opacity: .18; }
.frame img { display: block; width: 100%; height: auto; border-radius: 15px; }
:root[data-theme="dark"] .frame { background: linear-gradient(160deg, rgba(165, 180, 252, .3), rgba(165, 180, 252, .06) 30%, rgba(165, 180, 252, .03) 70%, rgba(94, 234, 212, .4)); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(148, 163, 184, .12); }
.shot-hero { max-width: 1100px; margin: 64px auto 0; perspective: 2000px; }
.js .shot-hero .frame { transform: rotateX(12deg) scale(.96); transform-origin: 50% 0; transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.js .shot-hero.in .frame { transform: none; }
.shot-caption { color: var(--dim); font-size: .85rem; margin-top: 14px; text-align: center; }

.feature-row { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.feature-row.flip { grid-template-columns: 1.15fr .85fr; }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy .sub { margin-bottom: 24px; }

/* Doors */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.door { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 34px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.door.blog { background: radial-gradient(600px 300px at 0% 0%, var(--wash-blog), transparent 60%), var(--surface); }
.door.apps { background: radial-gradient(600px 300px at 100% 0%, var(--wash-apps), transparent 60%), var(--surface); }
.door .door-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--bg-2); border: 1px solid var(--line-strong); }
.door h3 { font-size: 1.7rem; margin: 18px 0 6px; letter-spacing: -.03em; }
.door > p { color: var(--muted); margin: 0 0 18px; }
.door ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.door li a { display: flex; gap: 10px; align-items: baseline; text-decoration: none; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); transition: transform .2s, border-color .2s, background .2s; }
.door li a:hover { transform: translateX(4px); border-color: var(--line-strong); background: var(--bg-2); }
.door li small { color: var(--dim); margin-left: auto; white-space: nowrap; }
.door .actions { margin-top: auto; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.topic { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .86rem; font-weight: 500; text-decoration: none; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
a.topic:hover { color: var(--primary); border-color: var(--line-strong); }

/* Topic strip: the four blog sections, lifted over the section above */
.topic-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; margin-top: -44px; }
.topic-chip { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); text-decoration: none; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s, border-color .25s; }
.topic-chip:hover { transform: translateY(var(--lift)); border-color: var(--line-strong); }
.topic-chip .ico { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 1.25rem; background: var(--sky-t); }
.topic-strip > :nth-child(2) .ico { background: var(--lav-t); }
.topic-strip > :nth-child(3) .ico { background: var(--mint-t); }
.topic-strip > :nth-child(4) .ico { background: var(--peach-t); }
.topic-chip strong { display: block; font-family: var(--font-heading); font-size: 1rem; color: var(--primary); }
.topic-chip small { color: var(--muted); font-size: .84rem; line-height: 1.4; }

/* Section head: a title on the left, an optional link on the right */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 28px; }
.section-head h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -.03em; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 3px; border-radius: 3px; margin-top: 10px; background: var(--grad); }
.section-head a { font-weight: 600; color: var(--link); text-decoration: none; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }

/* Quote band */
.quote-band { background: var(--bg-2); border-block: 1px solid var(--line); text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 820px; font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.35rem, 3vw, 2.05rem); line-height: 1.35; letter-spacing: -.02em; color: var(--primary); }
.quote-band blockquote::before { content: ""; display: block; width: 64px; height: 3px; border-radius: 3px; margin: 0 auto 26px; background: var(--grad); }
.quote-band cite { display: block; margin-top: 18px; font-style: normal; color: var(--muted); font-size: .95rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { text-align: center; padding: 26px 16px; }
.stat strong { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 750; letter-spacing: -.04em; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .92rem; }

/* App showcase */
.apps-grid { display: grid; gap: 18px; }
.app-card { display: grid; grid-template-columns: .95fr 1.05fr; gap: 36px; align-items: center; padding: 36px; }
.app-card .app-head { display: flex; align-items: center; gap: 14px; }
.app-card .app-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; background: var(--icon-grad); border: 1px solid var(--line-strong); }
.app-card h3 { font-size: 1.7rem; margin: 0; letter-spacing: -.03em; }
.app-card .tagline { color: var(--muted); margin: 2px 0 0; }
.app-card > div > p { color: var(--muted); }
.badge { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--mint-t); color: var(--ink-green); }
.badge.soon { background: var(--sky-t); color: var(--primary); }
.app-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: .94rem; }
.app-links a { color: var(--link); text-decoration: none; font-weight: 500; }
.app-links a:hover { text-decoration: underline; }
.app-card.next { grid-template-columns: 1fr; text-align: center; border-style: dashed; background: var(--bg); box-shadow: none; }
.app-card.next .app-icon { margin: 0 auto 12px; }
.app-card.next .actions { justify-content: center; }

/* Timer mock (fallback art) */
.mock { aspect-ratio: 4 / 3; border-radius: 16px; background: radial-gradient(circle at 50% 40%, var(--wash-mock), transparent 60%), var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; position: relative; overflow: hidden; }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.ring { width: 56%; aspect-ratio: 1; border-radius: 50%; --p: 72; background: conic-gradient(from -90deg, #F59E0B, #14B8A6 calc(var(--p) * .5%), var(--primary) calc(var(--p) * 1%), var(--ring-track) 0); display: grid; place-items: center; animation: ring 9s ease-in-out infinite; }
.ring::after { content: "18:42"; width: 84%; aspect-ratio: 1; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 650; color: var(--primary); }
@keyframes ring { 0%, 100% { --p: 64; } 50% { --p: 82; } }
.mock .label { position: absolute; bottom: 16px; font-size: .85rem; color: var(--muted); }

ul.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
ul.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
ul.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--grad); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.6 5.6-4.2 5a.8.8 0 0 1-1.2 0l-2-2.2 1.1-1 1.5 1.6 3.6-4.4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.6 5.6-4.2 5a.8.8 0 0 1-1.2 0l-2-2.2 1.1-1 1.5 1.6 3.6-4.4z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 36px 0 0; }
.step { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-weight: 650; font-size: .95rem; color: var(--primary); background: var(--bg-2); border: 1px solid var(--line-strong); }
.steps h3 { margin: 16px 0 6px; font-size: 1.12rem; }
.steps .status { display: inline-block; }

/* App sub-navigation */
.app-bar { position: sticky; top: 72px; z-index: 19; padding: 10px 0; }
.app-bar .wrap { display: flex; }
.app-bar-inner { display: flex; align-items: center; gap: 2px; overflow-x: auto; padding: 5px; border-radius: 999px; background: var(--bar-bg); border: 1px solid var(--line-strong); box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); scrollbar-width: none; }
.app-bar-inner::-webkit-scrollbar { display: none; }
.app-bar .app-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; padding: 4px 12px 4px 4px; text-decoration: none; white-space: nowrap; color: var(--primary); }
.app-bar .app-name span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); font-size: .9rem; }
.app-bar a.tab { text-decoration: none; color: var(--muted); font-weight: 500; padding: 7px 14px; border-radius: 999px; white-space: nowrap; font-size: .92rem; }
.app-bar a.tab:hover { color: var(--primary); }
.app-bar a.tab[aria-current="page"] { color: var(--on-action); background: var(--action); }

/* Ideas board */
.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: inherit; font-size: .9rem; font-weight: 500; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.chips button:hover { color: var(--primary); }
.chips button span { font-size: .76rem; padding: 1px 8px; border-radius: 999px; background: var(--bg-2); color: var(--primary); }
.chips button[aria-pressed="true"] { background: var(--action); color: var(--on-action); border-color: var(--action); }
.chips button[aria-pressed="true"] span { background: color-mix(in srgb, var(--on-action) 20%, transparent); color: var(--on-action); }
.ideas { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.idea { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); transition: border-color .25s, transform .25s; }
.idea:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.vote { position: relative; z-index: 1; display: grid; justify-items: center; min-width: 60px; padding: 8px 6px; border-radius: 12px; border: 1px solid var(--line-strong); text-decoration: none; background: var(--bg); transition: border-color .2s, background .2s; }
.vote:hover { border-color: var(--secondary); background: var(--lav-t); }
.vote-arrow { color: var(--link); font-size: .8rem; line-height: 1; }
.vote strong { font-size: 1.3rem; line-height: 1.2; font-weight: 650; color: var(--primary); }
.vote-label { font-size: .7rem; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.idea h3 { margin: 2px 0 6px; font-size: 1.06rem; }
.idea h3 a { text-decoration: none; }
.idea h3 a:hover { color: var(--link); }
.idea-body { position: relative; z-index: 1; }
.idea-body > p { margin: 0 0 10px; color: var(--muted); }
.idea-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .84rem; color: var(--dim); margin: 0 !important; }
.person { display: inline-flex; align-items: center; gap: 6px; }
.person img { border-radius: 50%; border: 1px solid var(--line-strong); }
.status { font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.status-under-review { background: var(--sky-t); color: var(--primary); }
.status-planned { background: var(--peach-t); color: var(--ink-warm); }
.status-in-progress { background: var(--lav-t); color: var(--ink-teal); }
.status-shipped { background: var(--mint-t); color: var(--ink-green); }
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state .big { font-size: 2.4rem; }

/* Feedback wall */
.quotes { list-style: none; padding: 0; margin: 0; columns: 3 300px; column-gap: 16px; }
.quote { break-inside: avoid; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.quote blockquote { margin: 10px 0 14px; }
.quote blockquote p { margin: 0 0 8px; font-size: 1.02rem; }
.quote .wish { color: var(--muted); font-size: .94rem; }
.stars { color: var(--accent); letter-spacing: 2px; }
.stars span { color: var(--line-strong); }
.quote-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; color: var(--dim); font-size: .84rem; margin: 0; }
.quote-meta a { margin-left: auto; color: var(--link); text-decoration: none; font-weight: 500; }
.split-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split-cta .card { padding: 32px; }
.split-cta h3 { font-size: 1.35rem; margin: 14px 0 8px; }
.split-cta .actions { margin-top: 22px; }
.list-title { margin: 48px 0 16px; font-size: 1.2rem; }

/* Download page */
.dl-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start; text-align: left; }
.dl-store { margin-bottom: 22px; }
.dl-meta { color: var(--muted); font-size: .93rem; margin: 14px 0 0; }
.dl-alt { font-size: .95rem; margin: 10px 0 0; color: var(--muted); }
.dl-alt a, .dl-started a, .dl-meta a { color: var(--link); }
.dl-started { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--mint-t); border: 1px solid rgba(34, 197, 94, .35); color: var(--text); }
.dl-note { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--butter-t); color: var(--ink-warm); }
.reqs h2 { font-size: 1.1rem; margin: 0 0 14px; letter-spacing: -.01em; }
.reqs dl { margin: 0; display: grid; gap: 14px; }
.reqs dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); font-weight: 600; }
.reqs dd { margin: 2px 0 0; }
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.two-col h2 { font-size: 1.7rem; }
.two-col .ideas .idea { grid-template-columns: 1fr; }
.two-col .ideas .vote { grid-auto-flow: column; justify-content: start; gap: 8px; min-width: 0; width: max-content; padding: 6px 12px; }
.two-col .quotes { columns: 1; }
.release-notes { color: var(--muted); }
.release-notes ul { padding-left: 20px; }
.release-notes strong { color: var(--text); }
.release-notes .anchor { display: none; }
.way { margin-bottom: 14px; }
.way h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; }
.way a { color: var(--link); }
.files { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.files li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.files a { color: var(--primary); }
.files span { color: var(--dim); font-size: .9rem; }
.hashes { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; font-size: .85rem; }
.hashes span { display: block; color: var(--dim); }
.hashes code { display: block; overflow-wrap: anywhere; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: .78rem; }
.narrow { max-width: 820px; }
.app-meta { color: var(--dim); font-size: .9rem; margin: 18px 0 0; }
.more { margin: 22px 0 0; }

/* FAQ */
details.faq { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 20px; margin: 0 0 10px; transition: border-color .2s; }
details.faq[open] { border-color: var(--line-strong); }
details.faq summary { cursor: pointer; padding: 16px 0; font-weight: 550; list-style: none; display: flex; justify-content: space-between; gap: 12px; color: var(--primary); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--dim); font-weight: 400; font-size: 1.3rem; line-height: 1; transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq > :not(summary) { margin: 0 0 16px; }
details.faq p { color: var(--muted); }
details.faq a { color: var(--link); }
kbd { border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; font-size: .85em; background: var(--bg-2); font-family: inherit; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-card { display: flex; flex-direction: column; }
.contact-card .actions { margin-top: auto; padding-top: 22px; }
.mail-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 32px; background: radial-gradient(500px 200px at 0% 0%, var(--wash-mail), transparent 70%), var(--surface); }
.mail-card .addr { font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; text-decoration: none; overflow-wrap: anywhere; color: var(--primary); }

/* Founder and CTA */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 32px; }
.avatar { width: 76px; height: 76px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: var(--on-action); font-weight: 700; font-size: 1.5rem; box-shadow: var(--avatar-shadow); }
.founder h2 { font-size: 1.5rem; margin: 0 0 6px; letter-spacing: -.02em; }
.founder .sub { margin: 0; }
.cta-band .card { text-align: center; padding: 72px 28px; background: radial-gradient(700px 300px at 50% 0%, var(--wash-cta), transparent 70%), var(--surface); border-color: var(--line-strong); }
.cta-band .sub { margin: 0 auto 30px; }
.cta-band .actions { justify-content: center; }

/* Visitor stats dashboard (/admin/stats/) */
.dash [hidden] { display: none; }
.dash-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.dash-toolbar .note { margin: 0; }
.dash-periods { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-periods .btn[aria-pressed="true"] { background: var(--action); color: var(--on-action); border-color: var(--action); }
.dash-status { margin: 0 0 20px; color: var(--muted); }
.dash-content { display: grid; gap: 20px; }
.dash-panel h2 { margin: 0 0 14px; font-size: 1.15rem; }
.dash-panel .note { margin: 12px 0 0; }
.dash-chart svg { display: block; width: 100%; height: 160px; }
.dash-chart .views { fill: var(--line-strong); }
.dash-chart .visits { fill: var(--secondary); }
.dash-axis, .dash-legend { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; font-size: .85rem; color: var(--dim); }
.dash-legend { justify-content: flex-start; }
.dash-legend .key { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.dash-legend .key.visits { background: var(--secondary); }
.dash-legend .key.views { background: var(--line-strong); }
.dash-scroll { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.dash-table th, .dash-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dash-table thead th { font-size: .8rem; font-weight: 600; color: var(--dim); }
.dash-table .num { width: 1%; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dash-table thead .num { white-space: normal; }
.dash-table tbody th { font-weight: 500; overflow-wrap: anywhere; }
.dash-table a { color: var(--link); }
.dash-table .empty-cell { color: var(--dim); }
.dash-table .place-country th { font-weight: 650; color: var(--primary); }
.dash-table .place-region th { padding-left: 28px; }
.dash-table .place-city th { padding-left: 48px; font-weight: 400; color: var(--muted); }
.dash-table .place-rest th { font-style: italic; }

/* Prose */
.prose { max-width: 780px; padding: 40px 0 80px; }
.prose h1 { font-size: clamp(2.2rem, 4.6vw, 3.2rem); }
.prose h2 { font-size: 1.4rem; margin-top: 40px; letter-spacing: -.02em; }
.prose p, .prose li { color: var(--text); }
.prose strong { color: var(--primary); }
.prose a { color: var(--link); }
.prose .meta { color: var(--dim); font-size: .95rem; }
.prose code { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.page-head { padding: 72px 0 24px; }
.page-head h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); }

/* Footer */
/* The bottom padding lets the footer's last line scroll clear of the fixed appearance switcher (24px offset + 44px control) */
.site-footer { margin-top: 56px; padding: 64px 0 96px; color: var(--muted); font-size: .93rem; border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--band), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin: 12px 0 0; max-width: 280px; color: var(--dim); }
.site-footer nav { display: flex; flex-direction: column; gap: 9px; }
.site-footer nav h2 { font-size: .8rem; font-weight: 600; letter-spacing: 0; color: var(--primary); margin: 6px 0 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.footer-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--dim); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Hero kite (404 and spare art) */
.hero-art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.hero-art .halo { position: absolute; inset: 12%; border-radius: 50%; background: radial-gradient(closest-side, var(--halo), transparent 75%); filter: blur(10px); }
.kite-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.kite-fly, .kite-tail, .cloud, .sparkle { transform-box: fill-box; }
.kite-fly { transform-origin: 50% 30%; animation: fly 7s ease-in-out infinite; }
.kite-tail { transform-origin: 50% 0; animation: tail 2.4s ease-in-out infinite alternate; }
.cloud { opacity: .08; animation: cloud 14s ease-in-out infinite alternate; }
.sparkle { animation: twinkle 3s ease-in-out infinite; }
@keyframes fly { 0%, 100% { transform: translate(0, 0) rotate(-4deg); } 50% { transform: translate(10px, -16px) rotate(5deg); } }
@keyframes tail { from { transform: skewX(-6deg); } to { transform: skewX(7deg); } }
@keyframes cloud { from { transform: translateX(-14px); } to { transform: translateX(18px); } }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

@media (max-width: 1000px) {
  .grid.quad, .stats, .topic-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .app-card, .dl-grid, .two-col, .split-cta, .doors, .feature-row, .feature-row.flip { grid-template-columns: 1fr; }
  .feature-row.flip .feature-copy { order: 0; }
  .grid.tri { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  section { padding: 68px 0; }
  .hero { padding-top: 56px; }
  .grid.two, .grid.quad { grid-template-columns: 1fr; }
  .topic-strip { grid-template-columns: 1fr; margin-top: 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-header .wrap { height: 64px; }
  .app-bar { top: 64px; }
  .brand { font-size: 1.15rem; }
  .brand .brand-mark { height: 54px; }
  .nav a { padding: 8px 10px; }
  .nav a.btn.primary { display: none; }
  .app-card, .door { padding: 24px; }
  .idea { grid-template-columns: 1fr; }
  .vote { grid-auto-flow: column; justify-content: start; gap: 8px; min-width: 0; width: max-content; padding: 6px 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .shot-hero .frame { transform: none; }
  .dash-panel { padding: 18px; }
  .dash-table th, .dash-table td { padding: 8px 6px; }
  .dash-table .place-region th { padding-left: 16px; }
  .dash-table .place-city th { padding-left: 28px; }
}
@media (max-width: 580px) {
  /* Too narrow for the mark, the wordmark and the nav: the mark carries the brand, the words stay for screen readers */
  .site-header .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 480px) {
  .site-header .wrap, .app-bar .wrap { padding: 0 16px; }
  .brand { gap: 8px; font-size: 1.05rem; }
  .brand .brand-mark { height: 46px; }
  .nav { gap: 0; }
  .nav a { padding: 6px 9px; font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .shot-hero .frame { transform: none; }
}

a.eyebrow { text-decoration: none; transition: border-color .2s, color .2s; }
a.eyebrow:hover { color: var(--primary); border-color: var(--line-hover); }
