/* Customer story layout — shared visual system with the Luna success story. */
.story-page main{background:var(--paper)}
.story-wrap{width:min(1186px,calc(100% - 48px));margin-inline:auto}

.story-hero{position:relative;overflow:hidden;padding:190px 0 96px;background:var(--navy);color:#cbd5e1}
.story-hero::before{content:"";position:absolute;width:720px;height:720px;top:-260px;right:-220px;background:radial-gradient(circle,rgba(93,254,194,.18),transparent 62%);pointer-events:none}
/* The glow must fade to fully transparent BEFORE the hero's bottom edge: the
   hero is overflow:hidden, so a glow still carrying alpha at that edge gets
   sliced into a hard full-width seam against the identically-navy band below.
   Centre sits ~230px above the edge and reaches transparent by ~186px. */
.story-hero::after{content:"";position:absolute;width:620px;height:620px;bottom:-80px;left:-220px;background:radial-gradient(circle,rgba(65,94,226,.28),transparent 60%);pointer-events:none}
.story-hero-mark{position:absolute;right:-140px;bottom:-160px;width:min(560px,46vw);opacity:.07;pointer-events:none}
.story-hero-inner{position:relative;z-index:1;max-width:940px}
.story-hero h1{max-width:1040px;margin-top:22px;color:var(--white);font-size:clamp(44px,5.6vw,88px);line-height:.92;letter-spacing:-.055em}
.story-hero h1 .hl{color:var(--mint)}
.story-sub{max-width:720px;margin-top:32px;color:#cbd5e1;font-size:21px;line-height:1.4;font-weight:600}
.story-tag{display:block;margin-top:34px;color:var(--mint);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.story-eyebrow{display:inline-flex;align-items:center;min-height:34px;padding:7px 14px;border-radius:999px;background:var(--lime);color:var(--navy);font-size:16px;line-height:1.3;font-weight:700;letter-spacing:0}

/* Short blend rather than a hard 45% stop — the abrupt navy/periwinkle edge
   read as a banding artifact either side of the device shot. */
.story-photo-band{padding:40px 0 72px;background:linear-gradient(180deg,var(--navy) 0 40%,var(--peri) 54% 100%)}
.story-photo-visual{position:relative}
.story-photo-main{position:relative;margin:0 18px 34px 0;padding:0}
.story-photo-main img{display:block;width:100%;height:auto;border-radius:28px;box-shadow:18px 18px 0 var(--lav)}
.story-photo-mini{position:absolute;right:8px;bottom:-34px;z-index:2;width:clamp(160px,21vw,290px);margin:0;transform:rotate(1.5deg)}
.story-photo-mini img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:16px;border:5px solid var(--white);background:var(--white);box-shadow:0 10px 22px rgba(2,6,23,.35)}
.story-photo-mini figcaption{padding:16px 4px 2px;color:var(--navy);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}

.story-band{padding:42px 0 80px;background:linear-gradient(180deg,var(--peri),var(--lav))}
.story-stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.story-stat-note{margin:24px 0 0;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:0}

/* Luna-style staggered reveal cascades */
.story-hero-inner>.reveal:nth-child(2),.story-sec .story-wrap>.reveal:nth-child(2){--reveal-delay:.07s}
.story-hero-inner>.reveal:nth-child(3),.story-sec .story-wrap>.reveal:nth-child(3){--reveal-delay:.14s}
.story-hero-inner>.reveal:nth-child(4){--reveal-delay:.21s}
.story-stat-grid>.reveal:nth-child(2),.story-facts>.reveal:nth-child(2),.story-growth>.reveal:nth-child(2),.story-modes>.reveal:nth-child(2),.story-faq>.reveal:nth-child(2){--reveal-delay:.09s}
.story-stat-grid>.reveal:nth-child(3),.story-facts>.reveal:nth-child(3),.story-growth>.reveal:nth-child(3),.story-faq>.reveal:nth-child(3){--reveal-delay:.18s}
.story-stat-grid>.reveal:nth-child(4),.story-facts>.reveal:nth-child(4),.story-faq>.reveal:nth-child(4){--reveal-delay:.27s}
.story-stat-grid>.reveal:nth-child(5){--reveal-delay:.36s}
.story-stat-grid>.reveal:nth-child(6){--reveal-delay:.45s}
.story-stat{display:flex;flex-direction:column;gap:14px;min-height:220px;padding:30px 26px;border:1px solid rgba(255,255,255,.6);border-radius:24px;background:rgba(255,255,255,.76)}
.story-stat.feature{background:var(--navy);border-color:var(--navy)}
.story-stat strong{color:var(--indigo);font-size:clamp(38px,4.3vw,58px);line-height:.9;letter-spacing:-.05em;font-weight:800}
.story-stat.feature strong{color:var(--mint)}
.story-stat p{margin-top:auto;color:var(--navy);font-size:15px;line-height:1.4;font-weight:700}
.story-stat.feature p{color:#b9c3d5}

.story-sec{padding:104px 0}
.story-sec.dark{background:var(--navy);color:#cbd5e1}
.story-sec.dark .story-eyebrow{background:var(--mint);color:var(--navy)}
.story-h{margin-top:22px;font-size:clamp(36px,4.6vw,64px);line-height:.98;letter-spacing:-.05em}
.story-sec.dark .story-h{color:var(--white)}
.story-lead{max-width:690px;margin-top:22px;color:var(--muted);font-size:20px;line-height:1.5;font-weight:600}
.story-sec.dark .story-lead{color:#aeb9cb}

.story-growth{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:52px}
.story-grow{padding:34px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(165deg,#f4f5ff,var(--lav))}
.story-grow strong{display:block;color:var(--indigo);font-size:clamp(32px,3.7vw,50px);line-height:.96;letter-spacing:-.05em;font-weight:800}
.story-grow p{margin-top:16px;color:var(--muted);font-size:15px;line-height:1.45;font-weight:600}

.story-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:52px}
.story-fact{padding:30px;border:1px solid #26324a;border-radius:24px;background:linear-gradient(180deg,rgba(65,94,226,.13),rgba(255,255,255,.02))}
.story-fact strong{display:block;color:var(--mint);font-size:34px;line-height:.95;letter-spacing:-.04em;font-weight:800}
.story-fact p{margin-top:14px;color:#aeb9cb;font-size:15px;line-height:1.45;font-weight:700}

.story-modes{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:52px}
.story-mode{padding:34px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(165deg,#f4f5ff,var(--lav))}
.story-mode:last-child{background:var(--navy);border-color:var(--navy)}
.story-mode small{display:block;color:var(--indigo);font-size:11px;line-height:1.3;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.story-mode:last-child small{color:var(--mint)}
.story-mode h3{margin-top:16px;font-size:26px;letter-spacing:-.03em}
.story-mode:last-child h3{color:var(--white)}
.story-mode p{margin-top:14px;color:var(--muted);font-size:16px;line-height:1.5;font-weight:600}
.story-mode:last-child p{color:#aeb9cb}

.story-shot{margin:48px 18px 18px 0}
.story-shot img{display:block;width:100%;height:auto;border-radius:24px;box-shadow:18px 18px 0 var(--lav)}
.story-shot-cap{max-width:760px;margin-top:22px;color:var(--muted);font-size:15px;line-height:1.5;font-weight:600}

.story-pull-wrap{padding:40px 0 96px}
.story-pull{width:min(1420px,calc(100% - 32px));margin-inline:auto;padding:88px 80px;border-radius:32px;background:linear-gradient(135deg,var(--indigo),var(--peri));text-align:center}
.story-pull blockquote{max-width:1050px;color:var(--white);font-size:clamp(30px,4.2vw,56px)}
.story-pull .hl{color:var(--navy)}
.story-pull-meta{margin-top:34px;color:rgba(255,255,255,.76);font-size:11px;line-height:1.4;font-weight:800;letter-spacing:.08em;text-transform:uppercase}

/* Fortnight-over-fortnight table. This is the pull-quote slot for a story with
   no customer quote on record — the receipts stand in for the testimonial, and
   a fabricated quote is never the alternative. Tabular numerals so the columns
   line up; the table scrolls inside its own card rather than the page. */
.story-compare-sec{background:linear-gradient(180deg,var(--paper),#f4f5ff)}
.story-compare{margin-top:52px;padding:10px 14px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 30px 70px rgba(2,6,23,.1);overflow-x:auto}
.story-compare table{width:100%;min-width:580px;border-collapse:collapse;caption-side:bottom}
.story-compare caption{padding:16px 8px 6px;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:0;text-align:left}
.story-compare th,.story-compare td{padding:17px 18px;text-align:right;border-bottom:1px solid rgba(2,6,23,.07)}
.story-compare thead th{border-bottom:1px solid rgba(2,6,23,.16);color:var(--indigo);font-size:11px;line-height:1.3;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.story-compare th[scope=row],.story-compare thead th:first-child{text-align:left}
.story-compare th[scope=row]{color:var(--heading);font-size:16px;font-weight:800;letter-spacing:-.01em}
.story-compare td{color:var(--muted);font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}
.story-compare td.delta{color:var(--indigo);font-size:19px;font-weight:800;letter-spacing:-.02em}
.story-compare tbody tr:first-child{background:rgba(65,94,226,.05)}
.story-compare tbody tr:first-child td.delta{color:var(--navy)}
.story-compare tbody tr:last-child th,.story-compare tbody tr:last-child td{border-bottom:0}

/* Editorial body inside a story page. Borrows .post-body's type scale from
   blog.css (loaded on every page) so a story and an article read identically
   below the headline — only the frame around it differs. */
.story-prose-sec{padding-top:0;border-top:1px solid var(--line)}
.story-prose-sec>.story-wrap>.story-eyebrow{margin-top:96px}
.story-prose{padding-block:26px 0}
.story-prose>:first-child{margin-top:0}
.story-prose h2:first-child{margin-top:22px}

/* Interview band: shared .video-embed frame (styles.css) sits left-aligned in
   the wrap like .story-shot; the transcript collapses into a <details> box. */
.story-video-sec .video-embed{margin-inline:0}
.story-transcript{max-width:880px;margin-top:26px;border:1px solid var(--line);border-radius:24px;background:#fff}
.story-transcript summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;color:var(--heading);font-size:17px;font-weight:800;letter-spacing:-.01em}
.story-transcript summary::-webkit-details-marker{display:none}
.story-transcript .tr-toggle{width:34px;height:34px;flex:none;border-radius:50%;background:var(--lime);color:var(--navy);display:grid;place-items:center;font-size:18px;font-weight:800;transition:transform .2s}
.story-transcript[open] .tr-toggle{transform:rotate(45deg)}
.story-transcript-body{padding:2px 24px 26px;border-top:1px solid var(--line)}
.story-transcript-body p{margin-top:16px;color:var(--muted);font-size:15px;line-height:1.65;font-weight:500}
.story-transcript-body .story-transcript-note{color:var(--heading);font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;line-height:1.5}

.story-faq{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:52px}
.story-faq article{padding:30px;border:1px solid var(--line);border-radius:24px;background:#fff}
.story-faq h3{font-size:21px}
.story-faq p{margin-top:14px;color:var(--muted);font-size:15px;line-height:1.55;font-weight:600}

@media(max-width:1000px){
  .story-stat-grid,.story-facts{grid-template-columns:1fr 1fr}
  .story-growth,.story-faq{grid-template-columns:1fr}
}
@media(max-width:700px){
  .story-wrap{width:calc(100% - 32px)}
  .story-hero{padding:150px 0 76px}
  .story-sub{font-size:18px}
  .story-photo-band{padding-top:24px}
  .story-photo-main{margin:0 10px 30px 0}
  .story-photo-main img{border-radius:18px;box-shadow:10px 10px 0 var(--lav)}
  .story-photo-mini{right:0;bottom:-26px;width:38%}
  .story-photo-mini img{border-width:4px;border-radius:12px}
  .story-shot{margin:40px 10px 10px 0}
  .story-shot img{border-radius:18px;box-shadow:10px 10px 0 var(--lav)}
  .story-band{padding-bottom:64px}
  .story-stat-grid,.story-facts,.story-modes{grid-template-columns:1fr}
  .story-stat{min-height:190px}
  .story-sec{padding:72px 0}
  .story-pull{padding:56px 26px;border-radius:24px}
  .story-prose-sec>.story-wrap>.story-eyebrow{margin-top:72px}
  .story-compare th,.story-compare td{padding:14px 13px}
  .story-transcript summary{padding:16px 18px}
  .story-transcript-body{padding:2px 18px 22px}
}
