/* Research Ledger
   Editorial layout: serif headlines, sans body, sharp cards, pill buttons.
   Palette is the PrimalGenix navy / ice-blue set. */

:root {
  --navy-deep: #002957;
  --navy: #224581;
  --navy-btn: #163874;
  --navy-ink: #052255;
  --accent: #2451A0;
  --slate: #4B617D;
  --ink: #111827;
  --ice: #CFE0F5;
  --pale: #E8F1FA;
  --soft: #F2F6FB;
  --line: #D8E1EB;
  --pass: #1c7a4a;
  --pass-bg: #E7F4EC;
  --fail: #a2503f;
  --on-dark: #C8D6EA;
  --photo-bg: linear-gradient(180deg, #B4CCE8 0%, #D3E3F4 100%);

  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 6px;
  --head-h: 64px;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23163874'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --tick-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23CFE0F5'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23002957' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 20px); }
body {
  margin: 0; background: #fff; color: var(--ink);
  font: 400 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(22,56,116,.14);
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-btn); }
h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 600; line-height: 1.15;
  color: var(--navy-deep); margin: 0 0 .5em; letter-spacing: -.012em;
}
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}
@media (min-width: 768px) { .container { padding-left: 32px; padding-right: 32px; } }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy-deep); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 50px; padding: 0 28px; border-radius: 999px;
  border: 1.5px solid transparent; text-decoration: none; text-align: center;
  font: 600 15.5px/1.2 var(--sans); letter-spacing: .005em;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy-btn); color: #fff; box-shadow: 0 8px 22px rgba(22,56,116,.25); }
.btn-primary:hover { background: var(--navy-ink); }
.btn-light { background: #fff; color: var(--navy-deep); }
.btn-light:hover { background: var(--pale); }
.btn-outline { border-color: var(--line); color: var(--navy-deep); background: #fff; }
.btn-outline:hover { border-color: var(--navy); }
.btn-outline-light { border-color: rgba(207,224,245,.45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; white-space: nowrap; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--head-h); }

.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.wordmark .mark {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 5px;
  display: grid; place-items: center;
  background: var(--navy-deep); color: #fff;
  font: 600 15px/1 var(--serif); letter-spacing: .02em;
}
.wordmark .wm-text { font: 600 21px/1 var(--serif); color: var(--navy-deep); letter-spacing: -.01em; white-space: nowrap; }
.wordmark .wm-text em { font-style: italic; font-weight: 500; color: var(--navy); }
@media (max-width: 400px) {
  .wordmark .wm-text { font-size: 18px; }
  .wordmark .mark { width: 30px; height: 30px; flex-basis: 30px; font-size: 13px; }
  .masthead .btn-sm { padding: 0 14px; font-size: 13.5px; }
}
@media (max-width: 340px) { .wordmark .mark { display: none; } }

/* ---------- shared bits ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 600 12.5px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.eyebrow.on-dark { color: var(--ice); }

.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }

.sec-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 10px 40px; margin-bottom: 36px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.sec-head h2 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin: 0; }
.sec-head p { margin: 0; color: var(--slate); max-width: 26em; font-size: 1.05rem; }

/* grid texture used on dark panels */
.grid-texture { position: relative; isolation: isolate; }
.grid-texture::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(207,224,245,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207,224,245,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 85% 10%, #000 0%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 85% 10%, #000 0%, transparent 75%);
}

/* ================= HOME ================= */
.hero { background: var(--navy-deep); color: var(--on-dark); overflow: hidden; }
.hero-grid { display: grid; gap: 44px; padding-top: 48px; padding-bottom: 60px; align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; padding-top: 88px; padding-bottom: 104px; }
}
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6.4vw, 4.4rem); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 22px; }
.hero h1 b { display: block; font-style: italic; font-weight: 500; color: var(--ice); }
.hero-dek { font-size: 1.13rem; line-height: 1.7; max-width: 33em; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media { position: relative; }
.hero-photo {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius); background: var(--photo-bg);
  box-shadow: 0 40px 90px rgba(0,0,0,.38);
  outline: 1px solid rgba(207,224,245,.25); outline-offset: 10px;
}
.hero-photo img { width: 100%; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.hero-photo:hover img { transform: scale(1.03); }

.hero-card {
  position: relative; margin: -64px 14px 0; z-index: 2;
  background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,20,50,.32); padding: 4px 0 8px;
}
@media (min-width: 900px) {
  .hero-card { position: absolute; margin: 0; left: -56px; bottom: 36px; width: 290px; }
}
.hero-card .hc-head {
  display: flex; justify-content: space-between; gap: 10px; margin: 0;
  padding: 14px 18px 12px; border-bottom: 2px solid var(--navy-deep);
  font: 700 12px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--navy-deep);
}
.hero-card .hc-row {
  display: flex; justify-content: space-between; gap: 12px; margin: 0;
  padding: 10px 18px; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 1.35;
}
.hero-card .hc-row:last-of-type { border-bottom: 0; }
.hero-card .k { color: var(--slate); }
.hero-card .v { color: var(--navy-deep); font-weight: 600; text-align: right; }
.hero-card .v.pass { color: var(--pass); }

/* trust row */
.trust { border-bottom: 1px solid var(--line); background: #fff; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust-list li {
  display: flex; align-items: center; gap: 12px; padding: 18px 10px 18px 0;
  font: 600 14.5px/1.3 var(--sans); color: var(--navy-deep);
  border-bottom: 1px solid var(--line);
}
.trust-list li:last-child { grid-column: 1 / -1; border-bottom: 0; }
.trust-list li:nth-last-child(2), .trust-list li:nth-last-child(3) { border-bottom: 1px solid var(--line); }
@media (min-width: 960px) {
  .trust-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .trust-list li { border-bottom: 0 !important; padding: 26px 18px; justify-content: center; }
  .trust-list li + li { border-left: 1px solid var(--line); }
  .trust-list li:last-child { grid-column: auto; }
}
.trust-ico {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pale); color: var(--navy);
}
.trust-ico svg { width: 20px; height: 20px; }

/* guides */
.guides { display: grid; gap: 22px; }
@media (min-width: 900px) {
  .guides { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 24px; }
  .guide--lead { grid-row: span 2; }
}
.guide {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, box-shadow .25s, transform .25s;
}
.guide:hover { border-color: var(--navy); box-shadow: 0 22px 48px rgba(0,41,87,.12); transform: translateY(-2px); }
.guide-img { position: relative; display: block; background: var(--photo-bg); aspect-ratio: 16 / 10; overflow: hidden; }
.guide-img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.guide:hover .guide-img img { transform: scale(1.04); }
.guide--lead .guide-img { aspect-ratio: 5 / 4; }
.guide--lead .guide-img img { object-fit: contain; }
@media (min-width: 900px) {
  .guide--lead .guide-img { aspect-ratio: auto; flex: 1 1 auto; min-height: 360px; }
  .guide--lead .guide-body { flex: 0 0 auto; }
  .guide--side { flex-direction: row; }
  .guide--side .guide-img { flex: 0 0 40%; aspect-ratio: auto; }
  .guide--side .guide-body { justify-content: center; }
  .guide--side .guide-dek { flex: 0 0 auto; }
}
.guide-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.guide-num {
  font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px;
}
.guide h3 { font-size: 1.5rem; line-height: 1.2; margin: 0 0 10px; }
.guide--lead h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.guide-dek { color: var(--slate); font-size: 1rem; line-height: 1.6; flex: 1; margin: 0 0 18px; }
.guide-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy-btn); font-size: 15px; }
.guide-more span { transition: transform .2s; }
.guide:hover .guide-more span { transform: translateX(4px); }

/* offer ticket */
.ticket {
  display: grid; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--pale);
}
@media (min-width: 760px) { .ticket { grid-template-columns: 260px minmax(0, 1fr); } }
.ticket-stub {
  position: relative; background: var(--navy-deep); color: var(--ice);
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  padding: 30px 20px;
}
.ticket-big { font: 600 clamp(4rem, 12vw, 5.6rem)/.9 var(--serif); color: #fff; letter-spacing: -.03em; }
.ticket-small { font: 600 12.5px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; margin-top: 10px; }
.ticket-stub::after {
  /* perforation */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 12px;
  background: radial-gradient(circle at 8px 12px, var(--pale) 6px, transparent 6.5px) repeat-x;
  background-size: 22px 12px;
}
@media (min-width: 760px) {
  .ticket-stub::after {
    left: auto; top: 0; bottom: 0; right: -1px; width: 12px; height: auto;
    background: radial-gradient(circle at 12px 8px, var(--pale) 6px, transparent 6.5px) repeat-y;
    background-size: 12px 22px;
  }
}
.ticket-body { padding: 30px 24px 32px; }
@media (min-width: 760px) { .ticket-body { padding: 40px 48px; } }
.ticket-body h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 12px; }
.ticket-body p { color: var(--slate); max-width: 38em; margin-bottom: 22px; }

/* ledger list */
.ledger-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .ledger-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; } }
.ledger-intro h2 { font-size: clamp(2rem, 4.4vw, 2.8rem); margin-bottom: 26px; }
@media (min-width: 960px) { .ledger-intro { position: sticky; top: calc(var(--head-h) + 32px); } }
.ledger-photo { border-radius: var(--radius); overflow: hidden; background: var(--photo-bg); }
.ledger-photo img { width: 100%; }
@media (max-width: 959px) { .ledger-photo { max-width: 440px; } }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy-deep); }
.ledger li {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; gap: 14px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.ledger-n { font: italic 500 1.45rem/1.2 var(--serif); color: var(--accent); }
.ledger b { display: block; font: 600 1.22rem/1.3 var(--serif); color: var(--navy-deep); margin-bottom: 3px; }
.ledger span.d { color: var(--slate); font-size: .98rem; line-height: 1.55; }
.ledger li::after { content: ""; width: 22px; height: 22px; margin-top: 4px; background: var(--tick) center / contain no-repeat; }

/* proof split */
.proof {
  display: grid; border-radius: var(--radius); overflow: hidden;
  background: var(--navy-deep); color: var(--on-dark);
}
@media (min-width: 860px) { .proof { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.proof-media { background: var(--photo-bg); min-height: 240px; }
.proof-media img { width: 100%; height: 100%; object-fit: cover; }
.proof-copy { padding: 36px 26px 40px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 860px) { .proof-copy { padding: 64px 56px; } }
.proof-copy h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 14px; }
.proof-copy p { font-size: 1.05rem; margin-bottom: 26px; }
.proof-copy .btn { align-self: flex-start; }

/* ad note */
.ad-note {
  display: flex; gap: 12px; margin: 48px 0 0; padding: 18px 20px;
  background: var(--soft); border-radius: var(--radius); border: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.65; color: var(--slate);
}
.ad-note::before {
  content: "i"; flex: 0 0 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  display: grid; place-items: center; background: var(--slate); color: #fff;
  font: italic 700 13px/1 var(--serif);
}
.ad-note strong { color: var(--navy-deep); }
.ad-note p { margin: 0; }

/* ================= ARTICLE ================= */
.art-head { background: var(--soft); border-bottom: 1px solid var(--line); }
.art-head-grid { display: grid; gap: 32px; padding-top: 22px; padding-bottom: 40px; }
@media (min-width: 980px) {
  .art-head-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 60px; align-items: center; padding-top: 34px; padding-bottom: 64px; }
}
.back-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 10px;
  font: 600 14px/1 var(--sans); color: var(--slate); text-decoration: none;
}
.back-link:hover { color: var(--navy-deep); }
.tag {
  display: inline-block; margin: 0 0 18px; padding: 8px 14px; border-radius: 999px;
  background: var(--navy-deep); color: #fff;
  font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.art-head h1 { font-size: clamp(2.15rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -.022em; margin-bottom: 20px; }
.art-head h1 b { font-style: italic; font-weight: 500; color: var(--navy); }
.standfirst { font-size: 1.16rem; line-height: 1.7; color: var(--slate); margin: 0; }
.standfirst mark {
  background: linear-gradient(transparent 56%, var(--ice) 56%);
  color: var(--ink); padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.art-head-media .photo { margin: 0; }
.art-head-media .photo img { max-height: 480px; }

.art-layout { display: grid; padding-top: 32px; padding-bottom: 8px; }
@media (min-width: 1040px) {
  .art-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 64px; padding-top: 56px; }
}
.prose { min-width: 0; max-width: 720px; }
.prose > p, .prose li { font-size: 1.07rem; }
.prose h2 { font-size: clamp(1.6rem, 3.4vw, 2.05rem); margin: 56px 0 16px; }
.sec-num {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font: 600 13px/1 var(--sans); letter-spacing: .16em; color: var(--accent);
}
.sec-num::after { content: ""; width: 36px; height: 1.5px; background: var(--ice); }

/* side rail */
.art-side { display: none; }
@media (min-width: 1040px) {
  .art-side { display: block; position: sticky; top: calc(var(--head-h) + 24px); align-self: start; max-height: calc(100vh - var(--head-h) - 40px); overflow-y: auto; scrollbar-width: thin; padding-bottom: 8px; }
}
.toc-title { font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--slate); margin: 0 0 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a {
  display: flex; gap: 10px; padding: 7px 0 7px 16px; margin-left: -2px;
  border-left: 2px solid transparent; color: var(--slate); text-decoration: none;
  font-size: 14.5px; line-height: 1.4; transition: color .2s, border-color .2s;
}
.toc a:hover, .toc a.is-active { color: var(--navy-deep); border-left-color: var(--navy); }
.toc a.is-active { font-weight: 600; }
.toc-n { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }

.toc-mobile { margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
@media (min-width: 1040px) { .toc-mobile { display: none; } }
.toc-mobile summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  min-height: 54px; padding: 0 18px; font: 600 15px/1 var(--sans); color: var(--navy-deep);
}
.toc-mobile summary::-webkit-details-marker { display: none; }
.toc-mobile summary::after { content: "+"; font: 400 24px/1 var(--sans); color: var(--accent); transition: transform .2s; }
.toc-mobile[open] summary::after { transform: rotate(45deg); }
.toc-mobile ol { list-style: none; margin: 0; padding: 4px 18px 12px; border-top: 1px solid var(--line); }
.toc-mobile a { display: flex; gap: 10px; padding: 10px 0; color: var(--slate); text-decoration: none; font-size: 15px; line-height: 1.4; border-bottom: 1px solid var(--soft); }
.toc-mobile li:last-child a { border-bottom: 0; }

.side-card { margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.side-img { display: block; background: var(--photo-bg); aspect-ratio: 4 / 3; overflow: hidden; }
.side-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.side-img:hover img { transform: scale(1.04); }
.side-body { padding: 20px 18px 18px; }
.side-body h4 { font-size: 1.22rem; line-height: 1.25; margin-bottom: 8px; }
.side-body p { font-size: 14.5px; color: var(--slate); line-height: 1.55; margin-bottom: 16px; }
.side-body .btn { width: 100%; min-height: 46px; padding: 0 14px; font-size: 14.5px; }
.side-facts { list-style: none; margin: 16px 0 0; padding: 0; }
.side-facts li {
  position: relative; padding: 8px 0 8px 26px; border-top: 1px solid var(--soft);
  font-size: 13.5px; line-height: 1.4; color: var(--slate);
}
.side-facts li::before { content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 16px; background: var(--tick) center / contain no-repeat; }

/* keypoint */
.keypoint {
  position: relative; margin: 8px 0 1.4em; padding: 20px 22px 20px 24px;
  background: var(--pale); border-radius: var(--radius); border-left: 4px solid var(--navy);
  font: 600 1.16rem/1.5 var(--serif); color: var(--navy-deep);
}
.keypoint::before {
  content: "Key point"; display: block; margin-bottom: 6px;
  font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}

/* tick list */
.ticks { list-style: none; margin: 0 0 30px; padding: 0; }
.ticks li { position: relative; padding-left: 38px; margin-bottom: 16px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 24px; height: 24px; background: var(--tick) center / contain no-repeat; }
.ticks b { color: var(--navy-deep); }

/* pitch panel (inline CTA) */
.pitch {
  margin: 44px 0; padding: 28px 22px; border-radius: var(--radius);
  background: var(--navy-deep); color: var(--on-dark);
  display: grid; gap: 20px; align-items: center;
}
@media (min-width: 640px) { .pitch { grid-template-columns: minmax(0, 1fr) auto; padding: 34px 36px; gap: 18px 32px; } }
.pitch h3 { color: #fff; font-size: 1.5rem; line-height: 1.22; margin: 0 0 8px; }
.pitch p { margin: 0; font-size: 1rem; line-height: 1.6; }
.pitch .btn { white-space: nowrap; }
.pitch-points {
  grid-column: 1 / -1; list-style: none; margin: 0; padding: 18px 0 0;
  border-top: 1px solid rgba(207,224,245,.2);
  display: flex; flex-wrap: wrap; gap: 10px 24px;
}
.pitch-points li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.4; color: var(--ice); }
.pitch-points li::before { content: ""; position: absolute; left: 0; top: 0; width: 18px; height: 18px; background: var(--tick-light) center / contain no-repeat; }
@media (max-width: 639px) { .pitch .btn { width: 100%; white-space: normal; } }

/* photos */
.photo { margin: 44px 0; }
.photo-link { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--photo-bg); }
.photo-link img { width: 100%; max-height: 560px; object-fit: contain; margin: 0 auto; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.photo-link:hover img { transform: scale(1.03); }
.photo-tag {
  position: absolute; right: 14px; bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px;
  background: #fff; color: var(--navy-deep); box-shadow: 0 8px 24px rgba(0,41,87,.18);
  font: 600 13.5px/1 var(--sans);
}
.photo figcaption {
  margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--ice);
  font: italic 400 1rem/1.55 var(--serif); color: var(--slate);
}

/* certificate card */
.coa {
  margin: 40px 0 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,41,87,.07); overflow: hidden;
}
.coa-head {
  display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px;
  border-bottom: 2px solid var(--navy-deep);
  font: 700 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--navy-deep);
}
.coa-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px dashed var(--line); font-size: 15.5px; line-height: 1.4; }
.coa-row:last-child { border-bottom: 0; }
.coa-row .k { color: var(--slate); }
.coa-row .v { color: var(--navy-deep); font-weight: 600; text-align: right; }
.coa-row .pass { color: var(--pass); }
.adv-note { margin: -18px 0 30px; font: italic 400 .95rem/1.5 var(--serif); color: var(--slate); }

/* scorecard */
.scorecard {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,41,87,.12);
}
.sc-head { background: var(--navy-deep); color: #fff; padding: 18px 20px; font: 600 1.2rem/1.3 var(--serif); }
.sc-row {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 20px; border-bottom: 1px solid var(--soft); font-size: 15px; line-height: 1.4;
}
.sc-n { font: 600 13px/1 var(--sans); color: var(--accent); font-variant-numeric: tabular-nums; }
.sc-k { color: var(--navy-deep); font-weight: 500; }
.sc-v {
  justify-self: end; padding: 6px 11px; border-radius: 999px; white-space: nowrap;
  background: var(--pass-bg); color: var(--pass); font: 600 12.5px/1.2 var(--sans);
}
.sc-foot { padding: 14px 20px; background: var(--soft); font-size: 14px; line-height: 1.5; color: var(--slate); }
@media (max-width: 480px) {
  .sc-row { grid-template-columns: 26px minmax(0, 1fr); padding: 12px 16px; row-gap: 6px; }
  .sc-v { grid-column: 2; justify-self: start; white-space: normal; }
}

/* steps timeline */
.steps { list-style: none; counter-reset: s; margin: 26px 0 34px; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 28px 62px; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--navy);
  color: var(--navy-deep); font: 700 14px/1 var(--sans);
}
.steps li::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 2px; background: var(--line); }
.steps li:last-child { padding-bottom: 4px; }
.steps li:last-child::after { display: none; }
.steps b { display: block; font: 600 1.22rem/1.3 var(--serif); color: var(--navy-deep); margin: 7px 0 4px; }

/* comparison table */
.cmp {
  width: 100%; margin: 36px 0; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; line-height: 1.45;
}
.cmp th {
  background: var(--navy-deep); color: #fff; text-align: left; padding: 14px 16px;
  font: 600 12.5px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase;
}
.cmp th:nth-child(2) { background: var(--navy-btn); }
.cmp td { padding: 14px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.cmp td:first-child { font-weight: 600; color: var(--navy-deep); }
.cmp td:nth-child(2) { background: var(--pale); color: var(--pass); font-weight: 600; }
.cmp td:nth-child(3) { color: var(--fail); }
@media (max-width: 640px) {
  .cmp, .cmp tbody, .cmp tr, .cmp td { display: block; width: 100%; }
  .cmp { border: 0; border-radius: 0; overflow: visible; }
  .cmp thead { display: none; }
  .cmp tr { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; background: #fff; }
  .cmp td { border-top: 0; padding: 10px 16px; }
  .cmp td:first-child { background: var(--navy-deep); color: #fff; }
  .cmp td[data-label] { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; text-align: right; }
  .cmp td[data-label] + td[data-label] { border-top: 1px solid var(--line); }
  .cmp td[data-label]::before {
    content: attr(data-label); flex: 0 1 auto; max-width: 46%; text-align: left;
    font: 600 12px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--slate);
  }
}

/* comments */
.discussion { margin: 64px 0 0; padding-top: 30px; border-top: 2px solid var(--navy-deep); }
.discussion h3 { font-size: 1.7rem; margin-bottom: 8px; }
.cmt { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cmt.reply { margin-left: 54px; }
@media (max-width: 560px) { .cmt.reply { margin-left: 28px; } }
.avatar {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 8px;
  display: grid; place-items: center; color: #fff; background: var(--navy);
  font: 700 14px/1 var(--sans);
}
.avatar.n { background: var(--slate); }
.cmt-body { flex: 1; min-width: 0; }
.cmt-name { font: 700 15px/1.3 var(--sans); color: var(--navy-deep); margin-bottom: 3px; }
.cmt-text { margin: 0 0 6px; font-size: 16px; line-height: 1.6; color: var(--ink); }
.cmt-meta { font-size: 13px; color: var(--slate); }

/* ================= LEGAL ================= */
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: 26px 0 40px; }
@media (min-width: 900px) { .page-head { padding: 40px 0 56px; } }
.page-head h1 { font-size: clamp(2.3rem, 5.4vw, 3.4rem); letter-spacing: -.022em; margin: 0; }
.legal-body { max-width: 740px; padding: 44px 0 16px; }
.legal-body h2 { font-size: 1.55rem; margin: 44px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: #2b3445; font-size: 1.05rem; }
.legal-body p:first-of-type { font-size: 1.18rem; color: var(--ink); }

/* ================= FOOTER ================= */
.site-foot { background: var(--navy-deep); color: #A9BAD3; margin-top: 88px; padding: 56px 0 36px; font-size: 14px; }
.foot-grid { display: grid; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(207,224,245,.18); }
@media (min-width: 820px) { .foot-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.foot-brand .wordmark { pointer-events: none; }
.foot-brand .wordmark .mark { background: var(--ice); color: var(--navy-deep); }
.foot-brand .wordmark .wm-text { color: #fff; }
.foot-brand .wordmark .wm-text em { color: var(--ice); }
.foot-brand p { margin: 14px 0 0; max-width: 24em; line-height: 1.6; }
.foot-col h2 { font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ice); margin: 0 0 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col a { display: inline-flex; align-items: center; min-height: 40px; color: #fff; text-decoration: none; font-size: 15px; line-height: 1.35; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-legal { padding-top: 26px; font-size: 13px; line-height: 1.7; }
.foot-legal p { max-width: 900px; margin: 0 0 10px; }
.foot-legal strong { color: #fff; }
.foot-legal a { color: var(--ice); }

/* ================= FLOATING OFFER DOCK ================= */
.dock {
  position: fixed; z-index: 60; left: 10px; right: 10px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  transition: transform .35s cubic-bezier(.2,.7,.3,1), opacity .3s;
}
.dock-inner {
  max-width: 900px; margin: 0 auto; padding: 8px;
  display: flex; align-items: center; gap: 10px;
  background: var(--navy-deep); border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,20,50,.35); border: 1px solid rgba(207,224,245,.18);
}
.dock-copy { display: none; margin: 0 0 0 14px; flex: 1; color: var(--on-dark); font-size: 13px; line-height: 1.35; }
.dock-copy strong { display: block; color: #fff; font-size: 14.5px; }
.dock-actions { display: flex; gap: 8px; flex: 1; }
.dock .btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 0 12px; font-size: 14.5px; box-shadow: none; line-height: 1.2; }
@media (min-width: 760px) {
  .dock { left: 20px; right: 20px; bottom: calc(18px + env(safe-area-inset-bottom)); }
  .dock-copy { display: block; }
  .dock-actions { flex: 0 0 auto; }
  .dock .btn { flex: 0 0 auto; padding: 0 22px; }
}
@media (max-width: 359px) { .dock .btn { font-size: 13.5px; padding: 0 8px; } }
.js .dock { transform: translateY(calc(100% + 30px)); opacity: 0; pointer-events: none; }
.js .dock.is-on { transform: none; opacity: 1; pointer-events: auto; }

/* ================= touch + motion ================= */
@media (hover: none) {
  .btn:hover, .guide:hover { transform: none; }
  .guide:hover { box-shadow: none; border-color: var(--line); }
  .guide:hover .guide-img img, .photo-link:hover img, .hero-photo:hover img, .side-img:hover img { transform: none; }
  .guide:active { transform: scale(.99); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* very small phones: keep the masthead CTA inside the gutter */
@media (max-width: 360px) {
  .masthead .btn-sm { padding: 0 12px; font-size: 13px; min-height: 40px; }
  .wordmark .wm-text { font-size: 17px; }
}
@media (max-width: 899px) { .hero-photo { outline: 0; } }

/* ================= HERO v2 =================
   Offer up top, proof under the buttons, a gentle "read first" path,
   a shorter photo on phones and an animated certificate card. */

/* 1. offer pill */
.hero-offer {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 22px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(207,224,245,.1); border: 1px solid rgba(207,224,245,.28);
  color: var(--on-dark); font: 500 14px/1.35 var(--sans);
}
.hero-offer-badge {
  display: inline-block; padding: 6px 11px; border-radius: 999px;
  background: var(--ice); color: var(--navy-deep);
  font: 700 12.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase;
}
@media (max-width: 420px) {
  .hero-offer { border-radius: 14px; padding: 8px 12px 8px 8px; font-size: 13.5px; }
}

/* 2. proof line under the buttons */
.hero-proof {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px;
}
.hero-proof li { position: relative; padding-left: 26px; font: 500 14.5px/1.4 var(--sans); color: #fff; }
.hero-proof li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px;
  background: var(--tick-light) center / contain no-repeat;
}

/* 4. read-first path */
.hero-more {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px;
  color: var(--ice); font: 600 14.5px/1 var(--sans); text-decoration: none;
  border-bottom: 1px solid transparent;
}
.hero-more span { transition: transform .2s; }
.hero-more:hover { color: #fff; }
.hero-more:hover span { transform: translateY(3px); }

/* 3. shorter photo on phones and tablets */
@media (max-width: 899px) {
  .hero-grid { gap: 32px; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
  .hero-card { margin-top: -44px; }
  .hero-card .hc-head { padding: 12px 16px 10px; }
  .hero-card .hc-row { padding: 8px 16px; font-size: 13.5px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .hero-media { max-width: 560px; }
}

/* 5. certificate rows tick in one after another */
.hero-card .v.pass::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%231c7a4a'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes hc-row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes hc-tick-in { 0% { opacity: 0; transform: scale(.4); } 70% { transform: scale(1.15); } 100% { opacity: 1; transform: scale(1); } }
@keyframes hc-card-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.js .hero-card { animation: hc-card-in .6s cubic-bezier(.2,.7,.3,1) .15s both; }
.js .hero-card .hc-row { animation: hc-row-in .45s ease both; }
.js .hero-card .v.pass::before { animation: hc-tick-in .4s ease both; }
.js .hero-card .hc-row:nth-of-type(2) { animation-delay: .55s; }
.js .hero-card .hc-row:nth-of-type(3) { animation-delay: .85s; }
.js .hero-card .hc-row:nth-of-type(4) { animation-delay: 1.15s; }
.js .hero-card .hc-row:nth-of-type(5) { animation-delay: 1.45s; }
.js .hero-card .hc-row:nth-of-type(2) .v.pass::before { animation-delay: .8s; }
.js .hero-card .hc-row:nth-of-type(3) .v.pass::before { animation-delay: 1.1s; }
.js .hero-card .hc-row:nth-of-type(4) .v.pass::before { animation-delay: 1.4s; }
@media (prefers-reduced-motion: reduce) {
  .js .hero-card, .js .hero-card .hc-row, .js .hero-card .v.pass::before { animation: none; }
}

/* hero polish */
.hero-card .hc-head span:last-child { white-space: nowrap; }
@media (min-width: 900px) { .hero-card { width: 330px; left: -64px; } }
.hero-offer { flex-wrap: nowrap; align-items: center; }
.hero-offer-badge { flex: 0 0 auto; }
.hero-offer > span:last-child { min-width: 0; }
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
