/* Glowbug — glowbugapps.com
   One stylesheet for every page. Light is warm paper at dusk; dark is a night sky with fireflies.
   The theme follows macOS unless the visitor picks one (html[data-theme]). */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #fbf7f1; --bg-2: #f4ede3; --bg-3: #efe6da;
  --card: #ffffff; --card-2: #fbf8f3; --card-hover: #fffdf9;
  --line: rgba(43, 24, 58, .09); --line-2: rgba(43, 24, 58, .16);
  --ink: #21152b; --ink-2: #463a51; --muted: #776a82; --faint: #a397ac;
  --glow: #f6a623; --glow-2: #ffcf5a; --glow-soft: rgba(246, 166, 35, .16);
  --accent: #b0510a; --accent-ink: #8f3f04;
  --night: #120c1c;
  --buy-a: #ffd56b; --buy-b: #f7a51f; --buy-ink: #2b1700;
  --btn: #21152b; --btn-ink: #fff8ec;
  --ok: #2f9e5b;
  --shadow-1: 0 1px 2px rgba(43, 24, 58, .06), 0 4px 14px rgba(43, 24, 58, .06);
  --shadow-2: 0 2px 6px rgba(43, 24, 58, .07), 0 18px 48px rgba(43, 24, 58, .12);
  --radius: 22px; --radius-s: 14px;
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1080px; --narrow: 720px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0812; --bg-2: #120c1b; --bg-3: #181023;
    --card: #17111f; --card-2: #1c1526; --card-hover: #1f1829;
    --line: rgba(255, 238, 214, .08); --line-2: rgba(255, 238, 214, .15);
    --ink: #f8f0e5; --ink-2: #ddd1dc; --muted: #a497af; --faint: #75687f;
    --glow: #ffc94d; --glow-2: #ffe08a; --glow-soft: rgba(255, 201, 77, .13);
    --accent: #ffc65a; --accent-ink: #ffd88a;
    --btn: #f8f0e5; --btn-ink: #1a1222;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c0812; --bg-2: #120c1b; --bg-3: #181023;
  --card: #17111f; --card-2: #1c1526; --card-hover: #1f1829;
  --line: rgba(255, 238, 214, .08); --line-2: rgba(255, 238, 214, .15);
  --ink: #f8f0e5; --ink-2: #ddd1dc; --muted: #a497af; --faint: #75687f;
  --glow: #ffc94d; --glow-2: #ffe08a; --glow-soft: rgba(255, 201, 77, .13);
  --accent: #ffc65a; --accent-ink: #ffd88a;
  --btn: #f8f0e5; --btn-ink: #1a1222;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
  --shadow-2: 0 2px 8px rgba(0, 0, 0, .35), 0 24px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p a, li a, dd a, .prose a, .link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); }
p a:hover, li a:hover, .prose a:hover, .link:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--glow) 40%, transparent); }
:focus-visible { outline: 2.5px solid var(--glow); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--btn); color: var(--btn-ink); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: -.022em; line-height: 1.08; margin: 0; font-optical-sizing: auto; }
h1 { font-size: clamp(40px, 6.4vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 21px; letter-spacing: -.012em; line-height: 1.25; }
em.glow, .glow-text { font-style: italic; font-weight: 500; background: linear-gradient(100deg, var(--glow) 10%, var(--glow-2) 55%, var(--glow) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
kbd { font: 600 .82em var(--mono); background: var(--card); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: .08em .42em; white-space: nowrap; }
code { font: .88em var(--mono); background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: .1em .35em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(var(--narrow), 100% - 32px); margin-inline: auto; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { margin: 10px 0 0; color: var(--muted); font-size: 18px; }
.eyebrow { font: 600 12.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px 2px var(--glow); }
.muted { color: var(--muted); }

/* ------------------------------------------------------------------ navigation */
.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav-in { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 650 19px/1 var(--serif); letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line), 0 0 16px -2px color-mix(in srgb, var(--glow) 60%, transparent); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-size: 15px; color: var(--ink-2); transition: background .15s, color .15s; }
.nav-links a:hover, .nav-links a[aria-current] { background: var(--bg-2); color: var(--ink); }
.theme-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 10px; cursor: pointer; color: var(--ink-2); margin-left: 4px; }
.theme-btn:hover { background: var(--bg-2); color: var(--ink); }
.theme-btn svg { width: 19px; height: 19px; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; } :root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { display: block; } :root:not([data-theme="light"]) .theme-btn .moon { display: none; } }
@media (max-width: 560px) { .nav-links a.hide-s { display: none; } .nav-links a { padding: 8px 9px; } }

/* ------------------------------------------------------------------ buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 var(--sans); letter-spacing: -.01em; border: 0; cursor: pointer; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: scale(.97); }
.btn-buy { background: linear-gradient(180deg, var(--buy-a), var(--buy-b)); color: var(--buy-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 6px 20px -6px rgba(247, 165, 31, .7), 0 0 0 1px rgba(160, 90, 0, .18); }
.btn-buy:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 30px -6px rgba(247, 165, 31, .85), 0 0 0 1px rgba(160, 90, 0, .22); transform: translateY(-1px); }
.btn-dark { background: var(--btn); color: var(--btn-ink); }
.btn-dark:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--card-hover); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1); }
.btn-s { height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn svg { width: 17px; height: 17px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font: 600 13.5px/1 var(--sans); background: var(--glow-soft); color: var(--accent-ink); white-space: nowrap; }
.chip-plain { background: var(--bg-2); color: var(--ink-2); font-weight: 550; }
.price-chip { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ the night sky (hero) */
.sky { position: relative; overflow: hidden; isolation: isolate; background:
  radial-gradient(1200px 520px at 50% 108%, rgba(255, 176, 66, .22), transparent 62%),
  radial-gradient(900px 500px at 12% -10%, rgba(140, 90, 200, .16), transparent 60%),
  linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sky { background:
  radial-gradient(1100px 520px at 50% 112%, rgba(255, 170, 50, .20), transparent 62%),
  radial-gradient(900px 600px at 15% -10%, rgba(120, 70, 190, .30), transparent 60%),
  radial-gradient(700px 500px at 95% 10%, rgba(70, 60, 160, .22), transparent 60%),
  linear-gradient(180deg, #0a0710 0%, #120b1d 100%); } }
:root[data-theme="dark"] .sky { background:
  radial-gradient(1100px 520px at 50% 112%, rgba(255, 170, 50, .20), transparent 62%),
  radial-gradient(900px 600px at 15% -10%, rgba(120, 70, 190, .30), transparent 60%),
  radial-gradient(700px 500px at 95% 10%, rgba(70, 60, 160, .22), transparent 60%),
  linear-gradient(180deg, #0a0710 0%, #120b1d 100%); }
.stars { position: absolute; inset: 0; z-index: -1; opacity: 0; background-image:
  radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 42%, #fff 50%, transparent 51%),
  radial-gradient(1.4px 1.4px at 44% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 63% 30%, #fff 50%, transparent 51%),
  radial-gradient(1.2px 1.2px at 78% 16%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 90% 44%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 8% 62%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 35% 74%, #fff 50%, transparent 51%),
  radial-gradient(1px 1px at 70% 66%, #fff 50%, transparent 51%), radial-gradient(1.1px 1.1px at 55% 52%, #fff 50%, transparent 51%); }
:root[data-theme="dark"] .stars { opacity: .55; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stars { opacity: .55; } }
.flies { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.flies i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: #ffe48a; box-shadow: 0 0 6px 2px rgba(255, 210, 90, .9), 0 0 18px 6px rgba(255, 180, 50, .45); opacity: 0; animation: blink var(--b) ease-in-out var(--d) infinite, drift var(--t) ease-in-out var(--d) infinite alternate; }
:root:not([data-theme="dark"]) .flies i { background: #ffb21e; box-shadow: 0 0 6px 2px rgba(255, 170, 30, .55), 0 0 16px 5px rgba(255, 170, 30, .25); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .flies i { background: #ffe48a; box-shadow: 0 0 6px 2px rgba(255, 210, 90, .9), 0 0 18px 6px rgba(255, 180, 50, .45); } }
@keyframes blink { 0%, 100% { opacity: 0; } 35%, 60% { opacity: .95; } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(var(--dx), var(--dy)); } }

.hero { padding: 72px 0 84px; text-align: center; }
.hero .bug { width: 170px; height: 170px; margin: 0 auto 6px; overflow: visible; }
.hero h1 { max-width: 16ch; margin-inline: auto; }
.hero h1 em { white-space: nowrap; padding-right: .06em; }
.hero .lede { max-width: 620px; margin: 22px auto 0; font-size: 19.5px; line-height: 1.55; color: var(--ink-2); }
.hero-ctas { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* The firefly moves: floats, flaps, blinks, glows. */
.bug-float { animation: float 5.2s ease-in-out infinite; transform-origin: 120px 130px; }
.bug-wing { transform-box: fill-box; transform-origin: center; animation: flap .22s ease-in-out infinite alternate; }
.bug-wing-l { transform-origin: 90% 70%; } .bug-wing-r { transform-origin: 10% 70%; }
.bug-glow { animation: glow 2.6s ease-in-out infinite; }
.bug-halo { animation: halo 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bug-blink { transform-box: fill-box; transform-origin: center 55%; animation: eyeblink 5.5s infinite; }
.bug-eyes { transition: transform .25s ease-out; }
.bug-tip { animation: glow 1.8s ease-in-out infinite alternate; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-9px) rotate(1.5deg); } }
@keyframes flap { from { opacity: .95; transform: scaleY(1); } to { opacity: .75; transform: scaleY(.72); } }
@keyframes glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes halo { 0%, 100% { opacity: .7; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes eyeblink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }

/* The Dock on the home page: icons grow under the pointer, like macOS. */
.dock-wrap { margin: 52px auto 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dock { display: inline-flex; align-items: flex-end; gap: 10px; padding: 10px 12px; border-radius: 26px; background: color-mix(in srgb, var(--card) 55%, transparent); border: 1px solid var(--line-2); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, .25); }
.dock a, .dock .slot { position: relative; width: 78px; height: 78px; transform-origin: 50% 100%; transition: transform .22s cubic-bezier(.3, .7, .4, 1.4); }
.dock img { width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .25)); }
.dock a::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 8px 2px var(--glow); }
.dock a .tip { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 6px); background: var(--btn); color: var(--btn-ink); font: 600 13.5px/1 var(--sans); padding: 8px 11px; border-radius: 9px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.dock a:hover .tip, .dock a:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }
@media (hover: hover) {
  .dock a:hover { transform: scale(1.42) translateY(-6px); z-index: 2; }
  .dock a:has(+ a:hover), .dock a:hover + a, .dock a:hover + .slot { transform: scale(1.16); }
}
.dock .slot { display: grid; place-items: center; border-radius: 18px; border: 2px dashed var(--line-2); color: var(--faint); width: 64px; height: 64px; margin: 7px; }
.dock .slot svg { width: 22px; height: 22px; }
.dock-note { font-size: 14px; color: var(--muted); }
@media (max-width: 520px) { .dock a { width: 62px; height: 62px; } .dock .slot { width: 50px; height: 50px; } .dock { gap: 8px; } }

/* ------------------------------------------------------------------ app cards (home) */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .apps-grid { grid-template-columns: 1fr; } }
.app-card { --tint: #6d6cf0; position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); transition: transform .2s, box-shadow .25s; overflow: hidden; isolation: isolate; min-height: 250px; }
.app-card::before { content: ""; position: absolute; z-index: -1; left: -40px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tint) 30%, transparent), transparent); opacity: .55; transition: opacity .3s, transform .4s; pointer-events: none; }
.app-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-2); }
.app-card:hover::before { opacity: 1; transform: scale(1.15); }
.app-card img { width: 76px; height: 76px; filter: drop-shadow(0 8px 14px color-mix(in srgb, var(--tint) 45%, transparent)); transition: transform .3s cubic-bezier(.3,.7,.4,1.4); }
.app-card:hover img { transform: scale(1.06) rotate(-3deg); }
.app-card h3 { font-size: 23px; margin-top: 20px; }
.app-card p { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.app-card .cat { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.app-card .more { color: var(--accent); font-weight: 600; }
.app-card .price-chip { position: absolute; top: 24px; right: 22px; }

/* ------------------------------------------------------------------ promises */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.promise { padding: 26px 22px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.promise .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--glow-soft); color: var(--accent); margin-bottom: 18px; }
.promise .ico svg { width: 22px; height: 22px; }
.promise h3 { font-size: 19px; }
.promise p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 900px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .promises { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ post cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: transform .2s, box-shadow .25s; min-height: 236px; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-2); }
.post-app { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.post-app img { width: 20px; height: 20px; }
.post-card h3 { margin-top: 14px; font-size: 20px; line-height: 1.22; }
.post-card p { margin: 10px 0 18px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.post-meta { margin-top: auto; font-size: 13px; color: var(--faint); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 30px 0 26px; }
.filters button, .filters a { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--card); box-shadow: 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.filters img { width: 18px; height: 18px; }
.filters [aria-pressed="true"], .filters [aria-current] { background: var(--btn); color: var(--btn-ink); box-shadow: none; }

/* ------------------------------------------------------------------ app page */
.app-hero { padding: 64px 0 34px; }
.app-head { display: grid; grid-template-columns: 172px 1fr; gap: 40px; align-items: center; }
.app-icon { width: 172px; height: 172px; filter: drop-shadow(0 18px 30px color-mix(in srgb, var(--tint, #6d6cf0) 40%, transparent)); }
.app-head h1 { font-size: clamp(42px, 6vw, 64px); }
.app-head .tagline { margin: 10px 0 0; font-size: 22px; color: var(--ink-2); line-height: 1.35; }
.app-head .by { margin-top: 8px; font-size: 15px; }
.app-head .by a { color: var(--accent); }
.app-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.app-fine { margin: 12px 0 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 640px) { .app-head { grid-template-columns: 1fr; gap: 20px; text-align: center; } .app-icon { width: 128px; height: 128px; margin: 0 auto; } .app-actions { justify-content: center; } }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); margin: 44px 0 0; border-block: 1px solid var(--line); }
.stats div { padding: 18px 10px; text-align: center; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats dt { font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 9px 0 0; font: 650 18px/1.15 var(--sans); letter-spacing: -.01em; }
.stats small { display: block; margin-top: 5px; font-size: 12.5px; color: var(--muted); font-weight: 400; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } .stats div:nth-child(3) { border-right: 0; } .stats div:nth-child(-n+3) { border-bottom: 1px solid var(--line); } }

.demo-frame { margin-top: 44px; border-radius: 28px; overflow: hidden; position: relative; box-shadow: 0 0 0 1px var(--line-2), var(--shadow-2); background: var(--night); }
.demo-cap { text-align: center; margin: 14px auto 0; font-size: 14px; color: var(--muted); max-width: 640px; }
.intro { padding: 64px 0 24px; }
.intro p { font-size: 19px; line-height: 1.62; color: var(--ink-2); margin: 0 0 18px; }
.intro p:first-child { font-size: 22px; color: var(--ink); line-height: 1.55; }
.film { margin-top: 24px; }
.film video { width: 100%; max-width: 760px; margin: 22px auto 0; border-radius: 22px; box-shadow: 0 0 0 1px var(--line-2), var(--shadow-2); background: #fff; aspect-ratio: 16 / 9; }
.feature { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; padding: 64px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip > :first-child { order: 2; }
.feature h2 { font-size: clamp(28px, 3.4vw, 38px); }
.feature p { margin: 16px 0 0; color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--glow-2) 0 30%, var(--glow) 31% 52%, transparent 53%); box-shadow: 0 0 10px 1px color-mix(in srgb, var(--glow) 50%, transparent); }
.visual { border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); overflow: hidden; position: relative; }
.visual figcaption, .vis-cap { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 12px; }
.shot { display: block; width: 100%; height: auto; }
.shot-dark { display: none; }
:root[data-theme="dark"] .shot-light { display: none; } :root[data-theme="dark"] .shot-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .shot-light { display: none; } :root:not([data-theme="light"]) .shot-dark { display: block; } }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; } .feature.flip > :first-child { order: 0; } }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.feature-grid div { padding: 22px; border-radius: var(--radius-s); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.feature-grid h3 { font-family: var(--sans); font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.feature-grid p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
@media (max-width: 860px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feature-grid { grid-template-columns: 1fr; } }

.measure { margin: 28px 0 0; padding: 22px 24px; border-radius: var(--radius-s); background: var(--bg-2); border-left: 3px solid var(--glow); }
.measure p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }
.measure footer { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

.pricing { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 32px; align-items: start; margin-top: 28px; }
.price-card { padding: 26px; border-radius: 26px; background: var(--card); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-2); position: relative; overflow: hidden; }
.price-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-soft), transparent); }
.price-card h3 { font-family: var(--sans); font-size: 19px; font-weight: 650; }
.price-card .sub { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.price-card .amount { font: 650 52px/1 var(--serif); letter-spacing: -.03em; margin-top: 20px; }
.price-card .once { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.price-card .ticks { margin: 20px 0 24px; }
.price-card .ticks li { font-size: 15px; }
.price-card .btn { width: 100%; }
.price-note { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.price-note p { margin: 0 0 12px; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }

.faq-group { margin-top: 30px; }
.faq-group > h3 { font: 600 12.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
details.qa { border-bottom: 1px solid var(--line); }
details.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 17px 0; font-weight: 600; font-size: 17px; line-height: 1.4; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='black' stroke-width='2.2' stroke-linecap='round'/%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 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
details.qa[open] summary::after { transform: rotate(45deg); }
details.qa .a { padding: 0 0 18px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
details.qa .a p { margin: 0 0 10px; }

.more-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 22px; }
.mini-app { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; }
.mini-app:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1); }
.mini-app img { width: 48px; height: 48px; }
.mini-app b { display: block; font-size: 16px; }
.mini-app span { display: block; font-size: 14px; color: var(--muted); line-height: 1.35; }

/* ------------------------------------------------------------------ prose (blog, about, legal) */
.page-head { padding: 56px 0 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); margin: 0 0 24px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--faint); }
.crumbs a:hover { color: var(--ink); }
.page-head h1 { font-size: clamp(36px, 5.4vw, 56px); }
.page-head .lede, .post-head .lede { margin: 18px 0 0; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.byline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.byline a { color: var(--ink-2); font-weight: 600; }
.toc { margin: 32px 0 8px; padding: 20px 22px; border-radius: var(--radius-s); background: var(--bg-2); }
.toc h2 { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15.5px; }
.toc a { color: var(--accent); }
.prose { font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-size: clamp(26px, 3.2vw, 32px); color: var(--ink); margin-top: 2em; }
.prose h3 { font-size: 21px; color: var(--ink); margin-top: 1.6em; font-family: var(--sans); font-weight: 650; letter-spacing: -.012em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-radius: var(--radius-s); background: var(--bg-2); border-left: 3px solid var(--glow); font-size: 17px; }
.prose blockquote p { margin: 0; }
.prose blockquote footer { margin-top: 8px; font-size: 14px; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin-top: 1.3em; }
.prose caption { text-align: left; font-weight: 650; color: var(--ink); padding-bottom: 10px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.table-scroll { overflow-x: auto; position: relative; }
.callout { margin-top: 2.2em; padding: 26px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1); display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start; }
.callout img { width: 64px; height: 64px; }
.callout h2 { margin: 0 !important; font-size: 24px !important; }
.callout p { font-size: 16.5px; margin: 8px 0 0; }
.callout .btn { margin-top: 16px; }
@media (max-width: 520px) { .callout { grid-template-columns: 1fr; } }
.related { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.related h2 { font-size: 26px; margin-bottom: 18px; }
.steps { list-style: none; counter-reset: s; padding: 0 !important; display: grid; gap: 12px; }
.steps > li { counter-increment: s; position: relative; padding: 16px 18px 16px 58px; border-radius: var(--radius-s); background: var(--card); box-shadow: 0 0 0 1px var(--line); margin: 0 !important; }
.steps > li::before { content: counter(s); position: absolute; left: 16px; top: 15px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 650 14px/1 var(--sans); color: var(--buy-ink); background: linear-gradient(180deg, var(--buy-a), var(--buy-b)); }

/* about, support, press */
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 640px) { .cards-2 { grid-template-columns: 1fr; } }
.card { padding: 22px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.card h3 { font-size: 19px; }
.card p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.press-app { display: grid; grid-template-columns: 88px 1fr; gap: 20px; padding: 24px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line); margin-top: 16px; }
.press-app img { width: 88px; height: 88px; }
.press-app dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 18px; margin: 14px 0 0; }
.press-app dt { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.press-app dd { margin: 5px 0 0; font-size: 15px; }
.press-app .dl { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 560px) { .press-app { grid-template-columns: 1fr; } }

/* thanks page */
.thanks { text-align: center; padding: 64px 0 90px; }
.thanks .app-icon { width: 120px; height: 120px; margin: 0 auto 22px; }
.thanks .done { font: 650 12px/1 var(--mono); letter-spacing: .14em; color: var(--ok); text-transform: uppercase; }
.thanks h1 { margin-top: 14px; font-size: clamp(38px, 6vw, 58px); }
.key-box { max-width: 520px; margin: 30px auto 0; text-align: left; padding: 20px; border-radius: var(--radius); background: var(--card); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1); }
.key-box .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.key-box p { margin: 12px 0 0; padding: 14px; border-radius: 12px; background: var(--bg-2); font-size: 15px; color: var(--ink-2); }
.howto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 760px; margin: 34px auto 0; text-align: left; }
.howto li { list-style: none; }
@media (max-width: 640px) { .howto { grid-template-columns: 1fr; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

/* ------------------------------------------------------------------ footer */
.footer { margin-top: 40px; padding: 56px 0 44px; border-top: 1px solid var(--line); background: var(--bg-2); font-size: 15px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 320px; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand p { margin: 0; color: var(--muted); line-height: 1.55; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols h2 { font: 600 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 4px 0 14px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-cols a { color: var(--ink-2); text-decoration: none; }
.crumbs a, .toc a, .post-card, .mini-app, .app-card { text-decoration: none; }
.foot-cols a:hover { color: var(--ink); }
.foot-bottom { margin-top: 40px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .flies i { opacity: .7; }
}

/* blog search box (sits at the end of the filter row) */
.blog-search { margin-left: auto; }
.blog-search input { height: 36px; width: 220px; max-width: 100%; border: 0; border-radius: 999px; padding: 0 14px; font: 14.5px var(--sans); color: var(--ink); background: var(--card); box-shadow: 0 0 0 1px var(--line-2); outline: none; }
.blog-search input:focus { box-shadow: 0 0 0 2px var(--glow); }
@media (max-width: 600px) { .blog-search { margin-left: 0; width: 100%; } .blog-search input { width: 100%; } }
.posts > [hidden] { display: none; }
.thanks .bug { width: 150px; height: 150px; margin: 0 auto 8px; overflow: visible; }
.prose blockquote.keyfact { margin-top: 1.4em; background: var(--glow-soft); border-left-color: var(--glow); color: var(--ink); font-size: 17.5px; }
.measure a.link { color: var(--accent); }
