/* ──────────────────────────────────────────────────────────
   SibLead · Redesign · Light premium
   ────────────────────────────────────────────────────────── */

@import url("https://api.fontshare.com/v2/css?f[]=general-sans@500,600,700,400&f[]=cabinet-grotesk@500,700&f[]=satoshi@500,600,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=JetBrains+Mono:wght@400;500&display=swap");

:root{
  /* Light premium palette */
  --bg:        #FAFAF7;
  --bg-2:      #F4F1EA;
  --surface:   #FFFFFF;
  --surface-2: #F6F4EE;
  --ink:       #0F1015;
  --ink-2:     #3C3D45;
  --ink-3:     #6B6D78;
  --mute:      #9CA0AC;
  --line:      #E7E4DC;
  --line-soft: #EFECE4;
  --accent:    #6A3FF2;
  --accent-ink:#4A1FC9;
  --accent-soft:#F1ECFF;
  --on-accent: #FFFFFF;
  --warn: #C95A2B;
  --good: #1E8460;
  --danger:#B83340;

  /* Type */
  --f-display: "General Sans","Manrope",-apple-system,system-ui,sans-serif;
  --f-body:    "Inter","Manrope",-apple-system,system-ui,sans-serif;
  --f-mono:    "JetBrains Mono",ui-monospace,monospace;
  --f-editorial:"Fraunces","General Sans",serif;

  /* Geometry */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;
  --container: 1180px;
  --pad: clamp(20px, 4vw, 40px);

  --section-y: clamp(72px, 8vw, 128px);
}

/* Direction B — продуктовое: чуть плотнее, грид сильнее */
body.dir-b{
  --section-y: clamp(56px, 6vw, 96px);
}

/* ── Reset / base ── */
*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
html{ -webkit-text-size-adjust:100%; }
body{
  font-family: var(--f-body);
  font-feature-settings:"ss01","cv11";
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color: var(--accent); text-decoration: none; }
a:hover{ color: var(--accent-ink); }
p{ margin: 0 0 1em; color: var(--ink-2); }
strong{ color: var(--ink); font-weight: 600; }
em{ font-style: italic; color: var(--ink); }
ul,ol{ margin: 0 0 1em; padding-left: 1.2em; color: var(--ink-2); }
ul li, ol li{ margin-bottom: 0.5em; }
hr{ border:0; border-top:1px solid var(--line); margin: 32px 0; }

/* Headings */
h1,h2,h3,h4,h5{
  font-family: var(--f-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.4em;
  font-weight: 600;
  text-wrap: balance;
}
h1{ font-size: clamp(36px, 4.4vw, 64px); font-weight:600; letter-spacing:-0.025em; line-height:1.04; }
h2{ font-size: clamp(30px, 3.6vw, 50px); font-weight:600; }
h3{ font-size: clamp(22px, 2.2vw, 30px); }
h4{ font-size: 19px; letter-spacing:-0.01em; }

/* Editorial direction → some headings get serif accent */
body.dir-a h1{ font-family: var(--f-editorial); font-weight:500; letter-spacing:-0.03em; }
body.dir-a h2{ font-family: var(--f-editorial); font-weight:500; }
body.dir-a .hero__title em{ font-style:italic; }

body.dir-b h1{ font-weight:700; letter-spacing:-0.03em; }
body.dir-b h2{ font-weight:700; }

/* ── Layout primitives ── */
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.wrap-narrow{ max-width: 760px; margin: 0 auto; }

section{ padding: var(--section-y) 0; }
section + section{ padding-top: 0; } /* sections share vertical rhythm */
.section-sep{ border-top: 1px solid var(--line); }

/* ── Header / Footer ── */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
          backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner{
  display:flex; align-items:center; justify-content: space-between;
  height: 64px;
}
.brand{
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
}
.brand__dot{
  width:8px; height:8px; border-radius: 999px; background: var(--accent);
  display:inline-block;
}
.brand small{ color: var(--ink-3); font-weight: 500; }
.page-mark{
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  display: inline-flex; align-items: baseline; gap: 6px;
}
.page-mark .n{ color: var(--accent); font-weight: 600; font-size: 14px; }
.nav-meta{
  display:flex; gap: 28px; align-items:center;
  font-size: 13px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.nav-meta .step{ display:flex; align-items:center; gap:8px; }
.nav-meta .step .n{
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--mute);
}
.nav-meta .step.is-current{ color: var(--ink); }
.nav-meta .step.is-current .n{ color: var(--accent); }

.site-footer{
  border-top: 1px solid var(--line-soft);
  padding: 40px 0 60px;
  margin-top: 80px;
  color: var(--ink-3);
  font-size: 14px;
}
.site-footer__inner{
  display:flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.site-footer a{ color: var(--ink-2); }

/* ── Buttons ── */
.btn{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  padding: 16px 22px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: transform .15s ease, background .2s, color .2s, box-shadow .2s;
  border: 1px solid transparent;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn--primary{
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover{ background: var(--accent); color:#fff; transform: translateY(-1px); }
.btn--accent{
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover{ background: var(--accent-ink); color:#fff; transform: translateY(-1px); }
.btn--ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover{ border-color: var(--ink); color: var(--ink); }
.btn--lg{ padding: 20px 30px; font-size: 17px; }
.btn .arrow{ transition: transform .2s; }
.btn:hover .arrow{ transform: translateX(3px); }

/* ── Eyebrow / labels ── */
.eyebrow{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.eyebrow::before{
  content: ""; width: 28px; height: 2px; background: var(--accent);
  display:inline-block; border-radius: 2px;
}
.eyebrow.is-accent{ color: var(--accent); }
.eyebrow.is-accent::before{ background: var(--accent); }

.kicker{
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-feature-settings: "tnum";
  font-weight: 600;
  text-transform: uppercase;
}
.section-head .kicker{
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
}
.card .kicker{ color: var(--accent); text-transform: uppercase; }

.tag{
  display: inline-flex; align-items: center; gap:6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--f-display);
}
.tag.is-accent{ background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.tag.is-warn{ background: #FFF2E6; border-color: transparent; color: var(--warn); }
.tag.is-danger{ background: #FCEBED; border-color: transparent; color: var(--danger); }

/* ── Cards ── */
.card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(20px, 2.6vw, 32px);
}
.card--soft{ background: var(--surface-2); border-color: var(--line-soft); }
.card--ink{ background: var(--ink); color: #fff; border-color: transparent; }
.card--ink h2, .card--ink h3, .card--ink h4{ color:#fff; }
.card--ink p{ color: #c8c9d2; }
.card--accent{ background: var(--accent-soft); border-color: transparent; }
.card--accent h2,.card--accent h3,.card--accent h4{ color: var(--accent-ink); }

.card-row{
  display:grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
}
.col-3{ grid-column: span 3; }
.col-4{ grid-column: span 4; }
.col-5{ grid-column: span 5; }
.col-6{ grid-column: span 6; }
.col-7{ grid-column: span 7; }
.col-8{ grid-column: span 8; }
.col-12{ grid-column: span 12; }
@media (max-width: 920px){
  .col-3,.col-4,.col-5,.col-6,.col-7,.col-8{ grid-column: span 12; }
}

/* ── Stats / metric ── */
.metric{
  display:flex; flex-direction: column; gap: 4px;
}
.metric__num{
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-feature-settings: "tnum","ss01";
}
.metric__num.is-accent{ color: var(--accent); }
.metric__label{ color: var(--ink-3); font-size: 14px; }
.metric__delta{ font-size: 13px; color: var(--good); font-family: var(--f-mono); }
.metric__delta.is-bad{ color: var(--danger); }

body.dir-a .metric__num{ font-family: var(--f-editorial); font-weight: 500; letter-spacing: -0.04em; }
body.dir-b .metric__num{ font-weight: 700; }

.metric-row{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.metric-row > .metric{
  background: var(--surface);
  padding: 24px 22px;
}

/* ── Hero ── */
.hero{
  padding-top: clamp(60px, 9vw, 120px);
  padding-bottom: clamp(60px, 8vw, 110px);
}
.hero__deadline{
  display:inline-flex; align-items:center; gap:10px;
  background: #FCEBED;
  color: var(--danger);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 500;
}
.hero__deadline .pulse{
  width: 7px; height:7px; background: var(--danger); border-radius:50%;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse{
  0%,100%{ opacity:.4; transform:scale(.8); }
  50%{ opacity:1; transform:scale(1.1); }
}
.hero__title{
  margin: 24px 0 28px;
  max-width: 22ch;
}
.hero__title .acc{ color: var(--accent); }
body.dir-a .hero__title .acc{ font-style: italic; color: var(--ink); border-bottom: 4px solid var(--accent); padding-bottom: 2px; line-height: 1; }
.hero__sub{
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 36px;
  line-height: 1.5;
}
.hero__cta-row{
  display:flex; gap: 14px; flex-wrap: wrap; align-items:center;
}
.hero__small{
  margin-top: 16px;
  font-size: 13px; color: var(--ink-3);
}

/* Hero metric strip */
.proof-strip{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof-strip > div{ background: var(--bg); padding: 28px var(--pad); }
.proof-strip .metric__num{ font-size: clamp(28px, 3.2vw, 44px); }
@media (max-width: 760px){ .proof-strip{ grid-template-columns: repeat(2, 1fr); } }

/* ── Section head ── */
.section-head{
  margin-bottom: clamp(36px, 4vw, 56px);
  display:flex; flex-direction: column; gap: 16px;
  max-width: 60ch;
}
.section-head.is-center{ margin-left:auto; margin-right:auto; text-align:center; align-items:center; }
.section-head__sub{ color: var(--ink-3); font-size: 17px; max-width: 56ch; }
body.dir-a .section-head.is-center{ max-width: 56ch; }

/* ── Timeline (chronicle) ── */
.timeline{
  border-left: 1px solid var(--line);
  margin-left: 12px;
  padding-left: 28px;
  display:flex; flex-direction: column; gap: 28px;
}
.timeline__item{ position: relative; }
.timeline__item::before{
  content: "";
  position: absolute; left: -34px; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  outline: 4px solid var(--bg);
}
.timeline__item.is-critical::before{ background: var(--danger); }
.timeline__date{
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px;
}
.timeline__title{ font-family: var(--f-display); font-weight: 600; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.timeline__text{ color: var(--ink-2); font-size: 15.5px; }

/* ── Mistake list / red list ── */
.flaw-list{
  list-style: none; padding:0; margin:0;
  display:flex; flex-direction: column; gap: 14px;
}
.flaw-list li{
  display:flex; gap: 14px;
  align-items:flex-start;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  align-items: start;
  margin: 0;
}
.flaw-list li::before{
  content: "✕";
  flex: 0 0 36px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--danger); color: #fff;
  border-radius: 999px;
  font-size: 16px;
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
  box-shadow: 0 0 0 4px rgba(199,57,73,0.10);
}
.flaw-list strong{ display:block; margin-bottom: 4px; }
.flaw-list li > div{ color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }

/* Checks list */
.check-list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; }
.check-list li{
  display:flex; gap: 12px;
  align-items:flex-start;
  font-size: 16px; color: var(--ink-2);
  margin: 0;
}
.check-list li::before{
  content: "";
  flex: 0 0 18px;
  width: 18px; height: 18px;
  margin-top: 4px;
  background: var(--accent-soft);
  border-radius: 999px;
  margin-top: 4px;
  display: grid; place-items: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'><path d='M2.5 6.5L5 9L10 3.5' stroke='%236A3FF2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* ── Mistake cards (numbered) ── */
.mistake{
  display:grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.mistake + .mistake{ margin-top: 16px; }
.mistake__head{ padding: 32px; border-right: 1px solid var(--line); }
.mistake__body{ padding: 32px; background: var(--surface-2); }
.mistake__num{
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute);
  margin-bottom: 14px;
}
.mistake__h{
  font-size: 22px; font-family: var(--f-display); font-weight:600;
  color: var(--ink); margin-bottom: 10px; line-height: 1.2;
}
.mistake__lede{ color: var(--ink-2); font-size: 15px; }
.mistake__body .label{
  display:inline-flex; align-items:center; gap: 6px;
  color: var(--accent); font-size: 12px; font-family: var(--f-mono);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 10px;
}
@media (max-width: 820px){
  .mistake{ grid-template-columns: 1fr; }
  .mistake__head{ border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ── Stack grid ── */
.stack{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 720px){ .stack{ grid-template-columns: 1fr; } }
.stack__card{
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  display:flex; flex-direction: column; gap: 10px;
}
.stack__card .badge{
  align-self: flex-start;
  background: var(--ink);
  color: #fff;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}
.stack__card h4{ margin: 4px 0; font-size: 19px; }

/* ── Niche table ── */
.niches{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.niches__row{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  padding: 16px 22px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}
.niches__row:last-child{ border-bottom: 0; }
.niches__row.is-head{
  background: var(--surface-2);
  color: var(--ink-3);
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
}
.niches__row .tg{ color: var(--ink-3); font-variant-numeric: tabular-nums; }
.niches__row .max{ color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.niches__row .diff{
  font-family: var(--f-display);
  color: var(--good);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
@media(max-width:720px){
  .niches__row{ grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .niches__row.is-head{ display:none; }
  .niches__row > *:nth-child(1){ grid-column: 1 / -1; font-weight:600; }
}

/* ── Pull quote / lead ── */
.lead{
  font-family: var(--f-display);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
  max-width: 28ch;
  font-weight: 500;
}
body.dir-a .lead{ font-family: var(--f-editorial); font-weight: 500; letter-spacing: -0.02em; }
.pullquote{
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 24px;
  font-family: var(--f-editorial);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
  color: var(--ink);
  font-style: italic;
  font-weight: 500;
}
body.dir-b .pullquote{ font-family: var(--f-display); font-style: normal; font-weight: 600; letter-spacing: -0.015em; }

/* ── Author block ── */
.author{
  display:grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  align-items: start;
}
.author__avatar{
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #B289FF);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 600;
  color: #fff;
  font-size: 36px;
  letter-spacing: -0.02em;
}
.author__name{ font-family: var(--f-display); font-weight: 600; font-size: 18px; color: var(--ink); }
.author__role{ font-size: 13px; color: var(--ink-3); margin-bottom: 12px; font-family: var(--f-mono); letter-spacing: 0.04em; text-transform: uppercase; }
@media(max-width:560px){
  .author{ grid-template-columns: 1fr; }
  .author__avatar{ width: 72px; height: 72px; font-size: 28px; }
}

/* ── Client logos / names ── */
.clients{
  display:flex; flex-wrap: wrap; gap: 10px;
}
.clients__chip{
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 14px;
  color: var(--ink-2);
  font-family: var(--f-display);
  font-weight: 500;
}
.clients__chip .role{ color: var(--mute); font-weight: 400; margin-left: 6px; }

/* ── Case mock ── */
.casemock{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.casemock__head{
  background: var(--surface-2);
  padding: 12px 18px;
  display:flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.casemock__dots{ display:flex; gap:6px; }
.casemock__dots span{
  width: 10px; height: 10px; border-radius: 50%; background: #DAD6CD;
}
.casemock__body{ padding: 28px; }
.casemock__placeholder{
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, var(--line-soft) 0 1px, transparent 1px 12px),
    var(--surface-2);
  border-radius: var(--r-sm);
  display:grid; place-items: center;
  color: var(--mute);
  font-family: var(--f-mono); font-size: 12px;
  border: 1px dashed var(--line);
}

/* ── Steps ── */
.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 820px){ .steps{ grid-template-columns: 1fr; } }
.step{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
}
.step__num{
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 14px;
}
.step h4{ font-size: 19px; margin-bottom: 8px; }
.step p{ font-size: 15px; margin: 0; }

/* ── Final CTA / big section ── */
.cta-band{
  margin-top: 40px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(44px, 6vw, 80px);
}
.cta-band h2{ color: #fff; max-width: 18ch; }
.cta-band p{ color: #c8c9d2; max-width: 50ch; }
.cta-band .btn--primary{ background: var(--accent); }
.cta-band .btn--primary:hover{ background: #fff; color: var(--ink); }

/* ── Guarantee / two-col list ── */
.two-col{
  display:grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 820px){ .two-col{ grid-template-columns: 1fr; } }

.col-list{
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.col-list h4{ margin-bottom: 16px; }
.col-list--good{ border-color: rgba(30, 132, 96, 0.25); background: #F1F8F4; }
.col-list--bad{ border-color: rgba(184, 51, 64, 0.18); background: #FCF2F2; }
.col-list--good ul li::marker{ color: var(--good); }
.col-list--bad ul li::marker{ color: var(--danger); }

/* ── Sticky CTA footer hint (page-level) ── */
.page-cta{
  display:flex; align-items:center; gap: 24px; justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
}
.page-cta__text{ max-width: 60ch; }
.page-cta__text h3{ margin: 0 0 6px; }
.page-cta__text p{ margin: 0; color: var(--ink-3); }

/* ── Tweaks panel ── */
.tweaks{
  position: fixed; right: 20px; bottom: 20px;
  width: 320px; max-height: 78vh; overflow:auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(15,16,21,0.18);
  border-radius: var(--r-md);
  z-index: 1000;
  font-family: var(--f-display);
  display: none;
}
.tweaks.is-open{ display:block; }
.tweaks__head{
  display:flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.tweaks__title{ font-weight: 600; font-size: 14px; }
.tweaks__close{
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink-3); font-size: 20px; line-height: 1;
  width: 24px; height: 24px; display: grid; place-items: center;
}
.tweaks__body{ padding: 14px 20px 18px; }
.tweaks__sec{ padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.tweaks__sec:last-child{ border-bottom: 0; }
.tweaks__lbl{ font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.tweaks__row{ display:flex; gap: 8px; flex-wrap: wrap; }
.tweaks__opt{
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--ink-2);
  font-family: var(--f-display);
  display:inline-flex; align-items:center; gap: 8px;
}
.tweaks__opt:hover{ border-color: var(--ink-3); }
.tweaks__opt.is-active{ border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.tweaks__swatch{
  width: 16px; height: 16px; border-radius: 50%;
  display:inline-block;
  border: 1px solid rgba(0,0,0,0.08);
}

/* utility */
.mt-0{margin-top:0;} .mt-1{margin-top:8px;} .mt-2{margin-top:16px;}
.mt-3{margin-top:24px;} .mt-4{margin-top:32px;} .mt-5{margin-top:48px;} .mt-6{margin-top:64px;}
.text-center{ text-align:center; }
.muted{ color: var(--ink-3); }
.accent{ color: var(--accent); }

/* ──────────────────────────────────────────────────────────
   Mobile (≤ 640px) — 90% of traffic
   ────────────────────────────────────────────────────────── */
@media (max-width: 640px){
  :root{
    --pad: 18px;
    --section-y: clamp(48px, 11vw, 72px);
  }
  body{ font-size: 16px; line-height: 1.5; }

  /* Headings — bring big display type down so it doesn't overflow on 360–414px */
  h1{ font-size: clamp(30px, 9vw, 42px); line-height: 1.06; }
  h2{ font-size: clamp(24px, 7.5vw, 34px); line-height: 1.1; }
  h3{ font-size: 20px; }
  h4{ font-size: 17px; }

  /* Header */
  .site-header__inner{ height: 56px; }
  .nav-meta{ gap: 12px; font-size: 12px; }

  /* Hero */
  .hero{ padding-top: 28px; padding-bottom: 40px; }
  .hero__title{ margin: 16px 0 18px; max-width: 100%; }
  .hero__sub{ font-size: 16px; line-height: 1.5; margin-bottom: 24px; }
  .hero__cta-row{ flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .hero__cta-row .btn{ width: 100%; justify-content: center; }
  .hero__deadline{ font-size: 12px; padding: 6px 12px; }

  /* Buttons */
  .btn{ padding: 14px 18px; font-size: 15px; }
  .btn--lg{ padding: 16px 22px; font-size: 16px; }

  /* Section heads */
  .section-head{ margin-bottom: 28px; gap: 12px; }
  .section-head__sub{ font-size: 15.5px; }
  .eyebrow{ font-size: 12px; letter-spacing: 0.12em; }
  .eyebrow::before{ width: 20px; }

  /* Cards / generic */
  .card{ padding: 22px 18px; border-radius: var(--r-md); }
  .card-row{ gap: 14px; }

  /* Metric / proof strip */
  .metric__num{ font-size: 36px; }
  .metric-row{ grid-template-columns: 1fr 1fr; }
  .metric-row > .metric{ padding: 18px 14px; }
  .proof-strip > div{ padding: 18px 14px; }
  .proof-strip .metric__num{ font-size: 26px; }
  .metric__label{ font-size: 13px; }

  /* Mistake / flaw lists */
  .mistake__head, .mistake__body{ padding: 22px 18px; }
  .mistake__h{ font-size: 18px; }
  .mistake__lede{ font-size: 14.5px; }
  .flaw-list li{ padding: 16px 16px; gap: 12px; }
  .flaw-list li::before{ flex-basis: 30px; width: 30px; height: 30px; font-size: 14px; }
  .flaw-list li > div{ font-size: 15px; }

  /* Stack */
  .stack__card{ padding: 22px 18px; }

  /* Timeline */
  .timeline{ margin-left: 4px; padding-left: 22px; gap: 22px; }
  .timeline__item::before{ left: -27px; width: 8px; height: 8px; }
  .timeline__title{ font-size: 16px; }
  .timeline__text{ font-size: 14.5px; }

  /* Niche table — already collapses at 720px, just tighten */
  .niches__row{ padding: 14px 16px; font-size: 14px; }

  /* Steps */
  .step{ padding: 22px 18px; }

  /* Lead / pullquote */
  .lead{ font-size: 19px; max-width: 100%; }
  .pullquote{ font-size: 19px; padding: 4px 0 4px 16px; }

  /* Author */
  .author{ padding: 22px 18px; gap: 16px; }

  /* Clients chips */
  .clients{ gap: 8px; }
  .clients__chip{ padding: 8px 12px; font-size: 13px; }

  /* Casemock */
  .casemock__body{ padding: 18px; }
  .casemock__head{ padding: 10px 14px; }

  /* CTA band */
  .cta-band{ padding: 32px 22px; margin-top: 24px; border-radius: var(--r-md); }
  .cta-band .btn{ width: 100%; justify-content: center; }

  /* Two-col + col-list */
  .col-list{ padding: 22px 18px; }

  /* Page-level CTA */
  .page-cta{ flex-direction: column; align-items: stretch; gap: 18px; padding: 28px 0; }
  .page-cta__text{ max-width: 100%; }
  .page-cta .btn{ width: 100%; justify-content: center; }

  /* Footer */
  .site-footer{ padding: 32px 0 48px; margin-top: 48px; }
  .site-footer__inner{ flex-direction: column; gap: 12px; }

  /* Tweaks panel — full width sheet */
  .tweaks{ right: 10px; bottom: 10px; left: 10px; width: auto; max-height: 70vh; }

  /* Card row with display:flex split layouts — force column */
  .card-row[style*="flex"]{ flex-direction: column !important; gap: 22px !important; }
}

/* Extra-small ≤ 380px — Galaxy/iPhone SE */
@media (max-width: 380px){
  :root{ --pad: 16px; }
  h1{ font-size: 28px; }
  h2{ font-size: 24px; }
  .metric__num{ font-size: 32px; }
  .proof-strip .metric__num{ font-size: 22px; }
}

/* ──────────────────────────────────────────────────────────
   Mobile overflow safety — added 2026-05-12
   Fixes: long CTAs that pushed viewport horizontally,
          inline grid-column overrides that prevented mobile collapse.
   ────────────────────────────────────────────────────────── */
html, body{ overflow-x: clip; }

@media (max-width: 720px){
  /* Long CTAs must wrap, not push viewport */
  .btn{ white-space: normal; text-align: center; }
  .btn .arrow{ flex-shrink: 0; }

  /* Grid children must allow shrinking below min-content */
  .p1-grid > *,
  .card-row > *,
  .p1-offer > *,
  .stack > *,
  .two-col > *,
  .cta-band > *,
  .mistake > *{ min-width: 0; }

  /* Inline grid-column overrides on p2/p4 — collapse to full width */
  .card-row > [style*="grid-column"]{ grid-column: auto !important; }
  .card-row > [style*="align-self"]{ align-self: auto !important; }

  /* Long headings break on any character to prevent overflow */
  h1, h2, h3{ overflow-wrap: anywhere; }
}
