/* The Bid Desk — shared stylesheet (home, services, blog)
   Light theme: white page, cool plum-tinted neutrals (no cream), plum ink,
   gold reserved for the primary action. Dark plum appears in three places
   only: the bid-economics band, the lead service card and the footer. */

@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/SchibstedGrotesk-Variable.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --plum-950: #1F1424;
  --plum-900: #2E1D33;
  --plum-800: #3A2640;
  --ink:      #2E1D33;
  --text:     #463A4D;
  --muted:    #675A6E;
  --accent:   #6E3F77;
  --accent-600: #57305F;
  --accent-50:  #F4EFF6;
  --gold:     #DDB945;
  --gold-2:   #EDD07A;
  --gold-50:  #FBF4DE;
  --gold-ink: #6B5410;

  /* Surfaces: white and a cool plum-grey, never beige */
  --paper:  #FFFFFF;
  --tint:   #F6F4F8;
  --line:   #E6E1EA;
  --line-2: #D3CAD8;

  /* On dark bands */
  --on-dark:       #FFFFFF;
  --on-dark-body:  #DCD0E0;
  --on-dark-muted: #BBAAC1;
  --on-dark-line:  rgba(255, 255, 255, 0.14);

  /* Verdicts */
  --go:      #17754A;
  --go-bg:   #E6F3EC;
  --warn:    #7A4B00;
  --warn-bg: #FBF0D9;
  --stop:    #B42318;
  --stop-bg: #FCEBE9;

  --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-card: 14px;
  --r-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(46, 29, 51, 0.05), 0 2px 6px -2px rgba(46, 29, 51, 0.06);
  --shadow-md: 0 1px 2px rgba(46, 29, 51, 0.06), 0 6px 12px -6px rgba(46, 29, 51, 0.18);
  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--line-2) var(--paper); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--paper); caret-color: var(--accent); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-2); color: var(--ink); }

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.5rem + 3.8vw, 4.25rem); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem); line-height: 1.1; letter-spacing: -0.028em; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.012em; }
p { text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-600); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .svc-feature :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-2); }

/* Figures: lining numerals everywhere numbers carry meaning */
.ledger dd, .proof .fig, .case-facts, .step-num, .chip b, .creds dt { font-variant-numeric: lining-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-tight { padding: clamp(56px, 6vw, 80px) 0; }
.tint { background: var(--tint); }
.dark { background: var(--plum-900); color: var(--on-dark-body); }
.dark h1, .dark h2, .dark h3, .dark h4, .dark strong { color: var(--on-dark); }
.dark a:not(.btn) { color: var(--gold-2); }
.dark a:not(.btn):hover { color: #fff; }

.lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.6; color: var(--text); max-width: 60ch; }
.dark .lead { color: var(--on-dark-body); }
.small { font-size: 0.875rem; line-height: 1.55; color: var(--muted); }
.note { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.note .icon { width: 14px; height: 14px; }
.dark .note { color: var(--on-dark-muted); }

/* Section header: one left edge, heading over intro */
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.head .lead { margin-top: 16px; }

.skip-link { position: absolute; left: 12px; top: -100px; z-index: 300; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-md); }
.skip-link:focus { top: 12px; }
.icon { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.anchor { display: block; position: relative; top: calc(-1 * (var(--nav-h) + 24px)); visibility: hidden; }

/* ── Buttons & links ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 0.9375rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.btn .icon { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
.btn:hover .icon { transform: translateX(2px); }
.btn-gold { background: var(--gold); color: var(--plum-900); box-shadow: 0 1px 2px rgba(46,29,51,.16), inset 0 -1px 0 rgba(46,29,51,.12); }
.btn-gold:hover { background: var(--gold-2); color: var(--plum-900); transform: translateY(-1px); box-shadow: 0 4px 10px -4px rgba(46,29,51,.30), inset 0 -1px 0 rgba(46,29,51,.12); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.dark .btn-ghost, .svc-feature .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.dark .btn-ghost:hover { border-color: #fff; color: #fff; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link .icon { width: 16px; height: 16px; transition: transform 200ms var(--ease); }
.link:hover { text-decoration: underline; }
.link:hover .icon { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* ── Avatar & byline ── */
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; flex: none; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold); background: var(--tint); }
.tint .avatar { box-shadow: 0 0 0 3px var(--tint), 0 0 0 4px var(--gold); }
.byline { display: flex; align-items: center; gap: 14px; }
.byline strong { display: block; font-size: 0.9375rem; }
.byline span { display: block; font-size: 0.8125rem; color: var(--muted); }

/* ── Cards & grids ── */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); padding: clamp(22px, 2.6vw, 30px); }
a.card { display: block; text-decoration: none; color: var(--text); transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease); }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); color: var(--text); }
.card h3 { font-size: 1.25rem; letter-spacing: -0.018em; }
.card p { margin-top: 8px; font-size: 1rem; }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 0.8125rem; font-weight: 600; color: var(--accent-600); background: var(--accent-50); border-radius: 999px; padding: 5px 12px; }
.badge-gold { color: var(--gold-ink); background: var(--gold-50); }

/* ── Navigation (light) ── */
.site-nav { position: sticky; top: 0; z-index: 200; background: rgba(255, 255, 255, 0.9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--nav-h); }
.wordmark { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; }
.wordmark:hover { color: var(--ink); }
.wordmark .dot { color: var(--gold); }
.site-footer .wordmark, .site-footer .wordmark:hover { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px; color: var(--text); text-decoration: none; font-size: 0.9375rem; font-weight: 500; transition: color 150ms, background-color 150ms; }
.nav-links a:hover { color: var(--ink); background: var(--tint); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-links .has-menu { position: relative; }
.nav-links .menu { display: none; position: absolute; left: 0; top: 100%; min-width: 230px; padding: 8px; margin: 0; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 30px -18px rgba(46,29,51,.28); z-index: 60; }
.nav-links .has-menu:hover > .menu, .nav-links .has-menu:focus-within > .menu { display: block; }
.nav-links .menu a { display: flex; width: 100%; border-radius: 8px; white-space: nowrap; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta { min-height: 40px; padding: 0 18px; font-size: 0.875rem; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle:hover { background: var(--tint); }
.nav-toggle .icon { width: 22px; height: 22px; stroke: var(--ink); color: var(--ink); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-panel { display: none; }
@media (max-width: 860px) {
  .nav-links, .nav-right .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px; box-shadow: 0 18px 30px -18px rgba(46,29,51,.28); }
  .nav-panel.open { display: block; }
  .nav-panel ul { list-style: none; padding: 0; }
  .nav-panel li a { display: flex; align-items: center; min-height: 52px; color: var(--ink); text-decoration: none; font-size: 1.0625rem; font-weight: 500; border-bottom: 1px solid var(--line); }
  .nav-panel .btn { width: 100%; margin-top: 20px; }
  .nav-panel summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; color: var(--ink); font-size: 1.0625rem; font-weight: 500; border-bottom: 1px solid var(--line); cursor: pointer; list-style: none; }
  .nav-panel summary::-webkit-details-marker { display: none; }
  .nav-panel summary .icon { width: 18px; height: 18px; transition: transform 150ms; }
  .nav-panel details[open] > summary .icon { transform: rotate(45deg); }
  .nav-panel details ul { padding: 4px 0 8px 16px; border-bottom: 1px solid var(--line); }
  .nav-panel details li a { min-height: 44px; font-size: 1rem; border-bottom: 0; color: var(--text); }
}

/* ── Hero (light) ── */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 0.09em; text-underline-offset: 0.13em; text-decoration-skip-ink: none; }
.hero .lead { margin-top: 24px; max-width: 52ch; }
.hero .actions { margin-top: 32px; }
.hero-fine { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }

.ticks { list-style: none; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--ink); text-wrap: wrap; }
.ticks .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--go); }
.dark .ticks li, .svc-feature .ticks li { color: #fff; }
.dark .ticks .icon, .svc-feature .ticks .icon { color: var(--gold); }

.book-card { background: var(--paper); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-md); }
.book-card .badge { margin-bottom: 16px; }
.book-card h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.book-card > p { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }
.book-card .ticks { margin: 22px 0 24px; }
.book-card .ticks li { font-size: 0.9375rem; }
.book-card .btn { width: 100%; }
.book-card .small { margin-top: 12px; text-align: center; }

/* ── Proof figures ── */
.proof .card { display: flex; flex-direction: column; box-shadow: none; }
.proof .fig { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem); font-weight: 600; letter-spacing: -0.035em; color: var(--accent-600); line-height: 1; }
.proof .card p { margin-top: 12px; }
.sources { margin-top: 20px; }

/* ── Pain list ── */
.pain-lead { margin-top: clamp(40px, 5vw, 56px); margin-bottom: 16px; font-size: 1.25rem; }
.pain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; list-style: none; padding: 0; }
.pain li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 1rem; line-height: 1.45; }
.pain .icon { width: 20px; height: 20px; margin-top: 1px; color: var(--stop); }
.pain-close { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 22px 26px; border-radius: var(--r-card); background: var(--accent-50); border: 1px solid #E3D6E7; }
.pain-close p { font-size: 1.125rem; color: var(--ink); font-weight: 600; max-width: 46ch; }

/* ── Bid economics band (dark) ── */
.track { margin-top: 8px; }
.track ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.track ol::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--on-dark-line); }
.track li { position: relative; padding-top: 32px; font-size: 0.9375rem; font-weight: 500; color: #fff; }
.track li::before { content: ''; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--plum-900); border: 2px solid var(--on-dark-muted); }
.track li span { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--on-dark-muted); margin-top: 2px; }
.track li.pays::before { background: var(--gold); border-color: var(--gold); }
.track li.pays span { color: var(--gold-2); }

.worth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--on-dark-line); }
.worth-title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.024em; }
.worth > div > p { margin-top: 12px; }
.worth .note { margin-top: 16px; }
.worth .actions { margin-top: 28px; }
.ledger { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: var(--r-card); box-shadow: 0 2px 4px rgba(0,0,0,.12), 0 20px 40px -20px rgba(0,0,0,.5); overflow: hidden; }
.ledger-col { padding: 24px; }
.ledger-col + .ledger-col { border-left: 1px solid var(--line); background: var(--tint); }
.ledger h4 { font-size: 0.875rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.ledger dl { margin-top: 10px; }
.ledger dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.ledger dt { color: var(--text); }
.ledger dd { font-weight: 600; color: var(--ink); text-align: right; }
.ledger .total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 2px; padding-top: 14px; }
.ledger .total dt { font-weight: 600; color: var(--ink); }
.ledger .total dd { font-size: 1.5rem; letter-spacing: -0.02em; }
.ledger dd.neg { color: var(--stop); }
.verdict { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; font-size: 0.9375rem; padding: 8px 12px; border-radius: var(--r-sm); }
.verdict .icon { width: 16px; height: 16px; }
.verdict-go { color: var(--go); background: var(--go-bg); }
.verdict-warn { color: var(--warn); background: var(--warn-bg); }
.verdict-stop { color: var(--stop); background: var(--stop-bg); }

/* ── How it works ── */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.steps p { color: var(--muted); }
.step-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--plum-900); color: #fff; font-weight: 600; font-size: 0.9375rem; margin-bottom: 18px; }
.steps li.final { border-color: #E8D9A6; background: var(--gold-50); }
.steps li.final .step-num { background: var(--gold); color: var(--plum-900); }

/* ── Four RFPs (cases) ── */
.cases .case { display: flex; flex-direction: column; }
.case-facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.case-facts li { font-size: 0.8125rem; font-weight: 600; color: var(--accent-600); background: var(--accent-50); border-radius: 999px; padding: 4px 11px; }
.case h3 { font-size: 1.3125rem; letter-spacing: -0.018em; }
.case > p { margin-top: 8px; }
.case-call { padding-top: 20px; }
.case-call .verdict { margin-top: 0; }
.case-call p { margin-top: 10px; color: var(--ink); font-weight: 500; }
.situations-foot { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }

/* ── Services ── */
.svc-feature { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 48px; align-items: center; background: var(--plum-900); color: var(--on-dark-body); border: 0; box-shadow: var(--shadow-md); }
.svc-feature h3 { color: #fff; font-size: 1.625rem; }
.svc-feature p { color: var(--on-dark-body); }
.svc-feature .ticks li { font-size: 0.9375rem; }
.svc-feature .actions { margin-top: 24px; }
.svc-feature .badge { margin-bottom: 14px; }
.svc-grid { margin-top: 24px; }
.svc-card { display: flex !important; flex-direction: column; }
.svc-card .meta { margin-top: 16px; font-size: 0.875rem; color: var(--muted); }
.svc-card .more { margin-top: auto; padding-top: 18px; }

/* ── Fit ── */
.fit .card { box-shadow: none; }
.fit h3 { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; margin-bottom: 14px; }
.fit h3 .icon { width: 22px; height: 22px; }
.fit-yes h3 .icon { color: var(--go); }
.fit-no h3 .icon { color: var(--muted); }
.fit ul { list-style: none; padding: 0; }
.fit li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 1rem; color: var(--ink); }

/* ── About (single column) ── */
.about-top { display: flex; align-items: center; gap: 20px; margin-bottom: clamp(28px, 4vw, 40px); }
.about-top h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
.about-meta { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }
.about-avatar { width: 80px; height: 80px; }
.about-body { max-width: 760px; }
.about-story .lead { margin-top: 0; }
.about-story > p + p { margin-top: 14px; max-width: 64ch; }
.creds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.creds div { padding: 18px 20px 18px 0; }
.creds div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.creds dt { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); line-height: 1.15; }
.creds dd { font-size: 0.9375rem; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.about-story .actions { margin-top: 32px; }

/* ── FAQ ── */
.faq { max-width: 820px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.faq details + details { margin-top: 10px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; font-weight: 600; font-size: 1.0625rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-600); }
.faq summary .icon { width: 20px; height: 20px; color: var(--muted); transition: transform 220ms var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--accent); }
.faq .answer { padding: 0 22px 20px; max-width: 68ch; }
.faq .answer ul { margin-top: 8px; padding-left: 1.2em; }
.faq .answer li { padding: 3px 0; }

/* ── Contact (light) ── */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-grid h2 + .lead { margin-top: 16px; }
.contact-grid .ticks { margin-top: 28px; }
.talk { margin-top: 28px; }
.talk strong { margin-right: 6px; }
.form-panel { background: var(--paper); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 3.5vw, 36px); box-shadow: var(--shadow-md); }
.form-panel h3 { font-size: 1.375rem; }
.form-panel > p { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.field { display: grid; gap: 8px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field .req { color: var(--stop); margin-left: 2px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #8C7E93; border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.4; transition: border-color 150ms, box-shadow 150ms; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23675A6E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field textarea { min-height: 110px; resize: vertical; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(110,63,119,.2); }
.field [aria-invalid="true"] { border-color: var(--stop); }
.field-error { font-size: 0.8125rem; color: var(--stop); font-weight: 500; }
.field-error:empty { display: none; }
.form-foot { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-foot .btn { min-width: 200px; }
.form-status { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--go); }
.form-status.err { color: var(--stop); }
.form-status .icon { width: 18px; height: 18px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(46,29,51,.25); border-top-color: var(--plum-900); animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── CTA band ── */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 56px; }
.cta-band h2 { max-width: 20ch; }
.cta-band .lead { margin-top: 14px; }

/* ── Footer (dark) ── */
.site-footer { background: var(--plum-950); color: var(--on-dark-muted); padding: 64px 0 40px; font-size: 0.9375rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 2fr)); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--on-dark-line); }
.footer-top p { margin-top: 14px; max-width: 38ch; }
.footer-col h2 { font-size: 0.875rem; font-weight: 600; color: #fff; letter-spacing: 0; }
.footer-col ul { list-style: none; padding: 0; margin-top: 14px; display: grid; gap: 4px; }
.footer-col a { color: var(--on-dark-body); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; font-size: 0.875rem; }

/* ── Page hero (services, blog), light ── */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: 20px; }
.page-hero .actions { margin-top: 30px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin-bottom: 20px; font-size: 0.875rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .6; }
.crumbs a { color: var(--text); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Services page */
.picker a.card { display: flex; flex-direction: column; gap: 10px; }
.picker q { quotes: '“' '”'; font-size: 1.0625rem; font-weight: 500; color: var(--ink); line-height: 1.4; }
.picker .link { margin-top: auto; font-size: 0.9375rem; color: var(--accent); }
.svc-detail ~ .svc-detail { margin-top: 24px; }
.svc-detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 48px; align-items: start; scroll-margin-top: calc(var(--nav-h) + 24px); }
.svc-detail h2 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); }
.svc-detail .badge + h2 { margin-top: 14px; }
.svc-outcome { margin-top: 10px; font-size: 1.125rem; font-weight: 500; color: var(--ink); line-height: 1.45; }
.svc-detail .body { margin-top: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { display: inline-flex; flex-direction: column; padding: 10px 14px; border-radius: 10px; background: var(--tint); border: 1px solid var(--line); }
.chip small { font-size: 0.75rem; color: var(--muted); }
.chip b { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.svc-side { background: var(--tint); border-radius: 12px; padding: 22px; }
.svc-side h3 { font-size: 1rem; margin-bottom: 12px; }
.svc-side .ticks li { font-size: 0.9375rem; }
.svc-side .best { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); font-size: 0.9375rem; }
.svc-side .btn { margin-top: 20px; width: 100%; }
.engage { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.engage li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.engage .step-num { background: var(--gold); color: var(--plum-900); }
.engage h3 { font-size: 1.1875rem; }
.engage p { margin-top: 8px; font-size: 0.9375rem; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.post-card { display: flex !important; flex-direction: column; gap: 12px; }
.post-card .badge { align-self: flex-start; }
.post-card h2 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.25; letter-spacing: -0.02em; }
.post-card p { margin-top: 0; }
.post-card .post-meta { margin-top: auto; padding-top: 8px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 0.875rem; color: var(--muted); }
.post-meta span + span::before { content: ''; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; vertical-align: middle; margin-right: 12px; }
.post-card:hover h2 { color: var(--accent-600); }

.article-head .wrap > *, .article-body > * { max-width: 760px; }
.article-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem); line-height: 1.08; }
.article-head .excerpt { margin-top: 18px; font-size: 1.125rem; color: var(--text); max-width: 60ch; }
.article-head .byline { margin-top: 28px; }
.prose { padding-top: 48px; padding-bottom: 24px; font-size: 1.0625rem; line-height: 1.72; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.022em; margin-top: 2.1em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { background: var(--tint); border-radius: 10px; padding: 16px 20px; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 600; background: var(--tint); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose code { font-size: 0.9em; background: var(--tint); padding: 0.1em 0.35em; border-radius: 4px; }
.post-cta { margin: 32px 0 0; padding: clamp(24px, 4vw, 36px); border-radius: 16px; }
.post-cta h2 { font-size: 1.5rem; }
.post-cta p { margin-top: 8px; max-width: 54ch; }
.post-cta .actions { margin-top: 22px; }
.related { padding: clamp(56px, 7vw, 88px) 0; }

/* Mobile booking bar */
.book-bar { display: none; }
@media (max-width: 860px) {
  .js .book-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform 300ms var(--ease); }
  .js .book-bar.show { transform: none; }
  .book-bar .btn { width: 100%; }
  .js body { padding-bottom: 76px; }
  .footer-col a, .link { min-height: 44px; }
}

/* ── Responsive ── */
@media (max-width: 1000px) {
  .hero-grid, .worth, .contact-grid, .svc-feature, .svc-detail { grid-template-columns: 1fr; }
  .book-card { max-width: 520px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .engage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track ol { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 28px; }
  .track ol::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  /* Phones: one hero button, then straight to the problem and the worked example */
  .hero .book-card, .hero .btn-ghost { display: none; }
  .g2, .g3, .pain, .post-grid { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
  .creds div, .creds div + div { padding: 14px 0; border-left: 0; }
  .creds div + div { border-top: 1px solid var(--line); }
  .ledger { grid-template-columns: 1fr; }
  .ledger-col + .ledger-col { border-left: 0; border-top: 1px solid var(--line); }
  .form-grid { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
  .track ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .g4, .steps, .engage { grid-template-columns: 1fr; }
  .hero .actions .btn, .page-hero .actions .btn, .cta-band .btn, .pain-close .btn, .worth .actions .btn, .about-story .actions .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .about-top { align-items: flex-start; }
  .about-avatar { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) { .btn, a.card, .js .book-bar { transition: none; } }
@media print { .site-nav, .nav-panel, .form-panel, .site-footer, .book-bar { display: none; } .dark { background: #fff; color: #000; } }
