:root {
  --ink: #102018;
  --ink-2: #1c3328;
  --paper: #f4efe4;
  --paper-2: #ebe4d4;
  --line: #d4cbb6;
  --mute: #606761;          /* 5.07:1 on paper, 4.59:1 on paper-2 */
  --lime: #c6f54a;
  --lime-ink: #1a2a0c;
  --clay: #a04b22;          /* 4.70:1 on paper-2, 5.20:1 on paper */
  --clay-bright: #c45c2a;   /* decorative only, never text */
  --line-strong: #898376;   /* 3.77:1 vs white: interactive borders */
  --white: #fff;
  --shadow: 0 18px 40px -24px rgba(16, 32, 24, 0.45);
  --sans: "Sora", ui-sans-serif, system-ui, sans-serif;
  --serif: "Fraunces", ui-serif, Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0 8px;
}
/* Landing header: ink band, sticky, lime CTA (Jason 2026-08-14: distinct color,
   sticky, CTAs must pop). App keeps its own paper app-bar. */
.nav-landing {
  position: sticky; top: 0; z-index: 40;
  padding: 10px 0;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
}
.nav-landing .brand { color: var(--paper); }
.nav-landing .nav-links a:not(.btn) { color: #e7ecdf; }
.nav-landing .nav-cta { padding: 10px 18px; }
.nav-landing :focus-visible { outline-color: var(--lime); }
html { scroll-padding-top: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.03em; }
.mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--ink); color: var(--lime);
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
}
.mark-img { width: 34px; height: 34px; border-radius: 9px; display: block; background: var(--paper); }
.nav-links { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-2); padding: 12px 6px; display: inline-block; }
.nav-links .btn-ink { color: var(--paper); }
.nav-links .btn-lime { color: var(--lime-ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none;
  font-family: inherit; font-weight: 650; font-size: 14px;
  border-radius: 999px; padding: 11px 18px; min-height: 44px;
}
.btn-lime {
  background: var(--lime); color: var(--lime-ink);
  box-shadow: 0 8px 20px -10px rgba(16, 32, 24, 0.55);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-lime:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 24px -10px rgba(16, 32, 24, 0.6); }
.btn-lime:active { transform: translateY(0); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.hero { padding: 36px 0 20px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--clay); font-weight: 700; }
h1 { font-family: var(--serif); font-weight: 560; font-size: clamp(40px, 6vw, 68px); line-height: .95; letter-spacing: -0.035em; margin: 10px 0 16px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 38ch; }
.paste-box {
  margin-top: 22px; background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; padding: 8px; display: flex; gap: 8px; box-shadow: var(--shadow);
}
.paste-box input {
  flex: 1; border: 0; outline: 0; font: inherit; padding: 12px 14px; background: transparent;
}
.fine { font-size: 12px; color: var(--mute); margin-top: 10px; }
.price-pill { display: inline-flex; gap: 8px; align-items: baseline; margin-top: 18px; font-size: 14px; }
.price-pill b { font-size: 28px; font-family: var(--serif); }
.card-preview {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  padding: 18px; box-shadow: var(--shadow); transform: rotate(1.2deg);
}
.card-preview .preview-title { margin: 8px 0 6px; font-size: 22px; font-family: var(--serif); font-weight: 560; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; color: var(--ink-2); }
.section { padding: 56px 0; }
.section h2 { font-family: var(--serif); font-size: 36px; margin: 0 0 8px; letter-spacing: -0.03em; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.tile { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.tile strong { display: block; margin-bottom: 6px; }
.pricing {
  background: var(--ink); color: var(--paper); border-radius: 28px; padding: 36px;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: center;
}
.pricing h2 { color: var(--paper); }
.pricing .btn { width: fit-content; }
.legal { font-size: 13px; color: #c9d2c8; max-width: 52ch; }
footer { padding: 28px 0 48px; color: var(--mute); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; }

/* App */
.app-shell { min-height: 100vh; }
.app-bar { border-bottom: 1px solid var(--line); background: rgba(244,239,228,.92); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; }
.app-bar .wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.layout { display: grid; grid-template-columns: 320px 1fr; gap: 22px; padding: 22px 0 60px; }
.library { display: flex; flex-direction: column; gap: 10px; }
.locker-only, .plan-only { display: contents; }
.rail-toggle {
  align-self: flex-end; border: 0; background: transparent; color: var(--mute);
  font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; padding: 6px 2px;
}
.rail-collapsed .layout { grid-template-columns: 76px 1fr; }
.rail-collapsed .library > :not(.rail-toggle) { display: none !important; }
.rail-collapsed .rail-toggle { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-decoration: none; padding: 12px 4px; }
.buy-short { display: none; }
.drill-row {
  text-align: left; width: 100%; background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 12px 10px; cursor: pointer; font: inherit; color: inherit;
}
.drill-row.active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--lime); }
.drill-row.active strong::before, .plan-row.active strong::before { content: "\25B8  "; }
.detail > p, .share-card > p { max-width: 75ch; }
.drill-row small { display: block; color: var(--mute); font-size: 12px; }
.detail { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 20px; min-height: 70vh; }
.player {
  background: #0b0f0c; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; margin: 14px 0 18px;
}
.player iframe, .player .ig-fallback { width: 100%; height: 100%; border: 0; }
.ig-fallback { display: grid; place-items: center; color: #d7e0d4; padding: 24px; text-align: center; }
.blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.block { background: var(--paper-2); border-radius: 14px; padding: 12px 14px; }
.block.wide { grid-column: 1 / -1; }
.block h2, .block h3, .block h4 { margin: 0 0 8px; font-size: 12px; font-family: var(--sans); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); }
.block ol, .block ul { margin: 0; padding-left: 18px; }
.block li + li { margin-top: 4px; }
.err { background: #fde8dc; color: #7a2e12; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.ok { color: var(--mute); font-size: 13px; }
.empty { color: var(--mute); padding: 40px 8px; text-align: center; }
.empty img { max-width: 320px; width: 100%; display: block; margin: 0 auto 14px; border-radius: 14px; }

@media (max-width: 860px) {
  .hero, .pricing, .layout, .grid-3, .blocks { grid-template-columns: 1fr; }
  .card-preview { transform: none; }
  footer { flex-direction: column; }
}

/* Landing: What you get (real screenshot gallery)
   Mobile: single-column narrative with mobile-native captures (v3 order).
   Desktop (>=861): alternating feature rows, desktop captures, caption as side copy. */
.shot-grid { display: grid; grid-template-columns: 1fr; gap: 26px; margin-top: 22px; justify-items: center; }
.shot { margin: 0; width: 100%; }
.shot img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  background: var(--white);
}
.shot figcaption { font-size: 14px; color: var(--ink-2); margin-top: 10px; text-align: center; }
@media (min-width: 861px) {
  .shot-grid { gap: 56px; margin-top: 34px; }
  .shot { display: grid; grid-template-columns: minmax(0, 13fr) minmax(0, 7fr); gap: 48px; align-items: center; }
  .shot:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 13fr); }
  .shot:nth-child(even) > :first-child { grid-column: 2; grid-row: 1; }
  .shot:nth-child(even) figcaption { grid-column: 1; grid-row: 1; justify-self: end; }
  .shot figcaption { text-align: left; font-size: 17px; line-height: 1.5; margin: 0; max-width: 34ch; }
  .shot .cap-time { display: block; font-family: var(--serif); font-weight: 600; font-size: 27px; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 10px; }
  .shot-phone, .shot-grid .shot-phone:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .shot-phone .phone-frame { margin: 0 auto; }
}
.phone-frame {
  background: var(--ink); border-radius: 40px; padding: 14px;
  width: min(300px, 100%); margin: 0 auto; box-shadow: var(--shadow);
}
.phone-frame img { border-radius: 28px; border: 0; box-shadow: none; }
.shot-phone { text-align: center; }

/* Landing: magic strip (v3, replaces How-it-works) */
.magic { padding: 34px 0 26px; }
.magic-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mstep { text-align: center; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.mstep img {
  width: 100%; max-width: 380px; height: auto; display: block; margin: 0 auto;
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
}
.mstep strong { font-size: 15px; }

/* Landing: full-bleed section bands (Jason 2026-08-14: sections need distinct
   backgrounds to scan). Alternation: paper / paper-2 / paper / ink / paper-2 /
   photo. The 100vmax shadow bleeds the band past .wrap; clip-path stops it
   from causing horizontal scroll. */
.band {
  background: var(--paper-2);
  box-shadow: 0 0 0 100vmax var(--paper-2);
  clip-path: inset(0 -100vmax);
}

/* Landing: bridge lines (v3 narrative seams) */
.bridge {
  text-align: center; font-size: 15px; font-weight: 650; color: var(--clay);
  margin: 18px auto 0; max-width: 46ch;
}
.hero .bridge { grid-column: 1 / -1; }

/* Landing: sticky mobile price bar */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--ink); color: var(--paper);
  padding: 6px 14px calc(6px + env(safe-area-inset-bottom));
  min-height: 44px;
}
.sticky-bar[hidden] { display: none !important; }
.sticky-price { font-size: 14px; font-weight: 700; white-space: nowrap; }
.sticky-actions { display: flex; align-items: center; gap: 10px; }
.sticky-try { color: #c9d2c8; font-size: 14px; text-decoration: underline; padding: 10px 4px; }
.sticky-bar .btn { padding: 8px 16px; min-height: 36px; font-size: 14px; }
.sticky-bar :focus-visible { outline-color: var(--lime); }
@media (max-width: 860px) {
  .sticky-bar { display: flex; }
  body { scroll-padding-bottom: 60px; }
}

/* Landing: pricing */
.price-fine { grid-column: 1 / -1; margin-bottom: 0; }
.price-cta .btn { width: 100%; }
.price-line { color: var(--lime); font-size: 17px; font-weight: 650; margin: 10px 0 2px; }
.get-list { list-style: none; margin: 14px 0; padding: 0; color: #e7ecdf; font-size: 15px; }
.get-list li { padding-left: 26px; position: relative; margin-top: 8px; }
.get-list li::before { content: "✓"; position: absolute; left: 0; color: var(--lime); font-weight: 800; }
.guarantee {
  background: rgba(198,245,74,.1); border: 1px solid rgba(198,245,74,.35);
  border-radius: 14px; padding: 14px 16px; font-size: 15px; color: #e7ecdf; margin-top: 16px;
}
.guarantee strong { color: var(--lime); }

/* Landing: FAQ */
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 4px 18px; margin-top: 10px;
}
.faq-item summary { cursor: pointer; font-weight: 650; padding: 12px 0; }
.faq-item p { margin: 0 0 14px; color: var(--ink-2); }

/* Landing: final CTA (v4: text over the walk-to-the-field photo, strict scrim) */
.final-cta {
  text-align: center;
  background: linear-gradient(180deg, rgba(16,32,24,.35) 0%, rgba(16,32,24,.78) 100%), url("/img/photo-lastcall-gate.webp") center/cover no-repeat var(--ink);
  border-radius: 22px; min-height: 380px; margin: 26px 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 32px 24px;
}
.final-cta h2 { color: var(--paper); }
.final-cta .lede { margin: 6px auto 18px; max-width: none; color: var(--paper); }
.final-cta .fine { color: #d9e0d3; }
.final-cta .fine a { color: #d9e0d3; }
.final-cta .btn { min-width: 260px; }
.final-cta :focus-visible { outline-color: var(--lime); }

@media (max-width: 480px) {
  /* .nav-links a:not(.btn) outranks a bare class; match it to actually hide */
  .nav-links a.nav-anchor { display: none; }
  .paste-box { flex-direction: column; }
  .paste-box .btn { width: 100%; }
  .final-cta .btn { width: 100%; min-width: 0; }
}

@media (max-width: 860px) {
  /* Gallery: single column, chronological order per v3 (card, locker, plan, field) */
  .shot-grid { grid-template-columns: 1fr; }
  .shot { max-width: 560px; margin: 0 auto; }
  .magic-steps { grid-template-columns: 1fr; gap: 0; }
  .mstep + .mstep::before { content: ""; display: block; width: 2px; height: 20px; background: var(--line); margin: 12px auto; }
}

/* Capture progress meter */
.cap-progress {
  height: 12px; border-radius: 999px; background: var(--ink);
  overflow: hidden; margin-top: 8px; box-shadow: var(--shadow);
}
#cap-progress-fill {
  height: 100%; width: 2%; background: var(--lime); border-radius: 999px;
  transition: width .5s ease;
}

/* Sidebar list subheaders (Your cards / Starter library) */
.list-sub {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay); font-weight: 700; margin: 12px 0 2px;
}

/* Sidebar row wrap + hover delete on own cards */
.row-wrap { position: relative; }
.row-wrap + .row-wrap { margin-top: 10px; }
.row-del {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--mute); font: inherit; font-size: 13px;
  cursor: pointer; opacity: 0; transition: opacity .12s ease;
  display: grid; place-items: center; line-height: 1;
}
.row-wrap:hover .row-del, .row-del:focus-visible { opacity: 1; }
.row-del:hover { color: #7a2e12; border-color: #c45c2a; }
@media (hover: none) { .row-del { opacity: .55; } }

/* Search + filter */
.search-box {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 10px 12px; font: inherit; background: var(--white); outline: none;
}
.search-box:focus { border-color: var(--ink); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip {
  font: inherit; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 16px; min-height: 44px;
  background: var(--white); color: var(--ink-2); cursor: pointer;
}
.fchip.on { background: var(--ink); color: var(--lime); border-color: var(--ink); }

/* Plan board */
.side-h {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay); font-weight: 700;
}
.side-h .btn { padding: 8px 14px; font-size: 14px; }
.plan-row {
  text-align: left; width: 100%; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit;
}
.plan-row.active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--lime); }
.plan-row small { display: block; color: var(--mute); font-size: 12px; }
.plan-table { width: 100%; border-collapse: collapse; margin: 14px 0; }
.plan-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.plan-time { white-space: nowrap; font-weight: 700; width: 110px; color: var(--clay); }
.rain-line { background: var(--paper-2); border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.drill-row .pickbox { margin-right: 8px; accent-color: var(--ink); }
.plan-build-bar {
  position: sticky; bottom: 12px; background: var(--ink); color: var(--paper);
  border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column;
  gap: 8px; box-shadow: var(--shadow); font-size: 13px; z-index: 6;
}
.plan-build-bar input {
  flex: 1; min-width: 0; border: 0; border-radius: 8px; padding: 8px 10px; font: inherit;
}
.tray-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tray-cancel { color: #c9d2c8 !important; padding: 4px 6px !important; min-height: 0 !important; margin: 0 !important; }
.tray-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tray-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.14); border-radius: 999px; padding: 4px 4px 4px 10px;
  font-size: 12px; max-width: 100%;
}
.tray-chip .tray-x { background: none; border: 0; color: #c9d2c8; cursor: pointer; font: inherit; font-size: 12px; padding: 2px 6px; }
.tray-chip .tray-x:hover { color: #fff; }
.tray-hint { color: #c9d2c8; font-size: 13px; }
.tray-row { display: flex; gap: 8px; }
.plan-build-bar .btn:disabled { opacity: .45; }

/* Row-level add-to-plan toggle */
.row-add {
  position: absolute; bottom: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--white); color: var(--ink-2); font: inherit; font-size: 15px;
  cursor: pointer; opacity: 0; transition: opacity .12s ease;
  display: grid; place-items: center; line-height: 1;
}
.row-wrap:hover .row-add, .row-add:focus-visible, .row-add.on { opacity: 1; }
.row-add.on { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); font-size: 13px; }
.tray-open .row-add { opacity: .85; }
@media (hover: none) { .row-add { opacity: .55; } }

/* Card actions */
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.card-actions .btn { padding: 8px 14px; font-size: 14px; }
.btn-flag { background: transparent; border: 1px solid var(--line); color: var(--mute); }
.more-actions { position: relative; }
.more-actions summary { list-style: none; cursor: pointer; }
.more-actions summary::-webkit-details-marker { display: none; }
.more-menu {
  position: absolute; z-index: 12; right: 0; top: calc(100% + 8px); width: 210px;
  display: grid; gap: 6px; background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); padding: 8px;
}
.more-menu .btn { width: 100%; text-align: left; }
.section-jumps { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 14px; }
.section-jumps a {
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 12px;
  color: var(--ink-2); font-size: 13px; font-weight: 600; text-decoration: none;
}
.block[id] { scroll-margin-top: 110px; }
.mobile-work-nav { display: none; }

/* Modal (fake-door checkout / paywall) */
.modal-back {
  position: fixed; inset: 0; background: rgba(16,32,24,.55); z-index: 40;
  display: grid; place-items: center; padding: 18px;
}
.modal {
  background: var(--paper); border-radius: 22px; padding: 26px; max-width: 440px; width: 100%;
  box-shadow: var(--shadow);
}
.modal h3 { font-family: var(--serif); font-size: 26px; letter-spacing: -.03em; margin: 6px 0 8px; }
.modal .btn { width: 100%; margin-top: 12px; }
.modal .fine { margin-top: 12px; }
.modal input[type="email"], .modal input[type="text"], .modal input[type="password"] {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  font: inherit; background: var(--white); outline: none; margin-top: 10px;
}
.modal .linky { background: none; border: 0; padding: 10px 4px; min-height: 44px; font: inherit; font-size: 14px; color: var(--mute); text-decoration: underline; cursor: pointer; margin-top: 14px; }
.hidden { display: none !important; }

/* Field mode: giant high-contrast card for sun-in-your-eyes phones */
.field-mode-view {
  position: fixed; inset: 0; z-index: 50; background: #0b0f0c; color: #fff;
  overflow-y: auto; padding: 20px 18px 60px; -webkit-overflow-scrolling: touch;
}
.field-mode-view h2 { font-size: clamp(28px, 8vw, 46px); margin: 4px 0 14px; line-height: 1.05; color: var(--lime); padding-right: 140px; }
.field-mode-view h3, .field-mode-view h4 { font-size: 16px; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin: 26px 0 8px; }
.field-mode-view p, .field-mode-view li { font-size: clamp(22px, 5.5vw, 32px); font-weight: 700; line-height: 1.25; }
.field-mode-view ul, .field-mode-view ol { padding-left: 26px; margin: 0; }
.field-mode-view li + li { margin-top: 10px; }
.field-exit {
  position: fixed; top: 14px; right: 14px; z-index: 51;
}

/* Share pages */
.share-card { max-width: 760px; margin: 10px auto 30px; }
.card-title { font-family: var(--serif); font-weight: 560; letter-spacing: -.03em; font-size: clamp(30px, 5vw, 44px); margin: 6px 0 10px; line-height: 1; }

/* Print: one clean card, nothing else */
@media print {
  body { background: #fff; color: #000; }
  .app-bar, .library, .nav, footer, .card-actions, .plan-build-bar, .modal-back, .player, .fine, .field-exit { display: none !important; }
  .layout { display: block; padding: 0; }
  .detail { border: 0; box-shadow: none; padding: 0; min-height: 0; }
  .blocks { grid-template-columns: 1fr; gap: 8px; }
  .block { background: #fff; border: 1px solid #bbb; border-radius: 6px; break-inside: avoid; }
  .block h2, .block h3, .block h4 { color: #000; }
  .chip { border-color: #999; color: #000; }
}

/* A11y: skip link, sr-only, focus, reduced motion */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
  border-radius: 0 0 12px 0; text-decoration: none; font-weight: 700;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.pricing :focus-visible, .field-mode-view :focus-visible, .field-exit:focus-visible,
.plan-build-bar :focus-visible { outline-color: var(--lime); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* Account gate */
.blurred { filter: blur(7px); pointer-events: none; user-select: none; }
.bar-auth { background: none; border: 0; font: inherit; font-size: 14px; color: var(--ink-2); text-decoration: underline; cursor: pointer; padding: 12px 6px; min-height: 44px; }
.modal input[type="password"], .modal input[type="email"], .modal input[type="text"] { width: 100%; }

/* ---- Mobile type scale (Jason 2026-08-14: "sizes bounce all over the spectrum") ----
   Exactly five sizes at <=640px: 34 display / 24 heading / 17 lede / 16 body / 14 caption.
   Nothing below 14px on mobile. */
@media (max-width: 640px) {
  h1 { font-size: 34px; }
  .section h2, .pricing h2 { font-size: 24px; }
  .lede { font-size: 17px; }
  .card-preview .preview-title { font-size: 17px; }
  .price-pill b { font-size: 24px; }
  .kicker, .fine, .legal, footer, .ok, .chip,
  .drill-row small, .plan-row small, .side-h span, .list-sub,
  .block h2, .block h3, .block h4, .shot figcaption { font-size: 14px; }
  .bridge { font-size: 16px; }
  .price-line { font-size: 17px; }
  .card-preview h3, .card-preview p { font-size: 16px; }
  /* App bar: stop the two-line wrap dance; drop About (brand already links home) */
  .app-bar .brand { font-size: 14px; white-space: nowrap; gap: 7px; flex: 0 0 auto; }
  .app-bar .btn, .bar-auth { white-space: nowrap; padding: 8px 10px; font-size: 14px; }
  .app-bar .nav-links { gap: 6px; flex: 0 1 auto; min-width: 0; }
  .app-bar .nav-links a.btn-ghost { display: none; }
  .app-bar .wrap { gap: 8px; }
  .buy-wide { display: none; }
  .buy-short { display: inline; }
  /* Gallery: uniform image treatment, one visual width */
  .shot img { border-radius: 14px; }
  .shot-wide { max-width: 100%; }
  .phone-frame { width: min(280px, 90%); }
}

@media (max-width: 860px) {
  .app-shell { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .app-shell .layout { display: block; padding-top: 14px; }
  .app-shell .rail-toggle { display: none; }
  .app-shell .library, .app-shell .detail { width: 100%; }
  .app-shell[data-work-view="card"] .library { display: none; }
  .app-shell[data-work-view="locker"] .detail { display: none; }
  .app-shell[data-work-view="locker"] .plan-only { display: none; }
  .app-shell[data-work-view="plan"] .locker-only { display: none; }
  .app-shell[data-work-view="plan"] .detail { display: none; }
  .app-shell[data-work-view="plan"].has-active-plan .detail { display: block; margin-top: 14px; }
  .app-shell[data-work-view="plan"].has-active-plan .library { display: flex; }
  .app-shell .library { gap: 12px; }
  .mobile-work-nav {
    position: fixed; display: grid; grid-template-columns: repeat(3, 1fr);
    left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 30;
    background: var(--ink); border: 1px solid rgba(255,255,255,.16); border-radius: 18px;
    padding: 6px; box-shadow: 0 14px 38px rgba(16,32,24,.35);
  }
  .mobile-work-nav button {
    min-height: 50px; border: 0; border-radius: 13px; background: transparent; color: #c9d2c8;
    font: inherit; font-size: 12px; font-weight: 650; display: grid; place-items: center; gap: 1px; cursor: pointer;
  }
  .mobile-work-nav button span { font-size: 18px; line-height: 1; }
  .mobile-work-nav button[aria-current="page"] { background: var(--lime); color: var(--lime-ink); }
  .mobile-work-nav button:disabled { opacity: .45; cursor: not-allowed; }
  .card-actions-primary {
    position: sticky; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 10;
    background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 16px;
    padding: 7px; box-shadow: 0 10px 30px rgba(16,32,24,.16);
  }
  .card-actions-primary > .btn { flex: 1 1 auto; }
  .more-actions { flex: 0 0 auto; }
  .more-menu { position: fixed; left: 14px; right: 14px; width: auto; top: auto; bottom: calc(142px + env(safe-area-inset-bottom)); }
  .section-jumps { position: sticky; top: 67px; z-index: 8; background: rgba(255,255,255,.94); padding: 7px 0; }
  .detail { min-height: 0; padding: 16px; }
  .plan-build-bar { bottom: calc(78px + env(safe-area-inset-bottom)); }
}

@media (max-width: 374px) {
  .hide-tiny { display: none; }
}

/* v4 imagery: Jason kept ONE photo (the coach's-back underlay on the last call). */
/* section rhythm (kept from v4 dead-paper cleanup) */
#get.section { padding-top: 28px; }
#faq.section { padding-top: 24px; }
#price.section { padding-bottom: 30px; }
@media (max-width: 860px) {
  .final-cta { min-height: 420px; justify-content: flex-end; padding-bottom: 28px; }
}

/* v4 hierarchy: loudness follows the sale (H1 > pivot/pricing/$59/guarantee > sections > support) */
.bridge-pivot { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; max-width: 34ch; }
.cap-time { color: var(--clay); font-weight: 700; }
#faq h2 { font-size: 26px; }
.price-line { font-size: 19px; }
@media (max-width: 640px) {
  /* Mobile scale extended to SIX sizes: 34 / 28 / 24 / 20 / 17-16 / 14 */
  .pricing h2 { font-size: 28px; }   /* the close outranks every other section */
  .bridge-pivot { font-size: 20px; } /* the page's hinge line */
  .price-line { font-size: 20px; }   /* the $59 pops */
  .guarantee { font-size: 16px; }
  #faq h2 { font-size: 20px; }       /* objections read quieter */
  .section { padding: 44px 0 26px; } /* more air above a section start than within it */
  .magic { padding: 30px 0 20px; }
  .final-cta { padding-top: 60px; }
}

/* Admin portal login (phone-first) */
.admin-login { max-width: 420px; margin: 8vh auto 0; }
.admin-input {
  width: 100%; font: inherit; font-size: 16px; padding: 14px;
  border: 1px solid var(--line-strong); border-radius: 14px; background: var(--white);
  margin-top: 10px; min-height: 48px;
}
.admin-btn { width: 100%; margin-top: 14px; min-height: 48px; font-size: 16px; }
.admin-login .err { margin-top: 12px; }
