/* ============================================================
   Ebook sales page — 12 feature cards, pricing, closing CTA
   Layered on v2.css tokens.
   ============================================================ */

/* ---------- feature card grid ---------- */
.f-grid {
  max-width: var(--maxw); margin: clamp(34px,4vw,62px) auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.7vw, 24px);
}
@media (max-width: 1080px) { .f-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .f-grid { grid-template-columns: 1fr; } }

.fcard {
  position: relative; overflow: hidden;
  min-height: 268px;
  display: flex; flex-direction: column;
  padding: clamp(20px,2vw,26px);
  border-radius: 26px;
  border: 1px solid var(--hair);
  background: rgba(43,43,43,.022);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease),
              border-color .45s var(--ease), background .45s var(--ease);
  will-change: transform;
}
.fcard:hover, .fcard.is-lit {
  transform: translateY(-6px);
  border-color: rgba(43,43,43,.24);
  background: rgba(43,43,43,.045);
  box-shadow: 0 22px 52px rgba(0,0,0,.09);
}

.fcard h3 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(18px,1.55vw,24px); letter-spacing: -.032em;
  line-height: 1.05; margin: 0;
}
.fcard > p {
  margin: 9px 0 0; font-size: 14px; line-height: 1.5;
  color: var(--ink-60); max-width: 34ch;
}

/* the visual stage each card animates inside */
.fviz {
  position: relative; margin-top: auto; padding-top: 22px;
  min-height: 118px;
}

/* every animated fragment shares this, staggered by --i */
.bit {
  transition: transform .6s var(--ease), opacity .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 55ms);
  will-change: transform;
}

/* ---------- 01 landing clients: avatar wall + reactions ---------- */
.av-wall { display: grid; grid-template-columns: repeat(3, 52px); gap: 10px; }
.av {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center;
  font-family: var(--display); font-size: 17px; color: #f1f1f1;
  border: 2px solid rgba(241,241,241,.85);
  box-shadow: 0 6px 16px rgba(0,0,0,.14);
  transform: rotate(var(--r, 0deg));
}
.fcard:hover .av, .fcard.is-lit .av { transform: rotate(0deg) translateY(-5px) scale(1.04); }
.av:nth-child(1){ --r:-5deg;  background:linear-gradient(140deg,#2b2b2b,#4a4a52); }
.av:nth-child(2){ --r: 2deg;  background:linear-gradient(140deg,#7a2540,#fc4778); }
.av:nth-child(3){ --r:-8deg;  background:linear-gradient(140deg,#123544,#2f7f96); }
.av:nth-child(4){ --r: 5deg;  background:linear-gradient(140deg,#3d2a12,#a9762e); }
.av:nth-child(5){ --r:-3deg;  background:linear-gradient(140deg,#1d3320,#4d8c5a); }
.av:nth-child(6){ --r: 7deg;  background:linear-gradient(140deg,#2a1d3d,#6b4fa0); }

.reacts { position: absolute; right: 0; top: 26px; display: grid; gap: 9px; }
.react {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--hair);
  font-family: var(--mono); font-size: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  opacity: 0; transform: translateX(14px) scale(.9);
}
.fcard:hover .react, .fcard.is-lit .react { opacity: 1; transform: none; }

/* ---------- 02 documents: fanned sheets ---------- */
.docs { position: relative; height: 112px; }
.doc {
  position: absolute; left: 8px; bottom: 0;
  width: 84px; height: 106px; border-radius: 11px;
  background: #fff; border: 1px solid var(--hair);
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
  padding: 11px; display: grid; align-content: start; gap: 6px;
  transform: rotate(var(--r)) translateX(var(--x));
}
.doc span { display: block; height: 4px; border-radius: 2px; background: rgba(43,43,43,.16); }
.doc span:nth-child(1){ width: 70%; background: rgba(43,43,43,.34); }
.doc span:nth-child(3){ width: 55%; }
.doc:nth-child(1){ --r:-9deg;  --x:0px;   }
.doc:nth-child(2){ --r:-1deg;  --x:34px;  }
.doc:nth-child(3){ --r: 7deg;  --x:68px;  }
.fcard:hover .doc:nth-child(1), .fcard.is-lit .doc:nth-child(1){ transform: rotate(-14deg) translate(-8px,-8px); }
.fcard:hover .doc:nth-child(2), .fcard.is-lit .doc:nth-child(2){ transform: rotate(0deg)   translate(40px,-14px); }
.fcard:hover .doc:nth-child(3), .fcard.is-lit .doc:nth-child(3){ transform: rotate(12deg)  translate(90px,-8px); }
.doc-tag {
  position: absolute; right: 2px; bottom: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-40);
}

/* ---------- 03 chat bubbles ---------- */
.chat { display: grid; gap: 8px; }
.bub {
  max-width: 78%; padding: 9px 13px; border-radius: 14px;
  font-size: 13px; background: #fff; border: 1px solid var(--hair);
  box-shadow: 0 5px 14px rgba(0,0,0,.06);
  opacity: 0; transform: translateY(10px);
}
.bub.me { margin-left: auto; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fcard:hover .bub, .fcard.is-lit .bub { opacity: 1; transform: none; }

/* ---------- generic chip rows (research / copy / process) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mchip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--hair); font-size: 13px;
  opacity: .45; transform: translateY(8px) scale(.96);
}
.fcard:hover .mchip, .fcard.is-lit .mchip { opacity: 1; transform: none; }

/* ---------- 06 grids & layout ---------- */
.cols { display: flex; gap: 6px; align-items: flex-end; height: 92px; }
.col {
  flex: 1; border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, rgba(252,71,120,.55), rgba(252,71,120,.14));
  height: 38%; transform-origin: 50% 100%;
}
.fcard:hover .col, .fcard.is-lit .col { height: var(--h, 70%); }
.col:nth-child(1){ --h: 58%; } .col:nth-child(2){ --h: 86%; }
.col:nth-child(3){ --h: 44%; } .col:nth-child(4){ --h: 96%; }
.col:nth-child(5){ --h: 66%; } .col:nth-child(6){ --h: 78%; }
.bp { display: flex; justify-content: space-between; margin-top: 9px; }
.bp span { font-family: var(--mono); font-size: 10px; color: var(--ink-40); letter-spacing: .1em; }

/* ---------- 07 typography ---------- */
.typ { display: grid; gap: 4px; }
.typ .big {
  font-family: var(--display); font-size: 40px; letter-spacing: -.05em;
  line-height: .9; transform-origin: 0 100%;
}
.fcard:hover .typ .big, .fcard.is-lit .typ .big { transform: scale(1.16); }
.typ .small { font-size: 13px; color: var(--ink-60); }
.typ .rule { height: 1px; background: var(--hair); margin: 6px 0; }

/* ---------- 08 colour ---------- */
.swatches { display: flex; gap: 8px; }
.sw { flex: 1; height: 76px; border-radius: 12px; transform-origin: 50% 100%; }
.fcard:hover .sw, .fcard.is-lit .sw { transform: scaleY(1.16); }
.sw:nth-child(1){ background:#2b2b2b; } .sw:nth-child(2){ background:#fc4778; }
.sw:nth-child(3){ background:#2f7f96; } .sw:nth-child(4){ background:#e2b23c; }
.sw:nth-child(5){ background:#e7e7e7; border:1px solid var(--hair); }

/* ---------- 09 visuals: layered shapes ---------- */
.layers { position: relative; height: 108px; }
.layer {
  position: absolute; inset: 14px 30px; border-radius: 16px;
  border: 1px solid var(--hair); background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.07);
}
.fcard:hover .layer:nth-child(1), .fcard.is-lit .layer:nth-child(1){ transform: translate(-24px,-10px) rotate(-7deg); }
.fcard:hover .layer:nth-child(2), .fcard.is-lit .layer:nth-child(2){ transform: translate(0,-4px) rotate(1deg); }
.fcard:hover .layer:nth-child(3), .fcard.is-lit .layer:nth-child(3){ transform: translate(24px,-10px) rotate(8deg); }
.layer:nth-child(2){ background: linear-gradient(140deg,#2b2b2b,#3a3a44); }
.layer:nth-child(3){ background: linear-gradient(140deg,#7a2540,#fc4778); }

/* ---------- 12 performance gauge ---------- */
.gauge { display: flex; align-items: center; gap: 16px; }
.ring {
  --p: 0;
  width: 84px; height: 84px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--cursor) calc(var(--p) * 1%), rgba(43,43,43,.10) 0);
  display: grid; place-items: center;
  transition: --p 1.1s var(--ease);
}
.ring::after {
  content: ""; width: 64px; height: 64px; border-radius: 50%; background: var(--bg);
  grid-area: 1/1;
}
.ring b {
  grid-area: 1/1; z-index: 1;
  font-family: var(--display); font-size: 20px; font-weight: 400; letter-spacing: -.03em;
}
.fcard:hover .ring, .fcard.is-lit .ring { --p: 96; }
@property --p { syntax: '<number>'; initial-value: 0; inherits: false; }

/* ============================================================
   ACCESS TODAY — pricing
   ============================================================ */
.access {
  max-width: 1180px; margin: clamp(34px,4vw,60px) auto 0;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(18px,2vw,30px); align-items: start;
}
@media (max-width: 900px) { .access { grid-template-columns: 1fr; } }

.access-card {
  border-radius: 26px; padding: clamp(24px,2.6vw,40px);
  background: var(--ink); color: var(--bg);
  position: relative; overflow: hidden;
}
.access-card .grid-lines {
  position: absolute; inset: 0; opacity: .10; pointer-events: none;
  background-image: linear-gradient(rgba(241,241,241,.6) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(241,241,241,.6) 1px, transparent 1px);
  background-size: 38px 38px;
}
.access-card h3 {
  position: relative; font-family: var(--display); font-weight: 400;
  font-size: clamp(24px,2.6vw,40px); letter-spacing: -.04em; line-height: 1; margin: 14px 0 0;
}
.price-row { position: relative; display: flex; align-items: flex-end; gap: 14px; margin-top: 26px; }
.price-row .cur { font-size: 20px; opacity: .7; }
.price-row .num { font-family: var(--display); font-size: clamp(48px,6vw,86px); line-height: .85; letter-spacing: -.05em; }
.price-row .worth { margin-left: auto; text-align: right; font-size: 13px; opacity: .66; line-height: 1.35; }

.incl { position: relative; list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 11px; }
.incl li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; }
.incl li::before {
  content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cursor); color: #fff; display: grid; place-items: center;
  font-size: 11px; margin-top: 1px;
}
.access-card .btn { position: relative; margin-top: 28px; width: 100%; justify-content: center; text-align: center;
  background: var(--bg); color: var(--ink); border-color: var(--bg); }
.access-card .btn:hover { background: #fff; }

.access-side { display: grid; gap: 14px; }
.side-box {
  border: 1px solid var(--hair); border-radius: 20px; padding: 22px; background: var(--panel);
}
.side-box p { margin: 8px 0 0; font-size: 14px; color: var(--ink-60); }
.side-box .btn { margin-top: 16px; width: 100%; justify-content: center; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; border: 1px solid currentColor; color: var(--cursor);
}
blockquote.pull {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(19px,1.9vw,27px); letter-spacing: -.035em; line-height: 1.12;
}

/* ============================================================
   stat band + testimonials + closing CTA
   ============================================================ */
.stat-band {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px,2vw,28px);
}
@media (max-width: 860px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat { border-top: 1px solid var(--hair); padding-top: 18px; }
.stat b {
  display: block; font-family: var(--display); font-weight: 400;
  font-size: clamp(34px,4.4vw,68px); letter-spacing: -.05em; line-height: .9;
}
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-60); max-width: 22ch; }

.t-grid {
  max-width: var(--maxw); margin: clamp(30px,3.6vw,54px) auto 0;
  columns: 3; column-gap: clamp(14px,1.8vw,24px);
}
@media (max-width: 1000px) { .t-grid { columns: 2; } }
@media (max-width: 640px)  { .t-grid { columns: 1; } }
.tq {
  break-inside: avoid; margin: 0 0 clamp(14px,1.8vw,24px);
  border: 1px solid var(--hair); border-radius: 20px; padding: 22px;
  background: var(--panel);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tq:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(0,0,0,.09); }
.tq p { margin: 0; font-size: 15px; line-height: 1.55; }
.tq footer { margin-top: 16px; display: flex; align-items: center; gap: 11px; }
.tq .who { font-size: 13px; }
.tq .who b { display: block; font-weight: 500; }
.tq .who span { color: var(--ink-40); }
.tq .ava {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #f1f1f1; font-size: 13px;
  font-family: var(--display); background: linear-gradient(140deg,#2b2b2b,#4a4a52);
}

.close-cta { text-align: center; padding: clamp(70px,9vw,150px) var(--gutter); }
.close-cta h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(36px,6.4vw,104px); letter-spacing: -.05em; line-height: .92;
  margin: 14px auto 0; max-width: 16ch;
}
.close-cta .sub { margin: 22px auto 0; max-width: 46ch; color: var(--ink-60); }
.close-cta .btn { margin-top: 30px; }

@media (prefers-reduced-motion: reduce) {
  .fcard, .bit, .av, .doc, .bub, .mchip, .col, .sw, .layer, .ring, .tq { transition: none !important; }
}

/* ============================================================
   Ebook page "spreads" — CSS-drawn mockups standing in for real
   page screenshots. Swap the .spread markup for <img> later.
   ============================================================ */
.spread {
  position: relative; aspect-ratio: 3/4; border-radius: 10px;
  background: #fff; overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.13);
  padding: 11% 10%; display: flex; flex-direction: column; gap: 3.2cqw;
  /* percentage heights collapse inside an auto-sized track — container
     units resolve against the spread's own width, so the page furniture
     scales correctly at any size (full stage or tiny thumbnail). */
  container-type: inline-size;
}
.spread::after {
  content:""; position:absolute; inset:0 auto 0 0; width: 6%;
  background: linear-gradient(90deg, rgba(0,0,0,.10), transparent);
}
.spread .sh { height: 7cqw; border-radius: 1.2cqw; background: var(--ink); width: 62%; flex: none; }
.spread .sp { height: 2.4cqw; border-radius: .8cqw; background: rgba(43,43,43,.22); flex: none; }
.spread .sp.s { width: 62%; } .spread .sp.m { width: 84%; } .spread .sp.l { width: 100%; }
.spread .sfig { height: 30cqw; border-radius: 2cqw; flex: none; margin: 1.6cqw 0; }
.spread .scols { display: flex; gap: 2.6cqw; height: 26cqw; align-items: flex-end; flex: none; }
.spread .scols i { flex: 1; border-radius: 1cqw 1cqw .4cqw .4cqw; background: rgba(252,71,120,.42); }
.spread .sswatch { display: flex; gap: 2.4cqw; height: 14cqw; flex: none; }
.spread .sswatch i { flex: 1; border-radius: 1.4cqw; }
.spread--a .sfig { background: linear-gradient(140deg,#2b2b2b,#4a4a52); }
.spread--b .sfig { background: linear-gradient(140deg,#7a2540,#fc4778); }
.spread--c .sfig { background: linear-gradient(140deg,#123544,#2f7f96); }
.spread--d .sfig { background: linear-gradient(140deg,#3d2a12,#a9762e); }

/* ---------- interactive sample viewer (Access Today, right side) ---------- */
.viewer {
  position: relative; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--hair); background: var(--panel);
  padding: clamp(18px,2vw,26px);
}
.viewer-stage {
  position: relative; aspect-ratio: 4/3; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #e9e9ea, #dcdcde);
  display: grid; place-items: center;
}
.viewer-stage .spread {
  position: absolute; width: 52%;
  opacity: 0; transform: translateY(18px) scale(.94) rotate(-2deg);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.viewer-stage .spread.on { opacity: 1; transform: none; }
.viewer-thumbs { display: flex; gap: 9px; margin-top: 16px; }
.viewer-thumbs button {
  flex: 1; aspect-ratio: 3/4; border-radius: 8px; cursor: pointer; padding: 0;
  border: 2px solid transparent; background: #fff; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.viewer-thumbs button:hover { transform: translateY(-3px); }
.viewer-thumbs button.on { border-color: var(--cursor); }
.viewer-thumbs .spread { box-shadow: none; border-radius: 6px; }
.viewer-cap {
  display: flex; justify-content: space-between; align-items: center; margin-top: 14px;
}

/* ---------- About-ebook disclosure ---------- */
.about-toggle {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--hair);
  background: transparent; color: var(--ink); transition: border-color .25s var(--ease);
}
.about-toggle:hover { border-color: var(--ink); }
.about-toggle .chev { transition: transform .4s var(--ease); }
.about-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.about-panel {
  overflow: hidden; height: 0;
  transition: height .55s var(--ease);
}
.about-inner {
  padding-top: 26px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px,2vw,28px);
}
@media (max-width: 860px) { .about-inner { grid-template-columns: 1fr; } }
.about-inner h4 {
  font-family: var(--display); font-weight: 400; font-size: clamp(17px,1.5vw,22px);
  letter-spacing: -.03em; margin: 12px 0 0;
}
.about-inner p { margin: 9px 0 0; font-size: 15px; color: var(--ink-60); }

/* ---------- Start Earning More: pages fan out on scroll ---------- */
.fan {
  position: relative; height: clamp(230px, 30vw, 380px);
  max-width: 900px; margin: clamp(30px,4vw,56px) auto 0;
  perspective: 1400px;
}
.fan .spread {
  position: absolute; left: 50%; bottom: 0; width: clamp(120px, 15vw, 190px);
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(0deg) translateY(30px);
  opacity: 0;
  transition: transform .9s var(--ease), opacity .6s var(--ease);
  transition-delay: calc(var(--i) * 90ms);
}
.fan.in .spread { opacity: 1; }
.fan.in .spread:nth-child(1){ transform: translateX(-50%) rotate(-21deg) translate(-230px,-14px); }
.fan.in .spread:nth-child(2){ transform: translateX(-50%) rotate(-11deg) translate(-118px,-40px); }
.fan.in .spread:nth-child(3){ transform: translateX(-50%) rotate(0deg)   translateY(-54px); }
.fan.in .spread:nth-child(4){ transform: translateX(-50%) rotate(11deg)  translate(118px,-40px); }
.fan.in .spread:nth-child(5){ transform: translateX(-50%) rotate(21deg)  translate(230px,-14px); }
@media (max-width: 720px) {
  .fan.in .spread:nth-child(1){ transform: translateX(-50%) rotate(-16deg) translate(-118px,-10px); }
  .fan.in .spread:nth-child(2){ transform: translateX(-50%) rotate(-8deg)  translate(-60px,-28px); }
  .fan.in .spread:nth-child(4){ transform: translateX(-50%) rotate(8deg)   translate(60px,-28px); }
  .fan.in .spread:nth-child(5){ transform: translateX(-50%) rotate(16deg)  translate(118px,-10px); }
}

/* ---------- readability fixes: bigger, higher-contrast card copy ---------- */
.fcard > p { font-size: clamp(14.5px,1.08vw,16.5px); color: rgba(43,43,43,.74); max-width: 36ch; }
.fcard h3 { font-size: clamp(19px,1.65vw,26px); }

/* product cards: text left, visual right on wide screens */
@media (min-width: 901px) {
  .prod-grid { grid-template-columns: 1fr; }
  .prod {
    display: grid; grid-template-columns: 1.05fr .95fr;
    gap: clamp(24px,3vw,52px); align-items: center;
  }
  .prod .prod-cover { order: 2; aspect-ratio: 16/11; }
  .prod .prod-body { order: 1; padding-top: 0; }
  .prod:nth-child(even) .prod-cover { order: 1; }
  .prod:nth-child(even) .prod-body { order: 2; }
}
.prod-meta li { font-size: clamp(14.5px,1.05vw,16px); color: rgba(43,43,43,.82); }
.prod-meta .k { font-size: 11px; color: rgba(43,43,43,.5); min-width: 84px; }
.prod-desc { font-size: clamp(15px,1.1vw,17px); color: rgba(43,43,43,.72); max-width: 52ch; }

/* Full-width CTAs: .btn is inline by default, so vertical margins collapse
   out of block flow and the button rides up over the list above it.
   Making them flex restores the margin and centres the label properly. */
.access-card .btn,
.side-box .btn,
.prod .btn--solid,
.c-form .btn {
  display: flex; align-items: center; justify-content: center;
}
