/* 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. */

: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-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);

  --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;
}

*, *::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;
  overflow-x: hidden;
}

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.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; }

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

.sky {
  position: absolute; inset: 0 0 auto 0; height: 920px; 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%);
}

/* --------------------------------------------------------------------- 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); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 760px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ----------------------------------------------------------------- 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;
  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;
}
.btn:hover { background: var(--card-hover); text-decoration: none; transform: translateY(-1px); }
.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-primary:hover { background: linear-gradient(90deg, #3a79f3, #8759f0); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 14px 36px -8px rgba(98, 96, 240, 0.8); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 17px; border-radius: 12px; }

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

.hero { padding: clamp(56px, 9vw, 104px) 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);
}
@media (max-width: 480px) { .eyebrow { font-size: 10.5px; letter-spacing: 0.05em; padding: 0 11px; } }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.hero h1 {
  margin: 22px auto 0; max-width: 15ch;
  font-size: clamp(40px, 7.2vw, 76px); 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); }
.hero .cta { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .facts { margin-top: 20px; 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; }

.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); }
/* 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%); }

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

section { padding: clamp(72px, 10vw, 128px) 0 0; }
.kicker { font: 600 12px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.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; }

.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: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  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;
}
.card:hover { background: var(--card-hover); 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); }

.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; }

.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(28px, 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; } }
.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 {
  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);
}
.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; }

/* --------------------------------------------------------------------- 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); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 620; position: relative; }
.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; }
.faq details[open] summary::after { transform: translateY(-52%) rotate(45deg); }
.faq p { padding: 0 20px 20px; color: var(--text-2); font-size: 16px; }

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

.closer { text-align: center; }
.closer .panel { 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 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); }

footer { margin-top: clamp(72px, 9vw, 112px); border-top: 1px solid var(--border-subtle); padding: 34px 0 46px; color: var(--text-3); font-size: 14.5px; }
footer .wrap { display: flex; gap: 14px 28px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
footer a { color: var(--text-2); }
.legal-note { width: 100%; font-size: 12.5px; color: var(--text-3); }

/* ------------------------------------------------------------ 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); }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.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); }

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