/* Adstroke — site styles */
:root {
  /* Quiet luxury palette */
  --paper: #F8F5EF;        /* ivory */
  --mist: #F0EBE2;         /* stone */
  --mist-2: #E6DFD3;       /* linen */
  --line: #DED6C9;         /* hairline */
  --ink: #1E1A16;          /* espresso */
  --ink-2: #574E45;        /* walnut */
  --ink-3: #857B70;        /* taupe */
  --accent: #1E1A16;       /* primary buttons */
  --accent-hover: #3A332C;
  --accent-soft: #EEE7DB;
  --on-accent: #F8F5EF;
  --link: #7A5A36;         /* bronze */
  --link-hover: #5C4327;
  --brass: #A88A5A;        /* champagne brass */
  --brass-soft: #F3ECDF;
  --gain: #4F6B52;         /* sage */
  --gain-soft: #E7ECE3;
  --error: #9A3B2C;
  --band: #1E1A16;
  --band-text: #F1ECE3;
  --band-muted: #B9AE9F;
  --band-line: #3A332C;
  --loden: #2F3A32;        /* deep loden green */
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --ui: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --shadow: 0 24px 48px -28px rgba(46, 34, 22, .35);
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141210; --mist: #1C1916; --mist-2: #24201C; --line: #342E28;
    --ink: #F1ECE3; --ink-2: #C9BFB2; --ink-3: #9A8F82;
    --accent: #E9DFCF; --accent-hover: #FFFFFF; --accent-soft: #2A251F; --on-accent: #141210;
    --link: #D2B07E; --link-hover: #E6C897; --brass: #C2A16B; --brass-soft: #2A241B;
    --gain: #9DB79C; --gain-soft: #1E2A20; --error: #E08A78;
    --band: #1C1916; --band-text: #F1ECE3; --band-muted: #A89D90; --band-line: #342E28; --loden: #26302A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #141210; --mist: #1C1916; --mist-2: #24201C; --line: #342E28;
  --ink: #F1ECE3; --ink-2: #C9BFB2; --ink-3: #9A8F82;
  --accent: #E9DFCF; --accent-hover: #FFFFFF; --accent-soft: #2A251F; --on-accent: #141210;
  --link: #D2B07E; --link-hover: #E6C897; --brass: #C2A16B; --brass-soft: #2A241B;
  --gain: #9DB79C; --gain-soft: #1E2A20; --error: #E08A78;
  --band: #1C1916; --band-text: #F1ECE3; --band-muted: #A89D90; --band-line: #342E28; --loden: #26302A;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 90px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.72; font-weight: 400;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 500; }
h4 { font-family: var(--ui); color: var(--ink); margin: 0; font-weight: 600; font-size: 1.05rem; letter-spacing: 0; }
h1 { font-size: clamp(2.8rem, 6.2vw, 5.2rem); line-height: 1.0; letter-spacing: -.015em; }
h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; letter-spacing: -.01em; }
h3 { font-size: clamp(1.5rem, 2.1vw, 1.8rem); line-height: 1.15; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: 8px; transform: translateY(-300%); background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { transform: none; }
.lede { font-size: clamp(1.15rem, 1.5vw, 1.3rem); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-3); }
.ui { font-family: var(--ui); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--ui); font-weight: 500; font-size: 1rem; line-height: 1; letter-spacing: .01em;
  padding: 17px 26px; border-radius: 4px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 11px 16px; font-size: .95rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.85rem; letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button {
  font-family: var(--ui); font-size: 1rem; color: var(--ink-2); text-decoration: none;
  background: none; border: 0; padding: 10px 12px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.nav-links a:hover, .nav-links button:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--mist); }
.caret { width: 10px; height: 10px; transition: transform .2s; }
.has-menu.open .caret { transform: rotate(180deg); }
.menu {
  position: absolute; top: calc(100% + 8px); left: -12px; width: 560px; padding: 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
}
.has-menu.open .menu { display: grid; }
.menu a { display: block; padding: 12px 14px; border-radius: 12px; }
.menu a strong { display: block; color: var(--ink); font-weight: 600; font-size: 1rem; }
.menu a span { display: block; color: var(--ink-3); font-size: .88rem; margin-top: 2px; line-height: 1.35; }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 42px; cursor: pointer; color: var(--ink); }
@media (max-width: 1020px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links, .nav-cta { display: none; }
  .nav.open + .mobile-nav { display: block; }
}
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 10px 0 24px; max-height: calc(100vh - 80px); overflow: auto; }
.mobile-nav a { display: block; font-family: var(--ui); font-size: 1.15rem; color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { display: flex; margin-top: 18px; width: 100%; color: var(--on-accent); border: 0; padding: 16px 22px; }
.mobile-nav small { display: block; font-family: var(--ui); color: var(--ink-3); margin-top: 18px; font-size: .9rem; }

/* Sections */
.section { padding-block: clamp(72px, 9vw, 120px); }
.section-tight { padding-block: clamp(48px, 6vw, 72px); }
.section-mist { background: var(--mist); }
.section-band { background: var(--band); color: var(--band-text); }
.section-band h2, .section-band h3 { color: var(--band-text); }
.section-band .lede, .section-band p { color: var(--band-muted); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 18px; }

/* Hero */
.hero { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin: 24px 0 24px; max-width: 13ch; font-size: clamp(2.9rem, 5.6vw, 4.9rem); }
.hero .lede { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-lg); }
.float-card {
  position: absolute; left: -32px; bottom: 36px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 22px 18px; box-shadow: var(--shadow); font-family: var(--ui); min-width: 230px;
}
.float-card small { display: block; color: var(--ink-3); font-size: .85rem; }
.float-card b { display: block; font-family: var(--display); font-weight: 600; font-size: 2.3rem; line-height: 1.1; color: var(--ink); margin: 2px 0; }
.float-card .up { color: var(--gain); font-size: .88rem; font-weight: 500; }
@media (max-width: 900px) { .float-card { left: 12px; bottom: 12px; min-width: 0; padding: 12px 16px; } .float-card b { font-size: 1.8rem; } }
.hero-note { margin-top: 28px; font-family: var(--ui); font-size: .95rem; color: var(--ink-3); max-width: 46ch; }
.hero-note b { color: var(--ink-2); font-weight: 600; }
.switch {
  display: inline-flex; padding: 4px; background: var(--mist); border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--ui);
}
.switch button {
  border: 0; background: transparent; color: var(--ink-2); font: inherit; font-size: .98rem; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s;
}
.switch button[aria-pressed="true"] { background: var(--paper); outline: 1px solid var(--line); color: var(--ink); box-shadow: 0 2px 8px rgba(46,34,22,.10); }
[data-aud-show]:not(.aud-on) { display: none !important; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero h1 { max-width: 16ch; } }

/* Hero load moment */
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: rise .9s cubic-bezier(.2,.7,.2,1) both .1s; }
  .hero-photo .float-card { animation: rise .8s cubic-bezier(.2,.7,.2,1) both .55s; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.985); } to { opacity: 1; transform: none; } }
}

/* Platform strip */
.platforms { border-block: 1px solid var(--line); padding-block: 22px; }
.platforms .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-family: var(--ui); color: var(--ink-3); font-size: .98rem; }
.platforms strong { color: var(--ink-2); font-weight: 600; margin-right: 6px; }

/* Channel explorer */
.explorer { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tablist { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.tab {
  text-align: left; background: none; border: 0; border-left: 3px solid transparent; margin-left: -2.5px;
  padding: 16px 20px; cursor: pointer; font-family: var(--ui); color: var(--ink-3);
}
.tab strong { display: block; font-family: var(--display); font-size: 1.65rem; letter-spacing: 0; color: inherit; font-weight: 600; line-height: 1.15; }
.tab span { display: block; font-size: .95rem; margin-top: 2px; }
.tab[aria-selected="true"] { border-left-color: var(--accent); color: var(--ink); }
.tab:hover { color: var(--ink); }
.tabpanel { background: var(--mist); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); }
.tabpanel img { border-radius: var(--r-md); width: 100%; margin-bottom: 26px; }
.tabpanel h3 { margin-bottom: 12px; }
.tabpanel ul { margin: 0 0 22px; padding-left: 1.1em; color: var(--ink-2); }
.tabpanel li { margin-bottom: 6px; }
@media (max-width: 860px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .tablist { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 2px solid var(--line); scrollbar-width: none; }
  .tab { border-left: 0; border-bottom: 3px solid transparent; margin: 0 0 -2.5px; padding: 12px 14px; white-space: nowrap; }
  .tab span { display: none; }
  .tab strong { font-size: 1.05rem; }
  .tab[aria-selected="true"] { border-bottom-color: var(--accent); }
}

/* Two tracks */
.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.track { padding: clamp(28px, 4vw, 48px); }
.track + .track { border-left: 1px solid var(--line); }
.track h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 14px; }
.track dl { margin: 26px 0 30px; }
.track dt { font-family: var(--ui); font-weight: 600; color: var(--ink); margin-top: 16px; }
.track dd { margin: 4px 0 0; color: var(--ink-2); }
@media (max-width: 860px) { .tracks { grid-template-columns: minmax(0, 1fr); } .track + .track { border-left: 0; border-top: 1px solid var(--line); } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 26px 26px 0 0; border-top: 2px solid var(--band-muted); position: relative; }
.section-band .steps li { border-top-color: var(--band-line); }
.steps li::before {
  content: counter(s); position: absolute; top: -17px; left: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--band); border: 1px solid var(--brass); color: var(--brass); font-family: var(--display); font-weight: 600; display: grid; place-items: center; font-size: 1.15rem;
}
.steps .when { font-family: var(--ui); font-size: .9rem; color: var(--brass); display: block; margin: 10px 0 6px; }
.steps h3 { font-size: 1.6rem; margin-bottom: 10px; }
.steps p { font-size: 1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Case studies */
.cases { display: grid; gap: clamp(40px, 6vw, 72px); }
.case { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.case:nth-child(even) .case-art { order: 2; }
.case-art img { border-radius: var(--r-lg); width: 100%; }
.case-meta { font-family: var(--ui); color: var(--ink-3); font-size: .95rem; margin-bottom: 10px; }
.case h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 14px; }
.case-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.case-stats b { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 3vw, 2.5rem); letter-spacing: 0; color: var(--ink); line-height: 1.1; }
.case-stats span { font-family: var(--ui); font-size: .88rem; color: var(--ink-3); line-height: 1.3; display: block; margin-top: 4px; }
@media (max-width: 860px) { .case { grid-template-columns: minmax(0, 1fr); } .case:nth-child(even) .case-art { order: 0; } }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.calc-in { padding: clamp(24px, 3.5vw, 40px); }
.calc-out { padding: clamp(24px, 3.5vw, 40px); background: var(--band); color: var(--band-text); display: flex; flex-direction: column; }
.field { margin-bottom: 20px; }
.field label, .field .label { display: flex; justify-content: space-between; gap: 12px; font-family: var(--ui); font-weight: 600; font-size: .98rem; margin-bottom: 8px; color: var(--ink); }
.field label output { color: var(--link); font-variant-numeric: tabular-nums; }
.field input[type="range"] { width: 100%; accent-color: var(--brass); height: 28px; }
.field input[type="number"], .field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea {
  width: 100%; font: inherit; font-family: var(--ui); font-size: 1.02rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .hint { font-family: var(--ui); font-size: .85rem; color: var(--ink-3); margin-top: 6px; }
.field .err { font-family: var(--ui); font-size: .88rem; color: var(--error); margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select { border-color: var(--error); }
.calc-big { font-family: var(--display); font-size: clamp(3rem, 6vw, 4.8rem); font-weight: 500; letter-spacing: 0; line-height: 1; margin: 6px 0 4px; color: var(--band-text); font-variant-numeric: tabular-nums; }
.calc-out .lbl { font-family: var(--ui); color: var(--band-muted); font-size: .98rem; }
.calc-rows { margin: 28px 0; border-top: 1px solid var(--band-line); }
.calc-rows div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--band-line); font-family: var(--ui); font-variant-numeric: tabular-nums; }
.calc-rows dt { color: var(--band-muted); }
.calc-rows dd { margin: 0; color: var(--band-text); font-weight: 600; }
.calc-out .fine { font-size: .9rem; color: var(--band-muted); margin-top: auto; }
.calc-out .btn-primary { align-self: flex-start; margin-bottom: 22px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; padding: 3px; margin-bottom: 24px; font-family: var(--ui); }
.seg button { border: 0; background: none; font: inherit; font-weight: 600; font-size: .95rem; padding: 9px 14px; border-radius: 7px; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
@media (max-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr); } }

/* Promise list */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); }
.promises h3 { font-size: 1.6rem; margin-bottom: 8px; }
.promises p { color: var(--ink-2); font-size: 1.02rem; }
.promises > div { border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 860px) { .promises { grid-template-columns: minmax(0, 1fr); } }

/* Quotes */
.quote { max-width: 900px; }
.quote blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.25; letter-spacing: -.02em; color: var(--band-text); }
.quote figcaption { margin-top: 22px; font-family: var(--ui); color: var(--band-muted); }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: 0; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.7rem; font-weight: 400; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); max-width: 70ch; }

/* Lead form */
.lead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.lead-copy h2 { margin-bottom: 18px; }
.lead-copy ol { padding-left: 1.2em; color: var(--ink-2); }
.lead-copy ol li { margin-bottom: 10px; }
.lead-contact { margin-top: 26px; font-family: var(--ui); color: var(--ink-2); font-size: 1rem; }
.lead-contact a { color: var(--ink); }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 38px); box-shadow: var(--shadow); }
.progress { display: flex; gap: 6px; margin-bottom: 24px; }
.progress span { flex: 1; height: 5px; border-radius: 3px; background: var(--mist-2); transition: background .3s; }
.progress span.on { background: var(--accent); }
.step-label { font-family: var(--ui); font-size: .92rem; color: var(--ink-3); margin-bottom: 6px; }
.form-step h3 { margin-bottom: 20px; }
.form-step[hidden] { display: none; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: block; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer;
  font-family: var(--ui); font-weight: 600; color: var(--ink); height: 100%; transition: border-color .15s, background .15s;
}
.choice label small { display: block; font-weight: 400; color: var(--ink-3); font-size: .86rem; margin-top: 2px; }
.choice input:checked + label { border-color: var(--accent); background: var(--accent-soft); }
.choice input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-done { text-align: left; }
.form-done h3 { margin: 10px 0 12px; }
.check { width: 52px; height: 52px; border-radius: 50%; background: var(--gain-soft); display: grid; place-items: center; }
.hp { position: absolute; left: -5000px; }
.form-msg { font-family: var(--ui); color: var(--error); font-size: .95rem; margin-top: 12px; }
@media (max-width: 860px) { .lead { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .choices, .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* Final CTA band */
.cta-band { background: var(--loden); color: #F1ECE3; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #F1ECE3; max-width: 18ch; }
.cta-band p { color: #C9C3B4; margin: 14px 0 0; max-width: 52ch; }
.cta-band .btn { background: #F1ECE3; color: #1E1A16; position: relative; }
.cta-band .btn:hover { background: var(--brass); color: #1E1A16; }
.cta-band svg.stroke { position: absolute; right: -40px; bottom: -30px; width: 420px; opacity: .5; pointer-events: none; }
@media (max-width: 760px) { .cta-band { grid-template-columns: minmax(0, 1fr); } }

/* Service page */
.page-hero { padding-block: clamp(32px, 5vw, 64px) clamp(48px, 6vw, 80px); }
.crumbs { font-family: var(--ui); font-size: .92rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-3); }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); max-width: 16ch; margin-bottom: 22px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.page-hero-art img { border-radius: var(--r-lg); width: 100%; }
.keyfacts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-family: var(--ui); font-size: .95rem; color: var(--ink-2); padding: 0; list-style: none; }
.keyfacts li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); margin-right: 8px; vertical-align: 1px; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } }

.article { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.toc { position: sticky; top: 100px; font-family: var(--ui); }
.toc p { font-weight: 600; color: var(--ink); margin-bottom: 10px; font-size: .98rem; }
.toc ol { list-style: none; padding: 0; margin: 0 0 22px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-3); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.active { color: var(--ink); border-left-color: var(--accent); }
.toc .btn { width: 100%; }
@media (max-width: 960px) { .article { grid-template-columns: minmax(0, 1fr); } .toc { position: static; display: none; } }

.prose { max-width: 72ch; }
.prose > section { padding-bottom: clamp(36px, 5vw, 56px); margin-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.prose > section:last-child { border-bottom: 0; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 20px; }
.prose h3 { margin: 32px 0 10px; font-size: 1.3rem; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose li strong { font-family: var(--ui); font-weight: 600; }
.callout { background: var(--brass-soft); border-radius: var(--r-md); padding: 20px 24px; margin: 26px 0; font-size: 1.05rem; }
.callout strong { font-family: var(--ui); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; margin: 24px 0; }
.feature-grid h4 { margin-bottom: 6px; }
.feature-grid p { font-size: 1.02rem; color: var(--ink-2); margin: 0; }
@media (max-width: 640px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--line); border-radius: var(--r-md); }
table { border-collapse: collapse; width: 100%; font-family: var(--ui); font-size: .98rem; min-width: 560px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--mist); font-weight: 600; color: var(--ink); letter-spacing: .01em; }
td { color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
.timeline { list-style: none; padding: 0; margin: 24px 0; }
.timeline li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.timeline li b { font-family: var(--ui); color: var(--link); font-weight: 600; }
.timeline li p { margin: 0; }
.timeline li h4 { margin-bottom: 4px; }
@media (max-width: 560px) { .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related a { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); background: var(--paper); transition: border-color .15s; }
.related a:hover { border-color: var(--accent); }
.related strong { font-family: var(--display); font-weight: 600; font-size: 1.5rem; display: block; margin-bottom: 6px; letter-spacing: -.01em; }
.related span { color: var(--ink-3); font-size: 1rem; }
@media (max-width: 760px) { .related { grid-template-columns: minmax(0, 1fr); } }

/* Footer */
.site-footer { background: var(--band); color: var(--band-muted); padding: 72px 0 40px; font-family: var(--ui); font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--band-text); font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--band-muted); text-decoration: none; }
.site-footer a:hover { color: var(--band-text); }
.site-footer .brand { color: var(--band-text); margin-bottom: 14px; }
.site-footer p { max-width: 36ch; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--band-line); margin-top: 48px; padding-top: 24px; font-size: .9rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sticky mobile CTA */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    transform: translateY(140%); transition: transform .3s;
  }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { width: 100%; box-shadow: var(--shadow); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Buttons and marks on dark bands */
.calc-out .btn-primary, .section-band .btn-primary { background: var(--band-text); color: var(--band); }
.calc-out .btn-primary:hover, .section-band .btn-primary:hover { background: var(--brass); color: #1E1A16; }
.brand-mark rect { fill: #1E1A16; }
.site-footer .brand-mark rect { fill: #2E2822; }
:root[data-theme="dark"] .brand-mark rect { fill: #2E2822; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-mark rect { fill: #2E2822; } }

/* Figures inside long pages */
.figure { margin: 32px 0 8px; }
.figure img { width: 100%; border-radius: var(--r-md); }
.figure figcaption { font-family: var(--ui); font-size: .92rem; color: var(--ink-3); margin-top: 10px; max-width: 60ch; }

/* Store showcase */
.showcase-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.showcase-nav { display: flex; gap: 10px; flex: none; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background .2s; }
.round-btn:hover { border-color: var(--ink); }
.round-btn[disabled] { opacity: .35; cursor: default; }
.showcase {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 12px); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none;
}
.showcase::-webkit-scrollbar { display: none; }
.showcase figure { margin: 0; scroll-snap-align: start; }
.showcase img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
.showcase figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 2px 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.showcase figcaption strong { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--ink); }
.showcase figcaption span { font-family: var(--ui); font-size: .92rem; color: var(--ink-3); text-align: right; }
@media (max-width: 700px) { .showcase { grid-auto-columns: 86%; gap: 16px; } .showcase-nav { display: none; } .showcase figcaption { flex-direction: column; gap: 2px; } .showcase figcaption span { text-align: left; } }
.toc a.btn { display: flex; justify-content: center; color: var(--on-accent); padding: 13px 16px; margin-left: 0; border-left: 0; font-size: .95rem; }
.toc a.btn:hover { color: var(--on-accent); }

/* Contact details */
address { font-style: normal; }
.site-footer address { margin-top: 10px; line-height: 1.6; }
.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.contact-cards > div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; }
.contact-cards h3 { margin-bottom: 10px; }
.contact-cards p, .contact-cards address { margin: 0 0 8px; font-size: 1.02rem; color: var(--ink-2); }
@media (max-width: 860px) { .contact-cards { grid-template-columns: minmax(0, 1fr); } }
.footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Legal pages */
.legal-links { display: flex; flex-direction: column; gap: 8px; }
.legal-links a { font-size: .95rem; color: var(--ink-3); }
.prose.legal h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.prose.legal > section { padding-bottom: 28px; margin-bottom: 28px; }

/* Thank-you page */
.thanks h1 { max-width: 20ch; }
.check.big { width: 64px; height: 64px; border-radius: 50%; background: var(--gain-soft); color: var(--gain); display: grid; place-items: center; margin-bottom: 26px; }
.thanks-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.thanks-grid h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.thanks-aside { background: var(--mist); border-radius: var(--r-lg); padding: 28px 30px; }
.thanks-aside h3 { margin-bottom: 10px; }
@media (max-width: 860px) { .thanks-grid { grid-template-columns: minmax(0, 1fr); } }

/* Invisible bridge so the menu stays open while the pointer crosses the gap */
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }


/* ---------- Responsive hardening ---------- */
html, body { overflow-x: clip; }
body { overflow-wrap: break-word; }
a[href^="mailto:"], address { overflow-wrap: anywhere; }
.article > *, .lead > *, .case > *, .hero-grid > *, .page-hero-grid > *, .explorer > *, .calc > *, .thanks-grid > * { min-width: 0; }
img, svg, video { max-width: 100%; }

/* Tablet */
@media (max-width: 1020px) {
  .nav { height: 66px; }
  .page-hero h1 { max-width: 20ch; }
  .section-head { max-width: 640px; }
}
@media (min-width: 701px) and (max-width: 1020px) {
  .promises { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
}

/* Phones */
@media (max-width: 700px) {
  body { font-size: 1rem; line-height: 1.68; }
  .section { padding-block: 64px; }
  .section-tight { padding-block: 40px; }
  .hero { padding-top: 20px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.1rem); margin: 18px 0 16px; }
  .page-hero { padding-block: 24px 40px; }
  .page-hero h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); }
  h2 { font-size: clamp(1.9rem, 8.4vw, 2.4rem); }
  .lede { font-size: 1.08rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .switch { width: 100%; }
  .switch button { flex: 1; padding: 10px 8px; font-size: .92rem; }
  .keyfacts { flex-direction: column; gap: 8px; }
  .case-stats { gap: 10px; }
  .case-stats b { font-size: 1.7rem; }
  .case-stats span { font-size: .8rem; }
  .tabpanel { padding: 16px; border-radius: 12px; }
  .track { padding: 26px 22px; }
  .calc-in, .calc-out { padding: 22px 20px; }
  .calc-big { font-size: 3rem; }
  .calc-rows div { font-size: .95rem; }
  .form-card { padding: 22px 18px; }
  .form-nav { flex-wrap: wrap; }
  .form-nav .btn { flex: 1; }
  .cta-band { padding: 30px 22px; }
  .cta-band .btn { width: 100%; }
  .faq summary { font-size: 1.3rem; padding: 18px 36px 18px 0; }
  .prose h2 { font-size: 1.7rem; }
  .prose h3 { font-size: 1.25rem; }
  .callout { padding: 16px 18px; }
  .timeline li { padding: 14px 0; }
  .figure { margin: 24px -4px 4px; }
  .related a { padding: 18px; }
  .contact-cards > div { padding: 22px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .site-footer { padding: 56px 0 calc(96px + env(safe-area-inset-bottom, 0px)); }
  .footer-base { flex-direction: column; }
  .platforms .wrap { gap: 6px 18px; font-size: .9rem; }
  .platforms strong { width: 100%; }
  .table-wrap { margin-inline: 0; }
  table { font-size: .9rem; }
  th, td { padding: 11px 12px; }
  .mobile-cta.hide { transform: translateY(140%); }
}
@media (max-width: 380px) {
  .case-stats { grid-template-columns: minmax(0, 1fr); }
  .case-stats div { display: flex; align-items: baseline; gap: 10px; }
  .choices { grid-template-columns: minmax(0, 1fr); }
}
