/* ============================================================
   ABBI DIGITAL: Interior page styles
   Builds on styles.css + sections.css tokens & components.
   ============================================================ */

/* ---- Active nav link ---- */
.nav-links a.current { color: var(--black); background: var(--ink-08); }

/* ---- Keep the toolbar on a single line ---- */
.nav-links { flex-wrap: nowrap; white-space: nowrap; }
.nav-links a { white-space: nowrap; }
.nav-cta .btn { white-space: nowrap; }

/* ---- Light nav links/burger when the hero behind them is dark ---- */
body.nav-on-dark .nav:not(.scrolled) .nav-links a { color: var(--paper-on-dark); }
body.nav-on-dark .nav:not(.scrolled) .nav-links a:hover { color: var(--warm-white); background: rgba(243,240,238,0.12); }
body.nav-on-dark .nav:not(.scrolled) .nav-links a.current { color: var(--warm-white); background: rgba(243,240,238,0.12); }
body.nav-on-dark .nav:not(.scrolled) .nav-burger span { background: var(--warm-white); }

/* ---- Mobile menu (burger + overlay) ---- */
.nav-burger {
  display: none;
  width: 42px; height: 42px; border: none; background: transparent;
  cursor: pointer; position: relative; z-index: 90;
}
.nav-burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--black);
  border-radius: 2px; transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger span:nth-child(3) { top: 27px; }
.nav-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--warm-white);
  padding: 96px var(--gutter) 40px;
  display: flex; flex-direction: column;
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform 0.34s var(--ease), opacity 0.34s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display); font-weight: 600; font-size: 26px;
  letter-spacing: -0.02em; padding: 14px 0; border-bottom: 1px solid var(--ink-08);
}
.mobile-menu a.sub { font-family: var(--font-body); font-size: 17px; font-weight: 500; color: var(--ink-60); padding: 10px 0 10px 16px; }
.mobile-menu .mm-label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-45); margin-top: 24px; margin-bottom: 4px;
}
.mobile-menu .mm-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.mobile-menu .mm-cta .btn { justify-content: center; }
@media (max-width: 1024px) {
  .nav-burger { display: block; }
  .nav-links { display: none; }
  .nav-cta .btn-secondary { display: none; }
}


/* ---- Page hero (shared shell for every inner page) ---- */
.page-hero {
  position: relative;
  padding-top: clamp(132px, 16vh, 184px);
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.page-hero.on-dark { background: var(--black); color: var(--warm-white); }
.page-hero .container { position: relative; z-index: 2; }
.ph-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.ph-grid.solo { grid-template-columns: 1fr; max-width: 880px; }
.page-hero h1 {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-top: 22px;
}
.page-hero .ph-sub {
  margin-top: 24px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-60);
  max-width: 56ch;
}
.page-hero.on-dark .ph-sub { color: var(--paper-on-dark); }
.page-hero .ph-sub + .ph-sub { margin-top: 16px; }
.ph-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* dotted/blueprint backdrop for hero */
.ph-field {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(var(--ink-08) 1.1px, transparent 1.1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 80% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 75% at 80% 30%, #000 20%, transparent 78%);
}
.page-hero.on-dark .ph-field {
  background-image: radial-gradient(rgba(243,240,238,0.10) 1.1px, transparent 1.1px);
}
.ph-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 720px; height: 520px; right: -180px; top: -160px;
  background: radial-gradient(ellipse at center, rgba(83,68,250,0.30), transparent 64%);
  filter: blur(16px);
}

/* ---- Breadcrumb ---- */
.crumb {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-45);
}
.crumb a { color: var(--ink-45); transition: color 0.18s; }
.crumb a:hover { color: var(--blue); }
.crumb .sep { opacity: 0.5; }
.crumb .here { color: var(--blue); }
.on-dark .crumb { color: var(--paper-on-dark-40); }
.on-dark .crumb a { color: var(--paper-on-dark-40); }
.on-dark .crumb a:hover { color: var(--light-blue); }
.on-dark .crumb .here { color: var(--light-blue); }

/* ---- Hero side visual: blueprint panel ---- */
.ph-visual {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-on-dark);
  background: linear-gradient(160deg, #211d25, #141117);
  aspect-ratio: 5 / 4;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.ph-visual.light {
  background: var(--warm-white);
  border-color: var(--ink-08);
}

/* ============================================================
   GENERIC SECTION HELPERS
   ============================================================ */
.alt { background: var(--warm-white-2); }
.dark-sec { background: var(--black); color: var(--warm-white); }
.dark-sec .sec-head p { color: var(--paper-on-dark); }

.sec-head.center { text-align: center; margin-inline: auto; }

/* lede block under a heading */
.lede { max-width: 64ch; }
.lede p { font-size: 19px; color: var(--ink-60); }
.lede p + p { margin-top: 18px; }
.dark-sec .lede p { color: var(--paper-on-dark); }

/* pull-quote */
.pull {
  max-width: 900px; margin-inline: auto; text-align: center;
}
.pull p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
.pull .lead-line {
  width: 2px; height: 46px; margin: 0 auto 30px;
  background: var(--gradient-lightblue-blue);
  border-radius: 2px;
}
.pull .end-dot {
  display: inline-block; width: 0.34em; height: 0.34em; border-radius: 50%;
  background: var(--green); margin-left: 0.1em; vertical-align: 0.16em;
}

/* ============================================================
   NEED GRID (Vos besoins hub): also reused on À propos audiences
   ============================================================ */
.need-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.need-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--warm-white);
  border: 1px solid var(--ink-08);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
  overflow: hidden;
}
.alt .need-card { background: #fff; }
.need-card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gradient-blue-purple);
  transform: scaleY(0); transform-origin: top; transition: transform 0.28s var(--ease);
}
.need-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-20);
}
.need-card:hover::after { transform: scaleY(1); }
.nc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.nc-icon {
  width: 46px; height: 46px; flex: none;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: var(--blue-12); color: var(--blue);
}
.nc-icon svg { width: 24px; height: 24px; }
.nc-num {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--ink-45);
}
.need-card h3 { font-size: 22px; letter-spacing: -0.02em; }
.nc-for {
  margin-top: 10px; font-size: 14px; color: var(--ink-60);
  font-family: var(--font-mono); letter-spacing: 0.01em;
}
.nc-answers { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.nc-tag {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 10px; border-radius: var(--radius-pill);
  background: var(--warm-white-2); color: var(--ink-60);
  border: 1px solid var(--ink-08);
}
.alt .nc-tag { background: var(--warm-white-2); }
.nc-link {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ink-08);
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; color: var(--blue); font-size: 15px;
}
.nc-link svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.need-card:hover .nc-link svg { transform: translateX(4px); }

/* ============================================================
   SCOPE BOARD (Essentiel / Options / Phases futures)
   ============================================================ */
.scope-board {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.scope-col {
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-08);
  background: var(--warm-white);
  padding: 26px;
}
.alt .scope-col { background: #fff; }
.scope-col.essential { border-top: 3px solid var(--blue); }
.scope-col.optional { border-top: 3px solid var(--light-blue); }
.scope-col.future { border-top: 3px solid var(--warm-white-3); }
.scope-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-45);
  margin-bottom: 8px;
}
.scope-col h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.scope-col p { font-size: 15px; color: var(--ink-60); }
.scope-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.scope-tags span {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  padding: 6px 11px; border-radius: var(--radius-pill);
  background: var(--warm-white-2); color: var(--ink-60); border: 1px solid var(--ink-08);
}
.scope-col .dot { width: 8px; height: 8px; border-radius: 50%; }
.scope-col.essential .dot { background: var(--blue); }
.scope-col.optional .dot { background: var(--light-blue); }
.scope-col.future .dot { background: var(--warm-white-3); }

/* ============================================================
   SYMPTOM / CHECKLIST CARDS (need pages)
   ============================================================ */
.symptom-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
}
.symptom {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 24px;
  border-radius: var(--radius-md);
  background: var(--warm-white);
  border: 1px solid var(--ink-08);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.alt .symptom { background: #fff; }
.symptom:hover { border-color: var(--blue-20); transform: translateY(-2px); }
.symptom .tick {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue-12); color: var(--blue);
  transition: background 0.2s, color 0.2s;
}
.symptom:hover .tick { background: var(--green); color: var(--black); }
.symptom .tick svg { width: 15px; height: 15px; }
.symptom p { font-size: 16px; line-height: 1.4; }

/* dark variant for symptom (some need pages use dark) */
.dark-sec .symptom { background: #211d25; border-color: var(--line-on-dark); color: var(--warm-white); }
.dark-sec .symptom .tick { background: var(--blue-20); color: var(--light-blue); }
.dark-sec .symptom:hover { border-color: rgba(83,68,250,0.4); }

/* ============================================================
   DIAGNOSE CRITERIA (chips around a lens)
   ============================================================ */
.criteria {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.criteria span {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 16px; border-radius: var(--radius-pill);
  background: var(--warm-white-2); border: 1px solid var(--ink-08);
  font-size: 15px; color: var(--black);
}
.criteria span::before {
  content: ""; width: 7px; height: 7px; border-radius: 2px;
  background: var(--blue); transform: rotate(45deg); flex: none;
}
.dark-sec .criteria span { background: #211d25; border-color: var(--line-on-dark); color: var(--warm-white); }
.dark-sec .criteria span::before { background: var(--light-blue); }

/* ============================================================
   ANSWER LADDER (need pages: ordered options)
   ============================================================ */
.ladder { display: flex; flex-direction: column; gap: 14px; }
.rung {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px; align-items: center;
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  background: var(--warm-white);
  border: 1px solid var(--ink-08);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.alt .rung { background: #fff; }
.rung:hover { transform: translateX(4px); border-color: var(--blue-20); box-shadow: var(--shadow-md); }
.rung-idx {
  font-family: var(--font-mono); font-weight: 700; font-size: 15px;
  color: var(--blue);
  width: 64px; height: 64px; border-radius: var(--radius-md);
  display: grid; place-items: center;
  background: var(--blue-12);
}
.rung h3 { font-size: 21px; letter-spacing: -0.02em; }
.rung p { margin-top: 8px; font-size: 16px; color: var(--ink-60); }
.rung .when { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.rung .when span {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: var(--radius-pill);
  background: var(--warm-white-2); color: var(--ink-60); border: 1px solid var(--ink-08);
}

/* ============================================================
   LEVER TAG ROW
   ============================================================ */
.lever-row { display: flex; flex-wrap: wrap; gap: 10px; }
.lever-row span {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--warm-white); border: 1px solid var(--ink-08); color: var(--black);
}
.lever-row span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; }
.alt .lever-row span { background: #fff; }
.dark-sec .lever-row span { background: #211d25; border-color: var(--line-on-dark); color: var(--warm-white); }

/* ============================================================
   SCENARIO (before → after story)
   ============================================================ */
.scenario {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: stretch;
}
.scn-card {
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--ink-08);
}
.scn-before { background: var(--warm-white-2); }
.scn-after {
  background: var(--black); color: var(--warm-white);
  border-color: transparent; position: relative; overflow: hidden;
}
.scn-after .scn-glow {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 100% 0%, rgba(83,68,250,0.28), transparent 60%);
  pointer-events: none;
}
.scn-label {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-45);
  margin-bottom: 14px; display: block; position: relative;
}
.scn-after .scn-label { color: var(--light-blue); }
.scn-card p { font-size: 17px; line-height: 1.5; position: relative; }
.scn-card .big {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.02em; line-height: 1.15;
}
.scn-arrow {
  align-self: center; color: var(--blue);
  display: grid; place-items: center;
}
.scn-arrow svg { width: 34px; height: 34px; }
.scn-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; }
.scn-pills span {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  padding: 6px 11px; border-radius: var(--radius-pill);
  background: rgba(83,68,250,0.16); color: #cfc9ff; border: 1px solid rgba(83,68,250,0.34);
}
@media (max-width: 760px) {
  .scenario { grid-template-columns: 1fr; }
  .scn-arrow { transform: rotate(90deg); }
}

/* ============================================================
   DELIVERABLES GRID (method page)
   ============================================================ */
.deliverable-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.deliverable {
  display: flex; align-items: center; gap: 13px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--warm-white);
  border: 1px solid var(--ink-08);
  font-size: 15px; font-weight: 500;
  transition: border-color 0.2s, transform 0.2s;
}
.alt .deliverable { background: #fff; }
.deliverable:hover { border-color: var(--blue-20); transform: translateY(-2px); }
.deliverable .dv-ic {
  width: 30px; height: 30px; flex: none; border-radius: var(--radius-sm);
  display: grid; place-items: center; background: var(--blue-12); color: var(--blue);
}
.deliverable .dv-ic svg { width: 17px; height: 17px; }

/* ============================================================
   PRINCIPLE CARDS (about, dark)
   ============================================================ */
.principle-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px;
}
.principle {
  padding: 30px;
  border-radius: var(--radius-lg);
  background: #211d25;
  border: 1px solid var(--line-on-dark);
  position: relative; overflow: hidden;
  transition: border-color 0.22s, transform 0.22s;
}
.principle:hover { border-color: rgba(83,68,250,0.4); transform: translateY(-4px); }
.principle .pr-ic {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--blue-20); color: var(--light-blue);
}
.principle .pr-ic svg { width: 25px; height: 25px; }
.principle h3 { font-size: 20px; letter-spacing: -0.02em; color: var(--warm-white); }
.principle p { margin-top: 10px; font-size: 15px; color: var(--paper-on-dark); }

/* audience tags */
.audience-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.audience-tags span {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  padding: 11px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--ink-12); color: var(--black);
}
.dark-sec .audience-tags span { border-color: var(--line-on-dark); color: var(--warm-white); }

/* ============================================================
   PRICING (budget page)
   ============================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pricing {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--warm-white);
  border: 1px solid var(--ink-08);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.alt .pricing { background: #fff; }
.pricing:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-20); }
.pricing .pr-ic {
  width: 50px; height: 50px; border-radius: var(--radius-md);
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--blue-12); color: var(--blue);
}
.pricing .pr-ic svg { width: 26px; height: 26px; }
.pricing h3 { font-size: 22px; letter-spacing: -0.02em; }
.pricing .pr-meta {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-45); margin: 6px 0 14px;
}
.pricing p { font-size: 15px; color: var(--ink-60); }

/* ============================================================
   GUIDE CARDS (ressources)
   ============================================================ */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.guide {
  display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--warm-white);
  border: 1px solid var(--ink-08);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.alt .guide { background: #fff; }
.guide:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-20); }
.guide-top {
  height: 140px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #211d25, #141117);
  border-bottom: 1px solid var(--ink-08);
}
.guide-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.guide-cat {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px;
}
.guide h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.1; }
.guide p { margin-top: 12px; font-size: 15px; color: var(--ink-60); flex: 1; }
.guide .guide-read {
  margin-top: 20px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--blue); font-size: 15px;
}
.guide .guide-read svg { width: 17px; height: 17px; transition: transform 0.2s; }
.guide:hover .guide-read svg { transform: translateX(4px); }

/* topic pills */
.topic-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.topic-pills span, .topic-pills button {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  padding: 9px 16px; border-radius: var(--radius-pill);
  background: var(--warm-white); border: 1px solid var(--ink-12); color: var(--ink-60);
  cursor: default;
}

/* lead-magnet / gradient CTA panel */
.gradient-panel {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 72px);
  background: var(--gradient-blue-purple);
  color: var(--warm-white);
  overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.gradient-panel h2 { font-size: clamp(26px, 3.4vw, 40px); }
.gradient-panel p { margin-top: 16px; color: rgba(243,240,238,0.82); font-size: 18px; max-width: 46ch; }
.gp-doc {
  aspect-ratio: 4/3; border-radius: var(--radius-md);
  background: rgba(243,240,238,0.10);
  border: 1px solid rgba(243,240,238,0.2);
  position: relative; overflow: hidden;
}
@media (max-width: 760px) { .gradient-panel { grid-template-columns: 1fr; } .gp-doc { display: none; } }

/* ============================================================
   STORY TIMELINE (realisations + case detail)
   ============================================================ */
.story-timeline {
  display: flex; flex-direction: column; gap: 0;
  max-width: 780px; margin-inline: auto;
}
.story-step {
  display: grid; grid-template-columns: auto 1fr; gap: 24px;
  padding-bottom: 36px;
}
.story-rail { display: flex; flex-direction: column; align-items: center; }
.story-num {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: var(--warm-white);
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
}
.story-line { width: 2px; flex: 1; background: var(--ink-12); margin-top: 8px; }
.story-step:last-child { padding-bottom: 0; }
.story-step:last-child .story-line { display: none; }
.story-step h3 { font-size: 21px; letter-spacing: -0.02em; }
.story-step p { margin-top: 8px; color: var(--ink-60); font-size: 16px; }
.dark-sec .story-step p { color: var(--paper-on-dark); }
.dark-sec .story-line { background: var(--line-on-dark); }

/* filter pills (realisations) */
.filter-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-pills button {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: var(--radius-pill);
  background: transparent; border: 1px solid var(--line-on-dark); color: var(--paper-on-dark);
  cursor: pointer; transition: all 0.18s var(--ease);
}
.filter-pills button:hover { border-color: rgba(243,240,238,0.45); color: var(--warm-white); }
.filter-pills button.active {
  background: var(--blue); border-color: var(--blue); color: var(--warm-white);
}
.filter-pills button.active::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); margin-right: 8px; vertical-align: middle;
}

/* ============================================================
   DIAGNOSTIC FORM
   ============================================================ */
.diag-layout {
  display: grid; grid-template-columns: 1fr minmax(0, 360px); gap: 48px; align-items: start;
}
.form-card {
  background: var(--warm-white);
  border: 1px solid var(--ink-08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 4vw, 44px);
}
.form-progress {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
}
.form-progress .bar { flex: 1; height: 4px; border-radius: 9px; background: var(--ink-08); overflow: hidden; }
.form-progress .bar i { display: block; height: 100%; width: 10%; background: var(--gradient-lightblue-blue); transition: width 0.35s var(--ease); }
.form-progress .count { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--ink-45); }
.fstep { display: none; }
.fstep.active { display: block; animation: fstepIn 0.4s var(--ease); }
@keyframes fstepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fstep-q {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em; margin: 18px 0 6px;
}
.fstep-hint { color: var(--ink-60); font-size: 15px; margin-bottom: 22px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-radius: var(--radius-md);
  border: 1px solid var(--ink-12); background: #fff;
  cursor: pointer; font-size: 16px; text-align: left;
  transition: border-color 0.16s, background 0.16s, transform 0.16s;
}
.opt:hover { border-color: var(--blue-20); transform: translateY(-1px); }
.opt .dot { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--ink-12); transition: all 0.16s; }
.opt.selected { border-color: var(--blue); background: var(--blue-12); }
.opt.selected .dot { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px var(--warm-white); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 16px;
  padding: 14px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--ink-12); background: #fff; color: var(--black);
  width: 100%; transition: border-color 0.16s, box-shadow 0.16s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-12);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 30px; }
.form-nav .spacer { flex: 1; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.show { display: block; animation: fstepIn 0.5s var(--ease); }
.form-success .check {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 24px;
  display: grid; place-items: center; background: var(--green); color: var(--black);
}
.form-success .check svg { width: 38px; height: 38px; }
.form-success h3 { font-size: 26px; letter-spacing: -0.02em; }
.form-success p { margin-top: 12px; color: var(--ink-60); max-width: 44ch; margin-inline: auto; }

/* aside: what happens next + trust */
.next-steps { display: flex; flex-direction: column; gap: 4px; }
.next-step {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; padding-bottom: 22px;
}
.next-step:last-child { padding-bottom: 0; }
.next-rail { display: flex; flex-direction: column; align-items: center; }
.next-dot {
  width: 32px; height: 32px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; font-size: 12px;
  background: var(--blue-12); color: var(--blue);
}
.next-line { width: 2px; flex: 1; background: var(--ink-12); margin-top: 6px; }
.next-step:last-child .next-line { display: none; }
.next-step p { font-size: 15px; color: var(--ink-60); padding-top: 4px; }
.trust-note {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--ink-60);
  padding: 14px 0; border-bottom: 1px solid var(--ink-08);
}
.trust-note:last-child { border-bottom: none; }
.trust-note svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }

@media (max-width: 880px) {
  .diag-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   LEGAL / PROSE
   ============================================================ */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 16px; color: var(--ink-60); margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 20px; color: var(--ink-60); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--black); }

/* ============================================================
   GENERIC CTA BAND (reused on most pages)
   ============================================================ */
.cta-band { background: var(--warm-white); padding-block: clamp(112px, 16vw, 184px); }
.cta-band.alt { background: var(--warm-white-2); }
.cta-band .cta-panel { margin-top: 0; }

/* ============================================================
   FAQ full page tweaks
   ============================================================ */
.faq-full { max-width: 820px; margin-inline: auto; }
.faq-full .faq-item { width: 100%; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .ph-grid { grid-template-columns: 1fr; }
  .ph-visual { display: none; }
  .need-grid { grid-template-columns: 1fr; }
  .scope-board { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}
