/* ============================================================================
   KushStartups — Step 1: frontend foundation + homepage
   ----------------------------------------------------------------------------
   FILE MAP (keep this order when extending in later steps)
     CSS  1. Design tokens
          2. Reset & base
          3. Reusable components
          4. Topbar / header / navigation
          5. Hero + topic strip
          6. Featured e-books
          7. Limited-time offer + countdown
          8. About / social proof / contact
          9. Footer, toast, back-to-top, utilities
         10. Responsive breakpoints
     HTML 11. Page markup
     JS   12. CONFIG (single source of truth for content)
          13. Renderers  (e-book cards, covers, reviews, stats)
          14. Interactions (nav, countdown, reveal, forms, toast)
   ========================================================================= */

/* ---------- 1. DESIGN TOKENS --------------------------------------------- */
:root{
  /* This UI is dark. Without it the browser assumes light and paints native
     widgets — the <select> dropdown list, scrollbars, date pickers, autofill —
     on a light ground, while <option> text inherits --text (near white). That
     made every dropdown render white on white. */
  color-scheme:dark;

  /* surfaces */
  --ink:#06070A;
  --ink-2:#0A0C11;
  --surface:#101319;
  --surface-2:#161A23;
  --line:rgba(255,255,255,.08);
  --line-2:rgba(255,255,255,.15);

  /* text */
  --text:#EEF1F6;
  --muted:#98A2B3;
  /* was #727C8C, which measured 4.52:1 at its worst across 58 uses —
     technically AA but genuinely hard to read at 11-13px. 6.23:1 now,
     still 82% of --muted so the three text tiers stay distinguishable. */
  --muted-2:#8A94A6;

  /* brand accents */
  --gold:#FFB43D;
  --gold-2:#FF7A18;
  --mint:#25D98C;
  --grad-gold:linear-gradient(135deg,#FFD08A 0%,#FFB43D 40%,#FF7A18 100%);

  /* shape & depth */
  --r-sm:10px;
  --r:14px;
  --r-lg:22px;
  --r-xl:30px;
  --shadow:0 18px 40px -22px rgba(0,0,0,.9);
  --shadow-lg:0 40px 90px -40px rgba(0,0,0,.95);

  /* metrics */
  --container:1180px;
  --nav-h:70px;
  --ease:cubic-bezier(.22,.61,.36,1);

  /* fonts */
  --font-display:"Sora","Segoe UI",system-ui,sans-serif;
  --font-body:"Inter","Segoe UI",system-ui,-apple-system,sans-serif;
}

/* ---------- 2. RESET & BASE --------------------------------------------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  background:var(--ink);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
body.nav-open{overflow:hidden}

/* ambient brand glow + film grain, fixed behind all content */
body::before{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(900px 520px at 10% -6%, rgba(255,138,43,.14), transparent 62%),
    radial-gradient(760px 520px at 92% 4%, rgba(37,217,140,.075), transparent 60%),
    radial-gradient(700px 700px at 50% 118%, rgba(255,180,61,.06), transparent 60%);
}
body::after{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.03;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

img,svg{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
ul,ol{margin:0;padding:0;list-style:none}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:700;line-height:1.12;letter-spacing:-.02em;margin:0}
p{margin:0}
::selection{background:rgba(255,180,61,.3)}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:8px}

.container{width:min(var(--container),100% - 44px);margin-inline:auto}
.section{position:relative;z-index:1;padding:clamp(60px,7.5vw,116px) 0}
section[id]{scroll-margin-top:94px}

/* ---------- 3. REUSABLE COMPONENTS -------------------------------------- */
.eyebrow{
  display:inline-flex;align-items:center;gap:9px;
  padding:7px 15px 7px 12px;border-radius:999px;
  background:rgba(255,180,61,.09);border:1px solid rgba(255,180,61,.24);
  color:#FFCE85;font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;
}
.eyebrow i{width:6px;height:6px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 4px rgba(255,180,61,.16)}

.section-head{max-width:680px;margin-bottom:clamp(34px,4vw,54px)}
.section-head.center{margin-inline:auto;text-align:center}
.section-head h2{font-size:clamp(28px,4.1vw,46px);margin:18px 0 14px}
.section-head p{color:var(--muted);font-size:clamp(15px,1.6vw,17.5px);max-width:60ch}
.section-head.center p{margin-inline:auto}
.grad{background:var(--grad-gold);-webkit-background-clip:text;background-clip:text;color:transparent}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:14px 24px;border-radius:999px;font-weight:600;font-size:15px;
  border:1px solid transparent;white-space:nowrap;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease),background .25s,border-color .25s,color .25s;
}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(0)}
.btn svg{width:17px;height:17px;flex:none}
.btn-primary{background:var(--grad-gold);color:#170F04;box-shadow:0 14px 34px -14px rgba(255,138,43,.7)}
.btn-primary:hover{box-shadow:0 20px 46px -14px rgba(255,138,43,.85)}
.btn-ghost{background:rgba(255,255,255,.035);border-color:var(--line-2);color:var(--text)}
.btn-ghost:hover{border-color:rgba(255,180,61,.55);background:rgba(255,180,61,.08)}
.btn-dark{background:#0A0C11;color:#fff;box-shadow:0 16px 40px -18px rgba(0,0,0,.95)}
.btn-block{width:100%}
.btn-lg{padding:16px 30px;font-size:16px}

/* ---------- 4. TOPBAR / HEADER / NAV ------------------------------------ */
.topbar{
  position:relative;z-index:60;
  background:linear-gradient(90deg,#FF7A18,#FFB43D 55%,#FF9E2C);
  color:#1A1105;font-size:13.5px;font-weight:600;
}
.topbar .container{
  display:flex;align-items:center;justify-content:center;gap:10px;
  min-height:40px;padding-block:8px;text-align:center;flex-wrap:wrap;
}
.topbar strong{font-weight:800}
.topbar a{text-decoration:underline;text-underline-offset:3px;white-space:nowrap}

.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(6,7,10,.6);
  backdrop-filter:blur(18px) saturate(160%);
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  border-bottom:1px solid transparent;
  transition:background .3s,border-color .3s,box-shadow .3s;
}
.site-header.is-stuck{background:rgba(6,7,10,.92);border-bottom-color:var(--line);box-shadow:0 14px 34px -26px #000}
.nav{display:flex;align-items:center;gap:22px;min-height:var(--nav-h)}

.brand{display:flex;align-items:center;gap:11px;margin-right:auto;flex:none}
.brand-mark{
  width:40px;height:40px;border-radius:12px;flex:none;
  background:var(--grad-gold);color:#170F04;
  display:grid;place-items:center;
  font-family:var(--font-display);font-weight:800;font-size:15px;letter-spacing:-.04em;
  box-shadow:0 10px 24px -12px rgba(255,138,43,.85);
}
.brand-text{display:flex;flex-direction:column;line-height:1.15}
.brand-text b{font-family:var(--font-display);font-size:17.5px;font-weight:700;letter-spacing:-.03em}
.brand-text span{font-size:10px;color:var(--muted-2);letter-spacing:.18em;text-transform:uppercase}

.nav-links{display:flex;align-items:center;gap:2px}
.nav-links a{
  position:relative;padding:9px 15px;border-radius:999px;
  font-size:14.5px;font-weight:500;color:var(--muted);
  transition:color .25s,background .25s;
}
.nav-links a:hover{color:var(--text);background:rgba(255,255,255,.05)}
.nav-links a.active{color:var(--text)}
.nav-links a.active::after{
  content:"";position:absolute;left:50%;bottom:3px;transform:translateX(-50%);
  width:16px;height:2px;border-radius:2px;background:var(--grad-gold);
}
.nav-actions{display:flex;align-items:center;gap:10px;flex:none}

.nav-toggle{
  display:none;width:42px;height:42px;border-radius:12px;
  border:1px solid var(--line-2);background:rgba(255,255,255,.04);
  place-items:center;
}
.nav-toggle span{display:block;width:18px;height:1.8px;border-radius:2px;background:var(--text);transition:transform .3s var(--ease),opacity .2s}
.nav-toggle span+span{margin-top:4.5px}
.site-header.menu-open .nav-toggle span:nth-child(1){transform:translateY(6.3px) rotate(45deg)}
.site-header.menu-open .nav-toggle span:nth-child(2){opacity:0}
.site-header.menu-open .nav-toggle span:nth-child(3){transform:translateY(-6.3px) rotate(-45deg)}

/* mobile drawer is anchored to the sticky header so it always lines up */
.mobile-menu{
  display:none;position:absolute;left:0;right:0;top:100%;
  padding:14px 22px 24px;
  background:rgba(8,9,13,.98);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--line);
  transform:translateY(-12px);opacity:0;pointer-events:none;
  transition:transform .35s var(--ease),opacity .28s;
}
.mobile-menu.open{transform:none;opacity:1;pointer-events:auto}
.mobile-menu a{
  display:flex;align-items:center;justify-content:space-between;
  padding:15px 4px;font-size:17px;font-weight:600;
  border-bottom:1px solid var(--line);color:var(--text);
}
.mobile-menu a em{font-style:normal;color:var(--muted-2);font-size:13.5px;font-weight:500}
.mobile-menu .btn{margin-top:20px}

/* ---------- 5. HERO + TOPIC STRIP --------------------------------------- */
.hero{position:relative;z-index:1;padding:clamp(44px,5.6vw,84px) 0 clamp(52px,6.6vw,100px)}
.hero-grid{display:grid;grid-template-columns:1.06fr .94fr;gap:clamp(32px,4.4vw,64px);align-items:center}
.hero h1{font-size:clamp(33px,5.4vw,62px);font-weight:800;margin:22px 0 20px;letter-spacing:-.035em}
.hero-sub{color:var(--muted);font-size:clamp(15.5px,1.75vw,18.5px);max-width:54ch}
.hero-cta{display:flex;flex-wrap:wrap;gap:13px;margin:30px 0 22px}
.hero-note{display:flex;align-items:center;gap:9px;color:var(--muted-2);font-size:13.5px}
.hero-note svg{width:15px;height:15px;color:var(--mint);flex:none}
.hero-stats{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;
  margin-top:34px;padding-top:28px;border-top:1px solid var(--line);
}
.hero-stats b{display:block;font-family:var(--font-display);font-size:clamp(21px,2.7vw,29px);font-weight:700;letter-spacing:-.03em}
.hero-stats span{font-size:12.5px;color:var(--muted-2)}

/* stacked book covers */
.hero-visual{position:relative;display:grid;place-items:center;padding:14px}
.hero-visual::before{
  content:"";position:absolute;width:74%;aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle,rgba(255,138,43,.26),transparent 66%);filter:blur(10px);
}
.stack{position:relative;width:min(100%,440px);aspect-ratio:1/.92}
.stack .cover{
  position:absolute;width:52%;border-radius:12px;overflow:hidden;
  border:1px solid rgba(255,255,255,.14);box-shadow:var(--shadow-lg);
  transition:transform .6s var(--ease);
}
.stack .c1{left:0;top:15%;z-index:1;transform:rotate(-9deg)}
.stack .c2{left:24%;top:2%;z-index:3;transform:scale(1.06)}
.stack .c3{right:0;top:17%;z-index:2;transform:rotate(9deg)}
.stack:hover .c1{transform:rotate(-13deg) translateY(-8px)}
.stack:hover .c3{transform:rotate(13deg) translateY(-8px)}
.stack:hover .c2{transform:scale(1.09) translateY(-6px)}

.chip{
  position:absolute;z-index:5;display:flex;align-items:center;gap:10px;
  padding:11px 15px;border-radius:14px;
  background:rgba(10,12,17,.86);border:1px solid var(--line-2);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  box-shadow:var(--shadow);animation:float 6s ease-in-out infinite;
}
.chip b{display:block;font-size:13.5px;line-height:1.3}
.chip span{font-size:11.5px;color:var(--muted-2)}
.chip-a{left:-4%;bottom:6%}
.chip-b{right:-2%;top:6%;animation-delay:-3s}
/* Scoped to .chip on purpose. Bare .chip-ico is (0,1,0) and loses its colour
   to .chip span (0,1,1) above, which is meant for the sub-label — the star
   rendered grey on its gold-tinted tile. The mint variant never showed the bug
   because .chip-ico.mint is (0,2,0). Now (0,2,0) and (0,3,0): base beats
   .chip span, and mint still beats base. */
.chip .chip-ico{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:none;background:rgba(255,180,61,.14);color:var(--gold)}
.chip .chip-ico.mint{background:rgba(37,217,140,.14);color:var(--mint)}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}

.strip{
  position:relative;z-index:1;overflow:hidden;
  padding:15px 0;border-block:1px solid var(--line);background:rgba(255,255,255,.02);
}
.strip::before,.strip::after{content:"";position:absolute;top:0;bottom:0;width:90px;z-index:2;pointer-events:none}
.strip::before{left:0;background:linear-gradient(90deg,var(--ink),transparent)}
.strip::after{right:0;background:linear-gradient(270deg,var(--ink),transparent)}
.marquee{display:flex;width:max-content;animation:marquee 38s linear infinite}
.strip:hover .marquee{animation-play-state:paused}
.marquee ul{display:flex;align-items:center}
.marquee li{
  display:inline-flex;align-items:center;gap:22px;padding-right:22px;white-space:nowrap;
  font-family:var(--font-display);font-size:13px;font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;color:var(--muted-2);
}
.marquee li i{width:5px;height:5px;border-radius:50%;background:var(--gold);opacity:.85;flex:none}
@keyframes marquee{to{transform:translateX(-50%)}}

/* ---------- 6. FEATURED E-BOOKS ---------------------------------------- */
.books-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap}
.books-head .section-head{margin-bottom:0}
.books{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:clamp(30px,3.6vw,50px)}
.book{
  position:relative;display:flex;flex-direction:column;padding:16px;
  border-radius:var(--r-lg);border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.016));
  transition:transform .4s var(--ease),border-color .3s,box-shadow .4s;
}
.book:hover{
  transform:translateY(-6px);border-color:rgba(255,180,61,.34);
  box-shadow:0 40px 80px -46px #000,0 0 0 1px rgba(255,180,61,.05);
}
.book-cover{position:relative;border-radius:var(--r);overflow:hidden;background:#0C0E13;aspect-ratio:3/4}
.book-cover svg{width:100%;height:100%}
.badge-off{
  position:absolute;top:12px;right:12px;padding:6px 11px;border-radius:999px;
  background:var(--grad-gold);color:#170F04;font-size:12px;font-weight:800;
  box-shadow:0 10px 22px -10px rgba(0,0,0,.9);
}
.badge-tag{
  position:absolute;top:12px;left:12px;padding:5px 10px;border-radius:999px;
  background:rgba(6,7,10,.72);border:1px solid var(--line-2);
  backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);
  font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#FFCE85;
}
.book-body{display:flex;flex-direction:column;flex:1;gap:11px;padding:18px 6px 4px}
.book-body h3{font-size:19.5px;letter-spacing:-.025em}
.book-meta{display:flex;align-items:center;gap:9px;font-size:12.4px;color:var(--muted-2)}
.book-meta .stars{color:var(--gold);letter-spacing:1.5px;font-size:12px}
.book-meta em{font-style:normal;opacity:.45}
.book-desc{color:var(--muted);font-size:14.4px;line-height:1.62}
.book-points{display:flex;flex-direction:column;gap:7px}
.book-points li{display:flex;gap:9px;font-size:13.3px;color:#C3CAD6;line-height:1.5}
.book-points svg{width:14px;height:14px;flex:none;margin-top:4px;color:var(--mint)}
.price-row{
  display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;
  margin-top:auto;padding-top:15px;border-top:1px dashed var(--line);
}
.price-now{font-family:var(--font-display);font-size:26px;font-weight:800;letter-spacing:-.03em}
.price-was{color:var(--muted-2);text-decoration:line-through;font-size:15px}
.price-save{
  margin-left:auto;padding:4px 10px;border-radius:999px;
  font-size:12px;font-weight:700;color:var(--mint);
  background:rgba(37,217,140,.1);border:1px solid rgba(37,217,140,.26);
}
.book-foot{display:flex;flex-direction:column;gap:10px;padding-top:15px}
.book-trust{text-align:center;font-size:11.8px;color:var(--muted-2)}
.books-assure{
  display:flex;flex-wrap:wrap;gap:14px 30px;justify-content:center;
  margin-top:clamp(28px,3.4vw,44px);padding-top:26px;border-top:1px solid var(--line);
}
.books-assure li{display:flex;align-items:center;gap:9px;font-size:13.6px;color:var(--muted)}
.books-assure svg{width:16px;height:16px;color:var(--gold);flex:none}

/* ---------- 7. LIMITED-TIME OFFER + COUNTDOWN -------------------------- */
.offer-panel{
  position:relative;padding:1px;border-radius:var(--r-xl);box-shadow:var(--shadow-lg);
  background:linear-gradient(140deg,rgba(255,180,61,.65),rgba(255,255,255,.06) 40%,rgba(37,217,140,.3));
}
.offer-inner{
  position:relative;overflow:hidden;
  border-radius:calc(var(--r-xl) - 1px);
  background:linear-gradient(150deg,#13161D,#0A0C11 62%);
  padding:clamp(26px,3.8vw,54px);
  display:grid;grid-template-columns:1.12fr .88fr;gap:clamp(26px,3.8vw,52px);align-items:center;
}
.offer-inner::before{
  content:"";position:absolute;width:420px;height:420px;right:-130px;top:-170px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,138,43,.2),transparent 66%);pointer-events:none;
}
.offer-copy{position:relative}
.offer-copy h2{font-size:clamp(26px,3.6vw,42px);margin:16px 0 14px}
.offer-copy p{color:var(--muted);font-size:15.8px;max-width:48ch}
.offer-perks{display:flex;flex-wrap:wrap;gap:9px;margin-top:22px}
.offer-perks li{
  padding:7px 13px;border-radius:999px;font-size:12.8px;color:#C9D0DB;
  background:rgba(255,255,255,.05);border:1px solid var(--line);
}
.offer-code{
  display:inline-flex;align-items:center;gap:10px;margin-top:22px;
  padding:10px 14px;border-radius:12px;font-size:13.4px;color:var(--muted);
  background:rgba(255,180,61,.07);border:1px dashed rgba(255,180,61,.4);
}
.offer-code b{font-family:var(--font-display);letter-spacing:.14em;color:var(--gold)}

.offer-box{
  position:relative;text-align:center;padding:clamp(22px,2.6vw,30px);
  border-radius:var(--r-lg);background:rgba(255,255,255,.035);border:1px solid var(--line-2);
}
.offer-box .label{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted-2)}
.offer-price{display:flex;align-items:baseline;justify-content:center;gap:10px;margin:10px 0 2px}
.offer-price b{font-family:var(--font-display);font-size:clamp(32px,4.2vw,46px);font-weight:800;letter-spacing:-.03em}
.offer-price s{color:var(--muted-2);font-size:17px}
.offer-price .save{font-size:12.5px;font-weight:700;color:var(--mint)}
.countdown{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:22px 0 20px}
.cd{
  padding:12px 4px;border-radius:var(--r);
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.02));
  border:1px solid var(--line);
}
.cd b{
  display:block;font-family:var(--font-display);font-weight:800;
  font-size:clamp(21px,2.9vw,30px);letter-spacing:-.02em;font-variant-numeric:tabular-nums;
}
.cd span{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted-2)}
.offer-box .btn{margin-bottom:12px}
.offer-meta{font-size:11.8px;color:var(--muted-2)}
.offer-ended{
  display:none;padding:14px;border-radius:var(--r);margin-bottom:16px;
  background:rgba(255,255,255,.04);border:1px solid var(--line);
  font-size:13.6px;color:var(--muted);
}
.offer-panel.expired .countdown{opacity:.35;filter:grayscale(1)}
.offer-panel.expired .offer-ended{display:block}

/* ---------- 8. ABOUT / SOCIAL PROOF / CONTACT --------------------------- */
.about-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:clamp(32px,4.6vw,64px);align-items:start}
.about-copy p{color:var(--muted);font-size:16.2px;margin-bottom:16px}
.about-copy p strong{color:var(--text);font-weight:600}
.pillars{display:grid;gap:13px;margin-top:28px}
.pillar{display:flex;gap:14px;padding:16px;border-radius:var(--r);background:rgba(255,255,255,.03);border:1px solid var(--line);transition:border-color .3s,background .3s}
.pillar:hover{border-color:rgba(255,180,61,.28);background:rgba(255,180,61,.045)}
.pillar-ico{
  width:40px;height:40px;border-radius:11px;flex:none;display:grid;place-items:center;
  background:rgba(255,180,61,.12);border:1px solid rgba(255,180,61,.26);color:var(--gold);
}
.pillar-ico svg{width:19px;height:19px}
.pillar h4{font-size:15.5px;margin-bottom:4px}
.pillar p{color:var(--muted);font-size:13.8px;line-height:1.55}

.numbers{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;
  border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--line);background:var(--line);
}
.numbers div{background:#0D1015;padding:clamp(18px,2.2vw,24px)}
.numbers b{display:block;font-family:var(--font-display);font-size:clamp(22px,2.8vw,28px);font-weight:700;letter-spacing:-.03em}
.numbers span{font-size:12.6px;color:var(--muted-2)}
/* founder card — photo is optional, falls back to a monogram */
.founder{
  display:flex;gap:18px;align-items:center;margin-bottom:16px;padding:18px;
  border-radius:var(--r-lg);border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,180,61,.08),rgba(255,255,255,.015) 70%);
}
.founder-photo{
  width:84px;height:84px;border-radius:20px;flex:none;overflow:hidden;
  display:grid;place-items:center;
  background:var(--grad-gold);color:#170F04;
  font-family:var(--font-display);font-weight:800;font-size:26px;
  box-shadow:0 14px 30px -16px rgba(255,138,43,.7);
}
/* the grid item is the <picture> wrapper now, so size that too */
.founder-photo picture{display:block;width:100%;height:100%}
.founder-photo img{width:100%;height:100%;object-fit:cover}
.founder .role{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);font-weight:700}
.founder b{display:block;font-family:var(--font-display);font-size:17px;letter-spacing:-.02em;margin-top:2px}
.founder p{color:var(--muted);font-size:13.8px;line-height:1.55;margin-top:8px}
.about-list{margin-top:16px;display:grid;gap:10px}
.about-list li{display:flex;gap:10px;font-size:14.2px;color:#C3CAD6}
.about-list svg{width:15px;height:15px;flex:none;margin-top:4px;color:var(--mint)}

.reviews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.review{
  padding:24px;border-radius:var(--r-lg);border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.014));
}
.review .stars{color:var(--gold);letter-spacing:2px;font-size:13px}
.review p{font-size:14.8px;color:#D4DAE4;margin:13px 0 18px;line-height:1.62}
.who{display:flex;align-items:center;gap:12px}
.avatar{
  width:40px;height:40px;border-radius:50%;flex:none;display:grid;place-items:center;
  font-family:var(--font-display);font-weight:700;font-size:14px;
  background:var(--grad-gold);color:#170F04;
}
.who b{display:block;font-size:14.2px}
.who span{font-size:12.2px;color:var(--muted-2)}

.contact-grid{display:grid;grid-template-columns:.92fr 1.08fr;gap:clamp(26px,4vw,54px);align-items:start}
.contact-cards{display:grid;gap:13px;margin-top:26px}
.contact-card{
  display:flex;gap:14px;align-items:flex-start;padding:17px;
  border-radius:var(--r);border:1px solid var(--line);background:rgba(255,255,255,.03);
  transition:border-color .3s,background .3s,transform .3s var(--ease);
}
.contact-card:hover{border-color:rgba(255,180,61,.3);background:rgba(255,180,61,.05);transform:translateX(3px)}
.contact-card b{display:block;font-size:14.6px}
.contact-card span{font-size:13.2px;color:var(--muted)}
.contact-card .pillar-ico{width:38px;height:38px}

.form{
  padding:clamp(22px,3vw,32px);border-radius:var(--r-lg);border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
}
.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.field{margin-bottom:15px}
.field label{display:block;font-size:12.6px;font-weight:600;letter-spacing:.04em;color:var(--muted);margin-bottom:7px}
.field input,.field textarea,.field select{
  width:100%;padding:13px 15px;border-radius:12px;font-size:15px;
  background:rgba(255,255,255,.04);border:1px solid var(--line-2);
  transition:border-color .25s,background .25s;
}
.field textarea{resize:vertical;min-height:112px}
.field input::placeholder,.field textarea::placeholder{color:var(--muted-2)}
.field input:focus,.field textarea:focus,.field select:focus{
  outline:none;border-color:rgba(255,180,61,.6);background:rgba(255,180,61,.05);
}
.field .err{display:none;margin-top:6px;font-size:12.2px;color:#FF9090}
.field.invalid .err{display:block}
.field.invalid input,.field.invalid textarea{border-color:rgba(255,110,110,.55)}
.form-note{margin-top:13px;text-align:center;font-size:12.4px;color:var(--muted-2)}

/* Hint under a single input — left-aligned with the field, unlike .form-note
   which is centred under the whole form. */
.field-hint{margin:6px 0 0;font-size:12.4px;line-height:1.5;color:var(--muted-2)}
.field.invalid .field-hint{color:#F3A0A0}

/* ---------- 9. FOOTER / TOAST / BACK-TO-TOP / UTILITIES ---------------- */
.site-footer{
  position:relative;z-index:1;border-top:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.022),transparent 60%);
  padding-top:clamp(46px,6vw,74px);
}
.foot-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1.15fr;gap:clamp(24px,3.4vw,48px);padding-bottom:42px}
.foot-brand p{color:var(--muted);font-size:14.4px;margin:16px 0 20px;max-width:36ch}
.socials{display:flex;gap:9px;flex-wrap:wrap}
/* The name used to live only in a title tooltip, so it appeared on hover and
   nowhere else. It is visible text now and the tile is a pill sized to it. */
.socials a{
  display:inline-flex;align-items:center;gap:8px;
  height:38px;padding:0 14px 0 12px;border-radius:999px;
  border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--muted);
  transition:transform .3s var(--ease),background .3s,color .3s,border-color .3s;
}
.socials a svg{width:17px;height:17px;flex:none}
/* the icon takes the network's colour from the anchor via currentColor; the
   label does not — brand red as body text is harsh and reads badly */
.social-name{font-size:13.2px;font-weight:600;color:var(--text);white-space:nowrap}
.socials a:hover{border-color:transparent;transform:translateY(-3px)}
.socials a:not([data-brand]):hover{color:#170F04;background:var(--grad-gold)}
.socials a:hover .social-name{color:#fff}
.socials a:not([data-brand]):hover .social-name{color:#170F04}
.foot-col h4{font-size:12px;letter-spacing:.16em;text-transform:uppercase;color:#fff;margin-bottom:16px}
.foot-col li+li{margin-top:11px}
.foot-col a,.foot-col span{color:var(--muted);font-size:14.2px;transition:color .2s}
.foot-col a:hover{color:var(--gold)}
.foot-note{margin-top:14px;font-size:12.4px;color:var(--muted-2)}
.foot-bottom{
  display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;
  padding:20px 0 26px;border-top:1px solid var(--line);font-size:12.8px;color:var(--muted-2);
}
.foot-bottom .links{display:flex;gap:18px;flex-wrap:wrap}
.foot-bottom a:hover{color:var(--gold)}

.toast{
  position:fixed;left:50%;bottom:26px;z-index:200;
  display:flex;align-items:center;gap:12px;
  max-width:min(430px,calc(100% - 32px));padding:14px 18px;border-radius:14px;
  background:rgba(11,13,18,.96);border:1px solid var(--line-2);box-shadow:var(--shadow-lg);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  transform:translate(-50%,150%);opacity:0;
  transition:transform .45s var(--ease),opacity .3s;
}
.toast.show{transform:translate(-50%,0);opacity:1}
.toast .ico{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;flex:none;background:rgba(255,180,61,.14);color:var(--gold)}
.toast .ico svg{width:16px;height:16px}
.toast b{display:block;font-size:14.2px}
.toast em{font-style:normal;font-size:12.8px;color:var(--muted)}

.to-top{
  position:fixed;right:20px;bottom:24px;z-index:60;
  width:44px;height:44px;border-radius:14px;display:grid;place-items:center;
  background:rgba(11,13,18,.86);border:1px solid var(--line-2);color:var(--text);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  opacity:0;pointer-events:none;transform:translateY(10px);
  transition:opacity .35s,transform .35s var(--ease),background .25s;
}
.to-top.show{opacity:1;pointer-events:auto;transform:none}
.to-top:hover{background:rgba(255,180,61,.16)}
.to-top svg{width:18px;height:18px}

/* scroll-reveal — gated behind html.js so content is never hidden without JS */
.js [data-reveal]{opacity:0;transform:translateY(20px);transition:opacity .75s var(--ease),transform .75s var(--ease)}
[data-reveal].is-visible{opacity:1;transform:none}

/* Fade with no travel. For blocks too tall to slide convincingly — a whole
   footer or hero column sliding 20px looks like the page is settling badly,
   where a plain fade just looks intentional. */
.js [data-reveal="fade"]{transform:none}

/* Deliberately no `will-change` here. It promotes every element it touches to
   its own compositor layer, and this page has dozens of reveal targets at
   once — that is a lot of layers to hold on a phone for an effect that opacity
   and transform already run off the main thread. */

@media (max-width:760px){
  /* Shorter travel and a quicker settle on a phone: the same 20px rise costs
     proportionally more of a small screen, and thumb-speed scrolling reaches
     the element before a .75s transition has finished.

     The `:not()`s are load-bearing. A media query adds no specificity, so a
     plain `.js [data-reveal]{transform:...}` here would tie with
     `[data-reveal].is-visible` above and win on source order — leaving every
     revealed card sitting 13px low on a phone, permanently. Restricting it to
     the not-yet-revealed, non-fade case removes the tie entirely. */
  .js [data-reveal]:not(.is-visible):not([data-reveal="fade"]){transform:translateY(13px)}
  .js [data-reveal]{transition-duration:.55s}
}

.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}
.noscript{margin:0 auto;padding:16px 20px;border-radius:var(--r);border:1px solid rgba(255,180,61,.35);background:rgba(255,180,61,.08);text-align:center;font-size:14px}

/* ---------- 10. RESPONSIVE ---------------------------------------------- */
@media (max-width:1080px){
  .hero-grid{grid-template-columns:1fr;gap:44px}
  .hero-visual{order:2;max-width:520px;margin-inline:auto;width:100%}
  .hero-sub{max-width:62ch}
  .offer-inner{grid-template-columns:1fr}
  .about-grid{grid-template-columns:1fr}
  .books{grid-template-columns:repeat(2,minmax(0,1fr))}
  .foot-grid{grid-template-columns:1.4fr 1fr 1fr}
  .foot-brand{grid-column:1 / -1}
}
@media (max-width:900px){
  .nav-links{display:none}
  .nav-toggle{display:grid}
  .mobile-menu{display:block}
  .nav-actions .btn-primary{display:none}
  .reviews{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
}
@media (max-width:680px){
  .container{width:min(var(--container),100% - 32px)}
  .books{grid-template-columns:1fr}
  .book{max-width:460px;margin-inline:auto;width:100%}
  .hero-stats{grid-template-columns:1fr;gap:12px;text-align:left}
  .hero-stats li{display:flex;align-items:baseline;gap:10px}
  .hero-stats b{font-size:20px}
  .hero-cta .btn{width:100%}
  .form-row{grid-template-columns:1fr}
  .foot-grid{grid-template-columns:1fr;gap:32px}
  .foot-bottom{justify-content:center;text-align:center}
  .chip{padding:9px 12px}
  .chip span{display:none}
  .books-assure{gap:12px 20px}
  .topbar .container{font-size:12.6px}
  .founder{flex-direction:column;align-items:flex-start}
}
@media (max-width:420px){
  .cd{padding:10px 2px}
  .cd b{font-size:19px}
  .cd span{font-size:9px;letter-spacing:.08em}
  .brand-text span{display:none}
  .btn-lg{padding:14px 20px;font-size:15px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important}
  .js [data-reveal]{opacity:1;transform:none}
}

/* ============================================================================
   STEP 2 STYLES — store, product detail, checkout
   (Step 1 styles above are untouched; everything here is additive.)
   ========================================================================= */

/* ---------- 11. VIEWS / ROUTING -------------------------------------- */
/* author display rules (e.g. .books{display:grid}) beat the UA [hidden] rule,
   so state it explicitly for every element we toggle from JS */
[hidden]{display:none !important}
.js .view{animation:viewIn .45s var(--ease) both}
/* the admin page is a single view revealed after sign-in — no entry animation,
   otherwise it stays stuck at the keyframe start and renders blank */
body.admin-mode .view{animation:none;opacity:1;transform:none}
@keyframes viewIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

.crumbs{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:20px;font-size:13px;color:var(--muted-2)}
.crumbs a:hover{color:var(--gold)}
.crumbs .sep{opacity:.45}
.crumbs b{color:var(--text);font-weight:600}
.back-link{
  display:inline-flex;align-items:center;gap:8px;margin-left:auto;
  padding:9px 15px;border-radius:999px;font-size:13.4px;font-weight:600;
  border:1px solid var(--line-2);background:rgba(255,255,255,.035);
  transition:transform .3s var(--ease),border-color .25s,background .25s;
}
.back-link:hover{border-color:rgba(255,180,61,.5);background:rgba(255,180,61,.08);transform:translateX(-3px)}
.back-link svg{width:15px;height:15px}

/* ---------- 12. STORE: TOOLBAR, FILTERS, GRID ------------------------ */
.toolbar{
  display:grid;grid-template-columns:minmax(230px,330px) 1fr;gap:16px;align-items:center;
  padding:16px;margin-bottom:20px;border-radius:var(--r-lg);border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
}
.search{position:relative;display:flex;align-items:center}
.search>svg{position:absolute;left:15px;width:17px;height:17px;color:var(--muted-2);pointer-events:none}
.search input{
  width:100%;padding:13px 44px;border-radius:999px;font-size:14.6px;
  background:rgba(255,255,255,.04);border:1px solid var(--line-2);
  transition:border-color .25s,background .25s;
}
.search input:focus{outline:none;border-color:rgba(255,180,61,.6);background:rgba(255,180,61,.05)}
.search input::-webkit-search-cancel-button{display:none}
.search .clear{
  position:absolute;right:9px;width:28px;height:28px;border-radius:50%;
  display:none;place-items:center;font-size:16px;line-height:1;
  color:var(--muted);background:rgba(255,255,255,.08);
}
.search.has-value .clear{display:grid}
.search .clear:hover{color:var(--text);background:rgba(255,255,255,.16)}

.filters{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.chip-btn{
  padding:9px 15px;border-radius:999px;font-size:13.2px;font-weight:600;color:var(--muted);
  border:1px solid var(--line);background:rgba(255,255,255,.03);
  transition:color .25s,background .25s,border-color .25s,box-shadow .3s,transform .3s var(--ease);
}
.chip-btn:hover{color:var(--text);border-color:var(--line-2);transform:translateY(-1px)}
.chip-btn.active{background:var(--grad-gold);color:#170F04;border-color:transparent;box-shadow:0 10px 24px -12px rgba(255,138,43,.75)}
.chip-btn span{opacity:.6;font-weight:700}

.store-meta{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  margin-bottom:18px;font-size:13.4px;color:var(--muted-2);
}
.store-meta b{color:var(--text)}
.empty{
  padding:clamp(34px,5vw,58px) 24px;text-align:center;
  border-radius:var(--r-lg);border:1px dashed var(--line-2);background:rgba(255,255,255,.02);
}
.empty h3{font-size:19px;margin-bottom:9px}
.empty p{color:var(--muted);font-size:14.4px;margin-bottom:20px}

/* card additions: category label, clickable cover/title, dual actions */
.book-cat{display:inline-flex;align-items:center;gap:7px;font-size:10.5px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}
.book-cat i{width:5px;height:5px;border-radius:50%;background:var(--gold);flex:none}
.book-cover>a{display:block;height:100%}
.book h3 a{transition:color .25s}
.book h3 a:hover{color:var(--gold)}
.book-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.book-actions .btn{padding:13px 14px;font-size:14.2px}

/* ---------- 13. PRODUCT DETAIL --------------------------------------- */
.pd-grid{display:grid;grid-template-columns:.84fr 1.16fr;gap:clamp(26px,3.8vw,56px);align-items:start}
.pd-cover-wrap{position:sticky;top:96px}
.pd-cover{
  position:relative;aspect-ratio:3/4;border-radius:var(--r-lg);overflow:hidden;background:#0C0E13;
  border:1px solid var(--line-2);box-shadow:var(--shadow-lg);
}
.pd-cover svg{width:100%;height:100%}
.pd-trust{display:grid;gap:9px;margin-top:16px}
.pd-trust li{
  display:flex;gap:11px;align-items:flex-start;padding:12px 14px;font-size:13px;color:var(--muted);
  border-radius:var(--r);border:1px solid var(--line);background:rgba(255,255,255,.028);
}
.pd-trust svg{width:15px;height:15px;flex:none;margin-top:3px;color:var(--mint)}
.pd-trust b{color:var(--text);font-weight:600}

.pd-head h1{font-size:clamp(26px,3.6vw,42px);margin:14px 0 12px}
.pd-sub{color:var(--muted);font-size:clamp(15px,1.7vw,17.2px);max-width:58ch}
.pd-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0 0;font-size:12.8px;color:var(--muted-2)}
.pd-meta .stars{color:var(--gold);letter-spacing:1.6px}
.pd-meta em{font-style:normal;opacity:.4}
.pd-block{margin-top:28px;padding-top:26px;border-top:1px solid var(--line)}
.pd-block h3{font-size:18.5px;margin-bottom:16px}
.pd-block>p{color:var(--muted);font-size:15.4px;line-height:1.68}
.pd-block>p+p{margin-top:13px}
.pd-inside{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pd-inside li{
  display:flex;gap:11px;padding:14px;font-size:13.8px;line-height:1.5;color:#C9D0DB;
  border-radius:var(--r);border:1px solid var(--line);background:rgba(255,255,255,.028);
  transition:border-color .3s,background .3s,transform .3s var(--ease);
}
.pd-inside li:hover{border-color:rgba(255,180,61,.3);background:rgba(255,180,61,.05);transform:translateY(-2px)}
.pd-inside svg{width:15px;height:15px;flex:none;margin-top:3px;color:var(--gold)}
.pd-for li{display:flex;gap:11px;padding:11px 0;font-size:14.4px;color:#C9D0DB;line-height:1.55}
.pd-for li+li{border-top:1px dashed var(--line)}
.pd-for svg{width:16px;height:16px;flex:none;margin-top:4px;color:var(--mint)}

/* buy box inside the detail view */
.pd-buy{
  margin-top:24px;padding:1px;border-radius:var(--r-xl);
  background:linear-gradient(140deg,rgba(255,180,61,.62),rgba(255,255,255,.06) 45%,rgba(37,217,140,.3));
  box-shadow:var(--shadow-lg);
}
.pd-buy-inner{
  border-radius:calc(var(--r-xl) - 1px);padding:clamp(20px,2.6vw,28px);
  background:linear-gradient(150deg,#13161D,#0A0C11 65%);
}
.pd-badge{
  display:inline-flex;align-items:center;gap:8px;padding:6px 13px;border-radius:999px;
  background:rgba(255,122,24,.14);border:1px solid rgba(255,180,61,.42);
  color:#FFCE85;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
}
.pd-badge i{width:6px;height:6px;border-radius:50%;background:var(--gold);animation:pulse 2s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.8)}}
.pd-price{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:16px 0 6px}
.pd-price b{font-family:var(--font-display);font-size:clamp(30px,4vw,42px);font-weight:800;letter-spacing:-.03em}
.pd-price s{color:var(--muted-2);font-size:18px}
.pd-price .off{padding:5px 11px;border-radius:999px;background:var(--grad-gold);color:#170F04;font-size:12.4px;font-weight:800}
.pd-save{font-size:13.2px;color:var(--mint);font-weight:600}
.pd-cd{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:18px 0}
.pd-cd-label{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted-2);margin-bottom:10px;display:block}
.pd-secure{display:grid;gap:9px;margin-top:15px}
.pd-secure li{display:flex;gap:9px;align-items:center;font-size:12.4px;color:var(--muted-2)}
.pd-secure svg{width:14px;height:14px;flex:none;color:var(--mint)}
.pd-buy.expired .cd{opacity:.4;filter:grayscale(1)}

.related-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:22px}
.related-head h3{font-size:clamp(21px,2.6vw,28px)}
.related-head p{color:var(--muted);font-size:14.4px;margin-top:8px}

/* ---------- 14. CHECKOUT --------------------------------------------- */
.co-grid{display:grid;grid-template-columns:1.04fr .96fr;gap:clamp(24px,3.4vw,44px);align-items:start}
.co-panel{
  padding:clamp(22px,3vw,30px);border-radius:var(--r-lg);border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
}
.co-steps{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:24px}
.co-step{display:flex;align-items:center;gap:9px;font-size:12.4px;color:var(--muted-2)}
.co-step b{
  width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:11.5px;
  background:rgba(255,255,255,.06);border:1px solid var(--line-2);
}
.co-step.done b,.co-step.active b{background:var(--grad-gold);color:#170F04;border-color:transparent}
.co-step.active{color:var(--text);font-weight:600}
.co-line{flex:1;min-width:16px;height:1px;background:var(--line)}

.co-item{display:flex;gap:16px;align-items:center;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.co-thumb{
  width:78px;flex:none;aspect-ratio:3/4;border-radius:12px;overflow:hidden;background:#0C0E13;
  border:1px solid var(--line-2);box-shadow:var(--shadow);
}
.co-thumb svg{width:100%;height:100%}
.co-item h3{font-size:16.4px;margin-bottom:6px;letter-spacing:-.02em}
.co-item .co-tag{font-size:12.4px;color:var(--muted-2)}
.co-rows{display:grid;gap:12px;font-size:14.2px}
.co-row{display:flex;align-items:center;justify-content:space-between;gap:14px;color:var(--muted)}
.co-row b{color:var(--text);font-weight:600}
.co-row .off{color:var(--mint);font-weight:600}
.co-row.total{margin-top:4px;padding-top:16px;border-top:1px dashed var(--line);font-size:15.4px}
.co-row.total b{font-family:var(--font-display);font-size:26px;font-weight:800;letter-spacing:-.03em}
.co-note{
  margin-top:20px;padding:14px;border-radius:var(--r);font-size:12.8px;line-height:1.55;color:#E7CDA4;
  border:1px dashed rgba(255,180,61,.42);background:rgba(255,180,61,.06);
}
.co-pay{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:16px;font-size:11.6px;color:var(--muted-2)}
.co-pay span{padding:6px 11px;border-radius:9px;font-weight:600;border:1px solid var(--line);background:rgba(255,255,255,.04)}

.co-done{display:none;text-align:center}
.co-panel.is-done .co-form{display:none}
.co-panel.is-done .co-done{display:block}
.co-done .tick{
  width:62px;height:62px;border-radius:50%;margin:0 auto 18px;display:grid;place-items:center;
  background:rgba(37,217,140,.14);border:1px solid rgba(37,217,140,.42);color:var(--mint);
}
.co-done .tick svg{width:28px;height:28px}
.co-done h3{font-size:21px;margin-bottom:10px}
.co-done p{color:var(--muted);font-size:14.4px;max-width:42ch;margin:0 auto}
.co-ref{
  display:inline-flex;margin:18px 0 22px;padding:10px 16px;border-radius:10px;
  font-family:var(--font-display);font-weight:700;letter-spacing:.12em;font-size:14px;
  background:rgba(255,255,255,.05);border:1px solid var(--line-2);
}
.co-done-actions{display:grid;gap:10px}

/* ---------- 15. STEP 2 RESPONSIVE ------------------------------------ */
@media (max-width:1080px){
  .toolbar{grid-template-columns:1fr}
  .filters{justify-content:flex-start}
  .pd-grid{grid-template-columns:1fr}
  .pd-cover-wrap{position:static;width:100%;max-width:340px}
  .co-grid{grid-template-columns:1fr}
}
@media (max-width:680px){
  .pd-inside{grid-template-columns:1fr}
  .book-actions{grid-template-columns:1fr}
  .crumbs{font-size:12.2px}
  .back-link{margin-left:0}
  .co-thumb{width:64px}
  .co-step span{display:none}
  .co-step.active span{display:inline}
}

/* ============================================================================
   STEP 3 STYLES — offer flags, countdowns, coupons, price breakdown,
   and the demo offer-control panel. Additive: nothing above is modified.
   ========================================================================= */

/* ---------- 16. OFFER FLAGS + COMPACT COUNTDOWN ---------------------- */
.offer-flag{
  display:inline-flex;align-items:center;gap:8px;align-self:flex-start;
  padding:5px 11px;border-radius:999px;
  font-size:10.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  color:#FFCE85;background:rgba(255,180,61,.1);border:1px solid rgba(255,180,61,.34);
}
.offer-flag i{width:6px;height:6px;border-radius:50%;background:var(--gold);flex:none;animation:pulse 2s ease-in-out infinite}
.offer-flag.urgent{color:#FFB9A0;background:rgba(255,122,24,.14);border-color:rgba(255,122,24,.45)}
.offer-flag.urgent i{background:var(--gold-2)}

/* one-line countdown used on cards */
.cd-mini{
  display:flex;align-items:center;gap:9px;
  padding:9px 12px;border-radius:11px;font-size:12.4px;color:var(--muted);
  background:rgba(255,255,255,.04);border:1px solid var(--line);
}
.cd-mini svg{width:14px;height:14px;flex:none;color:var(--gold)}
.cd-mini b{color:var(--text);font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.cd-mini.is-over{opacity:.55}

/* price row when no offer is running: single clean price */
.price-row.plain{border-top-style:solid}
.price-row .price-plain-note{margin-left:auto;font-size:12px;color:var(--muted-2)}

/* ---------- 17. COUPON BOX (checkout) -------------------------------- */
.coupon{margin-top:22px;padding-top:20px;border-top:1px dashed var(--line)}
.coupon>label{display:block;font-size:12.6px;font-weight:600;letter-spacing:.04em;color:var(--muted);margin-bottom:9px}
.coupon-row{display:grid;grid-template-columns:1fr auto;gap:9px}
.coupon-row input{
  width:100%;padding:13px 15px;border-radius:12px;font-size:14.6px;
  background:rgba(255,255,255,.04);border:1px solid var(--line-2);
  text-transform:uppercase;letter-spacing:.08em;font-weight:600;
  transition:border-color .25s,background .25s;
}
.coupon-row input::placeholder{text-transform:none;letter-spacing:0;font-weight:400;color:var(--muted-2)}
.coupon-row input:focus{outline:none;border-color:rgba(255,180,61,.6);background:rgba(255,180,61,.05)}
.coupon-row input:disabled{color:var(--mint);border-color:rgba(37,217,140,.35);background:rgba(37,217,140,.07)}
.coupon-row .btn{padding:13px 18px;font-size:14px}
.coupon-msg{display:none;margin-top:10px;font-size:13px;line-height:1.5}
.coupon-msg.show{display:block}
.coupon-msg.ok{color:#7BE7B4}
.coupon-msg.err{color:#FF9C9C}
.coupon-hints{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.hint-chip{
  padding:6px 11px;border-radius:999px;font-size:11.6px;font-weight:600;color:var(--muted);
  border:1px dashed var(--line-2);background:rgba(255,255,255,.03);
  transition:color .25s,border-color .25s,background .25s;
}
.hint-chip:hover{color:var(--gold);border-color:rgba(255,180,61,.5);background:rgba(255,180,61,.07)}
.hint-chip b{color:var(--text)}
.coupon-off{margin-top:10px;font-size:12.6px;color:var(--muted-2)}

/* breakdown extras */
.co-row.sub{padding-top:12px;border-top:1px solid var(--line)}
.co-row .co-sm{font-size:11.6px;color:var(--muted-2);display:block;margin-top:2px}
.co-row.coupon-line span:first-child b{color:var(--mint)}

/* ---------- 18. DEMO OFFER CONTROL PANEL ----------------------------- */
.admin-note{
  display:flex;gap:12px;align-items:flex-start;
  padding:16px 18px;margin-bottom:26px;border-radius:var(--r);
  border:1px dashed rgba(255,180,61,.42);background:rgba(255,180,61,.06);
  font-size:13.4px;line-height:1.6;color:#E7CDA4;
}
.admin-note svg{width:17px;height:17px;flex:none;margin-top:3px;color:var(--gold)}
.admin-note b{color:#FFDCA8}

.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(18px,2.4vw,26px);align-items:start}
.admin-card{
  padding:clamp(20px,2.6vw,28px);border-radius:var(--r-lg);border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
}
.admin-card>h3{font-size:18.5px;margin-bottom:6px}
.admin-card>p.hint{color:var(--muted);font-size:13.4px;margin-bottom:20px}
.admin-sep{height:1px;background:var(--line);margin:22px 0}

.admin-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.admin-row.one{grid-template-columns:1fr}
.admin-field{margin-bottom:15px}
.admin-field label{display:block;font-size:12.2px;font-weight:600;letter-spacing:.04em;color:var(--muted);margin-bottom:7px}
.admin-field input,.admin-field select{
  width:100%;padding:12px 14px;border-radius:11px;font-size:14.4px;
  background:rgba(255,255,255,.04);border:1px solid var(--line-2);
  transition:border-color .25s,background .25s;
}
.admin-field input:focus,.admin-field select:focus{outline:none;border-color:rgba(255,180,61,.6);background:rgba(255,180,61,.05)}
.admin-field input[type="datetime-local"]{font-family:var(--font-body)}
.admin-field .sub{display:block;margin-top:6px;font-size:11.6px;color:var(--muted-2);line-height:1.45}
.admin-field.bad input{border-color:rgba(255,110,110,.6)}
.admin-field.bad .sub{color:#FF9C9C}

.admin-readout{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding:14px 16px;border-radius:var(--r);margin-bottom:18px;
  border:1px solid var(--line);background:rgba(255,255,255,.03);
}
.admin-readout .money{display:flex;align-items:baseline;gap:10px}
.admin-readout .money b{font-family:var(--font-display);font-size:22px;font-weight:800;letter-spacing:-.02em}
.admin-readout .money s{color:var(--muted-2);font-size:14px}
.admin-readout .money em{font-style:normal;font-size:12.4px;font-weight:700;color:var(--mint)}

.status-pill{
  display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;
  font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  border:1px solid var(--line-2);background:rgba(255,255,255,.05);color:var(--muted);
}
.status-pill i{width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.status-pill.live{color:#7BE7B4;background:rgba(37,217,140,.12);border-color:rgba(37,217,140,.36)}
.status-pill.scheduled{color:#FFCE85;background:rgba(255,180,61,.1);border-color:rgba(255,180,61,.34)}
.status-pill.expired,.status-pill.off{color:#FF9C9C;background:rgba(255,110,110,.1);border-color:rgba(255,110,110,.32)}

.switch{display:inline-flex;align-items:center;gap:11px;cursor:pointer;font-size:13.6px;color:var(--text);user-select:none}
.switch input{position:absolute;width:1px;height:1px;opacity:0}
.switch i{
  position:relative;width:42px;height:24px;border-radius:999px;flex:none;
  background:rgba(255,255,255,.1);border:1px solid var(--line-2);transition:background .3s,border-color .3s;
}
.switch i::after{
  content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;
  background:#C8CDD6;transition:transform .3s var(--ease),background .3s;
}
.switch input:checked+i{background:var(--grad-gold);border-color:transparent}
.switch input:checked+i::after{transform:translateX(18px);background:#170F04}
.switch input:focus-visible+i{outline:2px solid var(--gold);outline-offset:3px}
.switch-row{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:13px 15px;margin-bottom:14px;border-radius:var(--r);
  border:1px solid var(--line);background:rgba(255,255,255,.028);
}
.switch-row .lab{font-size:13.6px}
.switch-row .lab span{display:block;font-size:11.8px;color:var(--muted-2);margin-top:2px}

.admin-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-top:22px}
.admin-actions .saved{font-size:12.4px;color:var(--mint);opacity:0;transition:opacity .4s}
.admin-actions .saved.show{opacity:1}
.admin-preview{display:grid;gap:10px;margin-top:20px}
.admin-preview li{display:flex;justify-content:space-between;gap:12px;font-size:13.2px;color:var(--muted)}
.admin-preview li b{color:var(--text)}
.coupon-table{display:grid;gap:8px;margin-top:6px}
.coupon-table li{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:11px 13px;border-radius:11px;font-size:12.8px;
  border:1px solid var(--line);background:rgba(255,255,255,.028);color:var(--muted);
}
.coupon-table li b{color:var(--text);font-family:var(--font-display);letter-spacing:.08em}
.coupon-table li.is-off{opacity:.5}

/* ---------- 19. STEP 3 RESPONSIVE ------------------------------------ */
@media (max-width:1080px){
  .admin-grid{grid-template-columns:1fr}
}
@media (max-width:680px){
  .admin-row{grid-template-columns:1fr}
  .coupon-row{grid-template-columns:1fr}
  .cd-mini{font-size:11.8px}
  .admin-readout{flex-direction:column;align-items:flex-start}
}

/* ============================================================================
   STEP 4 STYLES — admin panel shell (sidebar app layout), tables, modals.
   Additive: the storefront styles above are untouched. The admin panel reuses
   the Step 3 form controls (.admin-field, .switch, .status-pill).
   ========================================================================= */

/* the storefront chrome steps aside while the panel is open */
body.admin-mode .topbar,
body.admin-mode .site-header,
body.admin-mode .site-footer,
body.admin-mode .to-top{display:none !important}
body.admin-mode{background:#05060A}

.cover-img{width:100%;height:100%;object-fit:cover;display:block}

/* ---------- 20. APP SHELL -------------------------------------------- */
.adm{display:grid;grid-template-columns:252px minmax(0,1fr);min-height:100vh;position:relative;z-index:1}

.adm-side{
  position:sticky;top:0;height:100vh;overflow-y:auto;z-index:30;
  display:flex;flex-direction:column;gap:20px;padding:20px 14px;
  background:#090B10;border-right:1px solid var(--line);
}
.adm-brand{display:flex;align-items:center;gap:11px;padding:6px 8px 0}
.adm-brand .brand-mark{width:36px;height:36px;font-size:14px}
.adm-brand b{display:block;font-family:var(--font-display);font-size:15.5px;letter-spacing:-.02em}
.adm-brand span{font-size:9.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted-2)}

.adm-nav{display:grid;gap:3px}
.adm-nav-label{font-size:9.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted-2);padding:6px 10px}
.adm-nav a{
  display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:11px;
  font-size:14px;font-weight:500;color:var(--muted);
  transition:background .22s,color .22s,transform .22s var(--ease);
}
.adm-nav a svg{width:17px;height:17px;flex:none;opacity:.85}
.adm-nav a em{
  margin-left:auto;font-style:normal;font-size:11px;font-weight:700;
  padding:2px 8px;border-radius:999px;background:rgba(255,255,255,.07);color:var(--muted-2);
}
.adm-nav a:hover{background:rgba(255,255,255,.05);color:var(--text)}
.adm-nav a.active{background:rgba(255,180,61,.12);color:#FFD79A;box-shadow:inset 0 0 0 1px rgba(255,180,61,.25)}
.adm-nav a.active em{background:rgba(255,180,61,.2);color:#FFD79A}

.adm-side-foot{margin-top:auto;display:grid;gap:10px}
.adm-side-foot .btn{width:100%;padding:11px 14px;font-size:13.5px}
.adm-flag{
  padding:11px 12px;border-radius:11px;font-size:11.4px;line-height:1.5;
  border:1px dashed rgba(255,180,61,.35);background:rgba(255,180,61,.06);color:#E7CDA4;
}

/* the mobile drawer scrim must never occupy a grid cell on desktop */
.adm-scrim{display:none}
.adm-main{min-width:0;display:flex;flex-direction:column}
.adm-top{
  position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:14px;
  padding:14px clamp(16px,2.2vw,28px);
  background:rgba(6,7,10,.86);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line);
}
.adm-top h1{font-size:clamp(18px,2.2vw,23px);letter-spacing:-.02em}
.adm-top p{font-size:12.6px;color:var(--muted-2);margin-top:2px}
.adm-top-right{margin-left:auto;display:flex;align-items:center;gap:10px}
.adm-user{
  width:36px;height:36px;border-radius:11px;flex:none;display:grid;place-items:center;
  font-family:var(--font-display);font-weight:800;font-size:13px;
  background:var(--grad-gold);color:#170F04;
}
/* specificity has to beat .icon-btn{display:grid} defined further down */
.adm-top .adm-menu-btn{display:none}

.adm-body{padding:clamp(18px,2.4vw,28px) clamp(16px,2.2vw,28px) 70px;display:grid;gap:20px;align-content:start}
.adm-pane{display:grid;gap:20px;align-content:start}

/* ---------- 21. CARDS, STATS, TABLES --------------------------------- */
.adm-card{
  border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.014));
}
.adm-card-head{
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  padding:16px 20px;border-bottom:1px solid var(--line);
}
.adm-card-head h2{font-size:16.5px;letter-spacing:-.02em}
.adm-card-head p{font-size:12.6px;color:var(--muted-2);margin-top:3px}
.adm-card-head .tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.adm-card-body{padding:20px}
.adm-card-body.tight{padding:0}

.adm-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(174px,1fr));gap:14px}
.adm-stat{
  padding:18px;border-radius:var(--r-lg);border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
  transition:transform .3s var(--ease),border-color .3s;
}
.adm-stat:hover{transform:translateY(-3px);border-color:rgba(255,180,61,.3)}
.adm-stat .ico{
  width:34px;height:34px;border-radius:10px;display:grid;place-items:center;margin-bottom:13px;
  background:rgba(255,180,61,.12);border:1px solid rgba(255,180,61,.26);color:var(--gold);
}
.adm-stat .ico svg{width:16px;height:16px}
.adm-stat .ico.mint{background:rgba(37,217,140,.12);border-color:rgba(37,217,140,.28);color:var(--mint)}
.adm-stat b{display:block;font-family:var(--font-display);font-size:26px;font-weight:800;letter-spacing:-.03em}
.adm-stat span{font-size:12.4px;color:var(--muted-2)}
.adm-stat i{display:block;font-style:normal;font-size:11.6px;color:var(--muted);margin-top:7px}

.adm-quick{display:flex;flex-wrap:wrap;gap:10px}

.adm-table-wrap{overflow-x:auto}
table.adm-table{width:100%;border-collapse:collapse;min-width:760px}
.adm-table th{
  text-align:left;white-space:nowrap;padding:12px 16px;
  font-size:10.5px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;color:var(--muted-2);
  background:rgba(255,255,255,.025);border-bottom:1px solid var(--line);
}
.adm-table td{padding:13px 16px;font-size:13.5px;border-bottom:1px solid rgba(255,255,255,.05);vertical-align:middle}
.adm-table tbody tr{transition:background .2s}
.adm-table tbody tr:hover td{background:rgba(255,255,255,.022)}
.adm-table tr:last-child td{border-bottom:0}
.adm-table td.num{font-variant-numeric:tabular-nums;white-space:nowrap}
.adm-table .muted{color:var(--muted-2);font-size:12.4px}
.adm-empty{padding:34px 20px;text-align:center;color:var(--muted);font-size:13.6px}

.adm-prod{display:flex;align-items:center;gap:12px;min-width:220px}
.adm-thumb{
  width:36px;flex:none;aspect-ratio:3/4;border-radius:6px;overflow:hidden;background:#0C0E13;
  border:1px solid var(--line-2);
}
.adm-thumb svg,.adm-thumb img{width:100%;height:100%}
.adm-prod b{display:block;font-size:13.6px;font-weight:600;line-height:1.35}
.adm-prod span{font-size:11.6px;color:var(--muted-2)}

.chip{
  display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;
  font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;
  border:1px solid var(--line-2);background:rgba(255,255,255,.05);color:var(--muted);
}
.chip i{width:5px;height:5px;border-radius:50%;background:currentColor;flex:none}
.chip-ok{color:#7BE7B4;background:rgba(37,217,140,.12);border-color:rgba(37,217,140,.34)}
.chip-warn{color:#FFCE85;background:rgba(255,180,61,.11);border-color:rgba(255,180,61,.32)}
.chip-off{color:#FF9C9C;background:rgba(255,110,110,.1);border-color:rgba(255,110,110,.3)}
.chip-info{color:#A9C7FF;background:rgba(120,160,255,.1);border-color:rgba(120,160,255,.28)}

.adm-row-actions{display:flex;gap:6px;justify-content:flex-end}
.icon-btn{
  width:32px;height:32px;border-radius:9px;display:grid;place-items:center;flex:none;
  border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--muted);
  transition:color .22s,border-color .22s,background .22s,transform .22s var(--ease);
}
.icon-btn svg{width:15px;height:15px}
.icon-btn:hover{color:var(--gold);border-color:rgba(255,180,61,.45);background:rgba(255,180,61,.08);transform:translateY(-1px)}
.icon-btn.danger:hover{color:#FF9C9C;border-color:rgba(255,110,110,.5);background:rgba(255,110,110,.08)}

.adm-search{position:relative;display:flex;align-items:center}
.adm-search svg{position:absolute;left:12px;width:15px;height:15px;color:var(--muted-2);pointer-events:none}
.adm-search input{
  width:min(260px,52vw);padding:10px 14px 10px 34px;border-radius:999px;font-size:13.6px;
  background:rgba(255,255,255,.04);border:1px solid var(--line-2);
}
.adm-search input:focus{outline:none;border-color:rgba(255,180,61,.55);background:rgba(255,180,61,.05)}
.adm-select{
  padding:10px 13px;border-radius:999px;font-size:13.4px;
  background:rgba(255,255,255,.04);border:1px solid var(--line-2);
}
.adm-select:focus{outline:none;border-color:rgba(255,180,61,.55)}
.btn-sm{padding:10px 16px;font-size:13.6px}

.adm-list{display:grid;gap:10px}
.adm-list li{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 14px;border-radius:var(--r);font-size:13.2px;
  border:1px solid var(--line);background:rgba(255,255,255,.026);
}
.adm-list li b{color:var(--text);font-weight:600}
.adm-list li .when{font-size:11.8px;color:var(--muted-2);font-variant-numeric:tabular-nums}

/* ---------- 22. MODALS + FORM EXTRAS --------------------------------- */
.modal{position:fixed;inset:0;z-index:300;display:none;place-items:center;padding:18px}
.modal.open{display:grid}
.modal-back{position:absolute;inset:0;background:rgba(4,5,8,.74);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
.modal-card{
  position:relative;width:min(760px,100%);max-height:88vh;overflow-y:auto;
  padding:clamp(20px,3vw,30px);border-radius:var(--r-xl);
  border:1px solid var(--line-2);background:linear-gradient(180deg,#12151C,#0A0C11 70%);
  box-shadow:var(--shadow-lg);animation:modalIn .3s var(--ease) both;
}
.modal-card.sm{width:min(460px,100%)}
@keyframes modalIn{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:22px}
.modal-head h3{font-size:20px;letter-spacing:-.02em}
.modal-head p{font-size:13px;color:var(--muted-2);margin-top:5px}
.modal-close{
  width:34px;height:34px;border-radius:10px;flex:none;display:grid;place-items:center;
  border:1px solid var(--line-2);background:rgba(255,255,255,.04);color:var(--muted);font-size:17px;line-height:1;
}
.modal-close:hover{color:var(--text);background:rgba(255,255,255,.1)}
.modal-foot{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.modal-foot .spacer{margin-right:auto}

.admin-field textarea{
  width:100%;padding:12px 14px;border-radius:11px;font-size:14.2px;min-height:84px;resize:vertical;
  background:rgba(255,255,255,.04);border:1px solid var(--line-2);font-family:var(--font-body);
}
.admin-field textarea:focus{outline:none;border-color:rgba(255,180,61,.6);background:rgba(255,180,61,.05)}

.cover-editor{display:grid;grid-template-columns:104px minmax(0,1fr);gap:16px;align-items:start}
.cover-preview{
  aspect-ratio:3/4;border-radius:10px;overflow:hidden;background:#0C0E13;
  border:1px solid var(--line-2);box-shadow:var(--shadow);
}
.cover-preview svg,.cover-preview img{width:100%;height:100%}
.cover-picker{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.cover-swatch{
  width:32px;height:32px;border-radius:9px;flex:none;cursor:pointer;
  border:2px solid transparent;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);
  transition:transform .22s var(--ease),border-color .22s;
}
.cover-swatch:hover{transform:translateY(-2px)}
.cover-swatch.active{border-color:#FFF}

.file-zone{
  display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:var(--r);
  border:1px dashed var(--line-2);background:rgba(255,255,255,.026);font-size:12.8px;color:var(--muted);
}
.file-zone svg{width:17px;height:17px;flex:none;color:var(--gold)}
.file-zone b{display:block;color:var(--text);font-size:13.2px}
.file-zone input[type="file"]{display:none}
.file-zone .btn{margin-left:auto;padding:8px 14px;font-size:12.6px}
.file-zone.ok{border-style:solid;border-color:rgba(37,217,140,.32);background:rgba(37,217,140,.06)}

.adm-hint{font-size:12.4px;color:var(--muted-2);line-height:1.55}
.adm-danger-zone{
  padding:16px;border-radius:var(--r);border:1px dashed rgba(255,110,110,.34);
  background:rgba(255,110,110,.05);display:grid;gap:12px;
}
.adm-danger-zone b{font-size:13.8px}
.adm-danger-zone p{font-size:12.6px;color:var(--muted)}

/* ---------- 23. STEP 4 RESPONSIVE ------------------------------------ */
@media (max-width:980px){
  .adm{grid-template-columns:minmax(0,1fr)}
  .adm-side{
    position:fixed;left:0;top:0;width:262px;
    transform:translateX(-100%);transition:transform .32s var(--ease);
    box-shadow:0 0 60px rgba(0,0,0,.6);
  }
  .adm-side.open{transform:none}
  .adm-top .adm-menu-btn{display:grid}
  .adm-scrim{position:fixed;inset:0;z-index:25;background:rgba(4,5,8,.6);display:none}
  .adm-scrim.open{display:block}
}
@media (max-width:680px){
  .adm-top h1{font-size:17px}
  .adm-top p{display:none}
  .adm-top-right .btn{display:none}
  .cover-editor{grid-template-columns:84px minmax(0,1fr)}
  .modal{padding:10px}
  .modal-card{max-height:92vh;padding:18px}
  .modal-foot{flex-direction:column-reverse}
  .modal-foot .btn{width:100%}
  .modal-foot .spacer{margin:0}
  .adm-search input{width:100%}
  .adm-card-head .tools{width:100%}
}

/* ============================================================================
   STEP 5 STYLES — admin sign-in gate, order status lookup, small backend bits.
   Everything above is unchanged from the Step 1–4 design.
   ========================================================================= */

/* ---------- 24. ADMIN LOGIN GATE ------------------------------------- */
.adm-login{
  position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:20px;
  background:
    radial-gradient(700px 420px at 20% 0%, rgba(255,138,43,.16), transparent 60%),
    radial-gradient(600px 420px at 85% 10%, rgba(37,217,140,.09), transparent 60%),
    #05060A;
}
.adm-login-card{
  width:min(420px,100%);padding:clamp(24px,4vw,34px);border-radius:var(--r-xl);
  border:1px solid var(--line-2);background:linear-gradient(180deg,#12151C,#0A0C11 70%);
  box-shadow:var(--shadow-lg);
}
.adm-login-brand{display:flex;align-items:center;gap:12px;margin-bottom:26px}
.adm-login-brand b{display:block;font-family:var(--font-display);font-size:17px;letter-spacing:-.02em}
.adm-login-brand span span{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted-2)}
.adm-login-err{
  margin:0 0 16px;padding:11px 13px;border-radius:11px;font-size:13px;
  color:#FF9C9C;background:rgba(255,110,110,.09);border:1px solid rgba(255,110,110,.3);
}
.adm-login-note{margin-top:16px;font-size:11.8px;line-height:1.55;color:var(--muted-2);text-align:center}
.adm-login-back{display:block;margin-top:18px;text-align:center;font-size:12.8px;color:var(--muted)}
.adm-login-back:hover{color:var(--gold)}
.adm-who{font-size:12.6px;color:var(--muted-2);white-space:nowrap}

/* ---------- 25. ORDER STATUS + PENDING CHECKOUT ---------------------- */
.co-pending{
  display:flex;gap:12px;align-items:flex-start;margin:18px 0;padding:14px 16px;
  border-radius:var(--r);border:1px dashed rgba(255,180,61,.42);
  background:rgba(255,180,61,.06);font-size:13px;line-height:1.55;color:#E7CDA4;
}
.co-pending svg{width:17px;height:17px;flex:none;margin-top:2px;color:var(--gold)}
.co-pending b{color:#FFDCA8}

.order-lookup{max-width:560px;margin-inline:auto}
.order-card{
  padding:clamp(22px,3vw,30px);border-radius:var(--r-lg);border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
}
.order-state{
  display:inline-flex;align-items:center;gap:8px;padding:6px 13px;border-radius:999px;
  font-size:11.5px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  border:1px solid var(--line-2);background:rgba(255,255,255,.05);color:var(--muted);
}
.order-state.paid{color:#7BE7B4;background:rgba(37,217,140,.12);border-color:rgba(37,217,140,.34)}
.order-state.pending{color:#FFCE85;background:rgba(255,180,61,.1);border-color:rgba(255,180,61,.32)}
.order-state.failed,.order-state.refunded{color:#FF9C9C;background:rgba(255,110,110,.1);border-color:rgba(255,110,110,.3)}
.order-rows{display:grid;gap:11px;margin:20px 0;font-size:14.2px}
.order-rows div{display:flex;justify-content:space-between;gap:14px;color:var(--muted)}
.order-rows div b{color:var(--text)}
.dl-list{display:grid;gap:10px;margin-top:18px}
.dl-list a{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 16px;border-radius:var(--r);font-size:14px;
  border:1px solid rgba(37,217,140,.3);background:rgba(37,217,140,.07);
  transition:transform .25s var(--ease),background .25s;
}
.dl-list a:hover{background:rgba(37,217,140,.12);transform:translateY(-2px)}
.dl-list a span{font-size:12px;color:var(--muted)}
.dl-locked{
  padding:14px 16px;border-radius:var(--r);font-size:13.4px;color:var(--muted);
  border:1px dashed var(--line-2);background:rgba(255,255,255,.03);
}

/* ============================================================================
   STEP 6 STYLES — payment success page and payment badges.
   ========================================================================= */
.pay-hero{max-width:620px;margin-inline:auto;text-align:center}
.pay-tick{
  width:76px;height:76px;border-radius:50%;margin:0 auto 22px;display:grid;place-items:center;
  background:rgba(37,217,140,.14);border:1px solid rgba(37,217,140,.45);color:var(--mint);
  animation:payPop .5s var(--ease) both;
}
.pay-tick svg{width:36px;height:36px}
@keyframes payPop{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:none}}
.pay-hero h1{font-size:clamp(26px,3.6vw,40px);margin-bottom:12px}
.pay-hero>p{color:var(--muted);font-size:16px;max-width:46ch;margin-inline:auto}
.pay-verified{
  display:inline-flex;align-items:center;gap:9px;margin-top:18px;padding:8px 15px;border-radius:999px;
  font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:#7BE7B4;background:rgba(37,217,140,.12);border:1px solid rgba(37,217,140,.36);
}
.pay-verified svg{width:14px;height:14px}
.pay-next{
  display:flex;gap:12px;align-items:flex-start;text-align:left;margin-top:26px;padding:16px 18px;
  border-radius:var(--r);border:1px dashed rgba(255,180,61,.4);background:rgba(255,180,61,.06);
  font-size:13.4px;line-height:1.6;color:#E7CDA4;
}
.pay-next svg{width:17px;height:17px;flex:none;margin-top:3px;color:var(--gold)}
.pay-next b{color:#FFDCA8}
.pay-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:26px}
.pay-ids{margin-top:22px;font-size:11.8px;color:var(--muted-2);word-break:break-all}
.pay-ids b{color:var(--muted);font-weight:600}
.pay-test-note{
  margin-top:14px;padding:10px 14px;border-radius:10px;display:inline-block;
  font-size:11.8px;color:#A9C7FF;background:rgba(120,160,255,.1);border:1px solid rgba(120,160,255,.3);
}

/* ============================================================================
   STEP 8 STYLES — customer account screens.
   ========================================================================= */
.auth-wrap{max-width:460px;margin-inline:auto}
.auth-card{
  padding:clamp(22px,3vw,30px);border-radius:var(--r-lg);border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
}
.auth-msg{
  margin:0 0 14px;padding:11px 13px;border-radius:11px;font-size:13px;line-height:1.5;
  border:1px solid var(--line-2);background:rgba(255,255,255,.04);color:var(--muted);
}
.auth-msg.ok{color:#7BE7B4;background:rgba(37,217,140,.1);border-color:rgba(37,217,140,.32)}
.auth-msg.err{color:#FF9C9C;background:rgba(255,110,110,.09);border-color:rgba(255,110,110,.3)}
.auth-links{
  display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;
  margin-top:18px;padding-top:16px;border-top:1px solid var(--line);font-size:13.4px;
}
.auth-links a{color:var(--muted)}
.auth-links a:hover{color:var(--gold)}
.auth-note{margin-top:16px;font-size:12.4px;line-height:1.6;color:var(--muted-2);text-align:center}
.auth-note a{color:var(--gold)}

.acct-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:clamp(24px,3vw,34px)}
.acct-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:clamp(24px,3.4vw,44px);align-items:start}
.acct-h3{font-size:17px;margin-bottom:16px;letter-spacing:-.02em}
.acct-panel{
  padding:clamp(20px,2.6vw,26px);border-radius:var(--r-lg);border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
}
.acct-sep{height:1px;background:var(--line);margin:24px 0}

.purchase-list{display:grid;gap:14px}
.purchase{
  display:grid;grid-template-columns:74px 1fr;gap:18px;align-items:center;
  padding:16px;border-radius:var(--r-lg);border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.014));
  transition:border-color .3s,transform .3s var(--ease);
}
.purchase:hover{border-color:rgba(255,180,61,.28);transform:translateY(-2px)}
.purchase-cover{
  aspect-ratio:3/4;border-radius:9px;overflow:hidden;background:#0C0E13;
  border:1px solid var(--line-2);box-shadow:var(--shadow);
}
.purchase-cover svg,.purchase-cover img{width:100%;height:100%}
.purchase-body h3{font-size:16.5px;letter-spacing:-.02em;margin-bottom:9px}
.purchase-meta{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:12.6px;color:var(--muted-2);margin-bottom:12px}
.purchase-meta b{color:var(--text)}
.purchase-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.purchase-actions .btn{padding:11px 18px;font-size:13.8px}
.purchase-note{font-size:12.2px;color:var(--muted-2)}

@media (max-width:860px){
  .acct-grid{grid-template-columns:1fr}
}
@media (max-width:560px){
  .purchase{grid-template-columns:56px 1fr;gap:14px}
  .purchase-actions{width:100%}
  .purchase-actions .btn{width:100%}
}

/* ============================================================================
   STEP 9 STYLES — analytics dashboard: chart, range picker, two-column cards.
   ========================================================================= */
.chart-wrap{width:100%;overflow:hidden}
.ks-chart{width:100%;height:clamp(200px,26vw,300px);display:block}
.chart-empty{
  padding:38px 16px;text-align:center;font-size:13.6px;color:var(--muted-2);
  border:1px dashed var(--line-2);border-radius:var(--r);background:rgba(255,255,255,.02);
}
.chart-legend{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--muted-2)}
.chart-legend i{width:9px;height:9px;border-radius:3px;display:inline-block}
.chart-legend .dot-rev{background:#FFB43D}
.chart-legend .dot-ord{background:rgba(37,217,140,.55);margin-left:8px}

.range-picker{display:flex;gap:6px;flex-wrap:wrap}
.range-picker .chip-btn{padding:8px 13px;font-size:12.6px}

.adm-two-col{display:grid;grid-template-columns:1.6fr 1fr;gap:clamp(16px,2.2vw,22px);align-items:start}

/* the KPI row wraps to a readable number of columns on every width */
#admStats,#anSummary{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}

@media (max-width:1080px){
  .adm-two-col{grid-template-columns:1fr}
}
@media (max-width:680px){
  .range-picker{width:100%}
  .range-picker .chip-btn{flex:1 1 auto;text-align:center}
  .ks-chart{height:220px}
}

/* ============================================================================
   STEP 10 STYLES — activity / social-proof popup.

   Fixed to a corner, above the page but below any modal. The card is a link;
   the close button sits outside it so dismissing never navigates.
   ========================================================================= */
.ks-pop{
  position:fixed;z-index:70;max-width:min(360px,calc(100vw - 32px));
  opacity:0;pointer-events:none;
  transition:opacity .38s ease, transform .42s cubic-bezier(.22,.9,.28,1);
  will-change:transform,opacity;
}
.ks-pop.in{opacity:1;pointer-events:auto;transform:translate(0,0)}
.ks-pop.out{opacity:0}

/* start position per corner — slides in from the nearest edge */
.ks-pop-bottom-left {left:18px;bottom:18px;transform:translateX(-24px) translateY(10px)}
.ks-pop-bottom-right{right:18px;bottom:18px;transform:translateX(24px)  translateY(10px)}
.ks-pop-top-left    {left:18px;top:88px;   transform:translateX(-24px) translateY(-10px)}
.ks-pop-top-right   {right:18px;top:88px;  transform:translateX(24px)  translateY(-10px)}
.ks-pop-bottom-left.out {transform:translateX(-24px)}
.ks-pop-bottom-right.out{transform:translateX(24px)}
.ks-pop-top-left.out    {transform:translateX(-24px)}
.ks-pop-top-right.out   {transform:translateX(24px)}

.ks-pop-card{
  display:flex;gap:13px;align-items:center;
  padding:12px 40px 12px 12px;
  background:linear-gradient(180deg,rgba(23,26,36,.98),rgba(15,17,24,.98));
  border:1px solid var(--line-2);border-radius:16px;
  box-shadow:0 18px 44px rgba(0,0,0,.55), 0 2px 0 rgba(255,255,255,.03) inset;
  text-decoration:none;color:inherit;
  backdrop-filter:blur(10px);
  transition:border-color .2s ease, transform .2s ease;
}
.ks-pop-card:hover{border-color:rgba(255,180,61,.45);transform:translateY(-2px)}

.ks-pop-thumb{
  flex:0 0 auto;width:52px;height:66px;border-radius:9px;overflow:hidden;
  display:grid;place-items:center;background:#12151E;border:1px solid var(--line);
}
.ks-pop-thumb svg,.ks-pop-thumb .cover-img{width:100%;height:100%;object-fit:cover;display:block}
.ks-pop-emoji{font-size:26px;line-height:1}

.ks-pop-text{display:flex;flex-direction:column;gap:3px;min-width:0}
.ks-pop-kicker{
  font-family:var(--font-display);font-size:10.5px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--gold);
}
.ks-pop-head{
  font-size:13.4px;line-height:1.35;font-weight:650;color:var(--text);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.ks-pop-body{
  font-size:12px;color:var(--muted-2);
  display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;
}
.ks-pop-cta{font-size:11.8px;font-weight:600;color:var(--mint);margin-top:2px}

.ks-pop-close{
  position:absolute;top:8px;right:8px;width:24px;height:24px;
  display:grid;place-items:center;border-radius:8px;cursor:pointer;
  background:rgba(255,255,255,.05);border:1px solid var(--line);
  color:var(--muted-2);font-size:17px;line-height:1;padding:0;
  transition:background .18s ease,color .18s ease;
}
.ks-pop-close:hover{background:rgba(255,255,255,.12);color:var(--text)}

@media (max-width:640px){
  .ks-pop{left:12px;right:12px;max-width:none}
  .ks-pop-bottom-left,.ks-pop-bottom-right{bottom:12px;transform:translateY(18px)}
  .ks-pop-top-left,.ks-pop-top-right{top:74px;transform:translateY(-18px)}
  .ks-pop-bottom-left.out,.ks-pop-bottom-right.out{transform:translateY(18px)}
  .ks-pop-top-left.out,.ks-pop-top-right.out{transform:translateY(-18px)}
  .ks-pop-thumb{width:46px;height:58px}
  .ks-pop-head{font-size:12.8px}
}

/* Respect the visitor's motion preference: still appears, just does not slide. */
@media (prefers-reduced-motion:reduce){
  .ks-pop{transition:opacity .2s ease;transform:none !important}
}

/* ---- admin: popup manager ---- */
.pop-msg-row .pop-preview-line{display:flex;align-items:center;gap:8px}
.pop-type{
  font-family:var(--font-display);font-size:10px;letter-spacing:.12em;
  text-transform:uppercase;padding:3px 8px;border-radius:999px;
  border:1px solid var(--line-2);color:var(--muted-2);white-space:nowrap;
}
.pop-type.t-trending{color:#FF7A18;border-color:rgba(255,122,24,.35)}
.pop-type.t-popular {color:var(--gold);border-color:rgba(255,180,61,.35)}
.pop-type.t-offer   {color:var(--mint);border-color:rgba(37,217,140,.35)}
.pop-type.t-new     {color:#6EA8FF;border-color:rgba(110,168,255,.35)}
.pop-type.t-purchase{color:#C58BFF;border-color:rgba(197,139,255,.35)}
.pop-mode-note{
  padding:11px 13px;border-radius:var(--r);font-size:12.6px;line-height:1.55;
  border:1px dashed var(--line-2);background:rgba(255,255,255,.02);color:var(--muted-2);
}
.pop-mode-note b{color:var(--text)}

/* The popup spans the full width on phones, which would sit on top of the
   back-to-top button and swallow its taps. While one is on screen the button
   lifts above it, so navigation is never blocked. */
body.ks-pop-open .to-top{ transform:translateY(-152px) }
body.ks-pop-open .to-top.show{ transform:translateY(-152px) }
@media (min-width:641px){
  body.ks-pop-open .to-top,
  body.ks-pop-open .to-top.show{ transform:none }
  /* only the right-hand corners can overlap it on a wide screen */
  body.ks-pop-open.ks-pop-right .to-top.show{ transform:translateY(-146px) }
}

/* ============================================================================
   STEP 11 STYLES — email settings and logs.
   ========================================================================= */
.adm-inline{display:flex;gap:8px;align-items:center}
.adm-inline input{flex:1 1 auto;min-width:0}

/* one row per email type: label, description, on/off */
.em-type{display:flex;align-items:center;gap:12px;justify-content:space-between}
.em-type .em-name{display:flex;flex-direction:column;gap:2px;min-width:0}
.em-type .em-name b{font-size:13.6px;color:var(--text)}
.em-type .em-name span{font-size:11.8px;color:var(--muted-2)}
/* email selects inherit the admin field look */
.em-type select,
.adm-card-head .tools select{
  padding:9px 13px;border-radius:10px;font-size:13.4px;color:var(--text);
  background:rgba(255,255,255,.04);border:1px solid var(--line-2);
  transition:border-color .25s,background .25s;
}
.em-type select:focus,
.adm-card-head .tools select:focus{
  outline:none;border-color:rgba(255,180,61,.6);background:rgba(255,180,61,.05);
}
.em-type select{width:auto;min-width:104px;flex:0 0 auto}
.em-locked{
  font-size:11px;letter-spacing:.1em;text-transform:uppercase;
  padding:5px 10px;border-radius:999px;border:1px solid var(--line-2);
  color:var(--mint);white-space:nowrap;
}

.em-status{font-family:var(--font-display);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase}
.em-err{
  display:block;margin-top:3px;font-size:11.4px;color:#FF8A8A;
  max-width:340px;overflow-wrap:anywhere;
}
.em-ref{font-size:11.4px;color:var(--muted-2);overflow-wrap:anywhere;max-width:180px;display:inline-block}

/* success page: email confirmation + resend */
.pay-mailed{margin:14px auto 0;max-width:460px;font-size:14px;line-height:1.6;color:var(--muted)}
.pay-mailed b{color:var(--text)}

/* "Check your spam folder" — sits under the delivery line on the success page.
   A calm note, not an error: the e-book did send, it may just be filed
   somewhere the customer does not look. */
.pay-spam{
  display:flex;gap:9px;align-items:flex-start;text-align:left;
  max-width:460px;margin:12px auto 0;padding:11px 13px;
  border-radius:var(--r);border:1px dashed rgba(255,180,61,.32);background:rgba(255,180,61,.05);
  font-size:13px;line-height:1.55;color:#E7CDA4;
}
.pay-spam svg{width:15px;height:15px;flex:none;margin-top:2px;color:var(--gold)}
.pay-spam b{color:#FFDCA8}
.pay-resend{margin:14px auto 0;max-width:460px;font-size:13px;color:var(--muted-2)}
.link-btn{
  background:none;border:0;padding:0;font:inherit;color:var(--gold);
  text-decoration:underline;cursor:pointer;
}
.link-btn:hover{color:#FFDCA8}
.link-btn:disabled{opacity:.6;cursor:default;text-decoration:none}

/* ============================================================================
   Hero founder portrait.

   The photo becomes the main visual on desktop and the e-book covers tuck into
   the bottom-left corner in front of it, so the product imagery is still there.
   When no photo is set the figure is hidden and .stack falls back to the
   centred position it had before.
   ========================================================================= */
.hero-portrait{
  position:relative;z-index:2;margin:0;
  width:min(100%,470px);
  border-radius:22px;overflow:hidden;
  border:1px solid var(--line-2);
  box-shadow:0 26px 60px rgba(0,0,0,.55), 0 2px 0 rgba(255,255,255,.05) inset;
  background:#12151E;
}
/* <picture> is inline by default, which would leave a text baseline gap */
.hero-portrait picture{display:block}
.hero-portrait img{
  display:block;width:100%;height:auto;
  aspect-ratio:1409/1129;object-fit:cover;object-position:50% 22%;
}
/* readable caption over any photo */
.hero-portrait figcaption{
  position:absolute;left:0;right:0;bottom:0;
  padding:34px 18px 15px;
  display:flex;flex-direction:column;gap:1px;
  background:linear-gradient(to top,rgba(6,8,12,.92),rgba(6,8,12,.55) 55%,transparent);
  font-family:var(--font-display);
}
.hero-portrait figcaption b{font-size:15.5px;color:#fff;letter-spacing:.01em}
.hero-portrait figcaption span{font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--gold)}



/* Fallback for browsers without :has() — the portrait simply sits above the
   stack in normal flow rather than overlapping it. Still perfectly readable. */
@supports not selector(:has(*)){
  .hero-visual{gap:18px}
  .hero-portrait{width:min(100%,440px)}
}

@media (max-width:1080px){
  .hero-portrait{width:min(100%,420px);margin-inline:auto}
  .hero-visual:has(.hero-portrait:not([hidden])) .stack{left:-4%;bottom:-6%;width:min(48%,180px)}
}
@media (max-width:720px){
  /* on a phone the overlap gets cramped: portrait first, covers below it */
  .hero-portrait{width:100%;border-radius:18px}
  .hero-portrait img{aspect-ratio:4/3;object-position:50% 20%}
  .hero-visual:has(.hero-portrait:not([hidden])) .stack{
    position:relative;left:auto;bottom:auto;margin:18px auto 0;
    width:min(78%,300px);filter:none;
  }
  .hero-visual:has(.hero-portrait:not([hidden])) .chip-a,
  .hero-visual:has(.hero-portrait:not([hidden])) .chip-b{display:none}
}

/* --- hero chips: overlay of the whole visual, not of the cover stack ------ */
/* By default the overlay mirrors .stack's exact box (same width, same aspect
   ratio, same centring), so the original chip percentages resolve to the
   positions they always had and the no-photo hero is pixel-identical. */
.hero-chips{
  position:absolute;z-index:6;pointer-events:none;
  width:min(100%,440px);aspect-ratio:1/.92;
  left:50%;top:50%;transform:translate(-50%,-50%);
}
.hero-chips .chip{pointer-events:auto}

/* With a portrait the overlay expands to the whole visual, so the chips can
   hug its outer edges instead of the shrunken cover stack. */
.hero-visual:has(.hero-portrait:not([hidden])) .hero-chips{
  inset:0;width:auto;aspect-ratio:auto;left:0;top:0;transform:none;
}



@media (max-width:1080px){
  .hero-visual:has(.hero-portrait:not([hidden])) .hero-chips .chip-a{right:-2%;bottom:10%}
  .hero-visual:has(.hero-portrait:not([hidden])) .hero-chips .chip-b{right:-2%;top:-1%}
}
@media (max-width:720px){
  .hero-visual:has(.hero-portrait:not([hidden])) .hero-chips{display:none}
}

/* --- portrait composition tuning ---------------------------------------- */



/* Over a photo the badges need more than the default translucent panel —
   the marble backdrop is bright and the text was washing out. */
.hero-visual:has(.hero-portrait:not([hidden])) .hero-chips .chip{
  background:rgba(8,10,15,.93);
  border-color:rgba(255,255,255,.16);
  box-shadow:0 12px 28px rgba(0,0,0,.5);
}

@media (max-width:1080px){
  .hero-visual:has(.hero-portrait:not([hidden])) .stack{
    left:-9%;bottom:-8%;width:min(44%,168px);
  }
}
@media (max-width:720px){
  /* the phone layout stacks them, so the desktop offsets must not leak in */
  .hero-visual:has(.hero-portrait:not([hidden])) .stack{
    left:auto;bottom:auto;width:min(78%,300px);
  }
}

/* ============================================================================
   --- portrait stacked layout ---

   Photo on top using the space the centred grid used to waste, cover stack
   directly beneath it. .hero-grid centres its columns, so the visual opts out
   with align-self:start and lays its two pieces out as a column.
   ========================================================================= */
.hero-visual:has(.hero-portrait:not([hidden])){
  align-self:start;
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  padding:0;
}
/* the glow followed the old grid centring, so re-anchor it behind the photo */
.hero-visual:has(.hero-portrait:not([hidden]))::before{
  top:2%;left:50%;transform:translateX(-50%);width:82%;
}

.hero-visual:has(.hero-portrait:not([hidden])) .hero-portrait{
  width:min(100%,520px);
}

/* covers sit below the photo, slightly narrower so the composition tapers */
.hero-visual:has(.hero-portrait:not([hidden])) .stack{
  position:relative;left:auto;bottom:auto;z-index:3;
  width:min(80%,368px);aspect-ratio:1/.92;
  margin:16px auto 0;
  filter:drop-shadow(0 20px 38px rgba(0,0,0,.5));
}

/* nothing overlaps the caption any more, so it returns to bottom-left */
.hero-visual:has(.hero-portrait:not([hidden])) .hero-portrait figcaption{
  left:0;right:0;width:auto;
  padding:34px 18px 15px;
  align-items:flex-start;text-align:left;
  background:linear-gradient(to top,rgba(6,8,12,.92),rgba(6,8,12,.55) 55%,transparent);
}

/* Both badges belong to the playbooks now — the photo stays clean. chip-b
   ("written for beginners") sits at the top-right of the cover stack, chip-a
   ("real costs inside") at its lower-left, so they frame the covers. */
.hero-visual:has(.hero-portrait:not([hidden])) .hero-chips .chip-b{
  left:auto;right:-3%;top:auto;bottom:30%;
}
.hero-visual:has(.hero-portrait:not([hidden])) .hero-chips .chip-a{
  left:-5%;right:auto;top:auto;bottom:6%;
}

@media (max-width:1080px){
  .hero-visual:has(.hero-portrait:not([hidden])) .hero-portrait{width:min(100%,440px)}
  .hero-visual:has(.hero-portrait:not([hidden])) .stack{width:min(78%,310px)}
  .hero-visual:has(.hero-portrait:not([hidden])) .hero-chips .chip-b{right:-2%;bottom:28%}
  .hero-visual:has(.hero-portrait:not([hidden])) .hero-chips .chip-a{left:-2%;bottom:5%}
}
@media (max-width:720px){
  .hero-visual:has(.hero-portrait:not([hidden])) .hero-portrait{width:100%}
  .hero-visual:has(.hero-portrait:not([hidden])) .stack{
    width:min(78%,300px);margin-top:18px;filter:none;
  }
}

/* ============================================================================
   --- requested tweaks ---
   ========================================================================= */

/* 2. Wide screens were leaving a lot of dead margin either side, because the
   container was capped at 1180px however big the display got. It now grows on
   large monitors and keeps the same gutter on small ones. */
@media (min-width:1440px){
  :root{--container:1320px}
}
@media (min-width:1760px){
  :root{--container:1440px}
}

/* 3. In the admin panel the popup preview appeared at the storefront's
   bottom-left, which put it on top of the sidebar's "Live data" note. The
   sidebar is 252px wide, so the preview is pushed clear of it. */
body.admin-mode .ks-pop-bottom-left,
body.admin-mode .ks-pop-top-left{ left:calc(252px + 20px) }
body.admin-mode .ks-pop{ z-index:45 }   /* under modals (50+), over cards */

@media (max-width:1080px){
  /* the sidebar is off-canvas at this width, so the offset must go */
  body.admin-mode .ks-pop-bottom-left,
  body.admin-mode .ks-pop-top-left{ left:18px }
}

/* ============================================================================
   4. Floating WhatsApp button.

   Sits at the bottom-right and lifts the back-to-top button above it so the
   two never fight for the same corner. Collapses to a circle on phones, where
   the label would eat the screen.
   ========================================================================= */
.wa-float{
  position:fixed;right:20px;bottom:24px;z-index:62;
  display:inline-flex;align-items:center;gap:9px;
  height:52px;padding:0 20px 0 16px;border-radius:999px;
  background:linear-gradient(160deg,#28D146,#1EA939);
  color:#06240D;text-decoration:none;
  font-family:var(--font-display);font-weight:700;font-size:14.5px;letter-spacing:-.01em;
  box-shadow:0 12px 30px rgba(30,169,57,.34), 0 2px 0 rgba(255,255,255,.28) inset;
  transition:transform .22s var(--ease), box-shadow .22s var(--ease), filter .22s;
}
.wa-float svg{width:23px;height:23px;flex:none}
.wa-float:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(30,169,57,.45);filter:brightness(1.05)}
.wa-float:active{transform:translateY(-1px)}
.wa-float:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* a slow, quiet pulse so it is noticed once without nagging */
.wa-float::after{
  content:"";position:absolute;inset:0;border-radius:inherit;
  border:2px solid rgba(40,209,70,.55);
  animation:waPulse 2.8s ease-out infinite;pointer-events:none;
}
@keyframes waPulse{
  0%{transform:scale(1);opacity:.7}
  70%{transform:scale(1.22);opacity:0}
  100%{transform:scale(1.22);opacity:0}
}
@media (prefers-reduced-motion:reduce){
  .wa-float::after{animation:none;opacity:0}
}

/* back-to-top moves above the WhatsApp pill instead of under it */
.to-top{bottom:88px}

@media (max-width:640px){
  .wa-float{
    right:14px;bottom:16px;
    width:52px;padding:0;justify-content:center;border-radius:50%;
  }
  .wa-float span{display:none}
  .to-top{right:14px;bottom:80px}
}

/* the popup already lives bottom-left, so it never collides — but on a phone
   it spans the full width, so lift it clear of the WhatsApp circle */
@media (max-width:640px){
  .ks-pop-bottom-left,.ks-pop-bottom-right{bottom:80px}
  body.ks-pop-open .to-top{transform:translateY(-152px)}
}

/* ============================================================================
   5. Polish pass — additive only. Existing hovers, spacing and colours are
   untouched; these layer on top of them.
   ========================================================================= */

/* the cover breathes slightly when its card is hovered */
.book-cover svg,.book-cover .cover-img{
  transition:transform .55s var(--ease);
  transform-origin:center 40%;
}
.book:hover .book-cover svg,
.book:hover .book-cover .cover-img{transform:scale(1.045)}

/* a light sweep across the primary button, once per hover */
.btn-primary{position:relative;overflow:hidden;isolation:isolate}
.btn-primary::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(105deg,transparent 30%,rgba(255,255,255,.42) 50%,transparent 70%);
  transform:translateX(-120%);
}
.btn-primary:hover::after{transform:translateX(120%);transition:transform .75s var(--ease)}

/* hero numbers pick up the brand gradient */
.hero-stats b{
  background:var(--grad-gold);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}

/* the portrait lifts a touch on hover, like the cards do */
.hero-portrait{transition:transform .45s var(--ease),box-shadow .45s var(--ease)}
.hero-portrait:hover{
  transform:translateY(-4px);
  box-shadow:0 34px 74px rgba(0,0,0,.6), 0 0 0 1px rgba(255,180,61,.22) inset;
}
.hero-portrait img{transition:transform .7s var(--ease)}
.hero-portrait:hover img{transform:scale(1.03)}

/* section headings get a thin gold rule under the eyebrow dot */
.section-head .eyebrow i{box-shadow:0 0 0 4px rgba(255,180,61,.12)}

/* review cards match the product-card lift */
.review{transition:transform .4s var(--ease),border-color .3s,box-shadow .4s}
.review:hover{
  transform:translateY(-4px);border-color:rgba(255,180,61,.26);
  box-shadow:0 30px 64px -40px #000;
}

/* one consistent focus ring across every interactive element */
a:focus-visible,button:focus-visible,input:focus-visible,
select:focus-visible,textarea:focus-visible{
  outline:2px solid rgba(255,180,61,.75);outline-offset:2px;border-radius:6px;
}

@media (prefers-reduced-motion:reduce){
  .book-cover svg,.book-cover .cover-img,
  .hero-portrait,.hero-portrait img,.review,.btn-primary::after{
    transition:none !important;transform:none !important;
  }
}

/* ============================================================================
   6. Official YouTube button + full-width layout on large monitors.
   ========================================================================= */

/* YouTube brand red (#FF0000), white glyph and label — the button people
   recognise, rather than the generic ghost style. */
.btn-yt{
  background:#FF0000;color:#fff;border-color:#FF0000;
  box-shadow:0 14px 34px -14px rgba(255,0,0,.62);
}
.btn-yt svg{width:22px;height:22px;color:#fff}
.btn-yt:hover{
  background:#E60000;border-color:#E60000;color:#fff;
  box-shadow:0 20px 46px -14px rgba(255,0,0,.75);
}
.btn-yt:active{background:#CC0000;border-color:#CC0000}
.btn-yt:focus-visible{outline:2px solid #fff;outline-offset:3px}

/* --------------------------------------------------------------------------
   The container was capped, so a 1900px monitor showed a wide empty band down
   both sides. It now tracks the viewport with a fixed gutter instead, so at
   100% zoom the layout reaches close to both edges.

   Long paragraphs keep their own max-width (54ch and similar), so widening the
   shell does not stretch body text into unreadable lines — it only gives the
   grids and the hero more room.
   -------------------------------------------------------------------------- */
@media (min-width:1600px){
  .container{width:min(1800px, 100% - 80px)}
}

/* the hero visual grows with the extra room instead of floating in it */
@media (min-width:1600px){
  .hero-visual:has(.hero-portrait:not([hidden])) .hero-portrait{width:min(100%,600px)}
  .hero-visual:has(.hero-portrait:not([hidden])) .stack{width:min(80%,420px)}
  .hero h1{font-size:clamp(33px,4.6vw,68px)}
  .hero-sub{max-width:60ch}
}

/* --- wide-screen grids ---------------------------------------------------
   With the shell now ~1800px, a three-column book grid gave 585px cards —
   the covers ballooned and the rows looked unbalanced. A fourth column keeps
   each card near the size it was designed at.
   ------------------------------------------------------------------------ */
@media (min-width:1600px){
  .books{grid-template-columns:repeat(4,minmax(0,1fr))}
  .reviews{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
  .pd-inside,.pd-for{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ============================================================================
   7. Hero column alignment + brand band.
   ========================================================================= */

/* The grid centres its columns. With a tall portrait stack on the right the
   shorter copy column was pushed down, leaving ~120px of dead black above
   "FROM THE KUSHSTARTUPS CHANNEL". Both columns now start at the same top
   edge. Only applies when a portrait is present, so the original centred
   layout is untouched without one. */
.hero-grid:has(.hero-portrait:not([hidden])) .hero-copy{ align-self:start }

/* --------------------------------------------------------------------------
   Brand band — the "Ideas. Strategy. Execution. Growth." strip, used as the
   lead-in to About.

   The artwork is 1079px wide, so it is capped there rather than stretched
   across a 1800px shell where it would go soft. Its own edges are faded into
   the page with a mask so it reads as part of the band instead of a
   rectangle dropped on top, and a gold hairline top and bottom ties it to the
   rest of the palette.
   -------------------------------------------------------------------------- */
.brand-band{
  position:relative;z-index:1;
  padding:clamp(26px,3.4vw,44px) 0;
  border-top:1px solid rgba(255,180,61,.16);
  border-bottom:1px solid rgba(255,180,61,.16);
  background:
    radial-gradient(60% 140% at 50% 50%, rgba(255,138,43,.10), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,0));
  overflow:hidden;
}

/* --------------------------------------------------------------------------
   Brand band type. Set as text rather than an image so it stays sharp at any
   width, weighs nothing, and follows the palette. The four words run on one
   line separated by gold dots, with the promise boxed underneath — the same
   arrangement as the original artwork.
   -------------------------------------------------------------------------- */
.brand-band .container{
  display:flex;flex-direction:column;align-items:center;gap:16px;
}
.band-line{
  margin:0;text-align:center;
  font-family:var(--font-display);font-weight:800;
  text-transform:uppercase;color:var(--text);
  font-size:clamp(15px,2.1vw,29px);
  letter-spacing:clamp(.06em,.5vw,.16em);
  line-height:1.28;
}
.band-line b{
  font-weight:800;
  background:var(--grad-gold);
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}
/* the separator dots, spaced away from the words */
.band-line i{
  font-style:normal;color:var(--gold);opacity:.55;
  margin:0 clamp(6px,.8vw,14px);
}

.band-sub{
  margin:0;text-align:center;
  padding:9px clamp(16px,2vw,26px);
  border:1px solid rgba(255,180,61,.32);border-radius:10px;
  background:rgba(255,180,61,.05);
  font-family:var(--font-display);font-weight:700;
  text-transform:uppercase;color:var(--muted);
  font-size:clamp(10.5px,1.15vw,14px);
  letter-spacing:clamp(.08em,.35vw,.16em);
}
.band-sub b{font-weight:700;color:var(--gold)}

@media (max-width:640px){
  .brand-band{padding:24px 0}
  .brand-band .container{gap:13px}
  /* The markup now carries real spaces around the dots, so the line has break
     points and wraps to two rows instead of being clipped. The dot margin goes
     to zero because those spaces already separate the words. */
  .band-line i{margin:0}
  .band-line{letter-spacing:.04em;line-height:1.7}
}

/* ============================================================================
   8. Brand colours for the platform icons.

   Each network gets its own colour instead of the house gold, so the icons are
   recognisable at a glance. Official values:
     YouTube #FF0000 · WhatsApp #25D366 · Instagram gradient · X #FFF on black
     LinkedIn #0A66C2 · Telegram #26A5E4 · Gmail #EA4335
   The clock icon has no brand behind it, so it keeps the gold.
   ========================================================================= */

/* ---- contact cards ---- */
.pillar-ico.ico-mail{
  background:rgba(234,67,53,.13);border-color:rgba(234,67,53,.32);color:#EA4335;
}
.pillar-ico.ico-yt{
  background:rgba(255,0,0,.13);border-color:rgba(255,0,0,.34);color:#FF0000;
}
.pillar-ico.ico-wa{
  background:rgba(37,211,102,.13);border-color:rgba(37,211,102,.34);color:#25D366;
}
/* the card hover tint is gold by default; keep each card on its own colour */
.contact-card:hover .ico-mail{background:rgba(234,67,53,.2);border-color:rgba(234,67,53,.5)}
.contact-card:hover .ico-yt{background:rgba(255,0,0,.2);border-color:rgba(255,0,0,.5)}
.contact-card:hover .ico-wa{background:rgba(37,211,102,.2);border-color:rgba(37,211,102,.5)}

/* ---- footer social row ---- */
.socials a[data-brand="youtube"]  { color:#FF0000 }
.socials a[data-brand="instagram"]{ color:#E1306C }
.socials a[data-brand="x"]        { color:#FFFFFF }
.socials a[data-brand="linkedin"] { color:#0A66C2 }
.socials a[data-brand="telegram"] { color:#26A5E4 }

/* On hover the tile fills with the network's own colour rather than gold. */
.socials a[data-brand]:hover{border-color:transparent;transform:translateY(-3px)}
.socials a[data-brand="youtube"]:hover  { background:#FF0000;color:#fff }
.socials a[data-brand="linkedin"]:hover { background:#0A66C2;color:#fff }
.socials a[data-brand="telegram"]:hover { background:#26A5E4;color:#fff }
.socials a[data-brand="x"]:hover        { background:#000;color:#fff;border-color:rgba(255,255,255,.35) }
/* Instagram's mark is a gradient, so the tile takes the gradient too */
.socials a[data-brand="instagram"]:hover{
  background:linear-gradient(45deg,#F58529,#DD2A7B 45%,#8134AF 70%,#515BD4);
  color:#fff;
}

/* The unbranded chip (support hours) sat on a gold-tinted background but its
   glyph rendered muted grey: ".contact-card span" (0,1,1) outweighed
   ".pillar-ico" (0,1,0). Long-standing, unrelated to the brand colours above.
   Scoped with :not() so it can never fight the branded chips regardless of
   which rule comes later in the file. */
.contact-card .pillar-ico:not([class*="ico-"]){ color:var(--gold) }

/* ============================================================================
   9. Hero headline animation.

   Two pieces, both deliberately restrained:
     · each line rises and focuses in, one after the other, once on load
     · a slow light sweeps across the gold words, forever

   Gated behind html.js exactly like [data-reveal], so with JS off the headline
   is simply visible. The lines are display:block and hold their space, so
   nothing shifts while they animate (no layout jump).
   ========================================================================= */
.hero-title .hl{ display:block }

.js .hero-title .hl{
  opacity:0;
  animation:hlRise .95s cubic-bezier(.22,.9,.28,1) both;
  will-change:opacity, transform, filter;
}
.js .hero-title .hl:nth-of-type(1){ animation-delay:.12s }
.js .hero-title .hl:nth-of-type(2){ animation-delay:.30s }

@keyframes hlRise{
  from{ opacity:0; transform:translateY(26px); filter:blur(7px) }
  60% { opacity:1 }
  to  { opacity:1; transform:none;            filter:blur(0)   }
}

/* The light sweep. The gradient is stretched past the text so moving its
   position slides the highlight across the letters rather than recolouring
   them. Starts after the lines have settled. */
.js .hero-title .grad{
  background-size:230% 100%;
  animation:goldSweep 6s ease-in-out 1.5s infinite;
}
@keyframes goldSweep{
  0%,  100%{ background-position:0% 50% }
  50%      { background-position:100% 50% }
}

/* animation done — drop the compositor hints */
.js .hero-title .hl{ animation-fill-mode:both }

@media (prefers-reduced-motion:reduce){
  /* the global reduce block already zeroes durations; be explicit so the
     headline can never be left mid-animation or invisible */
  .js .hero-title .hl{
    opacity:1 !important; animation:none !important;
    transform:none !important; filter:none !important;
  }
  .js .hero-title .grad{ animation:none !important; background-size:100% 100% }
}

/* Safety net (see guardHeroTitle in store.js): forces the finished state a
   moment after the animation should have ended, so the headline can never be
   left invisible by an environment that does not run CSS animations. */
.js .hero-title.hl-shown .hl{
  opacity:1 !important; transform:none !important;
  filter:none !important; animation:none !important;
}

/* ============================================================================
   10. Marquee legibility.

   The strip's text was --muted-2 (#727C8C) at 13px, a 4.6:1 contrast ratio —
   right on the AA limit for normal text and visibly faint. On top of that the
   90px fade masks at each end washed out the first and last words.

   Text is brighter (#C2C9D6, ~11.8:1), a touch larger, and the fades are
   narrower and steeper so only the very edge is softened.
   ========================================================================= */
.marquee li{
  color:#C2C9D6;
  font-size:13.6px;
  font-weight:650;
  letter-spacing:.14em;
}
.marquee li i{ opacity:1 }

/* narrower, steeper fades — enough to hide the loop seam, not three words */
.strip::before,.strip::after{ width:52px }
.strip::before{ background:linear-gradient(90deg,var(--ink) 15%,transparent) }
.strip::after { background:linear-gradient(270deg,var(--ink) 15%,transparent) }

@media (max-width:640px){
  /* less room on a phone, so keep the fades minimal */
  .strip::before,.strip::after{ width:30px }
  .marquee li{ font-size:12.6px;letter-spacing:.12em }
}

/* ===========================================================================
   11. Brand logo
   The supplied logo is drawn for a light background: 44% of its ink is deep
   navy, which measures under 3:1 against the near-black header. A recoloured
   variant (navy -> light, orange untouched) is used everywhere on the site;
   the original stays in the repo for light-background use such as invoices.
   ========================================================================= */
/* The supplied logo is one 3:1 image whose tagline row is only 7.8% of its
   height. At a 40px header that is ~3px tall — it read as a smudge, not as
   words. So the artwork is split into logo-mark (the monogram, which uses the
   full height and cannot be cropped) and logo-word (the wordmark, with the
   tagline strip removed above y=132), and the tagline is set as REAL TEXT,
   which stays crisp at any size. logo-dark.* — the whole lockup, tagline
   included — is still used where it renders large enough to read: og-image. */
.brand-mk{display:block;height:42px;width:auto;flex:none}
.brand-lines{display:flex;flex-direction:column;gap:4px;min-width:0}
.brand-wd{display:block;height:19px;width:auto}
.brand-tag{
  font-size:9.5px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;
  color:var(--muted);white-space:nowrap;
}

/* the footer has room to run a little larger */
.foot-brand .brand-mk{height:48px}
.foot-brand .brand-wd{height:22px}
.foot-brand .brand-tag{font-size:10px}

@media (max-width:900px){
  .brand-mk{height:36px}
  .brand-wd{height:16px}
  .brand-tag{font-size:8.5px;letter-spacing:.15em}
}

/* the admin lockups are a row: monogram, then wordmark over what the screen is */
.adm-login-brand,.adm-brand{flex-direction:row;align-items:center;gap:11px}
.adm-login-brand .brand-mk{height:46px}
.adm-login-brand .brand-wd{height:21px}
.adm-brand .brand-mk{height:38px}
.adm-brand .brand-wd{height:17px}
.adm-brand-sub{
  font-size:9.5px;font-weight:700;letter-spacing:.18em;
  text-transform:uppercase;color:var(--muted);
}
.adm-login-brand .adm-brand-sub{font-size:10.5px;letter-spacing:.16em}

/* .adm-brand span (0,1,1) and .adm-login-brand span span (0,1,2) both set
   --muted-2 on this label and outrank a bare .adm-brand-sub (0,1,0), which
   left it at 4.66:1. These win on specificity and match the header's 7.5:1. */
.adm-brand .adm-brand-sub,
.adm-login-brand .adm-brand-sub{color:var(--muted)}

/* A cell that stacks a chip over a second chip or a note. Chips are ~23px tall
   but the cell's line box is ~16px, so separating them with <br> made each one
   bleed into the row below. A flex column gives them their own height. */
.adm-stack{display:inline-flex;flex-direction:column;align-items:flex-start;gap:6px}
.adm-stack .muted{line-height:1.4}

/* Two .chip rules exist at equal specificity: the hero's floating cards
   (section 3) and the admin status badges (section 8). The later rule wins on
   the properties it declares, but `position:absolute`, `z-index` and the float
   animation leak through to every admin badge — so they reserved no height and
   bled into the row below, and they drifted up and down. Scope the reset to the
   admin document so the hero's chips are untouched. */
body.admin-mode .chip{
  position:static;z-index:auto;animation:none;
  backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:none;
}

/* Belt and braces for the dropdown list. color-scheme handles Chromium, Edge
   and Firefox on Windows/macOS; some Linux and Android builds still paint the
   popup with the page's own colours, so name them explicitly. Options are
   painted by the OS, so these must be opaque — the translucent white the closed
   control uses would land on an unknown backdrop. */
option,optgroup{
  background-color:#151922;
  color:#EEF1F6;
}
option:checked,option:hover{background-color:#242A36}
optgroup{color:#98A2B3;font-style:normal}

/* ---------------------------------------------------------------------------
   Team: founder + co-founder in the About aside. A card with no name carries
   [hidden], so with one person this column looks exactly as it did before.
   With two, the photo and body text shrink so the aside does not tower over
   the copy beside it.
   ------------------------------------------------------------------------- */
.team{display:grid;gap:12px;margin-bottom:16px}
.team .founder{margin-bottom:0}

.team:has(.founder:not([hidden]) + .founder:not([hidden])) .founder{padding:15px;gap:15px}
.team:has(.founder:not([hidden]) + .founder:not([hidden])) .founder-photo{
  width:64px;height:64px;border-radius:16px;font-size:21px;
}
.team:has(.founder:not([hidden]) + .founder:not([hidden])) .founder p{font-size:13.2px;margin-top:6px}

@media (max-width:560px){
  .team:has(.founder:not([hidden]) + .founder:not([hidden])) .founder-photo{
    width:56px;height:56px;border-radius:14px;font-size:19px;
  }
}

/* ===========================================================================
   12. Step 13 — abandoned checkout recovery
   ========================================================================= */

/* Consent block on the checkout form. Deliberately quiet: an opt-in that
   shouts is an opt-in people tick without reading. */
.co-consent{
  margin:20px 0 0;padding:15px 16px;border:1px solid var(--line);border-radius:var(--r);
  background:rgba(255,255,255,.02);
}
.co-consent legend{
  padding:0 6px;font-size:11px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--muted);
}
.co-consent legend span{font-weight:400;letter-spacing:.06em;text-transform:none;color:var(--muted-2)}
.co-check{display:flex;gap:10px;align-items:flex-start;cursor:pointer;font-size:13.4px;
  line-height:1.55;color:#C3CAD6}
.co-check + .co-check{margin-top:10px}
.co-check input{
  width:17px;height:17px;flex:none;margin-top:1px;accent-color:var(--gold);cursor:pointer;
}
.co-consent-note{margin:12px 0 0;font-size:12.2px;line-height:1.6;color:var(--muted-2)}

/* The banner shown when someone arrives from a recovery link. */
.co-resumed{
  display:flex;gap:12px;align-items:flex-start;
  margin:0 0 18px;padding:14px 16px;border-radius:var(--r);
  border:1px solid rgba(37,217,140,.32);background:rgba(37,217,140,.09);
  font-size:13.6px;line-height:1.6;color:#C9F3E0;
}
.co-resumed svg{width:17px;height:17px;flex:none;margin-top:2px;color:var(--mint)}
.co-resumed b{color:#fff}
.co-resumed .warn{display:block;margin-top:6px;color:#FFCE85}

/* Standalone unsubscribe view. */
.unsub-wrap{max-width:520px;margin:0 auto;padding:60px 20px;text-align:center}
.unsub-wrap h1{font-size:clamp(24px,3vw,32px);margin-bottom:12px}
.unsub-wrap p{color:var(--muted);font-size:15px;line-height:1.7}
.unsub-wrap .btn{margin-top:24px}

/* Reminder progress: three dots, one per step in the sequence. Filled means
   sent, gold-ringed means the customer actually clicked it. */
.rc-dots{display:inline-flex;gap:5px}
.rc-dot{
  width:20px;height:20px;border-radius:50%;display:grid;place-items:center;
  font-size:10.5px;font-weight:700;
  background:rgba(37,217,140,.14);color:#7BE7B4;border:1px solid rgba(37,217,140,.34);
}
.rc-dot.hit{background:rgba(255,180,61,.16);color:#FFCE85;border-color:rgba(255,180,61,.45)}
.rc-dot.off{background:rgba(255,255,255,.04);color:var(--muted-2);border-color:var(--line)}

/* ===========================================================================
   13. The rocket launch
   ---------------------------------------------------------------------------
   The artwork already draws the rocket's trail running out of the open book,
   up through the monogram, to the rocket itself. So the rocket does not need a
   path invented for it — it just travels the one already there.

   The mark is a raster image, so the rocket was separated from it by
   saturation: inside the top-right box the silver capsule went to
   logo-rocket.*, everything orange stayed in logo-mark-body.*. The body's
   trail now ends in a flare, which reads as intentional.

   Resting state is authoritative: the keyframes END where the rocket already
   is, so with no animation, reduced motion, or CSS that never loads, the
   header shows the complete logo. body + rocket at rest is logo-mark exactly.
   ========================================================================= */
/* The WRAP carries the height, not the image. The other way round is circular:
   the wrap would size to the image while the image sized to the wrap, and both
   fall back to the artwork's natural 417px. */
.brand-mark-wrap{
  position:relative;
  display:inline-block;
  flex:none;
  line-height:0;          /* no inline descender gap under the image */
  height:42px;            /* matches the header's .brand-mk height */
}
.brand-mark-wrap .brand-mk{display:block;height:100%;width:auto}

/* Placed with the measured box of the rocket inside the 139x150 mark:
   x=86 y=0 w=53  ->  61.871% / 0 / 38.129%. Percentages, so it stays aligned
   at every one of the lockup's five sizes. */
.brand-rocket{
  position:absolute;
  left:61.871%;
  top:0;
  width:38.129%;
  height:auto;
  transform-origin:50% 60%;
}

/* The book's centre sits ~78% of the rocket's own width to its left and ~150%
   of its height below — that is where it starts, small and unlit.

   ONE transform segment, on purpose. A CSS timing function is applied to every
   keyframe segment separately, so an earlier version with an overshoot stop at
   70% ran the whole aggressive curve inside 0->70% and was finished by 368ms
   of its 1150ms, leaving two thirds of the animation doing nothing. With a
   single segment the curve governs the whole trip: a slow lift out of the
   book, acceleration up the trail, then a decelerating arrival. */
@keyframes rocketLaunch{
  0%   { transform:translate(-78%,150%) scale(.40) rotate(-16deg); opacity:0 }
  9%   { opacity:1 }
  100% { transform:translate(0,0)       scale(1)   rotate(0);      opacity:1 }
}
@keyframes rocketGlow{
  0%,12% { filter:drop-shadow(0 6px 14px rgba(255,138,43,.85)) }
  100%   { filter:drop-shadow(0 0 0 rgba(255,138,43,0)) }
}

/* Only the header animates, and only once — an animation with no
   iteration-count runs a single time per page load, and the SPA never reloads
   while someone browses, so it is one launch per visit. */
/* The animation is OPT-IN, added by JS and removed again on a timer.
   Two things forced that, both observed in testing:

   - `animation-fill-mode: both` holds the 0% keyframe before the animation
     starts, so a deferred start left the header showing a tiny, tilted,
     invisible rocket. Dropping the fill fixed the not-yet-started case.
   - But an animation whose clock is STALLED reports playState "running" with
     currentTime frozen at 0, and an active animation overrides static styles
     whatever the fill mode. That still showed a broken mark.

   So: no class, no animation, and the static styles ARE the finished logo.
   store.js adds .rocket-go only when the page is actually visible, then
   removes it after the duration whether or not the clock ever advanced. Same
   belt-and-braces shape as guardHeroTitle(). */
.brand-mark-wrap.rocket-go .brand-rocket{
  /* eases IN then OUT — a rocket leaves slowly and arrives gently. 1.4s reads
     at the 13x16px this renders at on a phone; shorter and it is a flicker. */
  animation:rocketLaunch 1.4s cubic-bezier(.55,.06,.32,1),
            rocketGlow   1.4s ease-out;
}

/* mirrors the .brand-mk mobile height so the wrap keeps tracking it */
@media (max-width:900px){
  .brand-mark-wrap{height:36px}
}

/* Anyone who has asked for less motion gets the finished logo, immediately.
   store.js checks the same query before adding the class; this is the second
   line of defence in case it ever does not. */
@media (prefers-reduced-motion:reduce){
  .brand-mark-wrap.rocket-go .brand-rocket{animation:none}
}
