/* Layout: one white column of short, plain statements; the study numbers set as oversized bronze figures;
   borders and fills only where the visitor makes a choice (sector cards, calculator, form). */
:root {
  --bg: #ffffff;
  --fg: #16181d;
  --muted: #5c5f66;
  --line: #e7e3dc;
  --band: #f7f5f1;
  --card: #ffffff;
  --accent: #8b6d45;
  --accent-hover: #735834;
  --accent-ink: #ffffff;
  --accent-tint: #f3ece1;
  --warn: #b0463a;
  --ph-bg: #fbe8b0;
  --ph-fg: #4a3600;
  --shadow: 0 1px 2px rgba(22, 24, 29, .05), 0 18px 40px -24px rgba(22, 24, 29, .28);
  --f-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 14px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1012; --fg: #eceae6; --muted: #a4a39e; --line: #27292d; --band: #16171a; --card: #1a1b1f;
    --accent: #cdb184; --accent-hover: #dcc59e; --accent-ink: #16181d; --accent-tint: #26221b;
    --warn: #e2907f; --ph-bg: #4a3b12; --ph-fg: #f6e3a9;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 20px 44px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1012; --fg: #eceae6; --muted: #a4a39e; --line: #27292d; --band: #16171a; --card: #1a1b1f;
  --accent: #cdb184; --accent-hover: #dcc59e; --accent-ink: #16181d; --accent-tint: #26221b;
  --warn: #e2907f; --ph-bg: #4a3b12; --ph-fg: #f6e3a9;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 20px 44px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[id] { scroll-margin-top: 88px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.view h1:focus { outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- type ---------- */
h1 { font-size: clamp(2.55rem, 6.2vw, 4.7rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(1.95rem, 4.1vw, 3.05rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.06; text-wrap: balance; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.24rem); color: var(--muted); max-width: 56ch; text-wrap: pretty; }
.eyebrow { display: flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow .ic { width: 18px; height: 18px; color: var(--accent); }
.small { font-size: .9rem; color: var(--muted); }
.lbl { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.u { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.ph { background: var(--ph-bg); color: var(--ph-fg); padding: 0 .28em; border-radius: 4px; font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: 0 1.4rem; border-radius: 10px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: 600 1rem var(--f-sans); text-decoration: none; cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn .ic { width: 20px; height: 20px; }
.btn-line { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-line:hover { background: transparent; border-color: var(--fg); }
.btn-line .ic { color: var(--accent); }
.btn-sm { min-height: 42px; padding: 0 1rem; font-size: .93rem; }
.btn-full { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- header ---------- */
.hd { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.hd.scrolled { border-bottom-color: var(--line); }
.hd-in { display: flex; align-items: center; gap: 1.8rem; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--fg); }
.logo span { font-weight: 700; font-size: 1.45rem; letter-spacing: -.035em; line-height: 1; }
.mark { width: 26px; height: 26px; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav a:hover { color: var(--fg); }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .3rem 0 .8rem; border: 0; background: transparent; color: var(--fg); font: 600 .95rem var(--f-sans); cursor: pointer; }
.menu-btn .bars { position: relative; width: 18px; height: 10px; }
.menu-btn .bars::before, .menu-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { bottom: 0; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(4.2px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-4.2px) rotate(-45deg); }
.menu { border-top: 1px solid var(--line); background: var(--bg); height: calc(100vh - 64px); height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; }
.menu-in { display: grid; padding-block: 1rem 2rem; }
.menu-k { font-size: .72rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin-top: 1.2rem; }
.menu a:not(.btn) { display: flex; align-items: center; gap: .75rem; padding: .85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.menu a .ic { color: var(--accent); }
.menu .btn { margin-top: 1.4rem; }
html.menu-open, html.menu-open body { overflow: hidden; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec-tight { padding-block: 0 clamp(64px, 9vw, 120px); }
.band { background: var(--band); }
.head { display: grid; gap: 1rem; justify-items: start; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.source { margin-top: 1.8rem; font-size: .86rem; color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 88px) clamp(24px, 4vw, 48px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; justify-items: start; min-width: 0; }
.hero-copy h1 { max-width: 15ch; }
.trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 0; padding: 0; list-style: none; font-size: .93rem; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: .4rem; }
.trust .ic { width: 18px; height: 18px; color: var(--accent); }

.demo { margin: 0; padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); display: grid; gap: .7rem; min-width: 0; }
.demo-k { font-size: .72rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.demo-k.accent { color: var(--accent); margin-top: .4rem; }
.nts { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.nt { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 12px; background: var(--band); min-width: 0; }
.nt > .ic { width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--bg); }
.nt div { display: grid; min-width: 0; }
.nt b { font-size: .95rem; font-weight: 600; line-height: 1.3; }
.nt span { font-size: .84rem; color: var(--muted); line-height: 1.35; }
.nt.warn > .ic { color: var(--warn); }
.nt.warn b { color: var(--muted); font-weight: 500; }
.nt.ok > .ic { color: var(--accent-ink); background: var(--accent); }
.nt.ok { background: var(--accent-tint); }
.demo figcaption { font-size: .78rem; color: var(--muted); text-align: right; }
@media (prefers-reduced-motion: no-preference) {
  .nt.ok { animation: rise .7s var(--ease) both; }
  .nt.ok:nth-child(2) { animation-delay: .15s; }
  .nt.ok:nth-child(3) { animation-delay: .3s; }
}
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }

/* ---------- problem ---------- */
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.stat { display: grid; gap: .7rem; align-content: start; padding-top: 1.1rem; border-top: 2px solid var(--fg); min-width: 0; }
.num { font-size: clamp(2.6rem, 4.2vw, 3.4rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.num small { font-size: .48em; letter-spacing: 0; margin-left: .04em; }
.stat p { color: var(--fg); }

/* ---------- services ---------- */
.svcs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 2.6vw, 32px); padding-block: 1.8rem; border-bottom: 1px solid var(--line); }
.svc-name { display: flex; align-items: flex-start; gap: .8rem; min-width: 0; }
.svc-name .ic { width: 28px; height: 28px; color: var(--accent); margin-top: -.1rem; }
.svc-name h3 { font-size: 1.22rem; }
.svc-col { min-width: 0; }
.svc-col p { color: var(--muted); font-size: .98rem; }
.svc-col p.svc-res { color: var(--fg); font-weight: 600; }

/* ---------- sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sector { display: flex; flex-direction: column; gap: .9rem; padding: 1.5rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--fg); text-decoration: none; transition: border-color .25s var(--ease), transform .25s var(--ease); min-width: 0; }
.sector:hover { border-color: var(--fg); transform: translateY(-2px); }
.sector-top { display: flex; align-items: center; gap: .7rem; }
.sector-top .ic { width: 28px; height: 28px; color: var(--accent); }
.sector-top h3 { font-size: 1.3rem; }
.sector-pain { color: var(--muted); font-size: .97rem; }
.sector-fix { font-size: .97rem; font-weight: 600; }
.sector-eg { font-size: 1.05rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; padding-top: .9rem; border-top: 1px solid var(--line); }
.est { font-size: .8rem; color: var(--muted); margin-top: -.5rem; }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .95rem; }
.more .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.sector:hover .more .ic { transform: translateX(3px); }

/* ---------- calculator ---------- */
.calc-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.calc-wrap .head { margin-bottom: 0; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.calc-in { display: grid; gap: 1.4rem; align-content: start; min-width: 0; }
.field { display: grid; gap: .4rem; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.field label { font-size: .95rem; color: var(--muted); }
.field output { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) 0 var(--p, 50%), var(--line) var(--p, 50%) 100%); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: var(--shadow); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.calc-out { display: grid; gap: .9rem; align-content: start; min-width: 0; }
.calc-res { display: grid; gap: .7rem; }
.res { display: grid; gap: .2rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--band); min-width: 0; }
.res span { font-size: .86rem; color: var(--muted); }
.res b { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.res.main { background: var(--accent-tint); }
.res.main b { color: var(--accent); font-size: clamp(2rem, 4vw, 2.7rem); }
.calc-note { font-size: .84rem; color: var(--muted); line-height: 1.5; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.step { display: grid; gap: .5rem; align-content: start; padding-top: 1.1rem; border-top: 2px solid var(--fg); }
.step-n { font-size: 2.4rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---------- compare ---------- */
.tbl { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; }
.compare th { text-align: left; font-size: .76rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); padding: 0 1rem .9rem 0; border-bottom: 2px solid var(--fg); }
.compare th:last-child { color: var(--accent); }
.compare td { padding: 1.1rem 1rem 1.1rem 0; border-bottom: 1px solid var(--line); vertical-align: top; width: 50%; }
.compare td:first-child { color: var(--muted); }
.compare td:last-child { font-weight: 600; }
.compare .yes { display: flex; gap: .6rem; align-items: flex-start; }
.compare .yes .ic { color: var(--accent); margin-top: .15rem; width: 20px; height: 20px; }

/* ---------- offer / closing ---------- */
.offer { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(24px, 4vw, 56px); align-items: end; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.offer > div:first-child { display: grid; gap: 1rem; justify-items: start; min-width: 0; }
.offer-side { display: grid; gap: .8rem; justify-items: start; min-width: 0; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; position: relative; padding: 1.25rem 2.6rem 1.25rem 0; font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--accent); transition: transform .25s var(--ease); }
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { padding: 0 2.6rem 1.4rem 0; color: var(--muted); }

/* ---------- form ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.form-wrap .head { margin-bottom: 0; }
.form-box { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); min-width: 0; }
.form { display: grid; gap: 1rem; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
.fld { display: grid; gap: .35rem; min-width: 0; }
.fld label { font-size: .93rem; font-weight: 600; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 50px; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); font: 400 1rem var(--f-sans); transition: border-color .2s, box-shadow .2s; }
.fld textarea { resize: vertical; min-height: 96px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.fld .invalid, .consent.invalid { border-color: var(--warn); }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; padding: .2rem 0; border: 1.5px solid transparent; border-radius: 8px; }
.consent input { width: 20px; height: 20px; margin: .15rem 0 0; flex: none; accent-color: var(--accent); }
.form-err { color: var(--warn); font-weight: 600; font-size: .93rem; }
.done { display: grid; gap: .9rem; justify-items: start; }
.done .done-ic { width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.done h3 { font-size: 1.4rem; }
.done p { color: var(--muted); }

/* ---------- sector pages ---------- */
.hero-s .hero-copy h1 { max-width: 15ch; }
.hero-s .eyebrow { flex-wrap: wrap; }
.hero-eg { display: grid; gap: .35rem; justify-items: start; padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: var(--accent-tint); min-width: 0; }
.hero-eg .num { font-size: clamp(3rem, 6vw, 4.6rem); margin-top: .3rem; }
.hero-eg-u { font-weight: 600; }
.hero-eg p { color: var(--muted); font-size: .95rem; margin-top: .6rem; }
.hero-eg .est { margin-top: 0; font-size: .82rem; }
.nw { white-space: nowrap; }
.hero-s .narrow { display: grid; gap: 1.4rem; justify-items: start; }
@media (min-width: 821px) { .offer-side .btn { white-space: nowrap; } }
.back { display: inline-flex; align-items: center; gap: .45rem; font-size: .93rem; color: var(--muted); text-decoration: none; }
.back .ic { width: 18px; height: 18px; transform: rotate(180deg); }
.back:hover { color: var(--fg); }
.pain-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.pain-grid .head { margin-bottom: 0; }
.pains { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .9rem; }
.pains li { display: flex; gap: .8rem; align-items: flex-start; font-size: 1.12rem; }
.pains .ic { color: var(--warn); margin-top: .15rem; }
.stat-lone .source { margin-top: .2rem; }
.fixes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fix { display: grid; gap: .6rem; align-content: start; padding: 1.6rem 1.5rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.fix .ic { width: 30px; height: 30px; color: var(--accent); margin-bottom: .4rem; }
.fix p { color: var(--muted); font-size: .98rem; }
.pv-list { display: grid; }
.pv { display: grid; gap: .5rem; padding-block: 1.4rem; border-top: 1px solid var(--line); }
.pv h2 { font-size: 1.25rem; letter-spacing: -.015em; }
.pv p { color: var(--muted); }

/* ---------- footer ---------- */
.ft { border-top: 1px solid var(--line); padding-block: 56px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.ft-brand { display: grid; gap: .8rem; align-content: start; }
.ft-brand p, .ft p { color: var(--muted); }
.ft-k { font-size: .72rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.ft ul a { text-decoration: none; }
.ft ul a:hover { color: var(--accent); }
.ft-phone { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; }
.ft-phone b { color: var(--fg); font-size: 1.1rem; font-variant-numeric: tabular-nums; user-select: all; }
.copy { font: 600 .78rem var(--f-sans); padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.copy:hover { color: var(--fg); border-color: var(--fg); }
.ft-bottom { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 40px; padding-top: 20px; background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; font-size: .86rem; color: var(--muted); }
.ft-bottom a { text-decoration: none; }
.ft-bottom a:hover { color: var(--fg); }

.wa-fab { display: none; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 45; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); text-decoration: none; }
.wa-fab .ic { width: 26px; height: 26px; }
html.menu-open .wa-fab { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .svc-name { grid-column: 1 / -1; }
  .calc-wrap, .form-wrap { grid-template-columns: minmax(0, 1fr); }
  .ft-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .nav, .hd-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .hd-in { height: 64px; }
  .wa-fab { display: inline-flex; }
  .ft { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 820px) {
  .hero-grid, .pain-grid, .offer { grid-template-columns: minmax(0, 1fr); }
  .fixes { grid-template-columns: minmax(0, 1fr); }
  .offer { align-items: start; }
}
@media (max-width: 600px) {
  .stats, .steps { grid-template-columns: minmax(0, 1fr); }
  .sectors { grid-template-columns: minmax(0, 1fr); }
  .svc { grid-template-columns: minmax(0, 1fr); gap: .9rem; padding-block: 1.5rem; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .ft-grid { grid-template-columns: minmax(0, 1fr); }
  .actions .btn, .offer-side .btn { width: 100%; }
  .qa summary { font-size: 1.04rem; }
  .compare td, .compare th { padding-right: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- v2: more pages, services, commitments ---------- */
.nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.narrow-l { max-width: 940px; display: grid; gap: 1.4rem; justify-items: start; }
.narrow-l h1 { max-width: 18ch; }
.sec-top0 { padding-top: 0; }
.tag { display: inline-flex; align-items: center; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent); padding: .28rem .6rem; border-radius: 6px; line-height: 1.2; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fasts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fast { display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; padding: 1.5rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--fg); text-decoration: none; transition: border-color .25s var(--ease), transform .25s var(--ease); min-width: 0; }
.fast:hover { border-color: var(--fg); transform: translateY(-2px); }
.fast .sector-top h3 { font-size: 1.2rem; }
.fast p { color: var(--muted); font-size: .95rem; }
.fast .fast-res { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); color: var(--fg); font-weight: 600; width: 100%; }
.all-srv { display: grid; gap: .8rem; justify-items: start; margin-top: clamp(28px, 4vw, 44px); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); text-decoration: none; font-size: .93rem; font-weight: 500; transition: border-color .2s; }
.chips a:hover { border-color: var(--fg); }
.chips .ic { width: 17px; height: 17px; color: var(--accent); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.link-arrow .ic { width: 18px; height: 18px; color: var(--accent); }
.cms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.cm { display: grid; gap: .45rem; align-content: start; padding-top: 1rem; border-top: 2px solid var(--fg); }
.cm .ic { width: 26px; height: 26px; color: var(--accent); margin-bottom: .3rem; }
.cm p { color: var(--muted); font-size: .95rem; }
.promise { display: flex; gap: 1rem; align-items: flex-start; margin-top: clamp(28px, 4vw, 44px); padding: clamp(20px, 3vw, 28px); border-radius: var(--r); background: var(--accent-tint); font-size: 1.1rem; font-weight: 500; }
.promise .ic { width: 28px; height: 28px; color: var(--accent); }
.analysis { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); padding: clamp(24px, 4vw, 48px); border-radius: 20px; background: var(--accent-tint); }
.analysis-head { display: grid; gap: 1rem; justify-items: start; align-content: start; min-width: 0; }
.analysis-head h2 { display: flex; align-items: center; gap: .6rem; }
.analysis-head h2 .ic { width: 36px; height: 36px; color: var(--accent); }
.analysis .lead { color: var(--fg); }
.srv-res, .first-res { font-weight: 600; }
.analyses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem 1.6rem; }
.analyses li { display: grid; gap: .25rem; padding-top: .8rem; border-top: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); min-width: 0; }
.analyses h3 { font-size: 1.02rem; }
.analyses p { color: var(--muted); font-size: .93rem; }
.srv-group + .srv-group { margin-top: clamp(40px, 6vw, 64px); }
.grp { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1rem; }
.srvs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.srv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(16px, 2.6vw, 32px); padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.srv-name { display: flex; gap: .8rem; align-items: flex-start; min-width: 0; }
.srv-name > .ic { width: 28px; height: 28px; color: var(--accent); }
.srv-name > div { display: grid; gap: .45rem; justify-items: start; }
.srv-name h3 { font-size: 1.2rem; }
.srv > p { color: var(--muted); font-size: .98rem; min-width: 0; }
.srv > p.srv-res { color: var(--fg); }
.firsts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.first { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; padding: 1.5rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.first:first-child { border-color: var(--accent); box-shadow: var(--shadow); }
.first .step-n { font-size: 2rem; }
.first > div { display: grid; gap: .6rem; align-content: start; min-width: 0; }
.first p { color: var(--muted); font-size: .96rem; }
.first p.first-res { color: var(--fg); padding-top: .6rem; border-top: 1px solid var(--line); }
.analyses-s .ic { color: var(--accent); }
.kinds-k { font-size: .72rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); }
.kinds { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.sector-other { border-style: dashed; }
.contacts { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contacts li { display: flex; gap: .8rem; align-items: flex-start; }
.contacts .ic { color: var(--accent); margin-top: .2rem; }
.contacts b { font-size: 1.1rem; font-variant-numeric: tabular-nums; user-select: all; }
.contacts div > span:not(.lbl) { color: var(--muted); }
.sectors { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (max-width: 1040px) {
  .fasts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analysis { grid-template-columns: minmax(0, 1fr); }
  .firsts { grid-template-columns: minmax(0, 1fr); }
  .srv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .srv-name { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .steps-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .fasts, .cms, .analyses { grid-template-columns: minmax(0, 1fr); }
  .srv { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
}

.stats .stat { grid-template-rows: auto 1fr auto; }
.stats .stat .source { margin-top: .4rem; }

/* ---------- v3: colour, motion and conversion polish ---------- */
:root { --deep: #17191e; --on-deep: #f4f0e8; --on-deep-soft: #b9b4aa; --accent-glow: rgba(139, 109, 69, .16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --deep: #1e1c18; --on-deep: #f4f0e8; --on-deep-soft: #b9b4aa; --accent-glow: rgba(205, 177, 132, .12); } }
:root[data-theme="dark"] { --deep: #1e1c18; --on-deep: #f4f0e8; --on-deep-soft: #b9b4aa; --accent-glow: rgba(205, 177, 132, .12); }

/* hero: a soft warm light behind the content */
.hero-home { background: radial-gradient(60% 70% at 85% 30%, var(--accent-glow), transparent 70%), var(--bg); }
.hero-s { background: radial-gradient(50% 60% at 90% 10%, var(--accent-glow), transparent 70%), var(--bg); }
.hero h1 em, .hero h1 .acc { color: var(--accent); font-style: normal; }

/* buttons feel pressable */
.btn { transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:not(.btn-line):hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px var(--accent); }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

/* icons sit on small tinted tiles */
.sector-top > .ic, .srv-name > .ic, .cm > .ic, .fix > .ic { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); flex: none; }
.cm > .ic { margin-bottom: .2rem; }
.sector, .fast, .first { transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.sector:hover, .fast:hover { box-shadow: var(--shadow); }
.tag { box-shadow: 0 0 0 4px var(--accent-tint); }

/* dark closing band: the one high-contrast moment per page */
.offer.deep { background: var(--deep); color: var(--on-deep); border-color: transparent; position: relative; overflow: hidden; }
.offer.deep::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(205, 177, 132, .22), transparent); pointer-events: none; }
.offer.deep > * { position: relative; z-index: 1; }
.offer.deep .eyebrow { color: #cdb184; }
.offer.deep .lead { color: var(--on-deep-soft); }
.offer.deep .btn { background: #cdb184; border-color: #cdb184; color: #17191e; }
.offer.deep .btn:hover { background: #dcc59e; border-color: #dcc59e; }
.offer.deep .btn-line { background: transparent; color: var(--on-deep); border-color: rgba(244, 240, 232, .25); }
.offer.deep .btn-line .ic { color: #cdb184; }
.offer.deep .btn-line:hover { border-color: var(--on-deep); }
.offer.deep .offer-side .btn { width: 100%; }

/* demo: the good news arrives one by one, then a live dot */
.demo { position: relative; }
.demo-k.accent::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: .5rem; border-radius: 50%; background: var(--accent); vertical-align: middle; }
@media (prefers-reduced-motion: no-preference) {
  .demo-k.accent::after { animation: live 2.4s ease-in-out infinite; }
  .nt.ok { animation: pop .6s var(--ease) both; }
  .nt.ok:nth-child(1) { animation-delay: .5s; }
  .nt.ok:nth-child(2) { animation-delay: 1.1s; }
  .nt.ok:nth-child(3) { animation-delay: 1.7s; }
}
@keyframes live { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); } 50% { box-shadow: 0 0 0 6px transparent; } }
@keyframes pop { 0% { transform: translateY(8px) scale(.98); } 100% { transform: none; } }

/* reveal on scroll: only content below the first screen, never hidden at rest */
@media (prefers-reduced-motion: no-preference) {
  .rv { transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
  .rv.pre { opacity: 0; transform: translateY(18px); }
}

/* sticky action bar on phones */
.mbar { display: none; }
.wa-fab { display: none !important; }
@media (max-width: 960px) {
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: .6rem; padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
  .mbar.show { transform: none; }
  .mbar .btn { flex: 1; min-height: 50px; }
  .mbar-wa { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--line); color: var(--accent); text-decoration: none; }
  .mbar-wa .ic { width: 24px; height: 24px; }
  html.menu-open .mbar, body[data-page="contacto"] .mbar, .mbar.off { display: none; }
}
.calc-out .btn { padding-inline: 1rem; font-size: .95rem; white-space: nowrap; }
@media (max-width: 380px) { .calc-out .btn { white-space: normal; } }

/* ---------- contacto: título e contactos à esquerda, formulário à direita ---------- */
#diagnostico.form-wrap { grid-template-areas: "head form" "side form"; grid-template-rows: auto 1fr; }
#diagnostico > .head { grid-area: head; }
#diagnostico > .contact-side { grid-area: side; }
#diagnostico > .form-box { grid-area: form; }
@media (max-width: 1040px) { #diagnostico.form-wrap { grid-template-areas: "head" "form" "side"; grid-template-rows: auto; } }

/* ---------- telemóvel: mais curto, mais legível, sempre perto do contacto ---------- */
@media (max-width: 600px) {
  body { font-size: 1rem; }
  h1 { font-size: 2.15rem; letter-spacing: -.03em; }
  h2 { font-size: 1.65rem; }
  h3 { font-size: 1.05rem; }
  .lead { font-size: 1.02rem; }
  .eyebrow { font-size: .72rem; letter-spacing: .1em; }
  .sec { padding-block: 44px; }
  .head { gap: .6rem; margin-bottom: 22px; }
  .hero { padding-block: 24px 28px; }
  .hero-copy { gap: 1.1rem; }
  .trust { font-size: .85rem; gap: .35rem 1rem; }

  /* exemplo do topo: só o lado bom, em compacto */
  .demo { padding: 14px; gap: .5rem; }
  .demo > .demo-k:first-of-type, .demo > .nts:first-of-type, .demo figcaption { display: none; }
  .demo-k.accent { margin-top: 0; }
  .nt { padding: .55rem .65rem; }
  .nt > .ic { width: 32px; height: 32px; padding: 7px; }

  /* cartões em fila deslizante, em vez de listas compridas */
  .fasts, .sectors { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; margin-inline: -16px; scrollbar-width: none; }
  .fasts::-webkit-scrollbar, .sectors::-webkit-scrollbar { display: none; }
  .fast, .sector { flex: 0 0 84%; scroll-snap-align: start; padding: 1.2rem 1.1rem; }
  .fast p:not(.fast-res) { font-size: .9rem; }
  .sector .est { display: none; }
  #compensa .all-srv { display: none; }

  /* números 2 × 2 */
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 14px; }
  .stat { padding-top: .7rem; gap: .4rem; }
  .num { font-size: 2.3rem; }
  .stat p { font-size: .88rem; line-height: 1.45; }
  .stats .stat .source { font-size: .72rem; }

  /* passos e compromissos curtos */
  .step { grid-template-columns: auto minmax(0, 1fr); column-gap: .8rem; padding-top: .8rem; }
  .step .step-n { grid-row: span 2; font-size: 1.8rem; }
  .step p { font-size: .93rem; }
  .cms { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 14px; }
  .cm { padding-top: .7rem; gap: .3rem; }
  .cm p { display: none; }
  .cm h3 { font-size: .95rem; }
  .cm > .ic { width: 36px; height: 36px; padding: 7px; }

  /* calculadora mais baixa */
  .calc { padding: 18px; gap: 18px; }
  .calc-in { gap: 1rem; }
  .calc-res { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; }
  .res { padding: .8rem .9rem; }
  .res.main b, .res b { font-size: 1.55rem; }
  .calc-note { font-size: .78rem; }

  /* páginas de setor e serviços */
  .hero-eg { padding: 18px; }
  .hero-eg .num { font-size: 2.6rem; }
  .hero-eg p:not(.est) { display: none; }
  .first { padding: 1.1rem 1rem; gap: .7rem; }
  .first .step-n { font-size: 1.6rem; }
  .first p.first-res { display: none; }
  .pains li { font-size: 1rem; }
  .srv { padding-block: 1.2rem; }
  .srv > p { font-size: .93rem; }
  .analysis { padding: 20px; gap: 20px; }
  .analyses { gap: .9rem; }
  .qa summary { padding-block: 1rem; font-size: 1rem; }
  .offer { padding: 24px 20px; gap: 18px; }
  .offer.deep .btn-line { display: none; }

  /* rodapé enxuto */
  .ft { padding-top: 36px; font-size: .9rem; }
  .ft-grid { gap: 22px; }
  .ft-grid > div:nth-child(3), .ft-grid > div:nth-child(4) { display: none; }
  .ft-bottom { margin-top: 24px; }
}
@media (max-width: 600px) {
  .cms { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cm { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); }
  .cm:first-child { border-top: 2px solid var(--fg); }
  .cm > .ic { margin: 0; }
}
