/* ==========================================================================
   TIVUZO — MAIN STYLESHEET
   Brand colours and fonts come from config.php as CSS custom properties
   (--c-primary, --c-accent, --f-display, ...). Do not hard-code brand
   colours here; change them in includes/config.php.
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }

/* ---------- Layout tokens (non-brand) ---------- */
:root {
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 120px);
  --shadow: 0 1px 2px rgb(14 34 33 / 6%), 0 8px 24px rgb(14 34 33 / 6%);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--c-ground);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--c-accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--c-primary); }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--c-primary);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 800;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 4.6vw + 1rem, 4.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3.1rem); letter-spacing: -0.03em; }
h3 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
h4 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--c-primary); color: var(--c-ground); padding: 12px 18px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 16px; color: var(--c-ground); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--white { background: var(--c-surface); }
.section--dark { background: var(--c-primary); color: var(--c-on-dark); }
.section--dark h2, .section--dark h3 { color: var(--c-ground); }
.section--dark a:not(.btn) { color: var(--c-ground); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-accent-strong); margin: 0 0 16px;
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); flex: none; }
.section--dark .eyebrow { color: var(--c-support); }
.lead { font-size: clamp(1.125rem, 0.6vw + 1rem, 1.3125rem); line-height: 1.55; color: var(--c-ink-soft); max-width: 640px; }
.section--dark .lead { color: var(--c-on-dark); }
.muted { color: var(--c-muted); }
.grid { display: grid; gap: clamp(16px, 2.5vw, 24px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split--reverse { flex-direction: row-reverse; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 0; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 56px; padding: 16px 26px; font-size: 1.0625rem; }
.btn--primary { background: var(--c-accent-strong); color: #fff; }
.btn--primary:hover { background: var(--c-primary); color: var(--c-ground); }
.section--dark .btn--primary:hover, .cta-band .btn--primary:hover { background: var(--c-ground); color: var(--c-primary); }
.btn--secondary { background: var(--c-surface); color: var(--c-primary); box-shadow: inset 0 0 0 1.5px var(--c-primary); }
.btn--secondary:hover { background: var(--c-primary); color: var(--c-ground); }
.btn--ghost-light { background: transparent; color: var(--c-ground); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 45%); }
.btn--ghost-light:hover { background: var(--c-ground); color: var(--c-primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.text-link .icon { transition: transform .15s ease; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Logo ---------- */
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--c-primary); min-height: 44px; }
.brand:hover { color: var(--c-primary); }
.brand--light, .brand--light:hover { color: var(--c-ground); }
.logo {
  display: inline-flex; align-items: flex-end;
  font-family: var(--f-display); font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -0.04em;
}
.logo__i { position: relative; display: inline-block; }
.logo__dot { position: absolute; left: 50%; top: 0.02em; width: 0.24em; height: 0.24em; margin-left: -0.12em; border-radius: 50%; background: var(--c-accent); }
.logo-img { height: 36px; width: auto; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--c-ground) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--c-line) 70%, transparent);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 48px; height: 48px; border: 0; border-radius: 12px; background: var(--c-surface); color: var(--c-primary); cursor: pointer;
}
.nav-toggle__close { display: none; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 12px;
  border-radius: 10px; color: var(--c-ink); text-decoration: none; font-weight: 500; font-size: 1rem;
  background: none; border: 0; font-family: inherit; line-height: 1.2; cursor: pointer;
}
.nav-link:hover, .nav-item.is-active > .nav-link { color: var(--c-accent-strong); }
.nav-link[aria-current="page"] { color: var(--c-accent-strong); }
.sub-toggle--icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 44px; margin-left: -10px; padding: 0; border: 0; background: none; color: var(--c-ink); cursor: pointer; }
.nav-chev { transition: transform .2s ease; }
.sub-toggle[aria-expanded="true"] .nav-chev { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: calc(100% + 6px); left: -12px; z-index: 60;
  width: 330px; margin: 0; padding: 10px; list-style: none;
  background: var(--c-surface); border-radius: var(--radius); box-shadow: 0 18px 50px rgb(14 34 33 / 16%);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.sub-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item.has-sub:hover > .sub-menu,
.nav-item.has-sub:focus-within > .sub-menu,
.nav-item.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-link { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--c-ink); }
.sub-link:hover, .sub-link[aria-current="page"] { background: var(--c-ground); color: var(--c-ink); }
.sub-link__label { font-weight: 700; color: var(--c-primary); }
.sub-link__desc { font-size: 0.875rem; color: var(--c-muted); line-height: 1.4; }

@media (max-width: 1040px) {
  /* backdrop-filter would trap the fixed menu panel inside the header */
  .site-header { backdrop-filter: none; background: var(--c-ground); }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 20px var(--gutter) 40px; overflow-y: auto;
    background: var(--c-ground); border-top: 1px solid var(--c-line);
    visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility .2s;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; }
  .nav-open .nav-toggle__open { display: none; }
  .nav-open .nav-toggle__close { display: inline; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--c-line); }
  .nav-link { flex: 1; min-height: 56px; padding: 12px 4px; font-size: 1.125rem; font-weight: 700; justify-content: space-between; }
  .sub-toggle--icon { display: none; }
  .nav-link--button .nav-chev { display: none; }
  .sub-menu {
    position: static; width: 100%; padding: 0 0 12px; box-shadow: none; background: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .sub-menu::before { display: none; }
  .sub-link { padding: 10px 12px; }
  .nav-cta .btn { width: 100%; min-height: 56px; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 20px; font-size: 0.9375rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; color: var(--c-muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--c-line); }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-accent-strong); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--c-ink); font-weight: 500; }

/* ---------- Heroes ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) var(--section-y); }
.hero__grid { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 64px); align-items: center; }
.hero__copy { flex: 1 1 480px; min-width: 0; }
.hero__visual { flex: 1 1 500px; min-width: 0; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; }
.hero__note { margin-top: 18px; font-size: 0.9375rem; color: var(--c-muted); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; margin-bottom: 22px;
  border-radius: 999px; background: var(--c-surface); color: var(--c-primary); font-size: 0.875rem; font-weight: 700;
}
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent); }
.page-hero { padding-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 88px); }
.page-hero .lead { margin-bottom: 28px; }

/* ---------- Product UI illustration ---------- */
.ui {
  background: var(--c-primary); border-radius: var(--radius-lg); padding: clamp(16px, 2.4vw, 28px);
  display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 60px rgb(14 59 60 / 22%);
}
.ui__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; background: var(--c-primary-soft); color: var(--c-on-dark); font-size: 0.9375rem; }
.ui__bar strong { color: var(--c-ground); }
.ui__bar .icon { color: var(--c-support); flex: none; }
.ui__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1180px) and (min-width: 1000px), (max-width: 560px) { .ui__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ui-tile { background: var(--c-ground); border-radius: 14px; padding: 14px 16px; }
.ui-tile--accent { background: var(--c-accent); }
.ui-tile__label { margin: 0; font-size: 0.8125rem; color: var(--c-muted); }
.ui-tile--accent .ui-tile__label { color: var(--c-ink); }
.ui-tile__value { margin: 4px 0 0; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--c-primary); }
.ui-tile--accent .ui-tile__value { color: var(--c-ink); }
.ui-tile__hint { margin: 2px 0 0; font-size: 0.75rem; color: var(--c-muted); }
.ui-tile--accent .ui-tile__hint { color: var(--c-ink); }
.ui__list { background: var(--c-ground); border-radius: 14px; padding: 4px 16px; margin: 0; list-style: none; }
.ui__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; padding: 12px 0; font-size: 0.9375rem; border-bottom: 1px solid var(--c-line); }
.ui__row:last-child { border-bottom: 0; }
.ui__caption { margin: 0; font-size: 0.8125rem; color: var(--c-on-dark); text-align: center; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; white-space: nowrap; }
.tag--ok { background: var(--c-support-soft); color: var(--c-primary); }
.tag--warn { background: #FBE1D7; color: #8A3418; }
.tag--neutral { background: #E9E2D6; color: var(--c-ink-soft); }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--c-surface); border-radius: 20px; padding: clamp(22px, 2.6vw, 30px);
}
.card h3 { margin: 0; }
.card p { color: var(--c-ink-soft); margin: 0; }
.card .text-link { margin-top: auto; padding-top: 8px; }
.card--link:hover { box-shadow: var(--shadow); }
.card--link .text-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.card--sand { background: var(--c-ground); }
.section--dark .card { background: var(--c-primary-soft); }
.section--dark .card p { color: var(--c-on-dark); }
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 52px; border-radius: 14px; background: var(--c-ground); color: var(--c-primary);
}
.card--sand .icon-badge { background: var(--c-surface); }
.icon-badge--accent { background: var(--c-accent); color: var(--c-ink); }
.section--dark .icon-badge { background: var(--c-primary); color: var(--c-accent); }

/* ---------- Checklists ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { flex: none; margin-top: 2px; color: var(--c-accent-strong); }
.section--dark .checklist .icon { color: var(--c-accent); }
.checklist--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px 32px; }

/* ---------- Flow (numbered steps) ---------- */
.flow { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.flow li { counter-increment: step; position: relative; background: var(--c-surface); border-radius: 18px; padding: 22px 20px 20px; }
.section--dark .flow li { background: var(--c-primary-soft); }
.flow li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin-bottom: 14px; border-radius: 50%;
  background: var(--c-accent); color: var(--c-ink); font-family: var(--f-display); font-weight: 800;
}
.section--white .flow li { background: var(--c-ground); }
.flow h3 { font-size: 1.125rem; margin-bottom: 6px; }
.flow p { font-size: 0.96875rem; color: var(--c-ink-soft); margin: 0; }
.section--dark .flow p { color: var(--c-on-dark); }

/* ---------- Problem / comparison ---------- */
.compare { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.compare__col { border-radius: 20px; padding: clamp(22px, 3vw, 32px); }
.compare__col--before { background: var(--c-surface); }
.section--white .compare__col--before, .section--white .card { background: var(--c-ground); }
.compare__col--after { background: var(--c-primary); color: var(--c-on-dark); }
.compare__col--after h3 { color: var(--c-ground); }
.compare__col ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.compare__col li { display: flex; gap: 10px; }
.compare__col--before li::before { content: '–'; color: var(--c-muted); font-weight: 700; }
.compare__col--after .icon { color: var(--c-accent); flex: none; margin-top: 2px; }

/* ---------- Module strip (home) ---------- */
.modules { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.module {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px;
  background: var(--c-surface); text-decoration: none; color: var(--c-ink); transition: box-shadow .15s ease, transform .15s ease;
}
.module:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--c-ink); }
.module strong { font-family: var(--f-display); font-size: 1.1875rem; color: var(--c-primary); }
.module span { font-size: 0.9375rem; color: var(--c-muted); line-height: 1.45; }

/* ---------- Quote / callout ---------- */
.callout { background: var(--c-surface); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); }
.callout--accent { background: var(--c-accent); color: var(--c-ink); }
.callout--accent h2, .callout--accent h3 { color: var(--c-ink); }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; background: var(--c-surface); border-radius: 24px; padding: clamp(24px, 3vw, 34px); }
.plan--featured { background: var(--c-primary); color: var(--c-on-dark); }
.plan--featured h2, .plan--featured .plan__price { color: var(--c-ground); }
.plan h2 { font-size: 1.75rem; margin: 0; }
.plan__for { margin: 0; color: var(--c-muted); }
.plan--featured .plan__for { color: var(--c-on-dark); }
.plan__price { font-family: var(--f-display); font-weight: 800; font-size: 2.25rem; line-height: 1; color: var(--c-primary); margin: 0; }
.plan__period { display: block; margin-top: 6px; font-family: var(--f-body); font-size: 0.9375rem; font-weight: 500; color: var(--c-muted); }
.plan--featured .plan__period { color: var(--c-on-dark); }
.plan .checklist { font-size: 0.96875rem; }
.plan--featured .checklist .icon { color: var(--c-accent); }
.plan .btn { margin-top: auto; }
.plan__badge { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--c-accent); color: var(--c-ink); font-size: 0.8125rem; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--c-surface); border-radius: 16px; }
.section--white .faq__item, .section--white .callout { background: var(--c-ground); }
.faq__q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 18px 22px; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 700; font-size: 1.125rem; color: var(--c-primary);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__chev { flex: none; transition: transform .2s ease; color: var(--c-accent-strong); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 22px 22px; color: var(--c-ink-soft); }

/* ---------- Forms ---------- */
.form-card { background: var(--c-surface); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 44px); }
.form { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: 0.9375rem; color: var(--c-ink-soft); }
.field .req { color: var(--c-accent-strong); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px;
  border: 1.5px solid var(--c-line); background: var(--c-surface); color: var(--c-ink);
  font: inherit; font-size: 1rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 35%, transparent); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--c-accent-strong); }
.field__error { font-size: 0.875rem; color: var(--c-accent-strong); font-weight: 500; }
.field__hint { font-size: 0.875rem; color: var(--c-muted); }
.input-suffix { display: flex; align-items: stretch; }
.input-suffix input { border-radius: 14px 0 0 14px; }
.input-suffix span { display: flex; align-items: center; padding: 0 14px; border: 1.5px solid var(--c-line); border-left: 0; border-radius: 0 14px 14px 0; background: var(--c-ground); color: var(--c-muted); font-weight: 500; white-space: nowrap; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-top: 4px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--c-line); border-radius: 12px; cursor: pointer; font-weight: 500; color: var(--c-ink); }
.check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--c-accent-strong); flex: none; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-note { font-size: 0.875rem; color: var(--c-muted); margin: 0; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 16px; padding: 18px 20px; margin-bottom: 24px; display: flex; gap: 12px; align-items: flex-start; }
.alert--success { background: var(--c-support-soft); color: var(--c-primary); }
.alert--error { background: #FBE1D7; color: #8A3418; }
.alert .icon { flex: none; margin-top: 2px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------- Contact blocks ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list a, .contact-list span { display: flex; align-items: center; gap: 14px; min-height: 48px; text-decoration: none; color: var(--c-ink); font-weight: 500; }
.contact-list a:hover { color: var(--c-accent-strong); }
.contact-list .icon-badge { width: 48px; height: 48px; }

/* ---------- Prose (legal, long text) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.625rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--c-ink-soft); }
.prose li { margin-bottom: 0.4em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--c-primary); color: var(--c-on-dark); padding-block: clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: var(--c-accent); opacity: .9; }
.cta-band__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.cta-band__copy { flex: 1 1 480px; }
.cta-band h2 { color: var(--c-ground); margin-bottom: 12px; max-width: 620px; }
.cta-band p { font-size: 1.125rem; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 720px) { .cta-band::after { width: 260px; height: 260px; right: -110px; top: -120px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: #B8C4C2; padding-block: clamp(56px, 7vw, 88px) 32px; font-size: 0.96875rem; }
.site-footer a { color: #E6ECEB; text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); text-decoration: underline; }
.footer-grid { display: grid; gap: 40px 32px; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); }
.footer-tagline { margin: 18px 0 22px; max-width: 360px; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.footer-contact .icon { color: var(--c-accent); flex: none; }
.footer-col__title { font-family: var(--f-body); font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-support); margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { display: inline-block; padding: 4px 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / 10%); font-size: 0.875rem; }
.footer-social { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: rgb(255 255 255 / 6%); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: clamp(64px, 10vw, 140px); }
.not-found .btn-row { justify-content: center; }
.not-found__code { font-family: var(--f-display); font-weight: 800; font-size: clamp(5rem, 14vw, 10rem); line-height: 1; color: var(--c-accent); margin: 0; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: clamp(32px, 5vw, 56px); }
.center { text-align: center; }
.max-640 { max-width: 640px; }
