/* Gainmaker website — built on the Gainmaker design system (tokens + components). */

/* Self-hosted brand fonts (SIL Open Font License) */
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --navy: #040444;
  --blue: #0066cc;
  --sky: #0099ff;
  --coral: #e26e53;
  --coral-text: #c24e33;
  --teal: #007a73;
  --green: #00d178;
  --peach: #d93e00;
  --black: #000000;
  --white: #ffffff;
  --mist: #f6f6fa;

  --surface: var(--white);
  --ground: var(--mist);
  --ink: var(--navy);
  --text-secondary: #3a3a66;
  --text-muted: #5b5b82;
  --line: #e3e3ec;
  --line-strong: #c9c9d8;
  --accent: var(--blue);
  --contributor: var(--teal);
  --detractor: var(--coral);

  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans: Poppins, system-ui, sans-serif;
  --font-data: "IBM Plex Sans", system-ui, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px;
  --space-mark-gap: 7px;
  --space-paragraph: 22px;
  --space-mark-indent: 48px;
  --space-column-gutter: 64px;

  --mark-h2: 41px; --mark-h3: 27px; --mark-bullet: 20px;
  --rule-heading: 2px; --rule-accent: 4px; --focus-ring: 2px;

  --max: 1180px;
  --gutter: 32px;
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
  background: var(--surface);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: var(--focus-ring) solid var(--accent);
  outline-offset: 2px;
}
p { margin: 0 0 var(--space-paragraph); }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: var(--white); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- The arrow mark ---------- */
.gm-mark { display: inline-block; flex: none; width: var(--mark-h2); aspect-ratio: 36.888 / 30.251; background-color: var(--navy);
  -webkit-mask: url("../img/gainmaker-mark-white.svg") no-repeat center / contain;
  mask: url("../img/gainmaker-mark-white.svg") no-repeat center / contain; }
.gm-mark--h3 { width: var(--mark-h3); background-color: var(--blue); }
.gm-mark--bullet { width: var(--mark-bullet); background-color: var(--blue); }
.gm-mark--white { background-color: var(--white); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--space-6); }
.brand img { width: 190px; height: auto; }
.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav ul { list-style: none; display: flex; gap: var(--space-6); margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); color: var(--ink); font: inherit; font-size: 14px; font-weight: 500; padding: 8px 12px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--font-sans); font-size: 15px; line-height: 20px; font-weight: 500; text-decoration: none;
  padding: 13px 22px; border: 1px solid var(--blue); background: var(--blue); color: var(--white); cursor: pointer; border-radius: 0; }
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--on-navy { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn--on-navy:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.btn--ghost-on-navy { background: transparent; border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--ghost-on-navy:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.nav .btn { padding: 10px 16px; font-size: 14px; }
.nav .btn, .nav .btn:hover { border-bottom-width: 1px; color: var(--white); }

/* ---------- Hero (on navy) ---------- */
.hero { background: var(--navy); color: var(--white); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-family: var(--font-serif); font-weight: 400; font-size: 64px; line-height: 1; margin: 0; color: var(--white); }
.hero .hero__subtitle { margin: 18px 0 0; font-size: 22px; line-height: 30px; font-weight: 300; color: var(--sky); }
.hero .hero__lead { margin: 22px 0 32px; font-size: 17px; line-height: 27px; color: #cdcdda; max-width: 560px; }
.hero__media { position: relative; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__media .hero__logo { position: absolute; left: 24px; bottom: 22px; width: 46%; aspect-ratio: auto; object-fit: contain; }

/* Page title band for inner pages */
.page-head { background: var(--navy); color: var(--white); }
.page-head .wrap { padding-top: 64px; padding-bottom: 60px; }
.page-head h1 { font-family: var(--font-serif); font-weight: 400; font-size: 56px; line-height: 60px; margin: 0; color: var(--white); max-width: 900px; }
.page-head .page-head__subtitle { margin: 14px 0 0; font-size: 14px; line-height: 18px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sky); }
.page-head .page-head__lead { margin: 22px 0 0; font-size: 18px; line-height: 28px; color: #cdcdda; max-width: 760px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--ground { background: var(--ground); }
.section--tight { padding: 56px 0; }
.section + .section:not(.section--ground):not(.section--navy) { border-top: 1px solid var(--line); }
.section--navy { background: var(--navy); color: var(--white); }

.gm-section { display: grid; grid-template-columns: var(--mark-h2) 1fr; column-gap: var(--space-mark-gap); align-items: center; margin: 0 0 36px; }
.gm-section__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 40px; line-height: 1.05; color: var(--ink); }
.gm-section__subtitle { grid-column: 2; margin: 6px 0 0; font-size: 14px; line-height: 18px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.section--navy .gm-section__title { color: var(--white); }
.section--navy .gm-section__subtitle { color: var(--sky); }
.section--navy .gm-mark { background-color: var(--white); }

.indent { padding-left: calc(var(--mark-h2) + var(--space-mark-gap)); }
.lead { font-size: 20px; line-height: 30px; color: var(--text-secondary); max-width: 820px; }
.prose { max-width: 760px; color: var(--text-secondary); }
.prose strong { color: var(--ink); }
.punch { font-weight: 700; color: var(--ink); }

/* ---------- Two-column feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--wide-text { grid-template-columns: 1.25fr 1fr; }
.figure { background: var(--surface); border: 1px solid var(--line); padding: var(--space-6); }
.figure img { width: 100%; }
.figure figcaption { margin-top: var(--space-3); font-size: 12.5px; line-height: 18px; color: var(--text-muted); }

/* ---------- Numbered list with bold lead-ins ---------- */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 18px; max-width: 860px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: var(--space-3); color: var(--text-secondary); }
.steps li::before { content: counter(step); font-family: var(--font-serif); font-size: 30px; line-height: 28px; color: var(--blue); }
.steps strong { color: var(--ink); }

/* ---------- MarkList ---------- */
.gm-marklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-paragraph); }
.gm-marklist__item { display: grid; grid-template-columns: var(--mark-h3) 1fr; column-gap: 10px; }
.gm-marklist__item > .gm-mark { width: var(--mark-h3); background-color: var(--blue); margin-top: 2px; }
.gm-marklist__title { margin: 0 0 2px; font-weight: 700; font-size: 16px; line-height: 22px; color: var(--blue); }
.gm-marklist__body { margin: 0; font-size: 15px; line-height: 23px; color: var(--text-secondary); }
.gm-marklist--two { grid-template-columns: 1fr 1fr; column-gap: 48px; }
.gm-marklist--compact { grid-template-columns: repeat(3, 1fr); column-gap: 32px; row-gap: 24px; }
.gm-marklist--compact .gm-marklist__item { grid-template-columns: var(--mark-bullet) 1fr; }
.gm-marklist--compact .gm-marklist__item > .gm-mark { width: var(--mark-bullet); }
.gm-marklist--compact .gm-marklist__title { color: var(--ink); font-size: 15px; }
.gm-marklist--compact .gm-marklist__body { font-size: 14px; line-height: 21px; }

/* ---------- Model trio: Gainmakers / Contributors / Detractors ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.trio__item { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: var(--space-6); }
.trio__item--contributor { border-top-color: var(--contributor); }
.trio__item--detractor { border-top-color: var(--detractor); }
.trio__label { margin: 0 0 6px; font-family: var(--font-serif); font-size: 28px; line-height: 32px; color: var(--ink); }
.trio__tag { margin: 0 0 12px; font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); }
.trio__item--contributor .trio__tag { color: var(--contributor); }
.trio__item--detractor .trio__tag { color: var(--coral-text); }
.trio__body { margin: 0; font-size: 15px; line-height: 23px; color: var(--text-secondary); }

/* ---------- Panels / offering cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.gm-panel { background: var(--surface); border: 1px solid var(--line); padding: var(--space-6); display: flex; flex-direction: column; }
.gm-panel__num { font-family: var(--font-data); font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--text-muted); margin: 0 0 14px; }
.gm-panel__title { margin: 0 0 10px; font-family: var(--font-serif); font-weight: 400; font-size: 26px; line-height: 30px; color: var(--ink); }
.gm-panel__body { margin: 0 0 18px; font-size: 15px; line-height: 23px; color: var(--text-secondary); }
.gm-panel__more { margin-top: auto; font-size: 14px; font-weight: 500; }
.gm-panel__meta { font-size: 12.5px; line-height: 18px; color: var(--text-muted); }

/* Offering detail rows (services page) */
.offering { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 40px 0; border-top: 1px solid var(--line); }
.offering:first-of-type { border-top: 0; padding-top: 0; }
.offering__name { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 32px; line-height: 36px; color: var(--ink); }
.offering__kicker { margin: 10px 0 0; font-size: 14px; line-height: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.offering__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.offering__grid h3 { margin: 0 0 8px; padding-bottom: 6px; font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); border-bottom: var(--rule-heading) solid var(--blue); }
.offering__grid > div:nth-child(2) h3 { border-bottom-color: var(--green); }
.offering__grid > div:nth-child(3) h3 { border-bottom-color: var(--peach); }
.offering__grid p { font-size: 15px; line-height: 23px; color: var(--text-secondary); margin: 0; }

/* ---------- Pillar columns ---------- */
.gm-pillars { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--space-column-gutter); row-gap: 32px; }
.gm-pillar__step { margin: 0 0 6px; font-family: var(--font-data); font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--text-muted); }
.gm-pillar__title { margin: 0 0 16px; padding-bottom: 8px; font-weight: 700; font-size: 19px; line-height: 25px; color: var(--ink); border-bottom: var(--rule-heading) solid var(--blue); }
.gm-pillar:nth-child(2) .gm-pillar__title { border-bottom-color: var(--green); }
.gm-pillar:nth-child(3) .gm-pillar__title { border-bottom-color: var(--peach); }
.gm-pillar__body { margin: 0; font-size: 15px; line-height: 23px; color: var(--text-secondary); }
.gm-pillar ul { margin: 12px 0 0; padding-left: 18px; font-size: 14px; line-height: 22px; color: var(--text-secondary); }

/* ---------- KPI row ---------- */
.gm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); }
.gm-kpi { padding: 28px var(--space-6); border-left: 1px solid var(--line); }
.gm-kpi:first-child { border-left: 0; }
.gm-kpi__value { margin: 0 0 10px; font-family: var(--font-serif); font-weight: 400; font-size: 48px; line-height: 50px; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.gm-kpi__label { margin: 0; font-size: 14px; line-height: 21px; color: var(--text-secondary); }
.kpi-note { margin-top: var(--space-3); font-size: 12.5px; line-height: 18px; color: var(--text-muted); }

/* ---------- Callout ---------- */
.gm-callout { margin: 0; padding: 20px 24px; background: var(--mist); border-left: var(--rule-accent) solid var(--coral); max-width: 860px; }
.section--ground .gm-callout { background: var(--surface); }
.gm-callout__label { margin: 0 0 4px; font-weight: 700; font-size: 15px; line-height: 22px; color: var(--coral-text); }
.gm-callout__text { margin: 0; font-size: 17px; line-height: 27px; color: var(--navy); }
.gm-callout--note { border-left-color: var(--blue); }
.gm-callout--note .gm-callout__label { color: var(--blue); }

/* ---------- Screen table ---------- */
.gm-grid { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: 15px; line-height: 23px; color: var(--text-secondary); }
.gm-grid th { text-align: left; font-weight: 500; font-size: 14px; color: var(--ink); padding: 12px 18px; border-bottom: 2px solid var(--ink); }
.gm-grid td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gm-grid td:first-child { color: var(--accent); font-weight: 700; width: 38%; }

/* ---------- Lifecycle strip (CVM) ---------- */
.lifecycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); margin-bottom: var(--space-4); }
.lifecycle__step { background: var(--surface); border: 1px solid var(--line); padding: 20px; }
.lifecycle__step h3 { margin: 0 0 6px; font-family: var(--font-serif); font-weight: 400; font-size: 24px; line-height: 28px; color: var(--ink); }
.lifecycle__step p { margin: 0; font-size: 14px; line-height: 21px; color: var(--text-secondary); }
.lifecycle__eyebrow { margin: 0 0 12px; font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Clients ---------- */
.clients { padding: 40px 0; border-bottom: 1px solid var(--line); }
.clients__label { margin: 0 0 20px; font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); text-align: center; }
.clients__row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px; }
.clients__row img { height: 44px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .8; }
.clients__row img:hover { filter: none; opacity: 1; }

/* ---------- CTA band ---------- */
.cta { background: var(--navy); color: var(--white); }
.cta .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.cta h2 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 40px; line-height: 44px; color: var(--white); }
.cta p { margin: 10px 0 0; font-size: 17px; line-height: 26px; color: #cdcdda; max-width: 640px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.form { background: var(--surface); border: 1px solid var(--line); padding: 32px; display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; margin: 0 0 6px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 15px; line-height: 22px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0; padding: 11px 12px; }
.field textarea { min-height: 140px; resize: vertical; }
.form__fine { font-size: 12.5px; line-height: 18px; color: var(--text-muted); margin: 0; }
.hp { position: absolute; left: -9999px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-list h3 { margin: 0 0 2px; font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.contact-list p { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cdcdda; font-size: 14px; line-height: 22px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand img { width: 180px; margin-bottom: 16px; }
.site-footer h2 { margin: 0 0 12px; font-family: var(--font-sans); font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #cdcdda; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer a:focus-visible { outline-color: var(--sky); }
.footer__base { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: #a7a7be; font-size: 13px; }

/* ---------- Legal page ---------- */
.legal { max-width: 780px; }
.legal h2 { font-family: var(--font-serif); font-weight: 400; font-size: 28px; line-height: 32px; margin: 40px 0 12px; color: var(--ink); }
.legal p, .legal li { color: var(--text-secondary); }
.legal ul { padding-left: 22px; margin: 0 0 var(--space-paragraph); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gm-kpis { grid-template-columns: repeat(2, 1fr); }
  .gm-kpi:nth-child(3) { border-left: 0; }
  .gm-kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .offering { grid-template-columns: 1fr; gap: 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .hero .wrap, .split, .split--wide-text, .contact { grid-template-columns: 1fr; }
  .hero .wrap { gap: 40px; padding-top: 56px; padding-bottom: 56px; }
  .trio, .cards--3, .gm-pillars, .lifecycle, .offering__grid { grid-template-columns: 1fr; }
  .gm-marklist--compact, .gm-marklist--two { grid-template-columns: 1fr 1fr; }
  .cta .wrap { grid-template-columns: 1fr; }
  .lifecycle { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 64px; }
  body { font-size: 15px; }
  .brand img { width: 150px; }
  .hero h1 { font-size: 44px; }
  .hero .hero__subtitle { font-size: 19px; line-height: 27px; }
  .page-head h1 { font-size: 40px; line-height: 44px; }
  .page-head .wrap { padding-top: 44px; padding-bottom: 44px; }
  .section { padding: 60px 0; }
  .gm-section { grid-template-columns: 30px 1fr; margin-bottom: 28px; }
  .gm-section .gm-mark { width: 30px; }
  .gm-section__title { font-size: 30px; line-height: 34px; }
  .indent { padding-left: 0; }
  .lead { font-size: 18px; line-height: 27px; }
  .cards, .cards--2, .gm-kpis, .gm-marklist--compact, .gm-marklist--two, .lifecycle, .form__row, .footer__grid { grid-template-columns: 1fr; }
  .gm-kpi { border-left: 0; border-top: 1px solid var(--line); }
  .gm-kpi:first-child { border-top: 0; }
  .gm-kpi__value { font-size: 40px; line-height: 44px; }
  .cta h2 { font-size: 32px; line-height: 36px; }
  .form { padding: 20px; }
  .gm-grid td:first-child { width: auto; }
  .gm-grid, .gm-grid tbody, .gm-grid tr, .gm-grid td { display: block; }
  .gm-grid thead { display: none; }
  .gm-grid td { border-bottom: 0; padding: 4px 16px; }
  .gm-grid tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .clients__row img { height: 34px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =====================================================================
   Product-page layer — matches the Gainmaker CVM Framework artifact:
   navy cover band, navy section header bars, white panels on ground,
   mono eyebrows, coral numbers on navy tiles, step tabs, scope slider.
   ===================================================================== */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
:root { --font-mono: "IBM Plex Mono", ui-monospace, monospace; --stage-sub: #7cc4ff; --std: #08703f; --std-line: #00a862; --std-tint: #eefaf3; }

.page--ground { background: var(--ground); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

/* Cover band */
.cover { background: var(--navy); color: var(--white); }
.cover .wrap { padding-top: 64px; padding-bottom: 60px; }
.cover .eyebrow { color: rgba(255,255,255,.7); }
.cover h1 { font-family: var(--font-serif); font-weight: 400; font-size: clamp(42px, 6vw, 64px); line-height: 1; margin: 18px 0 16px; color: var(--white); max-width: 980px; text-wrap: balance; }
.cover .cover__sub { margin: 0; font-weight: 300; font-size: 21px; line-height: 30px; color: var(--sky); max-width: 760px; }
.cover .cover__lead { margin: 22px 0 0; font-size: 17px; line-height: 27px; color: #cdcdda; max-width: 760px; }
.cover .btn-row { margin-top: 30px; }
.cover__meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.cover__meta span::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--coral); margin-right: 8px; transform: translateY(-2px); }

/* Product sections: white panel, navy header bar */
.secs { padding: 40px 0 80px; }
.sec { background: var(--surface); border: 1px solid var(--line); margin-top: 32px; }
.sec:first-child { margin-top: 0; }
.sec__head { background: var(--navy); color: var(--white); padding: 24px clamp(16px, 3vw, 32px); display: flex; gap: 14px; align-items: flex-start; }
.sec__head .gm-mark { width: 36px; margin-top: 6px; background-color: var(--white); }
.sec__head .eyebrow { color: rgba(255,255,255,.65); }
.sec__head h2 { margin: 2px 0 6px; font-family: var(--font-serif); font-weight: 400; font-size: 35px; line-height: 1.1; color: var(--white); text-wrap: balance; }
.sec__promise { margin: 0; font-size: 13px; line-height: 18px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.sec__body { padding: 28px clamp(16px, 3vw, 32px) 32px; }
.sec__lead { margin: 0 0 24px; font-size: 16px; line-height: 26px; color: var(--text-secondary); max-width: 72ch; }
.part-head { margin: 36px 0 14px; }
.part-head:first-child { margin-top: 0; }
.part-head h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 28px; line-height: 1.1; color: var(--ink); }
.part-head p { margin: 6px 0 0; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.cap { font-size: 12.5px; line-height: 18px; color: var(--text-muted); margin: 12px 0 0; }

/* KPI tiles on navy, coral numbers */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.kpi { background: var(--navy); border: 1px solid var(--navy); padding: 18px; min-width: 0; }
.kpi .v { font-family: var(--font-serif); font-size: 36px; line-height: 1.05; color: var(--coral); font-variant-numeric: tabular-nums lining-nums; }
.kpi .l { font-size: 13px; line-height: 19px; color: rgba(255,255,255,.9); margin-top: 8px; }
.kpi .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.65); margin: 0 0 6px; }
.kpi--small .v { font-size: 22px; line-height: 1.2; }

/* Contribution thinking: three columns */
.ct { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ct-col { border: 1px solid var(--line); padding: 18px; position: relative; min-width: 0; background: var(--surface); }
.ct-det { border-top: 3px solid var(--coral); }
.ct-con { border-top: 3px solid var(--teal); }
.ct-gm { background: var(--navy); border-color: var(--navy); color: var(--white); }
.ct-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.ct-det .ct-label { color: var(--coral-text); } .ct-con .ct-label { color: var(--teal); } .ct-gm .ct-label { color: var(--sky); }
.ct-title { font-family: var(--font-serif); font-size: 26px; line-height: 1.1; margin: 4px 0 12px; color: var(--ink); }
.ct-gm .ct-title { color: var(--white); padding-right: 40px; }
.ct-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.ct-gm ul { color: rgba(255,255,255,.9); }
.ct-col li { display: flex; gap: 10px; align-items: baseline; }
.ct-det li::before { content: "\2212"; color: var(--coral); font-weight: 700; }
.ct-con li::before { content: "+"; color: var(--teal); font-weight: 700; }
.ct-gm li::before { content: ""; width: 8px; height: 8px; background: var(--coral); flex: none; transform: translateY(-1px); }
.ct-src { font-size: 12px; color: var(--text-muted); margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.ct-gm .ct-src { color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.2); }
.ct-gm .gm-mark { position: absolute; right: 18px; top: 18px; width: 30px; background-color: var(--white); }

/* Step tabs */
.tabsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); border: 1px solid var(--line); }
.tabstep { min-width: 0; border-left: 1px solid var(--line); position: relative; }
.tabstep:first-child { border-left: 0; }
.tabstep button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 6px; width: 100%; height: 100%; padding: 0 14px 16px; background: var(--surface); }
.tabstep button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.snum { display: block; margin: 0 -14px 8px; padding: 10px 14px; background: var(--navy); color: var(--white); font-family: var(--font-serif); font-size: 26px; line-height: 1; }
.tabstep:not(:last-child)::after { content: ""; position: absolute; right: -7px; top: 16px; width: 12px; height: 12px; background: var(--coral); clip-path: polygon(0 0, 100% 50%, 0 100%); z-index: 1; }
.sname { font-weight: 700; font-size: 15px; line-height: 20px; color: var(--ink); }
.sline { font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
.tabstep button[aria-selected="true"] { background: var(--ground); box-shadow: inset 0 -3px 0 var(--coral); }
.tabstep button[aria-selected="true"] .snum { background: var(--coral); color: var(--navy); }
.tabstep button:hover .sname { color: var(--blue); }
.tabpanel { border: 1px solid var(--line); border-top: 0; padding: 22px; }
.tabpanel[hidden] { display: none; }
.sp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.sp-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-text); }
.sp-head h4 { font-family: var(--font-serif); font-weight: 400; font-size: 28px; line-height: 1.1; margin: 0; color: var(--ink); }
.sp-head p { flex-basis: 100%; margin: 2px 0 0; font-size: 15px; color: var(--text-secondary); }
.sp-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 16px; }
.sp-cols h5, .scope-cols h4, .mini-h { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px; }
.sp-cols p, .sp-cols ul, .scope-cols p, .scope-cols ul { margin: 0; font-size: 14px; line-height: 21px; color: var(--text-secondary); }
.sp-cols ul, .scope-cols ul { padding-left: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.2; font-weight: 500; padding: 5px 9px; border: 1px solid; border-radius: 3px; white-space: nowrap; }
.pill--std { color: var(--std); border-color: var(--std-line); text-decoration: none; }
.pill--std::before { content: ""; flex: none; width: 12px; height: 10px; background: var(--std); -webkit-mask: url("../img/gainmaker-mark-white.svg") no-repeat center / contain; mask: url("../img/gainmaker-mark-white.svg") no-repeat center / contain; }
.pill--blue { color: var(--blue); border-color: var(--blue); }
.pill--muted { color: var(--text-muted); border-color: var(--line-strong); }

/* Scope slider */
.scope { border: 1px solid var(--line); padding: 22px; }
.scope-q { font-weight: 700; font-size: 15px; color: var(--ink); display: block; }
.scope input[type=range] { width: 100%; margin: 16px 0 4px; accent-color: var(--coral); height: 24px; }
.scope-ticks { display: flex; justify-content: space-between; gap: 8px; }
.scope-ticks button { font: inherit; font-size: 14px; font-weight: 500; background: none; border: 0; color: var(--text-muted); cursor: pointer; padding: 4px 0; }
.scope-ticks button[aria-pressed="true"] { color: var(--coral-text); font-weight: 700; }
.scope-opt { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.scope-opt[hidden] { display: none; }
.scope-name { font-family: var(--font-serif); font-size: 32px; line-height: 1.05; color: var(--ink); margin: 0; }
.scope-line { margin: 6px 0 0; color: var(--text-secondary); font-size: 15px; }
.scope-opt .kpis { margin-top: 16px; }
.scope-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 18px; }

/* Guardrail cards */
.guards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guards > div { border: 1px solid var(--line); border-left: 3px solid var(--blue); padding: 16px 18px; min-width: 0; }
.guards b { font-size: 15px; color: var(--ink); }
.guards p { margin: 6px 0 0; font-size: 14px; line-height: 21px; color: var(--text-secondary); }

/* Expandable list (accelerators, levers) */
.xlist { border: 1px solid var(--line); }
.xitem { border-top: 1px solid var(--line); background: var(--surface); }
.xitem:first-child { border-top: 0; }
.xitem > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 70px minmax(0, 1fr) 24px; gap: 16px; padding: 16px; align-items: start; }
.xitem > summary::-webkit-details-marker { display: none; }
.xitem .id { font-family: var(--font-data); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--std); padding-top: 3px; }
.xitem .t { font-weight: 700; font-size: 15px; color: var(--ink); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.xitem .d { font-size: 14px; line-height: 21px; color: var(--text-secondary); margin-top: 4px; max-width: 78ch; }
.xitem > summary:hover .t { color: var(--blue); }
.xbody { padding: 0 16px 18px calc(70px + 32px); display: grid; gap: 12px; }
.xbody p { margin: 0; font-size: 14px; line-height: 21px; color: var(--text-secondary); max-width: 78ch; }
.plus { width: 20px; height: 20px; border: 1px solid var(--coral); border-radius: 3px; position: relative; margin-top: 1px; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; background: var(--coral); transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s; }
details[open] > summary .plus::after { transform: translate(-50%, -50%) rotate(0); }
.xitem--static > summary { cursor: default; }

/* Diagram frame */
.diagram { border: 1px solid var(--line); padding: 20px 16px 16px; overflow-x: auto; background: var(--surface); }
.diagram svg { display: block; width: 100%; min-width: 760px; height: auto; }

/* Leak / problem tiles */
.leaks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.leak { border: 1px solid var(--line); border-top: 3px solid var(--coral); padding: 18px; background: var(--surface); }
.leak .eyebrow { color: var(--coral-text); }
.leak h4 { margin: 8px 0 6px; font-weight: 700; font-size: 16px; line-height: 22px; color: var(--ink); }
.leak p { margin: 0; font-size: 14px; line-height: 21px; color: var(--text-secondary); }

/* Feature tiles (pillars, levers) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: 18px; background: var(--surface); min-width: 0; }
.tile--green { border-top-color: var(--green); } .tile--peach { border-top-color: var(--peach); } .tile--teal { border-top-color: var(--teal); } .tile--coral { border-top-color: var(--coral); } .tile--navy { border-top-color: var(--navy); }
.tile h4 { margin: 6px 0 8px; font-family: var(--font-serif); font-weight: 400; font-size: 25px; line-height: 1.1; color: var(--ink); }
.tile p { margin: 0; font-size: 14px; line-height: 21px; color: var(--text-secondary); }
.tile dl { margin: 12px 0 0; display: grid; gap: 10px; }
.tile dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.tile dd { margin: 2px 0 0; font-size: 14px; line-height: 21px; color: var(--text-secondary); }
.tile .tile__more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 500; }

/* Comparison table */
.compare { width: 100%; border-collapse: collapse; border: 1px solid var(--line); background: var(--surface); }
.compare th, .compare td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 21px; }
.compare thead th { font-family: var(--font-serif); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--ink); border-bottom: 2px solid var(--ink); }
.compare thead th.is-good { background: var(--navy); color: var(--white); border-bottom-color: var(--navy); }
.compare tbody th { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); width: 18%; }
.compare td { color: var(--text-secondary); }
.compare td.is-good { color: var(--ink); background: #f0f4fb; font-weight: 500; }
.compare tfoot td { font-weight: 700; color: var(--ink); border-bottom: 0; }
.compare tfoot td.is-good { color: var(--white); background: var(--navy); }

/* Flow strip (numbered stages, wraps) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; border: 1px solid var(--line); counter-reset: f; }
.flow li { counter-increment: f; border-left: 1px solid var(--line); padding: 0 14px 16px; position: relative; background: var(--surface); }
.flow li:first-child { border-left: 0; }
.flow li::before { content: counter(f, decimal-leading-zero); display: block; margin: 0 -14px 10px; padding: 10px 14px; background: var(--navy); color: var(--white); font-family: var(--font-serif); font-size: 24px; line-height: 1; }
.flow li b { display: block; font-size: 14.5px; line-height: 20px; color: var(--ink); }
.flow li span { display: block; margin-top: 4px; font-size: 13px; line-height: 19px; color: var(--text-secondary); }

/* Offer cards on home */
.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.offer { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.offer__head { background: var(--navy); color: var(--white); padding: 20px 22px; }
.offer__head .eyebrow { color: var(--sky); }
.offer__head h3 { margin: 6px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: 32px; line-height: 1.05; color: var(--white); }
.offer__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.offer__promise { margin: 0 0 14px; font-weight: 700; font-size: 16px; line-height: 23px; color: var(--ink); }
.offer__body p { font-size: 14.5px; line-height: 22px; color: var(--text-secondary); }
.offer__body ul { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.offer__body li { display: flex; gap: 10px; align-items: baseline; }
.offer__body li::before { content: "+"; color: var(--teal); font-weight: 700; }
.offer__body .btn { margin-top: auto; align-self: flex-start; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.person { background: var(--surface); border: 1px solid var(--line); padding: 22px; }
.person img { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 14px; }
.person h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--ink); }
.person .role { margin: 6px 0 12px; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.person p { margin: 0; font-size: 14px; line-height: 21px; color: var(--text-secondary); }

@media (max-width: 960px) {
  .tabsteps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tabstep:nth-child(4) { border-left: 0; }
  .tabstep:nth-child(n+4) { border-top: 1px solid var(--line); }
  .tabstep:nth-child(3)::after { display: none; }
  .offers, .team { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ct, .scope-cols, .guards, .sp-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tabsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tabstep { border-left: 1px solid var(--line) !important; border-top: 1px solid var(--line); }
  .tabstep:nth-child(odd) { border-left: 0 !important; }
  .tabstep:nth-child(-n+2) { border-top: 0; }
  .tabstep::after { display: none; }
  .sec__head h2 { font-size: 28px; }
  .sec__head .gm-mark { width: 28px; }
  .xitem > summary { grid-template-columns: 52px minmax(0, 1fr) 22px; gap: 10px; }
  .xbody { padding-left: 16px; }
  .compare, .compare thead, .compare tbody, .compare tfoot, .compare tr, .compare th, .compare td { display: block; }
  .compare thead { display: none; }
  .compare tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .compare th, .compare td { border-bottom: 0; padding: 6px 14px; }
  .compare td.is-good::before { content: "Engineered — "; font-weight: 700; }
  .compare td:not(.is-good):not(:first-child)::before { content: "Reactive — "; font-weight: 700; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(odd) { border-left: 0; }
  .flow li { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) { .pill { white-space: normal; } .xitem .t .pill { max-width: 100%; } }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .tiles--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles--3 { grid-template-columns: 1fr; } }

/* CVM industry pain points */
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 13px; line-height: 1; font-weight: 500; padding: 10px 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 3px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: var(--navy); }
.chip .n { font-family: var(--font-data); font-variant-numeric: tabular-nums; opacity: .7; margin-left: 6px; }
.pp-sum { margin: 20px 0 0; font-size: 15px; line-height: 24px; color: var(--text-secondary); max-width: 72ch; }
.pp-sum b { color: var(--ink); }
#pp-kpis { margin-top: 18px; }
.kpi .src { font-family: var(--font-data); font-size: 11.5px; color: rgba(255,255,255,.6); margin-top: 8px; }
.pp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 32px; }
.pp-head h3 { font-weight: 700; font-size: 16px; line-height: 1.3; color: var(--blue); margin: 0; }
.pp-head .note { font-size: 12.5px; color: var(--text-muted); }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; margin-top: 12px; }
.ptile { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid rgba(226,110,83,.45); min-width: 0; }
.ptile.t1 { border-top-color: var(--coral); }
.ptile[open] { grid-column: 1 / -1; border-color: var(--coral); }
.ptile:hover { border-color: var(--coral); }
.ptile > summary { list-style: none; cursor: pointer; padding: 16px; display: flex; flex-direction: column; gap: 6px; height: 100%; }
.ptile[open] > summary { height: auto; }
.ptile > summary::-webkit-details-marker { display: none; }
.ptile-top { display: flex; align-items: center; gap: 8px; }
.ptile .rank { font-family: var(--font-data); font-weight: 600; font-size: 13px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ptile .rank small { font-weight: 400; font-size: 11.5px; }
.ptile .tier { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-text); border: 1px solid var(--coral); border-radius: 3px; padding: 2px 6px; margin-left: auto; }
.ptile:not(.t1) .tier { color: var(--text-muted); border-color: var(--line-strong); }
.ptile .plus { flex: none; }
.ptile[open] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.sevrow { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.sevnum { font-family: var(--font-serif); font-size: 46px; line-height: .95; color: var(--ink); font-variant-numeric: tabular-nums; }
.sevof { font-family: var(--font-data); font-size: 13px; color: var(--text-muted); }
.sevbar { height: 8px; background: var(--line); }
.sevbar i { display: block; height: 100%; background: var(--coral); }
.ptile:not(.t1) .sevbar i { background: rgba(226,110,83,.55); }
.tname { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--ink); margin-top: 6px; }
.tev { font-size: 13px; line-height: 1.45; color: var(--text-secondary); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ptile[open] .tev { -webkit-line-clamp: unset; display: block; }
.ptile .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 6px; }
.tag { font-family: var(--font-mono); font-size: 11px; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--text-secondary); }
.tag.on { border-color: var(--blue); color: var(--blue); }
.ptile-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; margin: 0 16px; padding: 16px 0 20px; border-top: 1px solid var(--line); }
.ptile-body h4 { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 6px; }
.ptile-body h4:not(:first-child) { margin-top: 16px; }
.ptile-body p { font-size: 14px; line-height: 22px; color: var(--text-secondary); margin: 0; max-width: 80ch; }
.ptile-score { border-left: 1px solid var(--line); padding-left: 20px; }
.sc { display: grid; grid-template-columns: 1fr auto 16px; gap: 10px; align-items: center; font-size: 13px; color: var(--text-secondary); padding: 5px 0; }
.sc b { font-family: var(--font-data); font-weight: 600; color: var(--ink); text-align: right; }
.dots { display: flex; gap: 3px; }
.dots i { width: 14px; height: 6px; background: var(--line); }
.dots i.on { background: var(--coral); }
.scnote { font-size: 11.5px; color: var(--text-muted); margin: 8px 0 0 !important; }
.srcs { margin: 6px 0 0; padding-left: 20px; font-size: 13px; line-height: 20px; color: var(--text-secondary); }
.srcs li { margin: 3px 0; }
.srcs span { font-family: var(--font-data); font-size: 11.5px; color: var(--text-muted); }
@media (max-width: 640px) { .ptile-body { grid-template-columns: 1fr; } .ptile-score { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; } }
.scope-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } @media (max-width: 860px) { .scope-cols--2 { grid-template-columns: 1fr; } }

/* Gainflow Medical pain tiles */
.mtile { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid rgba(226,110,83,.35); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mtile[hidden] { display: none; }
.mtile.t1 { border-top-color: var(--coral); }
.mtile.t2 { border-top-color: rgba(226,110,83,.6); }
.mtile .tier { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--text-muted); border-radius: 3px; padding: 2px 6px; margin-left: auto; }
.mtile.t1 .tier { color: var(--coral-text); border-color: var(--coral); }
.mtile .rank { font-family: var(--font-data); font-weight: 600; font-size: 13px; color: var(--text-muted); }
.mtile .tname { margin-top: 2px; }
.mtile__meta { margin: 0; font-size: 13px; line-height: 19px; color: var(--text-secondary); }
.mtile__meta span { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.offers + .part-head { margin-top: 36px; }
.offer__body ul li { font-size: 14px; }
.offers--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } @media (max-width: 960px) { .offers--2 { grid-template-columns: 1fr; } }

/* Collapse the main menu earlier: six items need the room */
@media (max-width: 1180px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; display: none; }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav ul a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav .btn { margin-top: 16px; text-align: center; }
}
