/* ==========================================================
   qa-guides/storefront.css — shared by index.html and bundles.html.

   Everything above the "new components" marker is lifted verbatim from
   the original single-page storefront's inline <style> (tokens, frame,
   nav, scroll-fab, lib-divider, author, footer, free strip) so the two
   pages stay visually identical to what shipped before. Below it are the
   components the split introduced: the guides grid, the bundle CTA
   banner, and the stacked bundle rows.
   ========================================================== */

  :root {
    --bg-0: #0a1a31;
    --bg-1: #0c2040;
    --bg-2: #0e2549;
    --panel-edge: rgba(120,180,235,.14);
    --cyan: #16c6e6;
    --cyan-2: #00bcd4;
    --cyan-deep: #0a99b8;
    --ink: #ffffff;
    --ink-mute: #92a8c8;
    --ink-dim: #6981a4;
    --line: rgba(255,255,255,.10);
    --bracket: #2c5f93;
    --maxw: 1240px;
    --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg-0);
    color: var(--ink);
    font-family: var(--display);
    font-size: 16px; line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }
  a { color: var(--cyan); text-decoration: none; }
  .mono { font-family: var(--mono); }

  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

  /* ───────── corner-bracket frame (reusable) ───────── */
  .framed { position: relative; }
  .framed > .frame {
    position: absolute; inset: 26px; pointer-events: none; z-index: 1;
    --b: var(--bracket); --len: 22px; --w: 2px;
    background:
      linear-gradient(var(--b),var(--b)) left 0 top 0 / var(--len) var(--w) no-repeat,
      linear-gradient(var(--b),var(--b)) left 0 top 0 / var(--w) var(--len) no-repeat,
      linear-gradient(var(--b),var(--b)) right 0 top 0 / var(--len) var(--w) no-repeat,
      linear-gradient(var(--b),var(--b)) right 0 top 0 / var(--w) var(--len) no-repeat,
      linear-gradient(var(--b),var(--b)) left 0 bottom 0 / var(--len) var(--w) no-repeat,
      linear-gradient(var(--b),var(--b)) left 0 bottom 0 / var(--w) var(--len) no-repeat,
      linear-gradient(var(--b),var(--b)) right 0 bottom 0 / var(--len) var(--w) no-repeat,
      linear-gradient(var(--b),var(--b)) right 0 bottom 0 / var(--w) var(--len) no-repeat;
  }

  /* ───────── nav ───────── */
  .nav {
    position: sticky; top: 0; z-index: 60;
    background: rgba(10,26,49,.82);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
  .logo { display: flex; align-items: center; gap: 11px; font-family: var(--mono); font-weight: 700; color: #fff; font-size: 14px; letter-spacing: 0.02em; }
  .logo .mk {
    width: 30px; height: 30px; display: grid; place-items: center;
    border: 1.5px solid var(--cyan); color: var(--cyan);
    font-weight: 700; font-size: 14px; border-radius: 4px;
    box-shadow: 0 0 18px -4px rgba(22,198,230,.5);
  }
  .nav-links { display: flex; align-items: center; gap: 30px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; }
  .nav-links a { color: var(--ink-mute); }
  .nav-links a:hover { color: #fff; }
  .nav-course-item { position: relative; display: flex; align-items: center; }
  .nav-course-item .nav-course-notice {
    position: absolute; top: 30px; left: 50%; transform: translateX(-50%);
    background: var(--bg-1); border: 1px solid var(--panel-edge); color: var(--ink-mute);
    font-size: 11.5px; letter-spacing: 0.04em; text-transform: none;
    white-space: nowrap; padding: 7px 12px; border-radius: 4px; display: none; z-index: 30;
  }
  .nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--cyan); color: var(--cyan);
    background: rgba(22,198,230,.06);
    padding: 9px 16px; font-family: var(--mono); font-weight: 600; font-size: 12px;
    letter-spacing: 0.06em; text-transform: uppercase; border-radius: 4px;
    transition: background .15s ease, color .15s ease;
  }
  .nav-cta:hover { background: var(--cyan); color: var(--bg-0); }

  /* mobile nav toggle — hidden above the 1080px breakpoint where nav-links
     shows inline; see the max-width:1080px block below for the open panel */
  .nav-toggle {
    display: none; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 36px; height: 36px; background: transparent; border: none;
    cursor: pointer; padding: 0; flex-shrink: 0;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink-mute); transition: transform .2s ease, opacity .2s ease, background .2s ease; }
  .nav-toggle:hover span { background: #fff; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ───────── masthead ───────── */
  .masthead { padding: 60px 0 14px; text-align: center; position: relative; }
  .masthead .kicker {
    font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--cyan);
  }
  .masthead h1 {
    font-family: var(--display); font-weight: 700;
    font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02;
    letter-spacing: -0.02em; margin: 18px 0 18px; color: #fff;
    text-wrap: balance;
  }
  .masthead h1 em { font-style: normal; color: var(--cyan); }
  .masthead p {
    color: var(--ink-mute); font-size: 18px; max-width: 600px; margin: 0 auto;
    line-height: 1.55;
  }
  .masthead .scroll-hint {
    margin-top: 34px; font-family: var(--mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-dim);
    display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
    text-decoration: none;
    transition: color .2s ease;
  }
  .masthead .scroll-hint:hover { color: var(--cyan); }
  .masthead .scroll-hint .chev {
    color: var(--cyan);
    animation: chevBob 1.8s ease-in-out infinite;
  }
  @keyframes chevBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .masthead .scroll-hint .chev { animation: none; }
  }

  /* ───────── floating scroll button ─────────
     Translucent + blurred at rest (not solid) -- it's a fixed overlay above
     scrollable card content, so at some scroll positions it sits over a
     card's "View guide" link. Solid cyan fully hid that text; a frosted
     backdrop (matching the .carousel-dots/.carousel-btn treatment already
     used elsewhere in this codebase) keeps it legible-through rather than
     erased, and it still resolves to fully opaque on hover/focus so the
     control itself never looks washed out when actually in use. */
  .scroll-fab {
    position: fixed; right: 30px; bottom: 30px; z-index: 80;
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(22,198,230,.6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    color: var(--bg-0);
    border: none; cursor: pointer;
    display: grid; place-items: center;
    box-shadow: 0 10px 28px -6px rgba(22,198,230,.4), 0 3px 8px rgba(0,0,0,.3);
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  }
  .scroll-fab:hover, .scroll-fab:focus-visible { background: #fff; transform: translateY(-3px); box-shadow: 0 14px 32px -6px rgba(22,198,230,.7), 0 4px 10px rgba(0,0,0,.4); }
  .scroll-fab:active { transform: translateY(-1px); }
  .scroll-fab .chev-wrap { display: grid; place-items: center; transition: transform .35s ease; }
  .scroll-fab.up .chev-wrap { transform: rotate(180deg); }
  .scroll-fab svg { animation: fabBob 1.8s ease-in-out infinite; }
  @keyframes fabBob {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(3px); }
  }
  @media (prefers-reduced-motion: reduce) {
    .scroll-fab svg { animation: none; }
  }
  @media (max-width: 600px) {
    .scroll-fab { right: 18px; bottom: 18px; width: 50px; height: 50px; }
  }


  .lib-divider { padding: 56px 0 0; }
  .lib-divider .wrap { display: flex; align-items: center; gap: 18px; }
  .lib-divider .line { flex: 1; height: 1px; background: var(--line); }
  .lib-divider .label-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .lib-divider .label {
    font-family: var(--display); font-size: clamp(20px, 2.4vw, 28px); font-weight: 400;
    letter-spacing: -0.01em; text-transform: none; color: #fff; white-space: nowrap;
  }
  .lib-divider .chev {
    color: var(--cyan);
    animation: chevBob 1.8s ease-in-out infinite;
  }
  @media (prefers-reduced-motion: reduce) {
    .lib-divider .chev { animation: none; }
  }

  /* ───────── author ───────── */
  .author { padding: 96px 0; border-top: 1px solid var(--line); }
  .author-inner { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: center; }
  .portrait {
    aspect-ratio: 4/5; border-radius: 6px; position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--panel-edge);
    background: linear-gradient(160deg, #143659, #0e2545);
  }
  .portrait img {
    width: 100%; height: 100%; object-fit: cover; object-position: center top;
    display: block;
  }
  .portrait::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    box-shadow: inset 0 0 0 1px var(--panel-edge);
    background: linear-gradient(180deg, transparent 55%, rgba(10,26,49,.35));
  }
  .portrait .corner {
    position: absolute; left: 14px; bottom: 12px; z-index: 2;
    font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
    text-transform: uppercase; color: rgba(255,255,255,.85);
  }
  .portrait .corner b { color: var(--cyan); font-weight: 600; }
  .author .eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
  .author h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.02em; color: #fff; margin: 18px 0 20px; text-wrap: balance; }
  .author p { color: var(--ink-mute); font-size: 16.5px; line-height: 1.65; max-width: 620px; margin: 0 0 16px; }
  .author p strong { color: #dce6f4; font-weight: 600; }
  .author-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
  .author-stat .k { font-family: var(--display); font-weight: 700; font-size: 26px; color: #fff; letter-spacing: -0.01em; }
  .author-stat .v { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); margin-top: 6px; line-height: 1.4; }

  /* ───────── footer ───────── */
  footer { border-top: 1px solid var(--cyan); padding: 60px 0 40px; background: var(--bg-1); }
  .foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
  .foot-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 14px; }
  .foot-col a { display: block; color: var(--ink-mute); font-size: 13.5px; padding: 4px 0; }
  .foot-col a:hover { color: var(--cyan); }
  .foot-blurb { color: var(--ink-mute); font-size: 13.5px; line-height: 1.55; margin: 14px 0 0; max-width: 300px; }
  .foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: var(--ink-dim); text-transform: uppercase; }
  .foot-bottom .gr { color: var(--cyan); }

  /* ── Free guide strip (green-accented, distinct from paid) ── */
  .free-strip { padding: 48px 0 8px; }
  .free-strip .fs-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
    background: linear-gradient(160deg, rgba(52,211,153,.10), rgba(52,211,153,.02));
    border: 1px solid rgba(52,211,153,.35); border-radius: 14px; padding: 28px 32px;
  }
  .free-strip .fs-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono);
    font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #34d399;
    background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.4); border-radius: 100px; padding: 5px 11px; }
  .free-strip .fs-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; }
  .free-strip h2 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.6vw, 32px);
    line-height: 1.1; letter-spacing: -.02em; margin: 14px 0 8px; }
  .free-strip h2 .cy { color: #34d399; }
  .free-strip p { color: var(--ink-mute); font-size: 15px; line-height: 1.55; margin: 0; max-width: 56ch; }
  .free-strip .fs-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
  .free-strip .fs-btn { display: inline-flex; align-items: center; gap: 8px; background: #34d399; color: #06210f;
    font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase;
    padding: 12px 20px; border-radius: 5px; transition: background .15s ease, transform .15s ease; }
  .free-strip .fs-btn:hover { background: #fff; transform: translateY(-2px); }
  .free-strip .fs-dl { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px;
    letter-spacing: .04em; text-transform: uppercase; color: var(--ink-mute); border: 1px solid var(--line);
    padding: 12px 18px; border-radius: 5px; transition: color .15s ease, border-color .15s ease; }
  .free-strip .fs-dl:hover { color: #fff; border-color: rgba(52,211,153,.5); }
  .free-strip .fs-meta { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink-dim); white-space: nowrap; }
  @media (max-width: 680px) { .free-strip .fs-meta { display: none; } }

/* ══════════════════ new components ══════════════════ */

/* ───────── compact hero ───────── */
.sf-hero { padding: 56px 0 12px; text-align: center; }
.sf-hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(34px, 4.8vw, 58px); line-height: 1.04;
  letter-spacing: -0.02em; margin: 0 0 16px; color: #fff; text-wrap: balance;
}
.sf-hero h1 em { font-style: normal; color: var(--cyan); }
.sf-hero p { color: var(--ink-mute); font-size: 17px; line-height: 1.55; max-width: 620px; margin: 0 auto; }

/* ───────── guides grid ───────── */
.sf-guides { padding: 40px 0 8px; }
.sf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

.gc {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  transition: transform .2s ease;
}
.gc:hover { transform: translateY(-4px); }

/* real cover art, cropped to the book. aspect 456/590 = 0.773 (~3:4) */
.gc-cover {
  position: relative; aspect-ratio: 456 / 590; overflow: hidden;
  border-radius: 4px; background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--panel-edge), 0 26px 44px -28px rgba(0,0,0,.8);
  transition: box-shadow .2s ease;
}
.gc:hover .gc-cover { box-shadow: inset 0 0 0 1px rgba(22,198,230,.45), 0 34px 56px -26px rgba(0,0,0,.85); }
.gc-cover img {
  position: absolute; display: block;
  width: 280.7%;      /* 1280 / 456 */
  height: auto;
  left: -18.86%;      /* 86 / 456 of tile width */
  top: -11.02%;       /* 65 / 590 of tile height */
}
.gc-step {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--mono); font-weight: 700; font-size: 8.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--bg-0); background: var(--cyan);
  border-radius: 100px; padding: 4px 9px;
  box-shadow: 0 4px 12px -3px rgba(22,198,230,.7);
}
.gc-meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-dim); margin-top: 14px;
}
.gc-price { font-family: var(--display); font-weight: 700; font-size: 21px; color: #fff; letter-spacing: -0.01em; margin-top: 7px; }
.gc-cta {
  margin-top: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-weight: 700; font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--cyan);
  border: 1px solid rgba(22,198,230,.45); border-radius: 5px; padding: 11px 12px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.gc:hover .gc-cta { background: var(--cyan); color: var(--bg-0); border-color: var(--cyan); }

/* ───────── bundle CTA banner ───────── */
.sf-banner { padding: 52px 0 8px; }
.sf-banner-inner {
  position: relative; text-align: center;
  border: 1px solid rgba(22,198,230,.35); border-radius: 10px;
  background: linear-gradient(160deg, rgba(22,198,230,.07), transparent 62%);
  padding: 40px 32px;
}
.sf-banner h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(24px, 3vw, 36px); line-height: 1.08; letter-spacing: -0.02em;
  color: #fff; margin: 0 0 12px; text-wrap: balance;
}
.sf-banner h2 .cy { color: var(--cyan); }
.sf-banner p { color: var(--ink-mute); font-size: 15.5px; line-height: 1.6; margin: 0 auto 22px; max-width: 60ch; }
.sf-banner .btn-bundle {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cyan); color: var(--bg-0);
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 16px 26px; border-radius: 5px;
  transition: background .15s ease, transform .15s ease;
}
.sf-banner .btn-bundle:hover { background: #fff; transform: translateY(-2px); }

/* ───────── bundles page: full-width stacked rows ───────── */
.bp-hero { padding: 52px 0 6px; text-align: center; }
.bp-hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -0.02em;
  color: #fff; margin: 0 0 14px;
}
.bp-hero h1 .cy { color: var(--cyan); }
.bp-hero p { color: var(--ink-mute); font-size: 17px; line-height: 1.55; max-width: 600px; margin: 0 auto; }

.bp-stack { display: flex; flex-direction: column; gap: 26px; padding: 38px 0 20px; }
.bp-row {
  position: relative; display: grid; grid-template-columns: minmax(0, 400px) 1fr;
  gap: 44px; align-items: center;
  border: 1px solid var(--panel-edge); border-radius: 10px;
  background: linear-gradient(150deg, rgba(20,70,120,.28), transparent 62%);
  padding: 32px 34px;
}
.bp-row.featured { border-color: rgba(22,198,230,.55); background: linear-gradient(150deg, rgba(22,198,230,.10), transparent 62%); }
.bp-flag {
  position: absolute; top: -11px; left: 30px;
  font-family: var(--mono); font-weight: 700; font-size: 9.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--bg-0); background: var(--cyan);
  border-radius: 100px; padding: 5px 12px;
  box-shadow: 0 6px 16px -4px rgba(22,198,230,.65);
}
/* Fanned covers of every included guide. Each row declares --n (how many)
   and --o (how much of each tile the next one covers), and the fan always
   spans the column exactly: run = W(1 + (n-1)(1-o)), so W = 100%/that.
   The 8-guide row overlaps harder (0.66 vs 0.5) so its covers stay a
   readable size instead of collapsing into slivers. */
.bp-covers { --n: 3; --o: 0.5; display: flex; align-items: flex-start; }
.bp-thumb {
  width: calc(100% / (1 + (var(--n) - 1) * (1 - var(--o))));
  flex: none; aspect-ratio: 456 / 590; position: relative; overflow: hidden;
  border-radius: 3px; box-shadow: inset 0 0 0 1px var(--panel-edge), 0 12px 26px -12px rgba(0,0,0,.8);
}
.bp-thumb + .bp-thumb {
  margin-left: calc(-1 * var(--o) * 100% / (1 + (var(--n) - 1) * (1 - var(--o))));
}

/* what the bundle actually contains, by name */
.bp-includes { display: grid; grid-template-columns: 1fr; gap: 9px; margin: 0 0 22px; }
.bp-includes.two-col { grid-template-columns: 1fr 1fr; gap: 9px 26px; }
.bp-inc { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; line-height: 1.35; color: #c4d2e8; }
.bp-inc b { flex: none; min-width: 12px; font-family: var(--mono); font-weight: 700; font-size: 10px; color: var(--cyan); }
.bp-inc .amt { color: var(--ink-dim); font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.bp-trust {
  display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 20px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.03em; color: var(--cyan);
}
.bp-trust span { display: inline-flex; align-items: center; gap: 7px; }
.bp-thumb img { position: absolute; display: block; width: 280.7%; height: auto; left: -18.86%; top: -11.02%; }
.bp-thumb:nth-child(1) { z-index: 8; }
.bp-thumb:nth-child(2) { z-index: 7; }
.bp-thumb:nth-child(3) { z-index: 6; }
.bp-thumb:nth-child(4) { z-index: 5; }
.bp-thumb:nth-child(5) { z-index: 4; }
.bp-thumb:nth-child(6) { z-index: 3; }
.bp-thumb:nth-child(7) { z-index: 2; }

/* Cover height follows tile width (the aspect is the book's real shape), so
   the 8-cover row gets a wider column as well as a deeper overlap. Without
   both, eight covers sharing one column stand noticeably shorter than the
   three and four in the rows above.
   Kept inside a min-width query on purpose: an #id selector outranks the
   single-column .bp-row rule below, so left unscoped it held the two-column
   layout on phones and crushed the covers to 50px. */
@media (min-width: 1081px) {
  #bundle { grid-template-columns: minmax(0, 540px) 1fr; }
}

.bp-eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.bp-name {
  font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.08; letter-spacing: -0.02em; color: #fff; margin: 12px 0 12px; text-wrap: balance;
}
.bp-line { color: var(--ink-mute); font-size: 15px; line-height: 1.6; margin: 0 0 8px; max-width: 62ch; }
.bp-support { font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--ink-dim); margin: 0 0 20px; max-width: 62ch; }
.bp-priceline { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.bp-now { font-family: var(--display); font-weight: 700; font-size: 40px; color: #fff; letter-spacing: -0.02em; }
.bp-was { font-family: var(--display); font-size: 18px; color: var(--ink-dim); text-decoration: line-through; }
.bp-save {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cyan); border: 1px solid rgba(22,198,230,.4); border-radius: 4px; padding: 5px 9px;
}
.bp-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--cyan); color: var(--bg-0);
  font-family: var(--mono); font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 15px 24px; border-radius: 5px;
  transition: background .15s ease, transform .15s ease;
}
.bp-cta:hover { background: #fff; transform: translateY(-2px); }

/* ───────── responsive ───────── */
@media (max-width: 1080px) {
  .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-row { grid-template-columns: 1fr; gap: 26px; }
  .bp-covers { max-width: 340px; }
  .author-inner { grid-template-columns: 1fr; gap: 40px; max-width: 560px; margin: 0 auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-0); border-bottom: 1px solid var(--line);
    padding: 6px 0; box-shadow: 0 16px 28px -10px rgba(0,0,0,.55);
    max-height: calc(100vh - 66px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 24px; font-size: 18px; letter-spacing: 0.02em; border-bottom: 1px solid var(--line); }
  .nav-links a:hover { color: var(--cyan); }
  .nav-course-item { width: 100%; display: block; border-bottom: 1px solid var(--line); }
  .nav-course-item a { border-bottom: none; }
  .nav-course-item .nav-course-notice {
    position: static; transform: none; display: none; background: none; border: none;
    padding: 0 24px 14px; font-size: 14px; text-align: left; white-space: normal;
  }
  .nav-links a:last-child { border-bottom: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 22px; }
  .author-stats { grid-template-columns: 1fr 1fr; }
  .framed > .frame { inset: 14px; }
  /* the footer logo is joined by non-breaking spaces, so a 2-col footer
     can't shrink below its width and pushed the page ~4px wide at 360px */
  .foot-grid { grid-template-columns: 1fr; }
  .bp-row { padding: 26px 22px; }
  .bp-now { font-size: 34px; }
  /* two 137px columns on a phone wrapped every guide title three deep */
  .bp-includes.two-col { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sf-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .sf-hero { padding: 38px 0 6px; }
  .sf-banner-inner { padding: 30px 22px; }
}

/* ───────── contact section ─────────
   Same three channels as qasmith.ai's own Contact page (real email,
   WhatsApp number, LinkedIn profile), shown as visible icon cards rather
   than buried in footer text -- this is the primary "how do I reach a
   human" moment on the page, so it gets its own section. */
.contact-section { padding: 8px 0 48px; }
.contact-head { text-align: center; margin-bottom: 28px; }
.contact-head h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; letter-spacing: -0.02em;
  color: #fff; margin: 0 0 8px;
}
.contact-head p { color: var(--ink-mute); font-size: 14.5px; margin: 0; }
.contact-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.contact-card {
  flex: 1 1 220px; display: flex; align-items: center; justify-content: center; gap: 14px;
  background: var(--bg-1); border: 1px solid var(--panel-edge); border-radius: 8px;
  padding: 16px 18px; text-decoration: none;
  transition: transform .15s ease, border-color .15s ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: rgba(22,198,230,.4); }
.contact-icon {
  width: 42px; height: 42px; flex: none; border-radius: 10px;
  display: grid; place-items: center; font-size: 20px;
  background: rgba(22,198,230,.12); border: 1px solid rgba(22,198,230,.25);
}
/* no label line -- the icon already says which channel this is */
.contact-value { font-size: 15px; color: var(--cyan); font-weight: 500; }
@media (max-width: 560px) { .contact-card { flex: 1 1 100%; } }
