/* Dustpan — dustpan.app
   One stylesheet, no framework, no web fonts: the page is a few kilobytes and
   sets in the reader's own system typeface, which on a Mac is the app's.
   Colours are the app's design tokens (Sources/.../DesignSystem/Tokens.swift);
   if one moves there it should move here.

   Layout breakpoints, widest first:
     > 940px   full navigation row; three-column card grids
     <= 940px  navigation folds into the menu button (portrait iPads and phones)
     <= 900px  card grids go to two columns
     <= 860px  the two-column Safety / Where-we-stand blocks stack
     <= 640px  phone: single-column grids, the phone screenshot crop, stacked buttons
     <= 480px  small phone: tighter paddings and type */

:root {
  --inset: #07090e;
  --window: #0b0e15;
  --pane: #10141d;
  --card: #161b27;
  --card-hover: #1c2231;
  --raised: #222a3b;

  --border-subtle: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-top: rgba(255, 255, 255, 0.16);

  --text: #f3f5f9;
  --text-2: #a6afc0;
  --text-3: #8892a6;

  --accent: #6ea4ff;
  --accent-start: #2f6fed;
  --accent-end: #7c4deb;
  --glow-start: #4f93ff;
  --glow-end: #a074ff;
  --success: #3ddc97;
  --warning: #f6b94c;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-xxl: 24px;

  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 64px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (max-width: 480px) { :root { --gutter: 18px; } }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--window);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
picture { display: contents; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button { font: inherit; color: inherit; }

/* Notched phones in landscape: keep content out from under the sensor housing. */
.wrap {
  width: 100%; max-width: var(--wrap); margin: 0 auto;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--raised); color: var(--text); padding: 8px 14px; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Anchor links land with the sticky bar out of the way. Sections carry a lot
   of top padding already, so the offset is small on purpose. */
section, .hero { scroll-margin-top: 28px; }

/* ---------------------------------------------------------------- backdrop */

.sky {
  position: absolute; inset: 0 0 auto 0; height: min(920px, 130vh); z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 420px at 78% 6%, rgba(124, 77, 235, 0.30), transparent 70%),
    radial-gradient(560px 400px at 16% 0%, rgba(47, 111, 237, 0.26), transparent 70%),
    linear-gradient(180deg, #0d1220 0%, var(--window) 78%);
}
/* A faint drafting grid that fades out below the headline: depth without noise. */
.sky::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 0%, #000 10%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 0%, #000 10%, transparent 100%);
}

/* --------------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(11, 14, 21, 0.72); border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}
.nav.scrolled { border-bottom-color: var(--border); box-shadow: 0 12px 32px -20px rgba(0, 0, 0, 0.9); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { position: relative; color: var(--text-2); font-size: 15px; white-space: nowrap; transition: color 0.16s ease-out; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
/* main.js marks the section in view; the mark is a short bar tucked against the bottom edge. */
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc((var(--nav-h) - 1.4em) / -2);
  height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--glow-start), var(--glow-end));
}
.nav .btn { flex-shrink: 0; white-space: nowrap; }

.menu-btn {
  display: none; flex-shrink: 0; width: 42px; height: 42px; padding: 0; margin: 0;
  border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--card);
  box-shadow: inset 0 1px 0 var(--border-top); cursor: pointer; position: relative;
}
.menu-btn span, .menu-btn::before, .menu-btn::after {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px;
  background: var(--text); transition: transform 0.22s var(--ease), opacity 0.16s ease-out, top 0.22s var(--ease);
}
.menu-btn::before { top: 13px; }
.menu-btn span { top: 19px; }
.menu-btn::after { top: 25px; }
.nav.open .menu-btn::before { top: 19px; transform: rotate(45deg); }
.nav.open .menu-btn::after { top: 19px; transform: rotate(-45deg); }
.nav.open .menu-btn span { opacity: 0; transform: scaleX(0.4); }

@media (max-width: 940px) {
  .nav .wrap { gap: 12px; }
  .nav .btn { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .nav .btn + .menu-btn { margin-left: 0; }
  .nav .brand + .menu-btn, .nav .nav-links + .menu-btn { margin-left: auto; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
    flex-direction: column; gap: 0; margin: 0;
    padding: 8px max(var(--gutter), env(safe-area-inset-right)) 14px max(var(--gutter), env(safe-area-inset-left));
    background: rgba(13, 17, 26, 0.985); border-bottom: 1px solid var(--border);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  }
  .nav.open .nav-links { display: flex; animation: drop 0.22s var(--ease); }
  .nav-links a { padding: 14px 6px; font-size: 17px; font-weight: 500; border-bottom: 1px solid var(--border-subtle); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--accent); }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: var(--radius-md);
  font: 600 16px/1 var(--font); color: var(--text); cursor: pointer; white-space: nowrap;
  border: 1px solid var(--border); background: var(--card);
  box-shadow: inset 0 1px 0 var(--border-top);
  transition: transform 0.16s ease-out, background 0.16s ease-out, box-shadow 0.16s ease-out, border-color 0.16s ease-out;
}
.btn:active { transform: translateY(0) scale(0.985); }
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #fff; border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 10px 30px -8px rgba(98, 96, 240, 0.65);
}
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 17px; border-radius: 12px; }
@media (hover: hover) {
  .btn:hover { background: var(--card-hover); border-color: var(--border-strong); text-decoration: none; transform: translateY(-1px); }
  .btn-primary:hover { background: linear-gradient(90deg, #3a79f3, #8759f0); border-color: rgba(255, 255, 255, 0.22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 14px 36px -8px rgba(98, 96, 240, 0.8); }
}

/* -------------------------------------------------------------------- hero */

.hero { padding: clamp(48px, 8vw, 100px) 0 0; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 13px; border-radius: 999px;
  font: 600 12px/1 var(--font); letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent);
  background: rgba(79, 147, 255, 0.12); border: 1px solid rgba(110, 164, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(79, 147, 255, 0.05);
}
@media (max-width: 480px) { .eyebrow { font-size: 10.5px; letter-spacing: 0.05em; padding: 0 11px; white-space: nowrap; } }
@media (max-width: 360px) { .eyebrow { font-size: 9.5px; letter-spacing: 0.03em; padding: 0 10px; gap: 6px; } }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 6px var(--accent); } 50% { box-shadow: 0 0 12px 2px var(--accent); } }
.hero h1 {
  margin: 22px auto 0; max-width: 16ch;
  font-size: clamp(38px, 7.2vw, 78px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 750;
  background: linear-gradient(180deg, #ffffff 30%, #b9c4dc); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { margin: 22px auto 0; max-width: 56ch; color: var(--text-2); font-size: clamp(17px, 2vw, 20px); text-wrap: pretty; }
.hero .cta { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .cta .btn { min-width: 200px; }
.hero .facts { margin-top: 22px; color: var(--text-3); font-size: 14px; display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; }
.hero .facts span::before { content: "✓"; color: var(--success); margin-right: 6px; font-weight: 700; }
@media (max-width: 480px) {
  .hero .cta { flex-direction: column; align-items: stretch; }
  .hero .cta .btn { width: 100%; }
  .hero .facts { flex-direction: column; align-items: center; gap: 6px; }
}

/* A quiet entrance: each block of the hero rises into place. Reduced-motion
   readers get the finished page straight away (see the end of this file). */
.hero > .wrap > * { animation: rise 0.7s var(--ease) both; }
.hero .eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.12s; }
.hero .lede { animation-delay: 0.2s; }
.hero .cta { animation-delay: 0.28s; }
.hero .facts { animation-delay: 0.34s; }
.hero .fine { animation-delay: 0.38s; }
.hero .shot { animation-delay: 0.46s; animation-duration: 0.9s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.shot { margin: clamp(44px, 7vw, 76px) auto 0; max-width: 1000px; position: relative; }
.shot::before { content: ""; position: absolute; inset: 12% 6% -4% 6%; z-index: -1; filter: blur(70px); opacity: 0.55; background: linear-gradient(90deg, var(--accent-start), var(--accent-end)); }
.shot img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 var(--border-top); background: var(--window); }
/* The render has no window chrome of its own, so the three lights are drawn
   where macOS would put them: it is what makes a picture of an interface read
   as a picture of a Mac app. */
.shot .lights { position: absolute; z-index: 1; left: 2.1%; top: 2.6%; display: flex; gap: 0.62vw; }
.shot .lights i { width: clamp(6px, 0.95vw, 12px); height: clamp(6px, 0.95vw, 12px); border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25); }
.shot .lights i:nth-child(2) { background: #febc2e; }
.shot .lights i:nth-child(3) { background: #28c840; }
@media (min-width: 1100px) { .shot .lights { gap: 7px; } }

/* The capture ends mid-list. Dissolving its last fifth into the page says "there
   is more below" where a hard edge through the middle of a card says "cropped". */
.shot { -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent 100%); mask-image: linear-gradient(180deg, #000 78%, transparent 100%); }

/* Phones get a crop of the main pane (the <picture> in index.html swaps the
   file), and a title bar to hold the lights, so it still reads as a window. */
@media (max-width: 640px) {
  .shot { margin-top: 40px; }
  .shot .lights {
    position: static; height: 34px; padding: 0 12px; align-items: center; gap: 7px;
    background: linear-gradient(180deg, #1d2434, #161b27);
    border: 1px solid var(--border); border-bottom: 0; border-radius: 14px 14px 0 0;
    box-shadow: inset 0 1px 0 var(--border-top);
  }
  .shot .lights i { width: 10px; height: 10px; }
  .shot img { border-radius: 0 0 14px 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85); }
}

/* ---------------------------------------------------------------- sections */

section { padding: clamp(72px, 10vw, 128px) 0 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--glow-start), var(--glow-end)); }
.section-head.center .kicker::before { display: none; }
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 { margin-top: 14px; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.028em; font-weight: 720; }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 18px; text-wrap: pretty; }
@media (max-width: 480px) { .section-head p { font-size: 17px; } }

.grid { display: grid; gap: 14px; margin-top: 44px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .grid { gap: 12px; margin-top: 32px; } }

.card {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 var(--border-top); padding: 22px;
  transition: background 0.18s ease-out, transform 0.18s ease-out, border-color 0.18s ease-out;
}
@media (hover: hover) { .card:hover { background: var(--card-hover); border-color: var(--border-strong); transform: translateY(-2px); } }
.card h3 { margin-top: 16px; font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.card p { margin-top: 6px; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.card code { font-family: var(--font-mono); font-size: 0.88em; color: var(--text); }
.card .tag { display: inline-block; margin-top: 12px; font: 600 11px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; }
.tag.safe { color: var(--success); background: rgba(61, 220, 151, 0.12); }
.tag.review { color: var(--warning); background: rgba(246, 185, 76, 0.12); }

/* Wide cards: the chip sits beside the text. Used for the Tools grid on
   desktop, and for an odd card left alone at the bottom of a two-column grid. */
.card.row { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; align-content: start; }
.card.row .chip { grid-row: 1 / span 3; }
.card.row h3 { margin-top: 3px; grid-column: 2; }
.card.row p, .card.row .tag { grid-column: 2; }
.card.row .tag { justify-self: start; }
.grid-tools { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .grid-tools { grid-template-columns: 1fr; } }
@media (min-width: 641px) and (max-width: 900px) {
  .grid-3 > .card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; align-content: start; }
  .grid-3 > .card:last-child:nth-child(odd) .chip { grid-row: 1 / span 3; }
  .grid-3 > .card:last-child:nth-child(odd) h3 { margin-top: 3px; grid-column: 2; }
  .grid-3 > .card:last-child:nth-child(odd) p, .grid-3 > .card:last-child:nth-child(odd) .tag { grid-column: 2; }
  .grid-3 > .card:last-child:nth-child(odd) .tag { justify-self: start; }
}

.chip { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.chip svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-blue { color: #6ea4ff; background: rgba(79, 147, 255, 0.16); }
.c-indigo { color: #9a97ff; background: rgba(124, 122, 255, 0.16); }
.c-pink { color: #ff7f9c; background: rgba(255, 95, 130, 0.15); }
.c-teal { color: #4fd6d6; background: rgba(56, 198, 198, 0.15); }
.c-red { color: #ff8585; background: rgba(255, 111, 111, 0.15); }
.c-orange { color: #ffb070; background: rgba(255, 150, 70, 0.15); }
.c-gray { color: #b8c0d0; background: rgba(170, 180, 200, 0.13); }
.c-green { color: #5fe0a8; background: rgba(61, 220, 151, 0.14); }
.c-purple { color: #c99bff; background: rgba(160, 116, 255, 0.16); }
.c-amber { color: #f6c465; background: rgba(246, 185, 76, 0.14); }

/* ------------------------------------------------------------------ safety */

.safety { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 8px; }
@media (max-width: 860px) { .safety { grid-template-columns: 1fr; } }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 20px; background: var(--pane); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: inset 0 1px 0 var(--border-top); }
.rules li svg { width: 22px; height: 22px; margin-top: 2px; color: var(--success); fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.rules b { display: block; font-weight: 650; }
.rules span { color: var(--text-2); font-size: 15px; }
@media (max-width: 480px) { .rules li { grid-template-columns: 24px 1fr; gap: 10px; padding: 16px; } .rules li svg { width: 20px; height: 20px; } }

.never { margin-top: 26px; padding: 20px 22px; border-radius: var(--radius-lg); border: 1px dashed rgba(255, 255, 255, 0.16); color: var(--text-2); font-size: 15px; }
.never b { color: var(--text); }

/* ------------------------------------------------------------------ stance */

.stance { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding: clamp(24px, 4.5vw, 56px); border-radius: var(--radius-xxl); border: 1px solid var(--border); background: radial-gradient(520px 300px at 0% 0%, rgba(47, 111, 237, 0.20), transparent 70%), var(--pane); box-shadow: inset 0 1px 0 var(--border-top); }
@media (max-width: 860px) { .stance { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .stance { border-radius: var(--radius-xl); } }
.pledge { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: pledge; }
.pledge li { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; counter-increment: pledge; }
.pledge li::before { content: counter(pledge); grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 15px/1 var(--font-round); color: var(--accent); background: rgba(79, 147, 255, 0.14); border: 1px solid rgba(110, 164, 255, 0.28); }
.pledge b { font-weight: 650; }
.pledge span { color: var(--text-2); font-size: 15.5px; }

/* ----------------------------------------------------------------- pricing */

.price-card {
  position: relative; margin: 44px auto 0; max-width: 520px; text-align: center; padding: 38px 34px 34px;
  border-radius: var(--radius-xxl); border: 1px solid rgba(110, 164, 255, 0.28);
  background: linear-gradient(180deg, #1a2133, #131826);
  box-shadow: inset 0 1px 0 var(--border-top), 0 40px 90px -40px rgba(98, 96, 240, 0.55);
}
/* a hairline of light along the top edge, like a lit rim */
.price-card::before { content: ""; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(160, 116, 255, 0.9), rgba(79, 147, 255, 0.9), transparent); }
.price { font-family: var(--font-round); font-size: 72px; line-height: 1; font-weight: 750; letter-spacing: -0.04em; background: linear-gradient(90deg, var(--glow-start), var(--glow-end)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price small { font-size: 20px; font-weight: 600; letter-spacing: 0; color: var(--text-2); -webkit-text-fill-color: var(--text-2); margin-left: 8px; }
.price-card ul { list-style: none; margin: 26px 0 28px; padding: 0; display: grid; gap: 10px; text-align: left; color: var(--text-2); font-size: 16px; }
.price-card li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.price-card li::before { content: "✓"; color: var(--success); font-weight: 700; }
.price-card li b { color: var(--text); font-weight: 650; }
.price-card .btn { width: 100%; }
.fine { margin-top: 14px; color: var(--text-3); font-size: 13.5px; text-wrap: pretty; }
@media (max-width: 480px) {
  .price-card { padding: 30px 22px 26px; border-radius: var(--radius-xl); }
  .price { font-size: 60px; }
  .price small { font-size: 17px; }
}

/* --------------------------------------------------------------------- faq */

.faq { margin: 40px auto 0; max-width: 780px; display: grid; gap: 10px; }
.faq details { background: var(--pane); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: inset 0 1px 0 var(--border-top); transition: border-color 0.18s ease-out, background 0.18s ease-out; }
.faq details[open] { border-color: rgba(110, 164, 255, 0.30); background: var(--card); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 620; position: relative; text-wrap: balance; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-52%); color: var(--text-3); font-size: 24px; font-weight: 400; transition: transform 0.18s ease-out, color 0.18s ease-out; }
.faq details[open] summary::after { transform: translateY(-52%) rotate(45deg); color: var(--accent); }
@media (hover: hover) { .faq summary:hover::after { color: var(--text); } }
.faq p { padding: 0 20px 20px; color: var(--text-2); font-size: 16px; text-wrap: pretty; }
@media (max-width: 480px) { .faq summary { padding: 16px 44px 16px 16px; font-size: 16px; } .faq summary::after { right: 16px; } .faq p { padding: 0 16px 16px; font-size: 15.5px; } }

/* ------------------------------------------------------------------ closer */

.closer { text-align: center; }
.closer .panel { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px) var(--gutter); border-radius: var(--radius-xxl); border: 1px solid var(--border); background: radial-gradient(500px 260px at 50% 0%, rgba(98, 96, 240, 0.30), transparent 70%), var(--pane); box-shadow: inset 0 1px 0 var(--border-top); }
.closer .panel::before { content: ""; position: absolute; left: 20%; right: 20%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(160, 116, 255, 0.8), rgba(79, 147, 255, 0.8), transparent); }
.closer h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.028em; line-height: 1.1; }
.closer p { margin: 14px auto 28px; max-width: 52ch; color: var(--text-2); text-wrap: pretty; }
@media (max-width: 480px) { .closer .panel { border-radius: var(--radius-xl); } .closer .btn { width: 100%; } }

/* ------------------------------------------------------------------ footer */

footer { margin-top: clamp(72px, 9vw, 112px); border-top: 1px solid var(--border-subtle); padding: 40px 0 max(44px, env(safe-area-inset-bottom)); color: var(--text-3); font-size: 14.5px; }
footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.foot-brand img { width: 32px; height: 32px; border-radius: 8px; }
.foot-brand b { display: block; font-weight: 650; line-height: 1.25; }
.foot-brand span { display: block; color: var(--text-3); font-size: 13.5px; line-height: 1.35; }
footer nav { display: flex; gap: 4px 24px; flex-wrap: wrap; justify-content: flex-end; }
footer nav a { color: var(--text-2); padding: 6px 0; }
footer nav a:hover { color: var(--text); }
.legal-note { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid var(--border-subtle); font-size: 12.5px; color: var(--text-3); text-wrap: pretty; }
.copy { grid-column: 1 / -1; font-size: 13px; }
@media (max-width: 640px) {
  footer .wrap { grid-template-columns: 1fr; gap: 14px; }
  footer nav { justify-content: flex-start; gap: 2px 20px; }
}

/* ------------------------------------------------------------ legal / docs */

.doc { padding: clamp(48px, 7vw, 88px) 0 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.08; }
.doc .updated { margin-top: 10px; color: var(--text-3); font-size: 14.5px; }
.doc h2 { margin-top: 40px; font-size: 22px; letter-spacing: -0.015em; }
.doc p, .doc li { color: var(--text-2); text-wrap: pretty; }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc li::marker { color: var(--text-3); }
.doc b { color: var(--text); font-weight: 650; }
.doc code { font-family: var(--font-mono); font-size: 0.9em; background: var(--card); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.doc .btn { margin-top: 6px; }

/* Changelog entries, newest first, on a thin timeline. main.js and
   dustpan-admin render-site both emit  article.release > h2 + p.updated + ul. */
.release { position: relative; margin-top: 40px; padding-left: 30px; }
.release::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--glow-start), var(--glow-end)); box-shadow: 0 0 0 4px rgba(110, 164, 255, 0.16); }
.release::after { content: ""; position: absolute; left: 5px; top: 30px; bottom: -40px; width: 2px; background: var(--border); }
.release:last-child::after { display: none; }
.release h2 { margin-top: 0; }
.release .updated { margin-top: 4px; }
.release ul { margin-top: 12px; }
@media (max-width: 480px) { .release { padding-left: 24px; } }

/* ------------------------------------------------------------------ motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
