/*
 * IT Butler — itbutler.se landing page
 * Page-specific styles. Built on top of Brand Assets/brand-tokens.css —
 * always prefer a var(--token) over a hardcoded value so the page stays
 * in sync with the design system and with prefers-color-scheme: dark.
 */

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-linen-white);
  color: var(--color-ink-night);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-ink-night);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
}

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--color-interactive); }

ul, ol { margin: 0; padding: 0; list-style: none; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
}

/* Icon sprite holder — never rendered directly */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ─────────────────────────────────────────
   FOCUS / ACCESSIBILITY UTILITIES
───────────────────────────────────────── */

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: -60px;
  left: var(--space-4);
  background: var(--color-butler-blue);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  z-index: 1000;
  transition: top var(--transition-base);
}
.skip-link:focus {
  top: var(--space-4);
}

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

/* ─────────────────────────────────────────
   LAYOUT HELPERS
───────────────────────────────────────── */

.section-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section-inner--narrow {
  max-width: var(--max-width-content);
}

.section {
  padding: var(--space-24) 0;
}

.section--alt {
  background: var(--color-surface-elevated);
}

.section-heading {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-12);
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--btn-height);
  padding: 0 var(--btn-padding-x);
  border-radius: var(--btn-radius);
  font-family: var(--btn-font);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--btn-transition);
  white-space: nowrap;
}

.btn-accent {
  background: var(--btn-accent-bg);
  color: var(--btn-accent-text);
  box-shadow: var(--btn-accent-shadow);
}
.btn-accent:hover { background: var(--btn-accent-bg-hover); }
.btn-accent:active { background: var(--btn-accent-bg-active); transform: translateY(1px); }

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border: 2px solid var(--btn-secondary-border);
}
.btn-secondary:hover { background: var(--btn-secondary-bg-hover); }

.btn-lg {
  min-height: 56px;
  padding: 0 var(--space-8);
  font-size: var(--text-md);
}

/* ─────────────────────────────────────────
   HEADER / NAV
───────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface-elevated);
  border-bottom: var(--border-width) solid var(--border-color);
}

.site-header-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* Brand lockup: shield mark + wordmark and slogan as real text, so both stay
   legible at every size. The slogan used to be baked into the logo SVG at
   font-size 8.5 on a 248-unit canvas, which rendered around 5px. */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 0 0 auto;  /* the logo must never be the item that shrinks */
}
.brand { text-decoration: none; }
.brand-mark { display: block; flex: none; }
.brand-mark img,
img.brand-mark { display: block; height: 40px; width: auto; }

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-name {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink-night);
}
.brand-slogan {
  font-family: var(--font-heading);
  font-weight: var(--weight-medium);
  font-size: 0.6875rem;
  line-height: var(--leading-tight);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--color-slate-grey);
  white-space: nowrap;
}

.main-nav {
  display: none;
  gap: var(--space-6);
  font-family: var(--font-heading);
  font-weight: var(--weight-medium);
  font-size: var(--text-base);
}
.main-nav a {
  color: var(--color-ink-night);
  text-decoration: none;
  padding: var(--space-2) 0;
}
.main-nav a:hover { color: var(--color-interactive); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.header-phone {
  display: none;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-ink-night);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  white-space: nowrap;
}
.header-phone:hover { color: var(--color-interactive); }
.header-phone .icon { color: var(--color-interactive); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color-strong);
  color: var(--color-ink-night);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  transition: var(--transition-base);
}
.lang-toggle:hover {
  border-color: var(--color-interactive);
  color: var(--color-interactive);
}

/* Tighter header gutters on phones so the full lockup fits beside the EN toggle. */
@media (max-width: 699px) {
  .site-header-inner {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-4);
  }
}

/* Below 1080px the CTA lives in the sticky bottom bar instead of the header,
   which is what frees the room the enlarged lockup needs. Exactly one of the
   two is on screen at any width. */
@media (max-width: 1079px) {
  .header-actions .btn { display: none; }
}

@media (min-width: 700px) {
  .brand-mark img,
  img.brand-mark { height: 44px; }
  .brand-name { font-size: var(--text-lg); }
  .brand-slogan { font-size: var(--text-xs); }
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-phone { display: inline-flex; }
  .brand-mark img,
  img.brand-mark { height: 48px; }
  .brand-name { font-size: var(--text-xl); }
  .brand-slogan { font-size: 0.8125rem; }
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */

.hero {
  background: var(--color-linen-white);
  padding: var(--space-16) 0 var(--space-20);
}

.hero-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-interactive);
  margin-bottom: var(--space-4);
}

.hero-copy h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  margin-bottom: var(--space-5);
}

.hero-copy .lead {
  font-size: var(--text-md);
  color: var(--color-slate-grey);
  line-height: var(--leading-loose);
  max-width: 46ch;
  margin-bottom: var(--space-8);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.reassurance {
  margin-top: var(--space-5);
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-slate-grey);
}

.hero-visual {
  display: none;
}

.hero-visual-card {
  background: var(--color-surface-elevated);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-12) var(--space-8);
  text-align: center;
}

.hero-visual-ring {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-6);
  border-radius: 50%;
  background: rgba(27, 79, 138, 0.08);
  border: 2px dashed rgba(27, 79, 138, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-icon {
  width: 48px;
  height: 48px;
  color: var(--color-interactive);
}

.hero-visual-title {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.hero-visual-sub {
  color: var(--color-slate-grey);
  font-size: var(--text-sm);
  margin-bottom: 0;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero-visual { display: block; }
}

/* ─────────────────────────────────────────
   TRUST BAR
───────────────────────────────────────── */

.trust-bar {
  background: var(--color-surface-elevated);
  border-top: var(--border-width) solid var(--border-color);
  border-bottom: var(--border-width) solid var(--border-color);
  padding: var(--space-10) 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.stat-card {
  background: var(--color-linen-white);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--card-radius);
  padding: var(--space-6);
  text-align: center;
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-interactive);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-2);
}

.stat-label {
  display: block;
  color: var(--color-slate-grey);
  font-size: var(--text-sm);
}

@media (min-width: 700px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─────────────────────────────────────────
   PROBLEM SECTION
───────────────────────────────────────── */

.problem h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.problem p {
  font-size: var(--text-md);
  color: var(--color-slate-grey);
  line-height: var(--leading-loose);
}

.problem-punchline {
  color: var(--color-interactive) !important;
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
}

/* ─────────────────────────────────────────
   STEP GRID (How it works)
───────────────────────────────────────── */

.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  counter-reset: step;
}

.step-card {
  background: var(--color-surface-elevated);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: var(--space-8);
}

.step-num {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: var(--space-4);
}

.step-icon {
  width: 32px;
  height: 32px;
  color: var(--color-interactive);
  margin-bottom: var(--space-4);
}

.step-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.step-card p {
  color: var(--color-slate-grey);
  margin-bottom: 0;
}

@media (min-width: 860px) {
  .step-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─────────────────────────────────────────
   FEATURE GRID (What's included)
───────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.feature-card {
  background: var(--color-surface-elevated);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--card-radius);
  padding: var(--space-6);
}

.feature-icon {
  width: 28px;
  height: 28px;
  color: var(--color-interactive);
  margin-bottom: var(--space-3);
}

.feature-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.feature-card p {
  color: var(--color-slate-grey);
  font-size: var(--text-base);
  margin-bottom: 0;
}

@media (min-width: 700px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─────────────────────────────────────────
   CHECK LIST (Who it's for)
───────────────────────────────────────── */

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: var(--border-width) solid var(--border-color);
  font-size: var(--text-md);
}
.check-list li:last-child { border-bottom: none; }

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--color-success);
}

/* ─────────────────────────────────────────
   EARLY ACCESS CALLOUT
───────────────────────────────────────── */

.early-access-card {
  background: var(--color-surface-elevated);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-12) var(--space-8);
  text-align: center;
}

.early-access-icon {
  width: 36px;
  height: 36px;
  color: var(--color-accent-text);
  margin-bottom: var(--space-4);
}

.early-access-card h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.early-access-card p {
  color: var(--color-slate-grey);
  font-size: var(--text-md);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-6);
}

/* ─────────────────────────────────────────
   BLOG
   Index list + long-form article typography.
   Layout comes from .section / .section-inner--narrow; only the
   post-specific pieces live here.
───────────────────────────────────────── */

.post-list {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.post-card {
  position: relative;
  background: var(--color-surface-elevated);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: var(--space-8);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* The whole card is a click target, but the accessible name stays on the
   heading link rather than being swallowed by a wrapper anchor. */
.post-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-2);
}

.post-card-title a {
  color: var(--color-ink-night);
  text-decoration: none;
}

.post-card:hover .post-card-title a { color: var(--color-interactive); }

.post-card-excerpt {
  color: var(--color-slate-grey);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  margin-bottom: 0;
}

.post-meta {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-slate-grey);
  margin-bottom: var(--space-4);
}

.post-breadcrumb {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-slate-grey);
  margin-bottom: var(--space-6);
}

.post-breadcrumb a { color: inherit; }
.post-breadcrumb a:hover { color: var(--color-interactive); }

.post h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.post-body {
  font-size: var(--text-md);
  line-height: var(--leading-loose);
  color: var(--color-ink-night);
}

.post-body h2 {
  font-size: var(--text-2xl);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.post-body h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.post-body p { margin-bottom: var(--space-5); }

/* The global reset strips list markers site-wide; article prose needs them
   back, or every list reads as a run of unindented paragraphs. */
.post-body ul,
.post-body ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-5);
}

.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }
.post-body li { margin-bottom: var(--space-2); }

.post-body blockquote {
  margin: var(--space-8) 0;
  padding-left: var(--space-5);
  border-left: 3px solid var(--color-interactive);
  font-family: var(--font-body);
  font-style: italic;
  color: var(--color-slate-grey);
}

.post-body a { text-underline-offset: 2px; }

.post-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: var(--space-8) 0;
}

.post-cta { margin-top: var(--space-16); }

/* ─────────────────────────────────────────
   FAQ
───────────────────────────────────────── */

.faq-item {
  border-bottom: var(--border-width) solid var(--border-color);
  padding: var(--space-5) 0;
}
.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  padding: var(--space-2) 0;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(27, 79, 138, 0.08);
  color: var(--color-interactive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  transition: transform var(--transition-base);
}
.faq-item[open] summary::after {
  content: '–';
}

.faq-item p {
  color: var(--color-slate-grey);
  font-size: var(--text-base);
  margin-top: var(--space-3);
  padding-right: var(--space-10);
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */

.about-body {
  font-size: var(--text-md);
  color: var(--color-slate-grey);
  line-height: var(--leading-loose);
  text-align: center;
}

/* ─────────────────────────────────────────
   FINAL CTA
───────────────────────────────────────── */

.final-cta {
  background: var(--color-midnight-navy);
}

.final-cta-inner {
  text-align: center;
}

.final-cta h2 {
  color: var(--color-white);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.final-cta p {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--text-md);
  margin-bottom: var(--space-8);
}

.final-cta-note {
  margin-top: var(--space-5);
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6) !important;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */

.site-footer {
  background: var(--color-midnight-navy);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* The footer sits on midnight navy in both colour schemes, so its lockup uses
   fixed light values instead of --color-ink-night/--color-slate-grey, which
   flip to dark ink in light mode. */
.footer-brand .brand-mark img,
.footer-brand img.brand-mark { height: 56px; }
.footer-brand .brand-name {
  font-size: var(--text-xl);
  color: var(--color-white);
}
.footer-brand .brand-slogan {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-base);
  margin-top: var(--space-4);
  margin-bottom: 0;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}
.footer-nav a:hover { color: var(--color-white); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
}
.footer-contact-label {
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-1);
}
.footer-contact a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.footer-contact a:hover { color: var(--color-white); }

.footer-legal {
  padding-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-5);
}
.footer-legal p {
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--text-xs);
  margin-bottom: 0;
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  text-decoration: underline;
}
.footer-legal a:hover { color: var(--color-white); }

@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand .brand-mark img,
  .footer-brand img.brand-mark { height: 64px; }
  .footer-brand .brand-name { font-size: var(--text-2xl); }
  .footer-brand .brand-slogan { font-size: var(--text-base); }
  .footer-brand p { font-size: var(--text-md); }
}

/* ─────────────────────────────────────────
   MOBILE STICKY CTA BAR
───────────────────────────────────────── */

.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--color-surface-elevated);
  border-top: var(--border-width) solid var(--border-color);
  padding: var(--space-3) var(--space-4);
  padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(13, 27, 42, 0.10);
}
.mobile-cta-bar .btn { width: 100%; }

/* Hands the CTA back to the header at the same width the header regains room
   for it — see the .header-actions .btn rule in the header section. */
@media (min-width: 1080px) {
  .mobile-cta-bar { display: none; }
}

/* Keep last section clear of the sticky mobile bar. Scoped to the pages that
   actually render one (the two landing pages carry .has-sticky-cta on <body>),
   so the legal and confirmation pages don't reserve space for a bar they never
   show. */
@media (max-width: 1079px) {
  body.has-sticky-cta .site-footer { padding-bottom: calc(var(--space-16) + 76px); }
}

/* ─────────────────────────────────────────
   COOKIE CONSENT BANNER
───────────────────────────────────────── */

/* Injected by consent.js only when no choice has been recorded yet. It shares
   the bottom edge with the sticky CTA bar, so that bar is hidden while the
   banner is up rather than stacking two bars on a phone. */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--color-surface-elevated);
  border-top: var(--border-width) solid var(--border-color);
  box-shadow: 0 -6px 24px rgba(13, 27, 42, 0.16);
  padding: var(--space-5) var(--space-4);
  padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
}

.consent-banner-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.consent-banner-title {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  color: var(--color-ink-night);
  margin: 0 0 var(--space-2);
}
.consent-banner-body {
  font-size: var(--text-base);
  color: var(--color-slate-grey);
  margin: 0 0 var(--space-2);
}
.consent-banner-link {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  color: var(--color-interactive);
}

.consent-banner-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.consent-banner-actions .btn { width: 100%; }

@media (min-width: 700px) {
  .consent-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
  }
  .consent-banner-copy { max-width: var(--max-width-content); }
  .consent-banner-actions { flex-direction: row; flex: none; }
  .consent-banner-actions .btn { width: auto; white-space: nowrap; }
}

body.itb-consent-open .mobile-cta-bar { display: none; }

/* Withdrawing consent must be as easy as giving it, so every page carries this
   control. consent.js unhides it; without JavaScript nothing is loaded anyway. */
.footer-consent-settings {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  text-decoration: underline;
}
.footer-consent-settings:hover { color: var(--color-white); }

/* ─────────────────────────────────────────
   LEAD CAPTURE DIALOG
───────────────────────────────────────── */

.lead-dialog {
  border: none;
  border-radius: var(--radius-xl);
  padding: 0;
  width: min(480px, calc(100vw - 2rem));
  max-height: min(800px, calc(100vh - 2rem));
  max-height: min(800px, calc(100dvh - 2rem));
  overflow-y: auto;
  background: var(--color-surface-elevated);
  box-shadow: var(--shadow-xl);
  color: var(--color-ink-night);
}

.lead-dialog::backdrop {
  background: rgba(13, 27, 42, 0.55);
}

.lead-dialog-content {
  padding: var(--space-10) var(--space-8) var(--space-8);
}

.lead-dialog h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-2);
}

.lead-dialog-intro {
  color: var(--color-slate-grey);
  margin-bottom: var(--space-6);
}

.dialog-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(90, 100, 117, 0.10);
  color: var(--color-ink-night);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.dialog-close:hover { background: rgba(90, 100, 117, 0.18); }
.dialog-close .icon { width: 18px; height: 18px; }

.form-field {
  margin-bottom: var(--space-5);
}

.form-field label {
  display: block;
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.optional-tag {
  font-weight: var(--weight-regular);
  color: var(--color-slate-grey);
}

.form-field input {
  width: 100%;
  height: var(--input-height);
  padding: 0 var(--input-padding-x);
  border: 1.5px solid var(--input-border);
  border-radius: var(--input-radius);
  font-family: var(--font-heading);
  font-size: var(--input-font-size);
  color: var(--input-text);
  background: var(--input-bg);
  outline: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.form-field input::placeholder { color: var(--input-placeholder); }
.form-field input:focus {
  border-color: var(--input-border-focus);
  box-shadow: var(--shadow-focus);
}
.form-field input[aria-invalid="true"] {
  border-color: var(--color-error);
}

.field-error {
  color: var(--color-error);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  margin-bottom: 0;
  min-height: 1.2em;
}

/* Honeypot — present in the DOM and in the tab order removed, but
   visually and semantically hidden from real (sighted or AT) visitors. */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-6);
}
.form-fieldset legend {
  padding: 0;
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.radio-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.segment-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 2px solid var(--border-color-strong);
  border-radius: var(--radius-lg);
  background: var(--color-surface-elevated);
  color: var(--color-ink-night);
  cursor: pointer;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.segment-card:hover {
  border-color: var(--color-interactive);
}
.segment-card:focus-within {
  border-color: var(--color-interactive);
  box-shadow: var(--shadow-focus);
}
.segment-card:has(input[type="radio"]:checked) {
  border-color: var(--color-interactive);
}
.segment-card input[type="radio"] {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--color-interactive);
}
.segment-card input[type="radio"]:focus-visible {
  box-shadow: none;
}
.segment-card-copy {
  display: block;
}
.segment-card-title {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
}
.segment-card-description {
  display: block;
  margin-top: var(--space-1);
  color: var(--color-slate-grey);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}
.segment-card-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-interactive);
  color: var(--color-linen-white);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  line-height: 1;
  opacity: 0;
}
.segment-card input[type="radio"]:checked ~ .segment-card-check {
  opacity: 1;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-slate-grey);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-2);
  cursor: pointer;
}
.consent-label input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-interactive);
}
.consent-label a {
  color: var(--color-interactive);
}

.form-submit {
  width: 100%;
  margin-top: var(--space-4);
}

.form-fineprint {
  color: var(--color-slate-grey);
  font-size: var(--text-xs);
  margin-top: var(--space-5);
  text-align: center;
}

.lead-dialog-success {
  text-align: center;
}
.success-icon {
  width: 56px;
  height: 56px;
  color: var(--color-success);
  margin-bottom: var(--space-4);
}
.lead-dialog-success p {
  color: var(--color-slate-grey);
  margin-bottom: var(--space-6);
}
