/* ==========================================================================
   PackPilot — website design tokens + stylesheet
   Phase-1 redesign palette (PackPilot_Claude_Code_Website_Redesign_Brief.md).

   Token contract: every colour/space/radius/shadow/type value the markup
   consumes is defined here. No component below should carry a raw hex or a
   magic px that belongs to the system. If a value needs to change site-wide,
   change the token, not the component.

   WCAG 2.2 AA contrast — validated text/background pairs (light theme):
     ink        #1B2030 on bone/surface .......... ~14.6:1  AA/AAA
     ink-2      #3E465D on surface ................ ~8.9:1   AA (body text ok)
     ink-3      #5C6478 on surface ................ ~5.6:1   AA (secondary text)
     ink-4      #7A8195 (decorative/disabled only — NOT for body text)
     clay-deep  #96501F on bone .................. ~5.0:1   AA (links, accent text)
     sage-deep  #2E7D51 on bone .................. ~4.6:1   AA (positive text)
     warn-deep  #7A5A12 on warn-tint ............. ~5.7:1   AA (warning text)
   Base brand/sage/warning hues (clay #C8793D, sage #5CA778, warning #C79735)
   are used for fills, borders, icons and large non-text accents ONLY —
   each is < 4.5:1 on bone, so a *-deep variant carries any real text.
   ========================================================================== */

:root {
  /* Brand · clay/amber (brief: Clay #C8793D, Clay-deep #96501F) */
  --pp-brand:        #c8793d;   /* fills, icons, large accents (non-text) */
  --pp-brand-deep:   #96501f;   /* links + accent TEXT — AA on bone */
  --pp-brand-ink:    #5a3414;   /* accent text on tint blocks */
  --pp-brand-tint:   #f3ece0;
  --pp-brand-tint-2: #eaddca;

  /* Spatial · AR / capture accent */
  --pp-spatial:      #4b96d6;
  --pp-spatial-deep: #235f92;   /* darkened for AA text on spatial tint */
  --pp-spatial-tint: #e5eff8;

  /* Surfaces (brief: Bone #F5F1E9, Surface #FBFAF7, Line #D9D4CA) */
  --pp-bone:      #f5f1e9;
  --pp-surface:   #fbfaf7;
  --pp-surface-2: #efeadf;
  --pp-line:      #d9d4ca;
  --pp-line-2:    #c7c1b4;

  /* Ink (brief: Ink #1B2030, Ink-2 #3E465D) */
  --pp-ink:   #1b2030;
  --pp-ink-2: #3e465d;
  --pp-ink-3: #5c6478;   /* AA secondary text on surface (~5.6:1) */
  --pp-ink-4: #7a8195;   /* decorative / disabled only — never body text */

  /* Semantic (brief: Sage #5CA778, Warning #C79735) */
  --pp-success:      #5ca778;   /* fills / borders / large accents */
  --pp-success-deep: #2e7d51;   /* positive TEXT — AA on bone (~4.6:1) */
  --pp-success-tint: #e7f2ea;
  --pp-warning:      #c79735;   /* fills / borders / icons */
  --pp-warning-deep: #7a5a12;   /* warning TEXT — AA on warning tint */
  --pp-warning-tint: #f7efdc;
  --pp-error:        #b8503b;
  --pp-error-deep:   #9a3f2d;
  --pp-error-tint:   #f6e2dc;

  /* On-dark text tokens (over --pp-ink surfaces) — keep AA on #1B2030 */
  --pp-on-dark:      #f5f1e9;               /* ~15:1 on ink */
  --pp-on-dark-2:    rgba(245, 241, 233, 0.88); /* body on dark (~11:1) */
  --pp-on-dark-3:    rgba(245, 241, 233, 0.66); /* muted on dark (~5:1) */

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* Spacing scale (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;

  /* Motion */
  --ease-snap:    cubic-bezier(0.32, 0.72, 0, 1);
  --dur-confirm:  220ms;
  --dur-swap:     180ms;

  /* Type families */
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
             "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco,
               "Cascadia Mono", Consolas, monospace;

  /* Type scale (fluid where it matters; fixed otherwise) */
  --fs-eyebrow: 11px;
  --fs-sm:   0.82rem;
  --fs-body: 1rem;
  --fs-lede: clamp(1.05rem, 1rem + 0.35vw, 1.28rem);
  --fs-h4:   1rem;
  --fs-h3:   1.2rem;
  --fs-h2:   clamp(1.65rem, 1.25rem + 1.7vw, 2.35rem);
  --fs-h1:   clamp(2.25rem, 1.4rem + 3.6vw, 3.9rem);

  /* Layout */
  --wrap: 1120px;
  --gutter: 24px;

  /* Z-index scale */
  --z-base: 0;
  --z-header: 50;
  --z-skip: 100;
  --z-overlay: 200;

  /* Elevation — soft, warm, editorial lift */
  --lift-card: 0 1px 2px rgba(27, 32, 48, 0.04), 0 8px 24px rgba(27, 32, 48, 0.05);
  --lift-hero: 0 2px 4px rgba(27, 32, 48, 0.06), 0 24px 56px rgba(27, 32, 48, 0.12);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pp-brand:        #d58a50;
    --pp-brand-deep:   #e0a066;   /* accent text on dark — AA on dark bone */
    --pp-brand-ink:    #e8c9a8;
    --pp-brand-tint:   #2c2620;
    --pp-brand-tint-2: #3d332a;

    --pp-spatial:      #6bb0e6;
    --pp-spatial-deep: #8cc4ef;
    --pp-spatial-tint: #1f2a38;

    --pp-bone:      #14161c;
    --pp-surface:   #1c1f26;
    --pp-surface-2: #25282f;
    --pp-line:      #2e3138;
    --pp-line-2:    #3a3d44;

    --pp-ink:   #f5f1e9;
    --pp-ink-2: #cbc8c1;
    --pp-ink-3: #a4a19b;   /* AA on dark surface */
    --pp-ink-4: #74726d;

    --pp-success:      #7ec795;
    --pp-success-deep: #8fd4a5;
    --pp-success-tint: #1e2a22;
    --pp-warning:      #e9bc62;
    --pp-warning-deep: #edc879;
    --pp-warning-tint: #2e2718;
    --pp-error:        #e37d6a;
    --pp-error-deep:   #ea8f7e;
    --pp-error-tint:   #2e1d18;

    --pp-on-dark:   #f5f1e9;
    --pp-on-dark-2: rgba(245, 241, 233, 0.88);
    --pp-on-dark-3: rgba(245, 241, 233, 0.62);

    --lift-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    --lift-hero: 0 2px 4px rgba(0, 0, 0, 0.5), 0 24px 56px rgba(0, 0, 0, 0.45);
  }
}

/* --------------------------------------------------------------- reset ---- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--pp-bone);
  color: var(--pp-ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--pp-brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 2.5px solid var(--pp-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

hr {
  border: 0;
  border-top: 1px solid var(--pp-line);
  margin: 40px 0;
}

/* ---------------------------------------------------------- typography ---- */

h1, h2, h3, h4 { margin: 0 0 0.5em; letter-spacing: -0.021em; line-height: 1.1; }

h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.012em; }
h4 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -0.008em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Eyebrow — mirrors EyebrowStyle: 11px mono semibold, tracking 0.6, uppercase */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--pp-ink-3);
  margin: 0 0 10px;
  display: block;
}
.eyebrow--brand { color: var(--pp-brand-deep); }
.eyebrow--on-dark { color: var(--pp-on-dark-3); }

/* Measurements always use tabular mono figures, like Font.ppMeasure */
.measure, .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: var(--pp-ink-2);
  max-width: 62ch;
}

.muted { color: var(--pp-ink-3); }
.small { font-size: 0.82rem; line-height: 1.5; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* -------------------------------------------------------------- layout ---- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 760px; }

section { padding-block: clamp(56px, 7vw, 104px); }
section.tight { padding-block: clamp(36px, 4.5vw, 64px); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--pp-ink);
  color: var(--pp-bone);
  padding: 10px 16px;
  border-radius: var(--r-xs);
  z-index: var(--z-skip);
}
.skip-link:focus { left: 16px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--pp-bone) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--pp-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 62px;
}

/* Wordmark — viewfinder glyph in Brand + bold text, per PackPilotWordmark */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--pp-ink);
  text-decoration: none;
  flex: 0 0 auto;
}
.wordmark:hover { text-decoration: none; }
.wordmark svg { width: 24px; height: 24px; color: var(--pp-brand); }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: var(--pp-ink-2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--r-xs);
  transition: background var(--dur-swap) linear, color var(--dur-swap) linear;
}
.nav a:hover { background: var(--pp-surface-2); color: var(--pp-ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--pp-brand-deep); background: var(--pp-brand-tint); }
.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-radius: var(--r-xs);
  padding: 8px 12px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pp-ink);
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    inset: 62px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--pp-surface);
    border-bottom: 1px solid var(--pp-line);
    padding: 12px var(--gutter) 18px;
    box-shadow: var(--lift-card);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.006em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur-swap) var(--ease-snap),
              background var(--dur-swap) linear,
              border-color var(--dur-swap) linear;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.975); }

.btn--primary { background: var(--pp-ink); color: var(--pp-bone); }
.btn--primary:hover { background: var(--pp-ink-2); }

.btn--brand { background: var(--pp-brand); color: #fff; }
.btn--brand:hover { background: var(--pp-brand-deep); }

.btn--ghost {
  background: var(--pp-surface);
  color: var(--pp-ink);
  border-color: var(--pp-line-2);
}
.btn--ghost:hover { background: var(--pp-surface-2); }

.btn--on-dark {
  background: rgba(245, 241, 233, 0.1);
  color: var(--pp-on-dark);
  border-color: rgba(245, 241, 233, 0.28);
}
.btn--on-dark:hover { background: rgba(245, 241, 233, 0.18); }

.btn--sm { padding: 9px 16px; font-size: 0.85rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.center .btn-row { justify-content: center; }

/* Store button — placeholder until the App Store listing is live.
   Swap for Apple's official badge (Apple marketing resources) at launch. */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 12px;
  background: var(--pp-ink);
  color: var(--pp-bone);
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: transform var(--dur-swap) var(--ease-snap), background var(--dur-swap) linear;
}
.store-btn:hover { background: var(--pp-ink-2); text-decoration: none; }
.store-btn:active { transform: scale(0.98); }
.store-btn svg { width: 24px; height: 24px; flex: 0 0 auto; }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.store-btn__top {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  opacity: 0.6;
}
.store-btn__main { font-size: 1.03rem; font-weight: 600; letter-spacing: -0.012em; }
.store-btn--dark-on-dark { background: var(--pp-bone); color: var(--pp-ink); }
.store-btn--dark-on-dark:hover { background: #fff; }

/* Pre-link state for the TestFlight join button on /beta — reads as "not yet"
   rather than as a live button. MUST stay after the .store-btn rules above:
   same specificity, so source order decides the winner.
   Delete this class from the <a> (and paste the real join URL into its href)
   the moment App Store Connect gives you a public link. */
.store-btn--pending {
  background: var(--pp-surface-2);
  color: var(--pp-ink-3);
  border-color: var(--pp-line-2);
  cursor: default;
  pointer-events: none;
}
.store-btn--pending:hover { background: var(--pp-surface-2); }
.store-btn--pending:active { transform: none; }
.store-btn--pending .store-btn__top { opacity: 0.9; color: var(--pp-brand-deep); }

/* Apple's official "Download on the App Store" badge.
   Artwork in assets/img/app-store-badge*.svg comes from Apple's Marketing
   Tools API — do not redraw or restyle it. Apple's guidelines require the
   badge keep its aspect ratio and a clear space around it of at least 10%
   of its height, and it must not be shorter than 40px tall.
   Used by the <!-- LAUNCH SWAP --> blocks in index.html. */
.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  transition: transform var(--dur-swap) var(--ease-snap), opacity var(--dur-swap) linear;
}
.store-badge:hover { opacity: 0.85; text-decoration: none; }
.store-badge:active { transform: scale(0.98); }
.store-badge img {
  height: 52px;
  width: auto;
  max-width: none;
}
/* The dark CTA panel needs the white variant; the light hero needs black. */
.store-badge--light { display: inline-block; }
.store-badge--dark { display: none; }
.cta .store-badge--light, .card--ink .store-badge--light { display: none; }
.cta .store-badge--dark,  .card--ink .store-badge--dark  { display: inline-block; }
@media (prefers-color-scheme: dark) {
  .hero .store-badge--light { display: none; }
  .hero .store-badge--dark  { display: inline-block; }
}

/* Circular arrow affordance — the app's hero button */
.arrow-dot {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--pp-brand);
  color: var(--pp-ink);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
}
.arrow-dot--sm { width: 36px; height: 36px; font-size: 0.95rem; }

/* --------------------------------------------------------------- cards ---- */

.card {
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-radius: var(--r-md);
  padding: 22px;
}
.card--lg { border-radius: var(--r-lg); padding: 26px; }
.card--lift { box-shadow: var(--lift-card); }
.card--tint {
  background: var(--pp-brand-tint);
  border-color: color-mix(in srgb, var(--pp-brand) 25%, transparent);
}
.card--ink {
  background: var(--pp-ink);
  border-color: transparent;
  border-radius: var(--r-xl);
  color: var(--pp-on-dark);
}

/* Vertical list of shrink-to-fit chips (privacy claims panel).
   These are long enough to overflow a narrow phone, so they wrap
   rather than inheriting .chip's nowrap. */
.chip-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.chip-stack .chip {
  white-space: normal;
  max-width: 100%;
}

.card h3 { margin-bottom: 6px; }
.card p { color: var(--pp-ink-3); font-size: 0.94rem; }

/* Dark-card overrides MUST come after the generic .card rules above — they are
   the same specificity (one class + one element), so source order decides.
   Placed earlier, .card p wins and puts --pp-ink-3 on near-black: 3.35:1,
   below the WCAG AA 4.5:1 floor for body text. */
.card--ink h2, .card--ink h3 { color: var(--pp-on-dark); text-wrap: balance; }
.card--ink p { color: var(--pp-on-dark-2); }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); }
/* Exactly two columns when there's room — for even-numbered sets that would
   otherwise leave an orphan on the last row under auto-fit. */
.grid--2up { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) {
  .grid--2up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Icon tile — the app's rounded-square glyph container */
.tile {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--pp-brand-tint);
  color: var(--pp-brand-deep);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.tile svg { width: 22px; height: 22px; }
.tile--spatial { background: var(--pp-spatial-tint); color: var(--pp-spatial-deep); }
.tile--success { background: var(--pp-success-tint); color: var(--pp-success); }
.tile--round { border-radius: 999px; }

/* --------------------------------------------------------------- chips ---- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-xs);
  background: var(--pp-surface-2);
  border: 1px solid var(--pp-line);
  color: var(--pp-ink-2);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}
.chip--brand {
  background: var(--pp-brand-tint);
  border-color: color-mix(in srgb, var(--pp-brand) 25%, transparent);
  color: var(--pp-brand-deep);
}
.chip--success {
  background: var(--pp-success-tint);
  border-color: color-mix(in srgb, var(--pp-success) 45%, transparent);
  color: var(--pp-success-deep);
}
.chip--spatial {
  background: var(--pp-spatial-tint);
  border-color: color-mix(in srgb, var(--pp-spatial) 30%, transparent);
  color: var(--pp-spatial-deep);
}
.chip--pro {
  background: var(--pp-ink);
  border-color: var(--pp-ink);
  color: var(--pp-brand);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

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

.hero {
  padding-block: clamp(44px, 5.5vw, 84px) clamp(24px, 3vw, 48px);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.hero h1 { margin-bottom: 18px; text-wrap: balance; }
.hero h1 em {
  font-style: normal;
  color: var(--pp-brand-deep);
}
.hero .btn-row { margin-top: 28px; }
.hero__note { margin-top: 16px; font-size: 0.82rem; color: var(--pp-ink-3); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
}

/* Overlapping device pair */
.device-pair {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-block: 8px 24px;
}
.device-pair .device { margin: 0; position: relative; width: min(52%, 250px); }
.device-pair .device:first-child {
  transform: translateX(9%) rotate(-2.4deg);
  z-index: 2;
}
.device-pair .device:last-child {
  transform: translateX(-9%) rotate(2.4deg);
  z-index: 1;
}

/* Device frame — iPhone-ish bezel so screenshots read as screens */
.device {
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(165deg, #3c4152, #191c26 55%, #2a2e3b);
  box-shadow: var(--lift-hero);
}
.device img {
  display: block;
  width: 100%;
  border-radius: 34px;
  background: var(--pp-bone);
}
.device--sm { max-width: 232px; border-radius: 34px; padding: 7px; }
.device--sm img { border-radius: 28px; }

/* -------------------------------------------------------- stat strip ---- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--pp-line);
  border: 1px solid var(--pp-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat { background: var(--pp-surface); padding: 20px 22px; }
.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--pp-ink);
  line-height: 1.15;
}
.stat__label {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--pp-ink-3);
  line-height: 1.4;
}

/* ------------------------------------------------------------- steps ---- */

.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-radius: var(--r-lg);
  padding: 22px;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pp-brand-deep);
  background: var(--pp-brand-tint);
  border-radius: 999px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--pp-ink-3); font-size: 0.96rem; max-width: 68ch; }
.step .chip-row { margin-top: 12px; }

/* -------------------------------------------------- feature split rows ---- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
}
.split--flip .split__art { order: -1; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__art { order: 0; }
}

/* ------------------------------------------------------------ AR panel ---- */

/* Illustration of the AR Placement Guide (not a screenshot — the simulator
   has no camera). Uses Success green for the container wireframe and Brand
   for the item ghost, matching PlacementGuideARView. */
.ar-figure {
  background: linear-gradient(170deg, #2b3140, #171a23);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--lift-hero);
}
.ar-figure svg { width: 100%; height: auto; border-radius: var(--r-md); }
.ar-figure figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--pp-on-dark-3);
}

/* --------------------------------------------------------- comparison ---- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--pp-line);
  border-radius: var(--r-lg);
  background: var(--pp-surface);
}
table.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.94rem;
}
table.compare th, table.compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--pp-line);
  vertical-align: top;
}
table.compare thead th {
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--pp-ink-3);
  background: var(--pp-surface-2);
  white-space: nowrap;
}
table.compare tbody th { font-weight: 500; color: var(--pp-ink); width: 44%; }
table.compare td { color: var(--pp-ink-2); }
table.compare col.col-pro { background: var(--pp-brand-tint); }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--pp-success-deep); font-weight: 600; }
.no  { color: var(--pp-ink-3); }

.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 8px;
}
.price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* --------------------------------------------------------- screenshots ---- */

.shots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 6px 0 22px;
  scrollbar-width: thin;
}
.shots > figure {
  flex: 0 0 auto;
  width: min(64vw, 250px);
  margin: 0;
  scroll-snap-align: center;
}
.shots figcaption {
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--pp-ink-3);
  text-align: center;
  line-height: 1.45;
}
.shots figcaption strong { display: block; color: var(--pp-ink); font-weight: 600; }

/* ---------------------------------------------------------------- FAQ ---- */

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-radius: var(--r-md);
  padding: 0 20px;
}
.faq details[open] { border-color: var(--pp-line-2); }
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.008em;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--pp-brand-deep);
  transition: transform var(--dur-confirm) var(--ease-snap);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > *:not(summary) { margin-bottom: 18px; }
.faq details p { color: var(--pp-ink-2); font-size: 0.95rem; }

/* ------------------------------------------------------------- prose ---- */

.prose { max-width: 72ch; }
.prose h2 { margin-top: 2em; font-size: 1.5rem; }
.prose h2:first-of-type { margin-top: 1.2em; }
.prose h3 { margin-top: 1.8em; font-size: 1.1rem; }
.prose p, .prose li { color: var(--pp-ink-2); }
.prose ul, .prose ol { padding-left: 1.35em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--pp-brand); }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--pp-surface-2);
  border: 1px solid var(--pp-line);
  border-radius: 6px;
  padding: 1px 6px;
}
.prose blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  background: var(--pp-brand-tint);
  border-left: 3px solid var(--pp-brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.prose blockquote p { color: var(--pp-brand-ink); }

.page-head {
  padding-block: clamp(40px, 5vw, 72px) clamp(20px, 2.5vw, 32px);
  border-bottom: 1px solid var(--pp-line);
}
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); margin-bottom: 12px; }
.updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--pp-ink-3);
  font-variant-numeric: tabular-nums;
}

.callout {
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-left: 3px solid var(--pp-spatial);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 20px;
  margin: 1.6em 0;
}
.callout--warning { border-left-color: var(--pp-warning); background: var(--pp-warning-tint); }
.callout--brand { border-left-color: var(--pp-brand); background: var(--pp-brand-tint); }
.callout p { color: var(--pp-ink-2); font-size: 0.95rem; }
.callout p:first-child { margin-top: 0; }

.toc {
  background: var(--pp-surface-2);
  border: 1px solid var(--pp-line);
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin-bottom: 2.4em;
}
.toc .eyebrow { margin-bottom: 8px; }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 28px; }
@media (max-width: 620px) { .toc ul { columns: 1; } }
.toc li { margin-bottom: 6px; font-size: 0.92rem; }

/* --------------------------------------------------------------- CTA ---- */

.cta {
  background: var(--pp-ink);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 58px);
  color: var(--pp-bone);
  text-align: center;
}
.cta h2 { color: var(--pp-on-dark); text-wrap: balance; }
.cta p { color: var(--pp-on-dark-2); max-width: 54ch; margin-inline: auto; }
.cta .btn-row { margin-top: 26px; justify-content: center; }
.cta__note { margin-top: 18px; font-size: 0.8rem; color: var(--pp-on-dark-3); }

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

.site-footer {
  border-top: 1px solid var(--pp-line);
  background: var(--pp-surface-2);
  padding-block: 48px 36px;
  margin-top: clamp(40px, 6vw, 88px);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px;
  margin-bottom: 36px;
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--pp-ink-3);
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--pp-ink-2); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--pp-brand-deep); }
.footer-grid p { color: var(--pp-ink-3); font-size: 0.88rem; max-width: 34ch; }

.footer-bottom {
  border-top: 1px solid var(--pp-line);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--pp-ink-3);
}
.footer-bottom .spacer { margin-left: auto; }

/* ------------------------------------------------------------- utils ---- */

.stack > * + * { margin-top: 16px; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.section-head { margin-bottom: clamp(28px, 3.5vw, 46px); max-width: 66ch; }
.section-head.center { margin-inline: auto; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------- screenshot placeholders ----
   Phase 1: every app-image slot is a clearly-marked placeholder. The human
   captures real screenshots on a physical device (see
   assets/img/screens/MANIFEST.md). No stale/simulated app imagery ships. */
.shot-ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 620 / 1348;
  width: 100%;
  border: 2px dashed var(--pp-line-2);
  border-radius: 34px;
  background:
    repeating-linear-gradient(
      135deg,
      var(--pp-surface-2),
      var(--pp-surface-2) 12px,
      var(--pp-surface) 12px,
      var(--pp-surface) 24px);
  color: var(--pp-ink-3);
  padding: 18px;
  text-align: center;
}
.shot-ph__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--pp-brand-deep);
  background: var(--pp-brand-tint);
  border: 1px solid color-mix(in srgb, var(--pp-brand) 30%, transparent);
  border-radius: 999px;
  padding: 4px 12px;
}
.shot-ph__label { font-size: 0.9rem; font-weight: 600; color: var(--pp-ink-2); max-width: 22ch; }
.shot-ph__meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--pp-ink-3); }
.shot-ph--device { border-color: var(--pp-line-2); }
/* Placeholder inside a device frame: fill the padded well */
.device .shot-ph { border-radius: 30px; }

/* ---------------------------------------------------------- pricing cards ----
   Config-driven three-card layout. Publish-gated: while pricing is not
   verified against StoreKit, each card carries a "not yet available" note and
   no card presents a live/available price or fake sale. */
.pricing-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-radius: var(--r-lg);
  padding: 26px;
}
.plan--primary {
  border-color: color-mix(in srgb, var(--pp-brand) 45%, transparent);
  box-shadow: var(--lift-card);
  background: var(--pp-brand-tint);
}
.plan__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--pp-brand-deep);
  margin-bottom: 10px;
}
.plan--primary .plan__tag { color: var(--pp-brand-ink); }
.plan__name { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.012em; margin-bottom: 4px; }
.plan__price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--pp-ink);
  margin: 8px 0 2px;
}
.plan__billing { font-size: 0.82rem; color: var(--pp-ink-3); margin-bottom: 4px; }
.plan__list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.plan__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.9rem;
  color: var(--pp-ink-2);
  line-height: 1.45;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--pp-success-deep);
  border-bottom: 2px solid var(--pp-success-deep);
  transform: rotate(-45deg);
}
.plan__gate {
  margin-top: 16px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--pp-warning-deep);
  background: var(--pp-warning-tint);
  border: 1px solid color-mix(in srgb, var(--pp-warning) 40%, transparent);
  border-radius: var(--r-sm);
  padding: 10px 12px;
}

/* ---------------------------------------------------- use-case selector ----*/
.usecase-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.usecase {
  display: block;
  background: var(--pp-surface);
  border: 1px solid var(--pp-line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  color: inherit;
}
.usecase:hover { text-decoration: none; border-color: var(--pp-line-2); box-shadow: var(--lift-card); }
.usecase h3 { margin-bottom: 6px; }
.usecase p { color: var(--pp-ink-3); font-size: 0.92rem; margin: 0; }

@media print {
  .site-header, .site-footer, .cta, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
}
