/* =====================================================================
   Runbook Co. — The Runbook · sales page
   "Operator's field-manual" — design system grounded in the real brand assets.
   Craft layer cites the web-design playbook (P-##) + interface-details doctrine.
   ===================================================================== */

/* ---- Design tokens — systematize everything (P-19) ---- */
:root {
  /* Colour — ~5 deliberate values, HSL-derived (P-01/P-21) */
  --ink:        #15171c;   /* dominant on dark sections (60%) */
  --ink-2:      #1c1f26;   /* elevated surface / cards on dark */
  --ink-3:      #262a33;   /* hover / hairlines on dark */
  --paper:      #f4efe4;   /* dominant on light sections (60%) */
  --paper-2:    #fbf8f1;   /* lighter cream surface */
  --cream:      #ece7db;   /* text on dark */
  --cream-dim:  #a8a394;   /* muted text on dark */
  --inktext:    #1a1c22;   /* text on cream */
  --inkdim:     #5c606b;   /* muted text on cream */

  --rust:       #d24a1f;   /* THE reserved accent — CTA only (10%) (P-38) */
  --rust-2:     #e1581f;   /* brighter rust for on-dark accents/glow */
  --rust-press: #b23d18;   /* CTA hover/active */
  --tan:        #cba176;   /* warm mono-label tone on dark (AA on ink) */

  --line-dark:  rgba(236,231,219,.10);
  --line-dark-2:rgba(236,231,219,.16);
  --line-cream: #e3ddce;

  /* Type system (P-10/P-22/P-42) */
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body:    "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Fluid, non-linear type scale (P-19/P-22 · P-18 clamp) */
  --fs-hero:    clamp(2.9rem, 1.4rem + 6.2vw, 5.6rem);
  --fs-h2:      clamp(1.95rem, 1.25rem + 2.7vw, 3.1rem);
  --fs-h3:      clamp(1.18rem, 1.05rem + .45vw, 1.4rem);
  --fs-lead:    clamp(1.1rem, 1.02rem + .5vw, 1.34rem);
  --fs-body:    1.0625rem;
  --fs-sm:      .9375rem;
  --fs-eyebrow: .76rem;

  /* Spacing */
  --wrap:       1160px;
  --wrap-narrow:  800px;
  --pad-x:      clamp(1.25rem, 5vw, 3rem);
  --sec-y:      clamp(4.5rem, 3rem + 6.5vw, 8rem);
  --gap:        clamp(1.5rem, 1rem + 3vw, 3.5rem);

  /* Radii — concentric-friendly scale (interface-details #1) */
  --r-xs: 6px;
  --r-sm: 9px;
  --r:    14px;
  --r-lg: 20px;

  /* Elevation — light from above, layered shadows over borders (P-23) */
  --sh-1: 0 1px 2px rgba(20,16,8,.05), 0 2px 6px rgba(20,16,8,.05);
  --sh-2: 0 1px 2px rgba(20,16,8,.06), 0 8px 18px rgba(20,16,8,.07), 0 18px 40px rgba(20,16,8,.08);
  --sh-3: 0 2px 4px rgba(20,16,8,.08), 0 24px 60px rgba(20,16,8,.14);
  --sh-dark: 0 1px 0 rgba(255,255,255,.03) inset, 0 2px 8px rgba(0,0,0,.30), 0 20px 50px rgba(0,0,0,.30);

  /* Easing (P-34 / interface-details) */
  --ease:     cubic-bezier(.2, 0, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;     /* interface-details #8 */
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
  font-optical-sizing: auto;              /* P-43 */
  overflow-x: hidden;
}

/* Film-grain atmosphere — tactile "expensive" layer (P-25 ext) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--display); font-weight: 700; line-height: 1.07;
  letter-spacing: -.02em; margin: 0; text-wrap: balance;        /* interface-details #10 */
}
h3 { font-weight: 600; letter-spacing: -.01em; line-height: 1.18; }
p { margin: 0; text-wrap: pretty; }                              /* avoid orphans */
em { font-style: italic; }
strong { font-weight: 600; color: inherit; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad-x); position: relative; }
.narrow { max-width: var(--wrap-narrow); }
.center { text-align: center; }
.center-col { display: flex; flex-direction: column; align-items: center; text-align: center; }
.balance { text-wrap: balance; }
.narrow-p { max-width: 56ch; margin-inline: auto; }

.section { padding-block: var(--sec-y); position: relative; isolation: isolate; }
.section--ink   { background: var(--ink);  color: var(--cream); }
.section--paper { background: var(--paper); color: var(--inktext); }
.section > .wrap { z-index: 2; }

/* ---- Skip link + scroll progress (a11y + modern affordance) ---- */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 300;
  background: var(--rust); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm);
  font: 600 var(--fs-sm)/1 var(--body); text-decoration: none; transition: top .15s var(--ease);
}
.skip-link:focus { top: 1rem; }

.scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 200; pointer-events: none; }
.scroll-progress span {
  display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--rust), var(--rust-2));
  box-shadow: 0 0 12px rgba(226,88,31,.5);
}

/* ---- Focus visibility ---- */
:focus-visible { outline: 2.5px solid var(--rust-2); outline-offset: 3px; border-radius: 4px; }
.section--ink :focus-visible { outline-color: var(--tan); }

/* ---- Brand mark + name ---- */
.brand, .footer-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-mark {
  width: 15px; height: 15px; flex: 0 0 auto; border-radius: 3px; background: var(--rust);
  box-shadow: inset 0 0 0 2.5px var(--ink), 0 0 0 1.5px var(--rust), 0 0 12px rgba(226,88,31,.4);
}
.section--paper .brand-mark, .sop-brand { }
.brand-name { font-family: var(--mono); font-weight: 600; font-size: .82rem; letter-spacing: .16em; }

/* ---- Eyebrows (mono labels + leading register tick) ---- */
.eyebrow {
  font-family: var(--mono); font-weight: 600; font-size: var(--fs-eyebrow);
  text-transform: uppercase; letter-spacing: .2em; margin: 0 0 1.2rem;
  display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 1.7rem; height: 2px; background: currentColor; opacity: .75; flex: 0 0 auto; border-radius: 2px; }
.eyebrow.center { justify-content: center; }
.eyebrow--tan  { color: var(--tan); }
.eyebrow--rust { color: var(--rust); }

.dot  { color: var(--rust); }
.rust { color: var(--rust); }

/* ---- Corner registration marks (field-manual art direction, P-48/P-50) ---- */
.corner-marks { position: absolute; inset: clamp(14px, 2.5vw, 30px); z-index: 1; pointer-events: none; }
.corner-marks i { position: absolute; width: 13px; height: 13px; opacity: .5; }
.corner-marks i:nth-child(1) { top: 0; left: 0; border-top: 1.5px solid var(--tan); border-left: 1.5px solid var(--tan); }
.corner-marks i:nth-child(2) { top: 0; right: 0; border-top: 1.5px solid var(--tan); border-right: 1.5px solid var(--tan); }
.corner-marks i:nth-child(3) { bottom: 0; left: 0; border-bottom: 1.5px solid var(--tan); border-left: 1.5px solid var(--tan); }
.corner-marks i:nth-child(4) { bottom: 0; right: 0; border-bottom: 1.5px solid var(--tan); border-right: 1.5px solid var(--tan); }

/* =====================================================================
   Buttons — one reserved action colour (P-38/P-20/P-45) + tactile press
   ===================================================================== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--mono); font-weight: 600; font-size: var(--fs-sm); letter-spacing: .03em;
  text-decoration: none; cursor: pointer; border: 0; border-radius: var(--r-sm);
  padding: .9rem 1.45rem; min-height: 44px;                       /* hit area, interface-details #16 */
  transition: transform .12s var(--ease), background-color .2s var(--ease), box-shadow .25s var(--ease), color .2s var(--ease);
}
.btn:active { transform: scale(.96); }                            /* interface-details #12 */
.btn-primary {
  background: var(--rust); color: #fff6f1;
  box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 6px 16px rgba(180,55,20,.30);
}
.btn-primary:hover { background: var(--rust-press); transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,.2), 0 12px 28px rgba(180,55,20,.42); }
.btn-primary:active { transform: translateY(0) scale(.96); }
.btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line-dark-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--tan); color: #fff; }
.section--paper .btn-ghost { color: var(--inktext); box-shadow: inset 0 0 0 1.5px var(--line-cream); }
.section--paper .btn-ghost:hover { color: var(--inktext); box-shadow: inset 0 0 0 1.5px var(--rust); }

.btn-sm  { padding: .6rem 1rem; font-size: .82rem; min-height: 40px; }
.btn-lg  { padding: 1.02rem 1.7rem; font-size: .95rem; }
.btn-xl  { padding: 1.18rem 2.1rem; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }

.btn-strike { font-size: .78em; opacity: .6; text-decoration: line-through; font-weight: 500; }
.btn .price-now { font-weight: 700; }

/* =====================================================================
   Header — sticky, condenses on scroll
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line-dark); box-shadow: 0 10px 30px rgba(0,0,0,.28); background: color-mix(in srgb, var(--ink) 86%, transparent); }
.header-inner { display: flex; align-items: center; gap: 1rem; padding-block: 1rem; transition: padding .25s var(--ease); }
.site-header.scrolled .header-inner { padding-block: .7rem; }
.header-inner .brand { color: var(--cream); }
.header-meta { margin-left: auto; font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; color: var(--cream-dim); text-transform: uppercase; }
.header-inner .buy { margin-left: 1rem; }
@media (max-width: 560px) { .header-meta { display: none; } .header-inner .buy { margin-left: auto; } }

/* =====================================================================
   Blueprint grid + section glows (atmosphere, P-25)
   ===================================================================== */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(125% 90% at 50% 0%, #000 35%, transparent 78%);
          mask-image: radial-gradient(125% 90% at 50% 0%, #000 35%, transparent 78%);
  opacity: .7;
}
.section--ink::before, .section--closer::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgba(210,74,31,.10), transparent 70%);
}
.pricing::before { background: radial-gradient(50% 45% at 50% 38%, rgba(210,74,31,.14), transparent 72%); }
.hero::before { background: none; }   /* hero uses the book's own backlight instead of the section glow */

/* =====================================================================
   01 · Hero — type-led + product exhibit plate (P-02/P-14)
   ===================================================================== */
.hero { padding-block: clamp(4.5rem, 3rem + 8vw, 8.5rem); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; display: grid; gap: var(--gap); align-items: center; }
.hero-copy { min-width: 0; }
.hero-h1 { font-size: var(--fs-hero); margin: 0 0 1.4rem; letter-spacing: -.032em; max-width: 15ch; }
.hero-sub { font-family: var(--body); font-size: var(--fs-lead); line-height: 1.5; color: var(--cream); max-width: 54ch; margin: 0 0 2rem; }
.hero-sub strong { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 1.7rem; }

.trust-line { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.1rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; color: var(--cream-dim); }
.trust-line li { display: flex; align-items: center; gap: .4rem; }
.trust-line li::before { content: ""; width: .85rem; height: .85rem; flex: 0 0 auto; background: var(--rust-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Hero product render — transparent cut-out floats over the grid (real book-shaped shadow) */
.hero-figure { position: relative; margin: 2.4rem auto 0; width: min(270px, 68vw); }
.hero-figure img {
  position: relative; z-index: 1; width: 100%; height: auto;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.5)) drop-shadow(0 36px 52px rgba(0,0,0,.45));
}
/* Warm backlight centered behind the book and sized to hug it (one coherent light source) */
.figure-glow {
  position: absolute; top: 49%; left: 50%; width: 84%; height: 74%; transform: translate(-50%, -50%);
  z-index: 0; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(226,88,31,.28), rgba(226,88,31,.08) 48%, transparent 72%);
  filter: blur(30px);
}
.hero-figcaption { display: none; }
@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: minmax(0,1fr) clamp(340px, 34vw, 470px); align-items: center; }
  /* figure box = the book itself, right-aligned with a slight bleed, so the glow stays centered on the book */
  .hero-figure { margin: 0 -1.25rem 0 auto; width: 100%; max-width: 470px; }
  .hero-figure img {
    width: 100%;
    animation: float 8s var(--ease) infinite;
    filter: drop-shadow(0 18px 28px rgba(0,0,0,.5)) drop-shadow(0 50px 72px rgba(0,0,0,.5));
  }
  .hero-figcaption {
    display: flex; justify-content: space-between; gap: 1rem; margin: 1.2rem 0 0; max-width: 470px;
    font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--cream-dim); position: relative; z-index: 1;
  }
  .plate-fig { color: var(--tan); }
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* =====================================================================
   Two-column blocks
   ===================================================================== */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* 02 · Problem */
.problem .product-shot { justify-self: center; margin: 0; }
.product-shot img { width: min(460px, 84vw); height: auto; border-radius: var(--r); box-shadow: var(--sh-3); outline: 1px solid rgba(20,16,8,.08); outline-offset: -1px; }
.problem-copy h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.lead { font-size: var(--fs-lead); line-height: 1.55; }
.section--paper .lead { color: #36393f; }
.section--ink .lead { color: var(--cream); }

.check-list { list-style: none; margin: 1.7rem 0 0; padding: 0; display: grid; gap: .9rem; }
.check-list li { position: relative; padding-left: 2rem; line-height: 1.45; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .05em; width: 1.25rem; height: 1.25rem; border-radius: 5px;
  background: color-mix(in srgb, var(--rust) 14%, transparent); border: 1px solid color-mix(in srgb, var(--rust) 35%, transparent);
}
.check-list li::after {
  content: ""; position: absolute; left: .28rem; top: .28em; width: .72rem; height: .72rem; background: var(--rust);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* 03 · Solution + stats */
.solution h2 { font-size: var(--fs-h2); margin-bottom: 1.1rem; }
.stat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem,5vw,4.5rem); margin-top: 3rem; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem,6vw,3.6rem); line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--rust-2), var(--rust)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-lab { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cream-dim); margin-top: .6rem; }
.stat::after { content: ""; width: 1.6rem; height: 2px; background: var(--line-dark-2); margin-top: .9rem; border-radius: 2px; }

/* 04 · The shift */
.shift h2 { font-size: var(--fs-h2); margin: 0 auto 2.8rem; max-width: 20ch; }
.shift-cols { align-items: stretch; }
.shift-card { background: var(--paper-2); border-radius: var(--r); padding: 1.9rem 1.8rem; box-shadow: var(--sh-1); }
.shift-before { border-top: 3px solid var(--line-cream); color: var(--inkdim); }
.shift-after  { border-top: 3px solid var(--rust); box-shadow: var(--sh-2); }
.shift-label { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--inkdim); margin: 0 0 .8rem; }
.shift-label--rust { color: var(--rust); }
.shift-after p { color: var(--inktext); }

/* 05 · What's inside — cards */
.inside h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.inside .lead { margin-bottom: 3.2rem; color: var(--cream-dim); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 880px) { .card-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }
.card {
  position: relative; background: linear-gradient(180deg, var(--ink-2), color-mix(in srgb, var(--ink-2) 80%, var(--ink)));
  border: 1px solid var(--line-dark); border-radius: var(--r); padding: 1.6rem 1.5rem;
  box-shadow: var(--sh-dark); overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--rust), var(--rust-2)); opacity: .9; }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(80% 60% at 50% -10%, rgba(226,88,31,.12), transparent 60%); opacity: 0; transition: opacity .3s var(--ease); pointer-events: none; }
.card:hover { transform: translateY(-5px); border-color: var(--ink-3); box-shadow: 0 2px 8px rgba(0,0,0,.3), 0 26px 54px rgba(0,0,0,.4); }
.card:hover::after { opacity: 1; }
.card-num { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tan); margin: .2rem 0 .7rem; }
.card h3 { font-size: var(--fs-h3); margin-bottom: .6rem; color: #fff; }
.card p { font-size: .96rem; color: var(--cream-dim); line-height: 1.55; }
.card-note { color: var(--tan); }
.card-file {
  position: absolute; top: 1.05rem; right: 1.05rem; font-family: var(--mono); font-size: .6rem; font-weight: 600;
  letter-spacing: .1em; color: var(--cream-dim); border: 1px solid var(--line-dark-2); border-radius: 5px; padding: .2rem .42rem;
}

/* 06 · See the format — SOP preview */
.format-cols { align-items: center; }
.format-copy h2 { font-size: var(--fs-h2); margin-bottom: 1rem; }
.sop-preview { margin: 0; perspective: 1200px; }
.sop-doc {
  background: #fff; color: #1a1c22; border-radius: var(--r); box-shadow: var(--sh-3);
  padding: 1.6rem 1.7rem; border: 1px solid var(--line-cream); max-width: 460px; margin-inline: auto;
  transform: rotate(-1.4deg); transition: transform .4s var(--ease);
}
.sop-preview:hover .sop-doc { transform: rotate(0) translateY(-3px); }
.sop-doc-bar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line-cream); padding-bottom: .75rem; margin-bottom: .95rem; }
.sop-brand { font-family: var(--mono); font-weight: 600; font-size: .72rem; letter-spacing: .12em; color: var(--inktext); }
.sop-tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); }
.sop-title { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.01em; margin: 0 0 .9rem; }
.sop-meta { display: grid; gap: .5rem; margin-bottom: 1rem; font-size: .86rem; color: #36393f; }
.sop-meta p { line-height: 1.4; }
.sop-k { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--rust); display: inline-block; min-width: 3.6rem; }
.sop-section { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--inkdim); margin: 0 0 .55rem; }
.sop-steps { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .42rem; font-size: .86rem; color: #36393f; }
.sop-steps .sop-more { list-style: none; margin-left: -1.2rem; font-family: var(--mono); font-size: .72rem; color: var(--rust); }
.sop-foot { display: flex; gap: 1.1rem; border-top: 1px solid var(--line-cream); padding-top: .85rem; }
.sop-check { font-family: var(--mono); font-size: .72rem; color: #166534; letter-spacing: .03em; }
.sop-preview figcaption { font-family: var(--mono); font-size: .72rem; color: var(--inkdim); text-align: center; margin-top: 1.2rem; letter-spacing: .03em; }

/* 07 · How it works */
.how h2 { font-size: var(--fs-h2); margin-bottom: 3.2rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 1.3rem; max-width: 940px; margin-inline: auto; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--r); padding: 1.7rem 1.7rem 1.8rem; box-shadow: var(--sh-dark); }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; margin-bottom: .9rem;
  font-family: var(--mono); font-weight: 600; font-size: .95rem; color: var(--rust-2);
  border: 1px solid color-mix(in srgb, var(--rust) 35%, var(--line-dark)); border-radius: 50%; background: color-mix(in srgb, var(--rust) 10%, transparent); }
.step h3 { font-size: var(--fs-h3); margin-bottom: .5rem; color: #fff; }
.step p { color: var(--cream-dim); font-size: .96rem; }
.step--outcome { background: linear-gradient(155deg, color-mix(in srgb, var(--rust) 20%, var(--ink-2)), var(--ink-2)); border-color: color-mix(in srgb, var(--rust) 38%, var(--line-dark)); }
.step--outcome .step-n { color: #fff; background: var(--rust); border-color: var(--rust); font-size: 1.2rem; }

/* 08 · Who it's for */
.fit-card { border-radius: var(--r); padding: 2rem 1.9rem; }
.fit-yes { background: var(--paper-2); border: 1px solid var(--line-cream); border-left: 3px solid var(--rust); box-shadow: var(--sh-2); }
.fit-no  { background: transparent; border: 1px dashed var(--line-cream); }
.fit-h { font-size: 1.45rem; margin-bottom: 1.2rem; }
.fit-h--muted { color: var(--inkdim); }
.fit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.fit-list li { position: relative; padding-left: 1.8rem; line-height: 1.45; }
.fit-list li::before { content: "✓"; position: absolute; left: 0; color: var(--rust); font-weight: 700; }
.fit-list--muted { color: var(--inkdim); }
.fit-list--muted li::before { content: "✕"; color: var(--inkdim); }

/* 09 · Pricing */
.pricing h2 { font-size: var(--fs-h2); margin-bottom: 2.8rem; }
.price-card {
  max-width: 480px; margin: 0 auto; background: linear-gradient(180deg, var(--ink-2), color-mix(in srgb, var(--ink-2) 78%, var(--ink)));
  border: 1px solid var(--ink-3); border-radius: var(--r-lg); padding: 2.3rem 2.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.3), 0 36px 80px rgba(0,0,0,.45); position: relative; overflow: hidden;
}
.price-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--rust), var(--rust-2)); }
.price-head { text-align: center; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-dark); margin-bottom: 1.5rem; }
.price-kicker { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tan); margin-bottom: 1rem; justify-content: center; }
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: .5rem; font-variant-numeric: tabular-nums; }
.price-strike { font-family: var(--display); font-size: 1.5rem; color: var(--cream-dim); text-decoration: line-through; }
.price-big { font-family: var(--display); font-weight: 700; font-size: clamp(3.2rem,9vw,4.2rem); color: #fff; line-height: 1; letter-spacing: -.02em; }
.price-unit { font-family: var(--mono); font-size: .8rem; color: var(--cream-dim); letter-spacing: .08em; }
.price-note { font-family: var(--mono); font-size: .74rem; color: var(--tan); letter-spacing: .03em; margin-top: .9rem; }
.price-list { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .75rem; }
.price-list li { position: relative; padding-left: 1.8rem; font-size: .96rem; color: var(--cream); }
.price-list li::before { content: ""; position: absolute; left: 0; top: .12em; width: 1.1rem; height: 1.1rem; background: var(--rust-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }
.price-guarantee {
  display: flex; align-items: center; justify-content: center; gap: .55rem; margin-top: 1.1rem; padding: .75rem 1rem;
  border: 1px solid color-mix(in srgb, var(--rust) 40%, var(--line-dark)); border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--rust) 9%, transparent);
  font-family: var(--mono); font-size: .76rem; letter-spacing: .02em; color: var(--tan); text-align: center; line-height: 1.4;
}
.price-guarantee svg { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; color: var(--rust-2); }
.price-sub { font-family: var(--mono); font-size: .72rem; color: var(--cream-dim); text-align: center; margin-top: .9rem; letter-spacing: .02em; line-height: 1.6; }
.price-anchor { max-width: 52ch; margin: 2.4rem auto 0; text-align: center; color: var(--cream-dim); font-size: .98rem; }

/* 10 · FAQ */
.faq h2 { font-size: var(--fs-h2); margin-bottom: 2.6rem; }
.faq-list { display: grid; gap: .8rem; }
.faq-list details {
  background: var(--paper-2); border: 1px solid var(--line-cream); border-radius: var(--r); padding: 0 1.5rem; overflow: hidden;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq-list details[open] { border-color: color-mix(in srgb, var(--rust) 30%, var(--line-cream)); box-shadow: var(--sh-1); }
.faq-list summary {
  font-family: var(--display); font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em;
  padding: 1.2rem 2.2rem 1.2rem 0; cursor: pointer; list-style: none; position: relative; transition: color .2s var(--ease);
}
.faq-list summary:hover { color: var(--rust); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 1.4rem; color: var(--rust); transition: transform .25s var(--ease); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 0 1.3rem; color: #36393f; font-size: .98rem; line-height: 1.6; }
.faq-list details[open] p { animation: faqReveal .3s var(--ease); }
@keyframes faqReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 11 · Founder's note */
.note .founder-note { margin: 0; position: relative; padding-left: clamp(0px, 2vw, 1.5rem); }
.note .founder-note::before { content: ""; position: absolute; left: 0; top: .4rem; bottom: .4rem; width: 2px; background: linear-gradient(180deg, var(--rust), transparent); border-radius: 2px; }
.founder-note h2 { font-size: clamp(1.7rem,3.5vw,2.5rem); margin-bottom: 1.5rem; max-width: 22ch; }
.founder-note p { color: var(--cream-dim); margin-bottom: 1rem; max-width: 62ch; }
.founder-note .note-sign { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; color: var(--tan); margin-top: 1.7rem; }

/* 12 · Closer */
.section--closer { background: var(--ink); color: var(--cream); padding-block: var(--sec-y); position: relative; overflow: hidden; }
.section--closer .grid-bg { -webkit-mask-image: radial-gradient(120% 110% at 50% 50%, #000 30%, transparent 75%); mask-image: radial-gradient(120% 110% at 50% 50%, #000 30%, transparent 75%); }
.closer-h { font-size: clamp(2.1rem,5vw,3.5rem); margin-bottom: 2.2rem; }
.after-list { list-style: none; margin: 2.4rem auto 0; padding: 0; display: grid; gap: .75rem; max-width: 40ch; text-align: left; }
.after-list li { position: relative; padding-left: 1.9rem; color: var(--cream-dim); font-size: .96rem; }
.after-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: .65rem; height: .65rem; background: var(--rust); border-radius: 2px; box-shadow: 0 0 10px rgba(226,88,31,.5); }
.closer-guarantee { margin-top: 1.4rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; color: var(--cream-dim); }
.closer-guarantee strong { color: var(--tan); }
.closer-or { margin-top: 1.4rem; font-size: .95rem; color: var(--cream-dim); }
.closer-or a { color: var(--tan); text-decoration: none; position: relative; }
.closer-or a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: currentColor; transform: scaleX(.4); transform-origin: left; opacity: .5; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.closer-or a:hover { color: #fff; }
.closer-or a:hover::after { transform: scaleX(1); opacity: 1; }

/* ---- Footer ---- */
.site-footer { background: #0f1115; color: var(--cream-dim); padding-block: 2.8rem; border-top: 1px solid var(--line-dark); position: relative; z-index: 2; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; justify-content: space-between; }
.footer-brand { color: var(--cream); }
.footer-tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--cream-dim); margin-left: .4rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-links a { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-decoration: none; color: var(--cream-dim); transition: color .2s var(--ease); }
.footer-links a:hover { color: var(--tan); }
.footer-fine { margin-top: 1.7rem; }
.footer-fine p { font-size: .8rem; color: #8d909a; max-width: 90ch; line-height: 1.6; }

/* ---- Sticky mobile buy bar (P-46) ---- */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-dark); padding: .7rem var(--pad-x); transform: translateY(110%); transition: transform .3s var(--ease);
}
.sticky-buy.show { transform: translateY(0); }
.sticky-buy-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: var(--wrap); margin-inline: auto; }
.sticky-buy-label { font-family: var(--mono); font-size: .82rem; color: var(--cream); letter-spacing: .04em; }
.sticky-price { color: var(--rust-2); font-weight: 700; }
@media (min-width: 781px) { .sticky-buy { display: none; } }

/* =====================================================================
   Motion — subtle, staggered, transform/opacity only (P-34/P-35)
   ===================================================================== */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); will-change: transform, opacity; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .card, .sop-doc { transition: none !important; }
  .hero-figure img { animation: none !important; }
  .scroll-progress { display: none; }
}

/* ---- Print ---- */
@media print {
  .site-header, .sticky-buy, .grid-bg, .corner-marks, .scroll-progress, .btn, body::after { display: none !important; }
  body { background: #fff; color: #000; }
}
