/* =========================================================================
   Park Street Post Software — base stylesheet
   Single sheet, no build step. Plain CSS.
   Inherited from parkstreetpost.com: tokens, type, chrome, and the product
   components carry over verbatim; the services/live/admin surfaces do not.
   ========================================================================= */

/* ---------------------------------------------------------------------------
   Fonts — Geist + Geist Mono, self-hosted (SIL OFL 1.1, see /fonts/LICENSE.txt)
   --------------------------------------------------------------------------- */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "GeistMono";
  src: url("/fonts/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* System-sans fallback tuned to reduce FOUT shift. */
@font-face {
  font-family: "Geist Fallback";
  src: local("Helvetica Neue"), local("Arial");
  size-adjust: 100%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}

/* ---------------------------------------------------------------------------
   Tokens
   --------------------------------------------------------------------------- */

:root {
  /* Palette (OKLCH; cool/dark/neutral per DESIGN.md) */
  --surface:        oklch(14% 0.008 240);  /* Deep Cool Charcoal */
  --surface-lift:   oklch(22% 0.008 240);  /* Console Slate */
  --hairline:       oklch(28% 0.008 240);  /* 1px dividers */
  --text-cue:       oklch(68% 0.008 240);  /* Secondary text */
  --text:           oklch(96% 0.005 240);  /* Working Light */
  --accent:         oklch(72% 0.13 225);   /* Signal Cyan-Cool */
  --accent-deep:    oklch(58% 0.14 225);   /* Active / pressed state */
  --accent-soft:    oklch(72% 0.13 225 / 0.18);  /* Glow base */

  /* Type scale (1.333 perfect-fourth) */
  --t-xs:     0.75rem;
  --t-sm:     0.875rem;
  --t-base:   1.0625rem;          /* 17px body, comfortable on dark */
  --t-lg:     1.333rem;
  --t-xl:     1.777rem;
  --t-display: clamp(2.25rem, 4.6vw + 0.25rem, 3.75rem);

  /* Vertical rhythm — body line-height as the unit (1.65 * 17 ≈ 28px) */
  --rhythm: 28px;

  /* Spacing — 4pt scale */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-6:  24px;
  --s-8:  32px;
  --s-12: 48px;
  --s-16: 64px;
  --s-24: 96px;
  --s-32: 144px;

  /* Motion */
  --ease-out:      cubic-bezier(0.25, 1, 0.5, 1);    /* quart out */
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);   /* quint out */
  --dur-quick: 120ms;
  --dur-base:  220ms;

  /* Layout */
  --max-w:    1200px;
  --gutter:   clamp(20px, 4vw, 56px);
  --measure:  68ch;

  /* Elevation (state-only, never ambient — see DESIGN.md Flat-By-Default) */
  --focus-ring: 0 0 0 2px var(--accent);
  --glow-live:  0 0 28px 4px var(--accent-soft);
}

/* ---------------------------------------------------------------------------
   Reset / base
   --------------------------------------------------------------------------- */

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

html {
  background: var(--surface);   /* canvas; lets the z-index:-1 atmosphere layers show through a transparent body */
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;        /* matches .nav height; keeps scroll-into-view
                                      targets out from under the sticky site header */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: transparent;   /* surface lives on <html>; keeps the atmosphere layers visible */
  color: var(--text);
  font-family: "Geist", "Geist Fallback", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.65;            /* compensated for light-on-dark */
  letter-spacing: 0.005em;       /* compensated for light-on-dark */
  font-feature-settings: "ss03", "cv11";  /* Geist tabular alts */
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--accent); color: var(--surface); }

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 2px;
  transition: box-shadow var(--dur-quick) var(--ease-out);
}

code, kbd, samp, pre {
  font-family: "GeistMono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.95em;
}

/* ---------------------------------------------------------------------------
   Type roles
   --------------------------------------------------------------------------- */

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); font-weight: 500; }
h4 { font-size: var(--t-base); font-weight: 600; }

p { margin: 0; max-width: var(--measure); text-wrap: pretty; }
p + p { margin-top: var(--s-3); }

.eyebrow {
  font-family: "GeistMono", ui-monospace, monospace;
  font-size: var(--t-xs);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-cue);
}

.cue { color: var(--text-cue); }

cite {
  font-style: normal;
  font-weight: 500;
  color: var(--text);
}

/* ---------------------------------------------------------------------------
   Layout primitives
   --------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--s-16); }
.section--lead { padding-block: clamp(var(--s-12), 8vw, var(--s-32)) clamp(var(--s-12), 6vw, var(--s-24)); }
.section--tight { padding-block: var(--s-12); }
.section--end { padding-block: var(--s-12) var(--s-16); }

.divider { height: 1px; background: var(--hairline); border: 0; margin: 0; }

/* ---------------------------------------------------------------------------
   Ambient atmosphere (every page; body.has-atmos, layers in head.php)
   Static depth so the dark surfaces read as a room, not a void: a soft cool
   screen-light, a faint blueprint grid masked to the margins, and fine grain.
   No motion and no JS, so nothing to gate on prefers-reduced-motion.
   --------------------------------------------------------------------------- */
.atmos-light,
.atmos-grid,
.atmos-grain { position: fixed; inset: 0; pointer-events: none; }

.atmos-light {
  z-index: -1;
  background:
    radial-gradient(78% 48% at 72% 4%,    oklch(34% 0.035 235 / 0.30), transparent 72%),
    radial-gradient(64% 42% at 12% -4%,   oklch(28% 0.030 255 / 0.22), transparent 70%),
    radial-gradient(120% 70% at 50% 120%, oklch(22% 0.020 245 / 0.20), transparent 75%);
}
.atmos-grid {
  z-index: -1;
  background-image:
    linear-gradient(to right,  oklch(60% 0.02 240 / 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(60% 0.02 240 / 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(125% 90% at 50% 0%, transparent 30%, #000 88%);
          mask-image: radial-gradient(125% 90% at 50% 0%, transparent 30%, #000 88%);
}
.atmos-grain {
  z-index: 5;
  mix-blend-mode: soft-light;
  opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 170px 170px;
}

/* ---------------------------------------------------------------------------
   Site header / nav
   --------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);  /* solid; No-Glassmorphism Rule */
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  height: 88px;
}

/* Brand lockup: wave mark + stacked words */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 600;
}
.brand-mark-wrap {
  display: inline-block;
  width: 84px;
  height: 57px;
  flex-shrink: 0;
}
.brand-words {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
}
.brand-name {
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}
.brand-sub {
  font-family: "GeistMono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-cue);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.nav-links a {
  color: var(--text-cue);
  padding-block: 6px;
  position: relative;
  transition: color var(--dur-quick) var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]:not(.nav-buy)::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--accent);
}

/* The one accent action in the chrome: buy. Only rendered when the store
   is live (see includes/nav.php + includes/store.php). */
.nav-buy {
  color: var(--surface) !important;
  background: var(--accent);
  border-radius: 4px;
  padding: 8px 14px !important;
  font-weight: 600;
  transition: background var(--dur-quick) var(--ease-out);
}
.nav-buy:hover { background: var(--accent-deep); }
.nav-buy:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* ---------------------------------------------------------------------------
   Hero — typographic lede beside a bright product shot in a cool frame.
   (DESIGN.md: cool, dark chrome framing bright product imagery. No photo.)
   --------------------------------------------------------------------------- */

.hero {
  display: grid;
  gap: clamp(var(--s-8), 5vw, var(--s-16));
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(var(--s-12), 6vw, var(--s-24));
  }
}

.hero__lede { display: flex; flex-direction: column; gap: var(--s-6); }

/* Sized to fill the text column on two lines; the only break is the explicit <br>. */
.hero__title {
  font-size: clamp(1.6rem, 3.55vw, 2.85rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.hero__title span { white-space: nowrap; }
@media (max-width: 560px) {
  .hero__title span { white-space: normal; }   /* wrap gracefully on phones */
}
.hero__sub {
  font-size: var(--t-lg);
  line-height: 1.4;
  color: var(--text-cue);
  max-width: 38ch;
}
.hero__sub strong { color: var(--text); font-weight: 500; }

.hero__index {
  font-family: "GeistMono", ui-monospace, monospace;
  font-size: var(--t-xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-cue);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  margin-top: var(--s-3);
  font-size: var(--t-base);
}
@media (min-width: 520px) {
  .hero__ctas { flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); }
}

/* Cool frame around the bright product shot */
.hero__frame {
  background: var(--surface-lift);
  padding: clamp(10px, 1.4vw, 16px);
  border: 1px solid var(--hairline);
  border-radius: 2px;
}
.hero__photo {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface);
}

/* ---------------------------------------------------------------------------
   Buttons & inline link affordances
   --------------------------------------------------------------------------- */

.cta-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline);
  transition: color var(--dur-quick) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.cta-text::after {
  content: "→";
  font-family: "GeistMono", monospace;
  color: var(--text-cue);
  transition: color var(--dur-quick) var(--ease-out), transform var(--dur-base) var(--ease-out-soft);
}
.cta-text:hover { color: var(--accent); border-color: var(--accent); }
.cta-text:hover::after { color: var(--accent); transform: translateX(2px); }

/* Primary accent button — the buy action made literal (hero + plate echo it). */
.cta-buy {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--accent);
  color: var(--surface);
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-quick) var(--ease-out);
}
.cta-buy::after {
  content: "→";
  font-family: "GeistMono", ui-monospace, monospace;
  font-weight: 400;
  transition: transform var(--dur-base) var(--ease-out-soft);
}
.cta-buy:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.cta-buy:hover::after { transform: translateX(3px); }
.cta-buy:active { transform: translateY(1px); }
.cta-buy:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--s-2);
  font-size: var(--t-sm);
  color: var(--text);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 4px;
  align-self: flex-start;
  transition: color var(--dur-quick) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.section-link::after {
  content: "→";
  color: var(--text-cue);
  transition: color var(--dur-quick) var(--ease-out), transform var(--dur-base) var(--ease-out-soft);
}
.section-link:hover { color: var(--accent); border-color: var(--accent); }
.section-link:hover::after { color: var(--accent); transform: translateX(2px); }

/* ---------------------------------------------------------------------------
   Status badge (Available / Coming soon / spec tags)
   --------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "GeistMono", monospace;
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-cue);
  border: 1px solid var(--hairline);
  padding: 4px 8px;
  border-radius: 2px;
  width: max-content;
}
.badge--live {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------------------------------------------------------------------------
   Section header with oversized number
   --------------------------------------------------------------------------- */

.section-head--major {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: var(--s-4);
  padding-block: var(--s-3) var(--s-6);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--s-12);
}
.section-num {
  font-family: "GeistMono", ui-monospace, monospace;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 0.85;
  color: var(--text);
  letter-spacing: -0.04em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
}
.section-num__slash { color: var(--text-cue); font-weight: 400; }
.section-head__label {
  font-family: "GeistMono", ui-monospace, monospace;
  font-size: var(--t-xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-cue);
  align-self: center;
  padding-bottom: 6px;
}
.section-head__cta { padding-bottom: 6px; }
.section-head__cta .section-link { margin: 0; }

@media (max-width: 759px) {
  .section-head--major {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: var(--s-3) var(--s-4);
  }
  .section-head__cta { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------------------
   Page lede (product + legal pages)
   --------------------------------------------------------------------------- */

.page-title {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: var(--s-3) 0 var(--s-6) 0;
}
.page-deck {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  max-width: 60ch;
}

/* ---------------------------------------------------------------------------
   Product lineup — numbered listing (the storefront shelf), not a card grid
   --------------------------------------------------------------------------- */

.software-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hairline);
}
.tool-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-2) var(--s-6);
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: background var(--dur-base) var(--ease-out);
}
.tool-row--soon { opacity: 0.72; }
.tool-row__num {
  font-family: "GeistMono", monospace;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  color: var(--text-cue);
}
.tool-row__name {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.05;
}
.tool-row__desc {
  color: var(--text-cue);
  font-size: var(--t-base);
  max-width: 56ch;
  margin: 0;
}
.tool-row__meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-2);
}
.tool-row__price {
  font-family: "GeistMono", ui-monospace, monospace;
  font-size: var(--t-sm);
  letter-spacing: 0.04em;
  color: var(--text);
}
.tool-row__price .cue { color: var(--text-cue); }
@media (min-width: 760px) {
  .tool-row {
    grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1.4fr);
    align-items: baseline;
    padding-block: var(--s-8);
  }
  .tool-row__meta { justify-content: flex-end; }
}
.tool-row .badge { background: transparent; }
.tool-row .tool-detail__path { margin-left: var(--s-2); }

/* ---------------------------------------------------------------------------
   Trust row — plain honest commerce facts, not feature cards
   --------------------------------------------------------------------------- */

.trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}
@media (min-width: 640px) {
  .trust { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .trust { grid-template-columns: repeat(3, 1fr); }
}
.trust li {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-6) var(--s-6) var(--s-6) 0;
  border-bottom: 1px solid var(--hairline);
}
.trust__term {
  font-family: "GeistMono", ui-monospace, monospace;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.trust__desc { font-size: var(--t-sm); color: var(--text-cue); max-width: 40ch; }

/* ---------------------------------------------------------------------------
   Featured tool detail (AAF Look product page)
   --------------------------------------------------------------------------- */

.tool-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  padding-block: var(--s-6) 0;
}
@media (min-width: 760px) {
  .tool-detail {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: var(--s-12);
    padding-block: var(--s-8) 0;
  }
}
.tool-detail__head { display: flex; flex-direction: column; gap: var(--s-3); }
.tool-detail__status { display: flex; align-items: center; gap: var(--s-3); margin: 0; flex-wrap: wrap; }
.tool-detail__path {
  font-family: "GeistMono", monospace;
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  color: var(--text-cue);
}
.tool-detail__name {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.0;
  margin: 0;
}
.tool-detail__tag { font-size: var(--t-lg); color: var(--text-cue); margin: 0; max-width: 28ch; }
.tool-detail__body p { max-width: 60ch; }
.tool-detail__body p + p { margin-top: var(--s-3); }
.tool-detail__bullets {
  list-style: none;
  margin: var(--s-6) 0 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: var(--t-sm);
  color: var(--text-cue);
  border-top: 1px solid var(--hairline);
  padding-top: var(--s-4);
}
.tool-detail__bullets li { display: flex; align-items: baseline; gap: var(--s-3); }
.tool-detail__bullets li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--text-cue);
  flex: 0 0 auto;
  margin-top: 0.5em;
}
.tool-detail__cta { margin-top: var(--s-4); }
.tool-detail__cta .cta-text[data-pending="true"] {
  color: var(--text-cue);
  pointer-events: none;
  border-color: var(--hairline);
}
.tool-detail__cta .cta-text[data-pending="true"]::after { color: var(--text-cue); }
@media (min-width: 760px) {
  .tool-detail__cta { grid-column: 2; }
}

/* Bottom note below a list/section */
.software__note { margin-top: var(--s-8); font-size: var(--t-sm); }
.software__note a {
  color: var(--text);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  transition: color var(--dur-quick) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.software__note a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------------------------------------------------------------------
   AAF Look product page: demo, spec strip, app shot, paper, plate, buy form
   --------------------------------------------------------------------------- */

/* Pricing-forward lead: intro on the left, the price/buy plate on the right. */
.buy-lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(var(--s-8), 5vw, var(--s-12));
  align-items: start;
}
@media (min-width: 880px) {
  .buy-lead {
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr);
    gap: clamp(var(--s-12), 6vw, var(--s-24));
    align-items: center;
  }
}
.buy-lead__assure { margin-top: var(--s-6); font-size: var(--t-sm); max-width: 46ch; }
.buy-lead__assure a {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  transition: color var(--dur-quick) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.buy-lead__assure a:hover { color: var(--accent); border-color: var(--accent); }
/* The lead plate carries the price; give it a touch more presence than inline plates. */
.buy-lead__rail .plate { padding: var(--s-8); }

/* QuickLook marquee lead-in (the calling-card statement above the demo) */
.ql-lead {
  max-width: 60ch;
  margin: 0 auto var(--s-8);
  text-align: center;
  font-size: clamp(1.0625rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--text);
}

/* QuickLook demo (video when present, still otherwise) */
.demo-video { margin: var(--s-4) 0 0; }
.demo-video video,
.demo-video img {
  display: block;
  width: 100%;
  max-width: 880px;
  height: auto;
  margin-inline: auto;
}
.demo__caption { max-width: 60ch; margin: var(--s-6) auto 0; text-align: center; }

/* Mono spec strip */
.specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-4) var(--s-12);
  margin: var(--s-8) 0 0;
  padding: var(--s-4) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-family: "GeistMono", ui-monospace, monospace;
  font-size: var(--t-sm);
}
.specs li { display: flex; align-items: baseline; gap: var(--s-3); }
.specs__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-cue);
}

/* Full app shot (window is print-width, so cap and center it) */
.app-shot { margin: var(--s-6) 0 0; }
.app-shot img { display: block; width: 100%; max-width: 720px; height: auto; margin-inline: auto; }
.app-shot figcaption { max-width: 60ch; margin: var(--s-4) auto 0; font-size: var(--t-sm); text-align: center; }

/* Print section: the white sheet */
.print-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  align-items: start;
  padding-top: var(--s-6);
}
@media (min-width: 760px) {
  .print-pair { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--s-12); }
}
.paper {
  aspect-ratio: 8.5 / 11;
  background-color: #fff;
  background-image: url("/images/aaflook/paper.webp");
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: 50% 0;
  border: 1px solid var(--hairline);
}
.print-pair__body p + p { margin-top: var(--s-3); }

/* Spec list (used inside the pricing plate) */
.spec__list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--s-3) var(--s-4);
  align-items: baseline;
  margin: 0;
  font-size: var(--t-sm);
  line-height: 1.35;
}
.spec__list dt {
  font-family: "GeistMono", monospace;
  font-size: var(--t-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-cue);
  position: relative;
  top: 0.05em;
}
.spec__list dd { margin: 0; color: var(--text); }

/* Pricing plate */
.plate {
  border: 1px solid var(--hairline);
  background: var(--surface-lift);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.plate__head { display: flex; align-items: center; gap: var(--s-3); }
.plate__icon { width: 48px; height: 48px; }
.plate__product { margin: 0; font-weight: 600; }
.plate__price {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
}
.plate__terms {
  font-family: "GeistMono", ui-monospace, monospace;
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-cue);
}
.plate__list { margin: 0; }
.plate__cta { margin: var(--s-2) 0 0; }
.plate__legal { font-size: var(--t-xs); margin: 0; }
.plate__legal a {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  transition: color var(--dur-quick) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.plate__legal a:hover { color: var(--accent); border-color: var(--accent); }

/* Buy form: the required license-name field + checkout button. The name is
   passed to Paddle as custom_data and becomes the app's "Licensed to" line. */
.buy { display: grid; gap: var(--s-2); margin: var(--s-2) 0 0; }
.buy__label { font-size: var(--t-xs); text-transform: uppercase; letter-spacing: 0.08em; }
.buy__input {
  font: inherit;
  font-size: var(--t-sm);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 10px 12px;
  width: 100%;
}
.buy__input::placeholder { color: var(--text-cue); opacity: 0.6; }
.buy__input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.buy__hint { font-size: var(--t-xs); margin: 0; }
.buy__error { font-size: var(--t-xs); margin: 0; color: oklch(70% 0.16 25); }
.buy__button {
  font: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--surface);
  background: var(--accent);
  border: none;
  border-radius: 4px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--dur-quick) var(--ease-out);
}
.buy__button:hover { background: var(--accent-deep); }
.buy__button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.buy__done { font-size: var(--t-sm); margin: 0; }

/* ---------------------------------------------------------------------------
   Legal pages (/terms, /privacy, /refunds) + product Q&A (/aaflook)
   --------------------------------------------------------------------------- */

.legal { max-width: var(--measure); }
.legal h2 { font-size: var(--t-lg); font-weight: 600; margin: var(--s-12) 0 var(--s-3); }
.legal h2:first-child { margin-top: 0; }
.legal ul { list-style: disc; margin: var(--s-3) 0 0 0; padding-left: 1.25em; max-width: var(--measure); }
.legal li { margin-top: var(--s-2); }
.legal li::marker { color: var(--text-cue); }
.legal a,
.qa a {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  transition: color var(--dur-quick) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.legal a:hover,
.qa a:hover { color: var(--accent); border-color: var(--accent); }

.qa {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  padding-top: var(--s-6);
  max-width: var(--measure);
}
.qa__q { font-size: var(--t-base); font-weight: 600; margin: 0 0 var(--s-2); }
.qa__a { color: var(--text-cue); }

/* ---------------------------------------------------------------------------
   Help / FAQ page
   --------------------------------------------------------------------------- */

.help { max-width: var(--measure); }
.help h2 {
  font-size: var(--t-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: var(--s-16) 0 var(--s-4);
  padding-top: var(--s-6);
  border-top: 1px solid var(--hairline);
}
.help h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.help h3 { font-size: var(--t-base); font-weight: 600; margin: var(--s-6) 0 var(--s-2); }
.help p { margin-top: var(--s-3); }
.help ul, .help ol { margin: var(--s-3) 0 0 0; padding-left: 1.4em; max-width: var(--measure); }
.help ul { list-style: disc; }
.help ol { list-style: decimal; }
.help li { margin-top: var(--s-2); }
.help li::marker { color: var(--text-cue); }
.help code {
  background: var(--surface-lift);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 0.1em 0.4em;
}
.help kbd {
  font-family: "GeistMono", ui-monospace, monospace;
  font-size: 0.9em;
  background: var(--surface-lift);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 0.1em 0.45em;
  white-space: nowrap;
}
.help a {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  transition: color var(--dur-quick) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.help a:hover { color: var(--accent); border-color: var(--accent); }

/* FAQ accordion — native <details>/<summary>, no JS. */
.faq { margin-top: var(--s-4); border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__item summary {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  cursor: pointer;
  list-style: none;
  padding: var(--s-4) 0;
  font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "+";
  font-family: "GeistMono", ui-monospace, monospace;
  color: var(--text-cue);
  flex: none;
}
.faq__item[open] summary::before { content: "\2013"; color: var(--accent); }
.faq__item summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 2px; }
.faq__answer { padding: 0 0 var(--s-4) calc(var(--s-3) + 1ch); color: var(--text-cue); }
.faq__answer p { margin: 0; }
.faq__answer p + p { margin-top: var(--s-3); }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  position: relative;
  overflow: hidden;
  font-size: var(--t-sm);
  color: var(--text-cue);
}
.site-footer__inner { position: relative; padding-block: var(--s-12) var(--s-8); }
.site-footer__signature {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 30vw, 360px);
  height: clamp(150px, 20vw, 240px);
  pointer-events: none;
  opacity: 0.22;
  z-index: 0;
}
.site-footer__cols {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  align-items: start;
}
@media (min-width: 760px) {
  .site-footer__cols { grid-template-columns: 1.4fr 1.4fr 1fr; gap: var(--s-12); }
}
.site-footer__name {
  font-size: var(--t-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 4px 0;
}
.site-footer__where { color: var(--text-cue); margin: 0; font-size: var(--t-sm); }
.site-footer__year  { color: var(--text-cue); margin: var(--s-3) 0 0 0; font-size: var(--t-sm); font-family: "GeistMono", monospace; letter-spacing: 0.06em; }
.site-footer__legal { color: var(--text-cue); margin: var(--s-2) 0 0 0; font-size: var(--t-sm); }
.site-footer__legal a,
.site-footer__contact a,
.site-footer__nav a {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 1px;
  transition: color var(--dur-quick) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.site-footer__legal a:hover,
.site-footer__contact a:hover,
.site-footer__nav a:hover { color: var(--accent); border-color: var(--accent); }
.site-footer__contact ul,
.site-footer__nav ul {
  list-style: none; padding: 0; margin: var(--s-3) 0 0 0;
  display: flex; flex-direction: column; gap: 6px;
  font-size: var(--t-sm);
}
.site-footer__contact .cue {
  font-family: "GeistMono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-block;
  width: 64px;
}

/* ---------------------------------------------------------------------------
   Logo mark theming (wave mark, themable via CSS)
   --------------------------------------------------------------------------- */

.psp-mark { display: block; width: 100%; height: 100%; }
.psp-mark__frame { fill: var(--text); }
.psp-mark__perf  { fill: var(--surface); }
.psp-mark__wave  { stroke: var(--surface); }
.psp-mark--nav .psp-mark__frame { fill: var(--text); }
.psp-mark--nav .psp-mark__perf  { fill: var(--surface); }
.psp-mark--nav .psp-mark__wave  { stroke: var(--surface); }
.psp-mark--ghost .psp-mark__frame { fill: var(--surface-lift); }
.psp-mark--ghost .psp-mark__perf  { fill: var(--surface); }
.psp-mark--ghost .psp-mark__wave  { stroke: var(--surface); }

/* ---------------------------------------------------------------------------
   Accessibility helpers
   --------------------------------------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface-lift);
  color: var(--text);
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--accent);
  z-index: 100;
}
.skip:focus { left: var(--gutter); top: 8px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------------
   Reduced motion — global override
   --------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------------------
   Narrow-viewport nav overrides — after base nav rules so they win on mobile.
   --------------------------------------------------------------------------- */

@media (max-width: 519px) {
  .brand { font-size: var(--t-sm); }
  .brand-mark-wrap { width: 64px; height: 43px; }
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-3);
    height: auto;
    padding-block: var(--s-3);
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: var(--s-2) var(--s-4);
    letter-spacing: 0.08em;
  }
  .nav-links a { padding-block: 4px; }
  .site-header .container { padding-inline: var(--s-4); }
}
