/* =========================================================================
   Design system.

   THE TOKENS BLOCK BELOW IS THE THEME. A new site replaces the values between
   ":root {" and the closing brace of the tokens block — palette, type, scale,
   radii, spacing — with the ones from its own design canvas, and changes
   nothing else in this file. Every component below reads tokens only, so a
   re-skin is that one block plus the two font files in assets/fonts/.

   Token names are roles, not colours: --ink is the darkest surface and the
   heading colour, --accent is the one action colour, --surface is the
   alternating band. Renaming them means editing every rule below, so don't.

   Later phases append their own sections BELOW the components, never inline
   styles.

   Order: tokens · fonts · reset · typography · layout · components · utilities
   ========================================================================= */

/* == tokens ============================================================== */

:root {
  /* palette */
  --ink: #10263a;           /* darkest surface — headings, dark bands, footer (besiktningsmannen: djup skifferblå) */
  --accent: #ff8a3d;        /* the one action colour — varm orange, ink-text på knappar 6.6:1 */
  --accent-text: #a84a17;   /* the accent as TEXT on a light background (5.9:1 on --bg, 5.3:1 on --surface). A separate token
                               because an accent bright enough for a button is rarely
                               readable as type: this value is 4.95:1 on --bg and 4.58:1
                               on --surface, both AA. When you replace --accent, re-check
                               this one against BOTH light bands rather than darkening it
                               by eye. */
  --bg: #ffffff;
  --surface: #f3f6f8;       /* the alternating section band */
  --border: #e2e8ee;        /* card and input borders */
  --outline: #c9d3dd;       /* secondary button border */
  --muted: #5a6878;         /* secondary text */
  --whatsapp: #25a35a;      /* WhatsApp / ok */
  --ok-bg: #e9f7ee;
  --ok-text: #1e7a45;

  /* on-ink variants: the design canvas builds these from white at low alpha */
  --on-ink: #ffffff;
  --on-ink-muted: rgba(255, 255, 255, 0.72);
  --on-ink-faint: rgba(255, 255, 255, 0.6);
  --on-ink-border: rgba(255, 255, 255, 0.14);
  --on-ink-line: rgba(255, 255, 255, 0.25);
  --on-ink-panel: rgba(255, 255, 255, 0.06);

  /* type */
  --font-display: "Bricolage Grotesque", "Bricolage Grotesque Fallback",
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Onest", "Onest Fallback", ui-sans-serif, system-ui,
    -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* display scale — desktop 64/48/44/28, mobile 40/34/30/24 (see @media) */
  --t-d1: 64px;
  --t-d2: 48px;
  --t-d3: 44px;
  --t-d4: 28px;
  --t-card: 22px;   /* Bricolage 600 card titles */
  --t-lead: 18px;
  --t-body: 16px;
  --t-small: 15px;
  --t-note: 14px;
  --t-label: 13px;

  /* radii */
  --r-pill: 999px;
  --r-card: 16px;
  --r-input: 12px;
  --r-tile: 10px;
  --r-chip: 6px;

  /* spacing — 4px scale: 8 · 12 · 16 · 28 · 64 */
  --s-1: 8px;
  --s-2: 12px;
  --s-3: 16px;
  --s-4: 28px;
  --s-5: 64px;
  --section-y: 88px;     /* section rhythm, 56px on mobile */
  --gutter: 64px;        /* page margin, 24px on mobile */
  --container: 1280px;

  --shadow-panel: 0 -20px 60px rgba(0, 0, 0, 0.25);
  --shadow-fab: 0 8px 24px rgba(16, 38, 58, 0.22);
  --focus: 0 0 0 3px rgba(255, 138, 61, 0.5);
}

@media (max-width: 768px) {
  :root {
    --t-d1: 40px;
    --t-d2: 34px;
    --t-d3: 30px;
    --t-d4: 24px;
    --section-y: 56px;
    --gutter: 24px;
  }
}

/* == fonts =============================================================== */
/* Self-hosted woff2. Both families ship as variable fonts, so one
   file per subset covers every weight we use: Bricolage 600/800 for display,
   Onest 400/500/600 for body. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2192, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2192, U+2C60-2C7F, U+A720-A7FF;
}

/* Metric-matched fallbacks so swapping in the webfont does not shift layout. */
@font-face {
  font-family: "Onest Fallback";
  src: local("Arial");
  size-adjust: 104%;
  ascent-override: 95%;
  descent-override: 24%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Bricolage Grotesque Fallback";
  src: local("Arial");
  size-adjust: 102%;
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
}

/* == reset =============================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Keep navigation and native form submission usable without JavaScript. */
html:not(.js) { scroll-behavior: auto; }
.site-nav__fallback { display: none !important; }
html:not(.js) .site-nav__fallback { display: inline-flex !important; }
html:not(.js) [data-mega-toggle],
html:not(.js) .mega,
html:not(.js) .nav-toggle,
html:not(.js) .nav-drawer-cta { display: none; }
html:not(.js) .site-header { position: static; }
html:not(.js) .site-header__bar { flex-wrap: wrap; gap: 16px; }
html:not(.js) .site-header__nav {
  position: static; inset: auto; padding: 0; overflow: visible;
  width: 100%; order: 3;
}
html:not(.js) .site-nav {
  flex-direction: row; flex-wrap: wrap; gap: 12px 24px; font-size: 14px;
}
html:not(.js) .site-nav > li { border: 0; }
html:not(.js) .site-nav a { width: auto; padding: 4px 0; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
ul,
ol,
dl {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--s-4) 0;
}

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

/* == typography ========================================================== */

.d1,
.d2,
.d3,
.d4,
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: pretty;
}

.d1,
h1 {
  font-size: var(--t-d1);
  line-height: 1;
  letter-spacing: -0.035em;
}

.d2 {
  font-size: var(--t-d2);
  line-height: 1;
  letter-spacing: -0.035em;
}

.d3,
h2 {
  font-size: var(--t-d3);
}

.d4,
h3 {
  font-size: var(--t-d4);
}

/* Bricolage 600 · 22 — card titles */
.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-card);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--muted);
}

.prose p {
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--muted);
}

.prose p + p {
  margin-top: var(--s-3);
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.note {
  font-size: var(--t-note);
  color: var(--muted);
}

.eyebrow {
  font-size: var(--t-label);
  font-weight: 600;
  color: var(--accent-text);
  margin: 0;
}

.accent {
  color: var(--accent);
}

.mono {
  font-family: var(--font-mono);
}

/* == layout ============================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-y);
}

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

.section--ink {
  background: var(--ink);
  color: var(--on-ink);
}

/* Text on a dark band. --muted is tuned for white backgrounds and drops to
   about 2.4:1 on ink blue, so every ink surface has to re-state it. */
.section--ink .lead,
.section--ink .prose p,
.section--ink .note,
.hero .lead,
.hero .prose p,
.hero .note,
.page-hero .lead,
.page-hero .prose p,
.page-hero .note {
  color: var(--on-ink-muted);
}

.section--ink .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--accent);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head--split {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  max-width: none;
}

.section-head--split .section-head__text {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  max-width: 620px;
}

.section-head--split .section-head__aside {
  max-width: 380px;
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: var(--s-3);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: center;
}

.split--top {
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

@media (max-width: 900px) {
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4,
  .split {
    grid-template-columns: 1fr;
  }
  .split {
    gap: 40px;
  }
  .section-head--split {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* == accessibility ======================================================= */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  padding: var(--s-2) var(--s-3);
  border-radius: 0 0 var(--r-chip) 0;
}

.skip-link:focus {
  left: 0;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--r-chip);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* == buttons ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  font-family: var(--font-body);
  font-size: var(--t-small);
  font-weight: 600;
  line-height: 1.2;
  padding: 16px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--ink);
}

.btn--primary:hover {
  background: #e0a621;
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--outline);
  padding: 14px 22px;
}

.btn--secondary:hover {
  border-color: var(--ink);
}

.btn--whatsapp {
  /* B4 a11y fix: white text on the brand green --whatsapp is
     3.24:1, below WCAG AA. --ok-text is the same hue family at 5.3:1.
     --whatsapp (#25A35A) stays defined as the WhatsApp icon/FAB accent. */
  background: var(--ok-text);
  color: #fff;
  padding: 14px 22px;
}

.btn--whatsapp:hover {
  background: #16532f;
}

.btn--sm {
  font-size: var(--t-note);
  padding: 12px 20px;
}

/* On an ink band the outline button has to invert, or it is ink-on-ink and
   effectively invisible. Every dark surface is listed here. */
.on-ink .btn--secondary,
.section--ink .btn--secondary,
.hero .btn--secondary,
.page-hero .btn--secondary,
.site-header .btn--secondary,
.site-footer .btn--secondary {
  color: var(--on-ink);
  border-color: var(--on-ink-line);
}

.on-ink .btn--secondary:hover,
.section--ink .btn--secondary:hover,
.hero .btn--secondary:hover,
.page-hero .btn--secondary:hover,
.site-header .btn--secondary:hover,
.site-footer .btn--secondary:hover {
  border-color: var(--on-ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* == pill, chip, stat ==================================================== */

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--on-ink-border);
  border-radius: var(--r-pill);
  padding: 7px 14px;
  font-size: var(--t-label);
  font-weight: 500;
  align-self: flex-start;
}

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.badge-ok {
  font-size: 12px;
  font-weight: 600;
  background: var(--ok-bg);
  color: var(--ok-text);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.chip {
  font-size: var(--t-label);
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease;
}

.chip[aria-pressed="true"],
.chip-radio:checked + .chip {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}

.chip-radio:focus-visible + .chip {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  position: relative;   /* containing block for the hidden radios below */
}

/* The chips are labels for real radio inputs, so the choice survives with JS
   off. The input itself is collapsed rather than hidden with .visually-hidden:
   an absolutely-positioned box inside a wrapping flex row keeps its static
   position, which pushed the inputs past the right edge and gave the whole page
   a horizontal scrollbar. Pinning them to the row's origin cannot overflow. */
.chip-radio {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: var(--s-2);
  border-top: 1px solid var(--on-ink-border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 14px;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-d4);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat__label {
  font-size: var(--t-label);
  color: var(--on-ink-faint);
}

/* == cards =============================================================== */

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card--ink {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
  justify-content: space-between;
}

.card--ink p {
  color: rgba(255, 255, 255, 0.7);
}

.card--link {
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card--link:hover {
  border-color: var(--outline);
  transform: translateY(-2px);
}

.card__num {
  width: 40px;
  height: 40px;
  border-radius: var(--r-tile);
  background: var(--ink);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  flex: none;
}

.card__text {
  margin: 0;
  font-size: var(--t-small);
  line-height: 1.55;
  color: var(--muted);
}

/* == check list ========================================================== */

.checklist {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  font-size: var(--t-small);
}

.checklist li {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
}

.checklist li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* == breadcrumbs ========================================================= */

.breadcrumbs {
  font-size: var(--t-label);
  color: var(--muted);
  padding-block: var(--s-3);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: var(--s-1);
  color: var(--outline);
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

/* == FAQ (native details) ================================================ */

.faq {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.faq details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--s-3) var(--s-4);
}

.faq summary {
  font-weight: 600;
  font-size: var(--t-lead);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--accent-text);
  flex: none;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details > p {
  margin-top: var(--s-2);
  color: var(--muted);
  line-height: 1.7;
}

/* == status panel (the "Panel del cliente" mock) ========================= */
/* Generic labels only: never a client name, never an invented figure. */

.status-panel {
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--r-card) var(--r-card) 0 0;
  padding: 26px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  box-shadow: var(--shadow-panel);
}

.status-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  font-weight: 600;
  font-size: var(--t-small);
}

.status-panel__tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}

.status-tile {
  background: var(--surface);
  border-radius: var(--r-tile);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-tile__label {
  font-size: 12px;
  color: var(--muted);
}

.status-tile__value {
  font-weight: 600;
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
}

.status-panel__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-label);
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

@media (max-width: 520px) {
  .status-panel__tiles {
    grid-template-columns: 1fr;
  }
  .status-panel__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-1);
  }
}

/* == header ============================================================== */

.site-header {
  background: var(--ink);
  color: var(--on-ink);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: 18px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  color: var(--on-ink);
  flex: none;
}

.wordmark__mark {
  width: 30px;
  height: 30px;
  border-radius: var(--s-1);
  background: var(--accent);
  display: block;
  flex: none;
}

.wordmark__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

/* footer variant */
.wordmark--sm .wordmark__mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.wordmark--sm .wordmark__text {
  font-size: 18px;
}

.site-nav {
  display: flex;
  gap: var(--s-4);
  font-size: var(--t-note);
  font-weight: 500;
}

.site-nav > li {
  position: relative;
  display: flex;
  align-items: center;
}

.site-nav a,
.site-nav button {
  color: var(--on-ink-muted);
  text-decoration: none;
  background: none;
  border: 0;
  padding: var(--s-1) 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav button:hover,
.site-nav a[aria-current="page"] {
  color: var(--on-ink);
}

.site-nav__caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.15s ease;
}

.site-nav [aria-expanded="true"] .site-nav__caret {
  transform: translateY(1px) rotate(-135deg);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex: none;
}

.site-header__actions .btn {
  padding: 11px 18px;
  font-size: var(--t-note);
}

/* mega-menu */

.mega {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: var(--s-2);
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: 0 24px 60px rgba(15, 27, 45, 0.22);
  padding: var(--s-4);
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: var(--s-4);
  width: max-content;
  max-width: min(92vw, 900px);
  z-index: 110;
}

.mega[hidden] {
  display: none;
}

.mega__col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--s-2);
}

.mega ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega a {
  display: block;
  color: var(--ink);
  font-size: var(--t-small);
  font-weight: 500;
  text-decoration: none;
  padding: var(--s-1) var(--s-2);
  border-radius: var(--r-chip);
}

.mega a:hover,
.mega a[aria-current="page"] {
  background: var(--surface);
}

.mega li[data-child] a {
  padding-left: var(--s-4);
  color: var(--muted);
}

.mega__foot {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border);
  padding-top: var(--s-3);
}

/* mobile drawer */

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--on-ink-line);
  border-radius: var(--r-pill);
  color: var(--on-ink);
  padding: 10px 16px;
  font-size: var(--t-note);
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .site-header__actions .btn--secondary {
    display: none;
  }
  .site-nav {
    gap: var(--s-3);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-header__nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    padding: 96px var(--gutter) var(--s-5);
    overflow-y: auto;
    z-index: 105;
  }

  .site-header__nav[hidden] {
    display: none;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    font-size: var(--t-lead);
  }

  .site-nav > li {
    display: block;
    border-bottom: 1px solid var(--on-ink-border);
  }

  .site-nav a,
  .site-nav button {
    padding: var(--s-3) 0;
    width: 100%;
    justify-content: space-between;
  }

  .mega {
    position: static;
    transform: none;
    width: auto;
    max-width: none;
    grid-template-columns: 1fr;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 var(--s-3);
    gap: var(--s-3);
  }

  .mega a {
    color: var(--on-ink-muted);
  }

  .mega a:hover,
  .mega a[aria-current="page"] {
    background: var(--on-ink-panel);
    color: var(--on-ink);
  }

  .mega__foot {
    border-top-color: var(--on-ink-border);
  }

  .site-header__actions .btn--primary {
    display: none;
  }

  .nav-drawer-cta {
    display: flex;
    flex-direction: column;
    gap: var(--s-2);
    margin-top: var(--s-4);
  }
}

@media (min-width: 901px) {
  .nav-drawer-cta {
    display: none;
  }
}

/* == footer ============================================================== */

.site-footer {
  background: var(--ink);
  color: var(--on-ink-faint);
  padding-block: 48px;
  font-size: var(--t-note);
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer h2 {
  font-family: var(--font-body);
  font-size: var(--t-note);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--on-ink);
  margin-bottom: var(--s-2);
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--on-ink);
  text-decoration: underline;
}

.site-footer__blurb {
  line-height: 1.55;
  max-width: 320px;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--on-ink-border);
  font-size: var(--t-label);
}

@media (max-width: 900px) {
  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__blurb {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .site-footer__cols {
    grid-template-columns: 1fr;
  }
}

/* == WhatsApp floating button / sticky bar =============================== */
/* One element only: a round FAB on desktop, a full-width sticky bar at
   <= 768px. Never both. */

.wa-fab {
  position: fixed;
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  /* Same a11y fix as .btn--whatsapp: the fab's label is visible text, so its
     background moves to --ok-text (5.3:1). --whatsapp (#25A35A) remains as
     the icon's own accent colour (below) rather than disappearing. */
  background: var(--ok-text);
  color: #fff;
  font-weight: 600;
  font-size: var(--t-note);
  text-decoration: none;
  padding: 14px 20px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-fab);
  transition: transform 0.15s ease;
}

.wa-fab:hover {
  transform: translateY(-2px);
}

.wa-fab svg {
  width: 20px;
  height: 20px;
  fill: var(--whatsapp);
  flex: none;
}

@media (max-width: 768px) {
  .wa-fab {
    right: 0;
    left: 0;
    bottom: 0;
    border-radius: 0;
    justify-content: center;
    padding: 16px;
    font-size: var(--t-body);
  }

  body {
    padding-bottom: 60px;
  }
}

/* == lead form =========================================================== */

.lead-form {
  background: var(--surface);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 0;
  margin: 0;
}

.lead-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > span {
  font-size: var(--t-label);
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  font-size: var(--t-small);
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-input);
  background: var(--bg);
  color: var(--ink);
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #97a1b0;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus);
}

.lead-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.lead-form legend {
  padding: 0;
  font-size: var(--t-label);
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  border-radius: var(--r-input);
  padding: var(--s-3) var(--s-4);
  font-size: var(--t-small);
  line-height: 1.55;
}

.form-status--ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.form-status--error {
  background: #fdecec;
  color: #a02020;
}

.form-status[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .lead-form {
    padding: var(--s-4) var(--s-3);
  }
  .lead-form__row {
    grid-template-columns: 1fr;
  }
}

/* == contact facts ======================================================= */
/* Each row renders only when content/site.php has the value, so the list is
   empty until the owner supplies the NAP — and an empty <dl> shows nothing. */

.contact-facts {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin: 0;
}

.contact-facts dt {
  font-size: var(--t-label);
  font-weight: 600;
  color: var(--muted);
}

.contact-facts dd {
  margin: 2px 0 0;
  font-size: var(--t-body);
}

/* == hero ================================================================ */

.hero {
  background: var(--ink);
  color: var(--on-ink);
  position: relative;
  overflow: hidden;
  padding-block: 80px;
}

.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(242, 182, 43, 0.22),
    rgba(242, 182, 43, 0) 70%
  );
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 720px;
}

.hero__lead {
  max-width: 520px;
}

/* == page header (interior pages) ======================================== */

.page-hero {
  background: var(--ink);
  color: var(--on-ink);
  padding-block: 56px 64px;
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: 760px;
}

.page-hero .breadcrumbs {
  color: var(--on-ink-faint);
  padding-block: 0 var(--s-3);
}

.page-hero .breadcrumbs [aria-current="page"] {
  color: var(--on-ink);
}

.page-hero .breadcrumbs li + li::before {
  color: var(--on-ink-line);
}

/* == utilities =========================================================== */

.mt-0 { margin-top: 0; }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.text-muted { color: var(--muted); }
.flow > * + * { margin-top: var(--s-3); }

/* == home ================================================================ */
/* The homepage, section by section — everything reads tokens, no inline
   styles. Shared with /servicios/ where the same block appears there. */

/* The header is sticky and ~77px tall, so an in-page jump (#servicios from the
   hero, #como-trabajamos from the hub) has to leave room for it or the heading
   lands underneath the bar. */
section[id] {
  scroll-margin-top: 92px;
}

/* --- hero: copy left, the monthly-report panel flush at the bottom right --- */

.hero--home {
  padding-block: 80px 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
}

.hero--home .hero__copy {
  padding-bottom: 80px;
  max-width: none;
}

.hero__panel {
  align-self: end;
}

.status-panel__note {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* --- servicios: six numbered cards, then the "¿no sabe qué necesita?" strip - */

/* A card that carries secondary links cannot be one big anchor, so it is an
   article whose heading holds the primary link. These rules give it the same
   affordance as .card--link. */
.card--service {
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card--service:hover,
.card--service:focus-within {
  border-color: var(--outline);
  transform: translateY(-2px);
}

.card--service .card-title a {
  color: inherit;
  text-decoration: none;
}

.card--service .card-title a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card__links {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}

.card__links a {
  display: inline-block;
  font-size: var(--t-label);
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 12px;
}

.card__links a:hover {
  color: var(--ink);
  border-color: var(--outline);
}

.unsure {
  margin-top: var(--s-3);
  background: var(--ink);
  color: var(--on-ink);
  border-radius: var(--r-card);
  padding: var(--s-4) 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.unsure__copy {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  max-width: 620px;
}

.unsure__copy p {
  margin: 0;
  font-size: var(--t-small);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

.unsure .btn {
  flex: none;
}

/* --- credibility band: two image slots plus the accent badge -------------- */

.figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.figures__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 40px;
}

.figures__tall,
.figures__square {
  border-radius: var(--r-card);
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.figures__tall {
  aspect-ratio: 3 / 4;
}

.figures__square {
  aspect-ratio: 1;
}

/* Until B4 supplies the photography the slots are a neutral
   decorative texture, not a broken image and not a captioned identity claim. */
.figures__slot {
  background: repeating-linear-gradient(
    135deg,
    var(--border) 0 10px,
    #eef1f6 10px 20px
  );
}

.figures__badge {
  background: var(--accent);
  color: var(--ink);
  border-radius: var(--r-card);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.figures__badge-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.03em;
  line-height: 1;
}

.figures__badge-note {
  font-size: var(--t-label);
  font-weight: 500;
}

/* No founding year yet, so the badge carries the neutral line on its own and
   needs the weight the missing number would have given it. */
.figures__badge-note--solo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-lead);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* --- proceso: four steps on ink blue ------------------------------------- */

.section-head--narrow {
  max-width: 680px;
}

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}

.process__step {
  background: var(--on-ink-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-card);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.process__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.process__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-lead);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}

.process__text {
  margin: 0;
  font-size: var(--t-note);
  line-height: 1.55;
  color: var(--on-ink-muted);
}

/* Reused on a white band by content phases: the ink-only colours have to come back. */
.section:not(.section--ink) > .container > .process .process__step {
  background: var(--bg);
  border-color: var(--border);
}

.section:not(.section--ink) > .container > .process .process__num {
  color: var(--accent-text);
}

.section:not(.section--ink) > .container > .process .process__text {
  color: var(--muted);
}

/* --- casos: one featured quote plus the rest ----------------------------- */

.quotes {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--s-3);
}

.quote {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.quote--feature {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
  padding: 36px;
  gap: 28px;
}

.quote__text {
  margin: 0;
  font-size: var(--t-lead);
  line-height: 1.45;
  font-weight: 500;
}

.quote--feature .quote__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-d4);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.quote__by {
  font-size: var(--t-note);
  line-height: 1.5;
  color: var(--muted);
  display: flex;
  flex-direction: column;
}

.quote__by strong {
  color: var(--ink);
  font-weight: 600;
}

.quote--feature .quote__by {
  color: var(--on-ink-faint);
}

.quote--feature .quote__by strong {
  color: var(--on-ink);
}

/* --- rubros: the band that stands in while there are no testimonials ------ */

.industries {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

.industries__item {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 24px var(--s-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-card);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  text-decoration: none;
  /* "Profesionales independientes" is wider than a half-column on a 390px
     screen and Bricolage 600 gives it nowhere to break. */
  overflow-wrap: break-word;
}

/* an item may be a link to its segment page
   page — a small affordance so the band reads as navigation, not decoration. */
a.industries__item {
  transition: border-color .15s ease, color .15s ease;
}

a.industries__item:hover,
a.industries__item:focus-visible {
  border-color: var(--accent);
  color: var(--accent-text);
}

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1024px) {
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero--home .hero__copy {
    padding-bottom: 0;
  }
  .quotes {
    grid-template-columns: 1fr 1fr;
  }
  .quote--feature {
    grid-column: 1 / -1;
  }
  .industries {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero--home {
    padding-block: 56px 0;
  }
  .process {
    grid-template-columns: 1fr;
  }
  .quotes {
    grid-template-columns: 1fr;
  }
  .unsure {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--s-4);
  }
  .figures {
    gap: var(--s-2);
  }
  .figures__col {
    padding-top: var(--s-4);
    gap: var(--s-2);
  }
  /* Empty slots are worth a screenful of texture on a desktop composition and
     nothing at all on a phone. The badge stays. */
  .figures--empty {
    grid-template-columns: 1fr;
  }
  .figures--empty .figures__slot {
    display: none;
  }
  .figures--empty .figures__col {
    padding-top: 0;
  }
  .status-panel__note {
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .industries {
    grid-template-columns: 1fr;
  }
}

/* == b1 service pages ===================================================== */

/* Qué incluye / Qué no incluye / Qué necesitamos de usted, side by side when
   more than one list is present, single column with 1-3 lists gracefully. */
.checklist-grid {
  display: grid;
  gap: var(--s-5) var(--s-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.checklist--no li::before {
  content: "✕";
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}

.checklist--need li::before {
  content: "→";
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

/* Guía rápida sub-cards inside a body section (see templates/service.php
   $block['items']) read better as a tighter, surface-toned tile than the
   related-services card, so they don't compete with it visually. */
.section--surface .card {
  background: var(--bg);
}

/* == b2 pages ============================================================= */

/* Article byline (date · reading time) and tag row, on the ink page-hero
   (templates/article.php). */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  font-size: var(--t-note);
  color: var(--on-ink-faint);
  margin: 0;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  list-style: none;
  padding: 0;
  margin: var(--s-1) 0 0;
}

/* == b3 tools ============================================================= */
/* The six /herramientas/ calculators (templates/tool.php). Reuses .card,
   .field, .chip-row and .checklist rather than inventing new primitives —
   only the calculator-specific layout below is new. */

.tool {
  gap: var(--s-4);
}

.tool + .tool {
  margin-top: var(--s-4);
}

.tool-reviewed {
  margin: 0;
}

.tool-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.tool-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}

.tool-form__months {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.tool-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.tool-result__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-d3);
  color: var(--ink);
  margin: 0;
}

.tool-result__lines {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-1) var(--s-3);
  margin: 0;
}

.tool-result__lines dt {
  font-size: var(--t-small);
  color: var(--muted);
}

.tool-result__lines dd {
  margin: 0;
  font-weight: 600;
  font-family: var(--font-mono);
  text-align: right;
  white-space: nowrap;
}

.table-scroll {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-small);
  min-width: 560px;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--border);
  padding: var(--s-2) var(--s-3);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font-display);
  font-weight: 600;
}

.compare-table tbody th {
  background: var(--surface);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .tool-form__row {
    grid-template-columns: 1fr;
  }
  .tool-form__months .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* == b4 polish ============================================================
   Imagery, performance and a11y additions. No token block or
   locked partial touched — see KNOWN-ISSUES.md "B4" for the reasoning
   behind each rule below. */

/* Review decision 4: on the light plan
   cards the checklist's filled circle (ink bg, accent check) reads clearly;
   on the Pyme "card--ink" plan that same ink-on-ink circle disappears into
   the card background, leaving a bare floating checkmark. Inverting the two
   colours — the same treatment secondary buttons already get on ink bands —
   keeps it a filled circle instead of losing the badge shape. */
.card--ink .checklist li::before {
  background: var(--accent);
  color: var(--ink);
}

/* == c1 lead routing =======================================================
   The WhatsApp menu, the per-service thank-you state and the vencimientos
   reminder capture. All below the tokens block; no existing rule
   changed. */

/* -- WhatsApp menu ---------------------------------------- */
/* A popover anchored above the floating button on desktop; a bottom sheet on
   phones, where the trigger is the full-width sticky bar. One panel, two
   shapes — the same discipline .wa-fab itself follows. */

.wa-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
}

.wa-menu[hidden] {
  display: none;
}

.wa-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 27, 45, 0.45);
}

.wa-menu__panel {
  position: absolute;
  right: var(--s-4);
  bottom: calc(var(--s-4) + 64px);
  width: min(380px, calc(100vw - 2 * var(--s-4)));
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-fab);
  padding: var(--s-3);
}

.wa-menu__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-2);
}

.wa-menu__title {
  margin: 0;
  font-weight: 600;
  font-size: var(--t-small);
}

.wa-menu__close {
  flex: none;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
}

.wa-menu__list {
  list-style: none;
  margin: var(--s-2) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-1);
}

.wa-menu__option {
  display: block;
  padding: 10px var(--s-2);
  border-radius: var(--r-input);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.wa-menu__option:hover {
  border-color: var(--outline);
  background: var(--surface);
}

/* The page the visitor is actually on leads the list and is pre-highlighted,
   because it is the message they are most likely to want. */
.wa-menu__option--current {
  border-color: var(--ok-text);
  background: var(--ok-bg);
}

.wa-menu__label {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  font-weight: 600;
  font-size: var(--t-small);
}

.wa-menu__badge {
  font-weight: 500;
  font-size: var(--t-label);
  color: var(--ok-text);
  border: 1px solid currentColor;
  border-radius: var(--r-chip);
  padding: 1px 6px;
}

/* The prefill itself, so a visitor sees the message before it is sent. */
.wa-menu__text {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--t-note);
}

.wa-menu__note {
  margin: var(--s-2) 0 0;
  color: var(--muted);
  font-size: var(--t-label);
}

@media (max-width: 768px) {
  .wa-menu__panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    max-height: 80vh;
    border-radius: var(--r-card) var(--r-card) 0 0;
    border-bottom: 0;
    padding: var(--s-3) var(--s-3) var(--s-4);
  }
}

/* -- Per-service thank-you --------------------------------- */
/* The second touch. It replaces "gracias" with what to have ready, so the
   visitor has a reason to read it. */

.thanks {
  border: 1px solid var(--ok-text);
  border-radius: var(--r-card);
  background: var(--ok-bg);
  padding: var(--s-3);
}

.thanks__title {
  margin: 0;
  font-weight: 600;
  color: var(--ok-text);
}

.thanks__next {
  margin: var(--s-2) 0 0;
  font-size: var(--t-note);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.thanks__steps {
  margin: var(--s-1) 0 0;
  padding-left: 1.1em;
  display: grid;
  gap: 6px;
}

.thanks__steps li {
  font-size: var(--t-small);
}

.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
}

/* -- Vencimientos reminder capture -------------------------- */

/* Pre-existing surfaced by putting a form inside the result panel:
   `.tool-result { display: flex }` is an author rule and beats the user-agent's
   `[hidden] { display: none }`, so all six calculators rendered an empty
   "Resultado" box — and now a reminder form — before anything was calculated.
   Visible in docs/screenshots/b3/. One rule fixes every tool. */
.tool-result[hidden] {
  display: none;
}

.remind {
  margin-top: var(--s-3);
  border-top: 1px solid var(--border);
  padding-top: var(--s-3);
}

.remind__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s-2);
}

.remind__row .field {
  flex: 1 1 220px;
  margin: 0;
}

/* == c2 guides ==============================================================
   The numbered steps list on templates/guide.php. Below the
   tokens block; no existing rule changed. */

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  counter-reset: steps;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps__item {
  counter-increment: steps;
  position: relative;
  padding-left: 48px;
}

.steps__item::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 2px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.steps__item h2 {
  font-size: var(--t-card);
  margin-bottom: var(--s-1);
}

.steps__item p {
  color: var(--muted);
}

.steps__item p + p {
  margin-top: var(--s-1);
}

.guide-reviewed {
  margin: 0;
}

/* == template pages ======================================================= */
/* Components used only by the pages this template ships with — the contact
   details list, the blog card's date line and the pricing figure. Tokens only,
   like everything above. */

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--border);
}

.contact-list__label {
  min-width: 7rem;
  color: var(--muted);
  font-size: var(--t-small);
}

.card__meta {
  display: block;
  color: var(--muted);
  font-size: var(--t-note);
  margin-bottom: var(--s-1);
}

.price {
  margin-top: var(--s-2);
  font-family: var(--font-display);
  font-size: var(--t-d4);
  line-height: 1.1;
}

.price .note {
  margin-left: var(--s-1);
  font-family: var(--font-body);
  font-size: var(--t-note);
}

/* == T1 besiktningsmannen ================================================ */
/* Startsidan med formuläret i hjälten, plus färger som mallens komponenter
   hårdkodar utanför tokenblocket (hover, hjältens ljuscirkel). */

.btn--primary:hover {
  background: #f0782a;
}

.hero::before {
  background: radial-gradient(
    circle,
    rgba(255, 138, 61, 0.2),
    rgba(255, 138, 61, 0) 70%
  );
}

.container--narrow {
  max-width: 860px;
}

.hero--lead {
  padding-block: 64px 72px;
}

.hero__grid--form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  align-items: start;
}

.hero--lead .hero__copy {
  padding-top: 8px;
  gap: 22px;
}

.hero__form .lead-form {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.hero__form .lead-form .card-title {
  color: var(--ink);
}
.hero__form .lead-form p { color: var(--ink); }
.hero__form .lead-form .note, .hero__form .lead-form .note a { color: var(--muted); }
.hero__form .lead-form .note a { text-decoration: underline; }
.hero__form .lead-form .form-status--error { color: #9f2020; }

.hero__form-note {
  margin-top: var(--s-2);
  color: var(--on-ink-muted);
  text-align: center;
}

.checklist--on-ink li {
  color: var(--on-ink);
}

.home-protocol .status-panel {
  max-width: 520px;
  margin-inline: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: 0 18px 48px rgba(16, 38, 58, 0.1);
}

.area-list {
  list-style: none;
  padding: 0;
  margin: var(--s-2) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
}

.area-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: var(--t-note);
}

.home-prices {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

/* Den flytande knappen utan WhatsApp: offert-genväg i accentfärg. */
.wa-fab--quote {
  background: var(--accent);
  color: var(--ink);
}

.wa-fab--quote svg {
  fill: currentColor;
}

@media (max-width: 960px) {
  .hero__grid--form {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .hero--lead {
    padding-block: 36px 48px;
  }

  .hero__form .lead-form {
    padding: 22px;
  }

  .lead-form__row {
    grid-template-columns: 1fr;
  }
}

/* Långa svenska sammansättningar ("överlåtelsebesiktning") får inte spräcka
   rubriker och kort på smala skärmar. */
h1, h2, h3, .card-title {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Lead foundation: compact controls and one form near the service headline. */
.service-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 40px; align-items: start; }
.service-hero-grid .page-hero__inner { max-width: none; }
.form-service { margin: 0; font-weight: 600; }
.lead-form { gap: 14px; }
.lead-form .field { gap: 5px; }
.lead-form input, .lead-form select { min-height: 44px; }
#offert { scroll-margin-top: 100px; }
.service-image { margin: 0; }
.service-image img { display: block; width: 100%; height: auto; border-radius: var(--r-card); }
.service-image figcaption { margin-top: 8px; font-size: var(--t-note); color: var(--muted); }
@media (max-width: 960px) { .service-hero-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 768px) {
  .site-header__bar { gap: 12px; }
  .site-header__actions { display: none; }
  .wordmark { gap: 6px; }
  .wordmark__mark { width: 24px; height: 24px; }
  .wordmark__text { font-size: clamp(13px, 4.3vw, 18px); }
  .nav-toggle { padding: 9px 12px; }
  .hero--lead { padding-block: 24px 36px; }
  .hero--lead .hero__copy { gap: 12px; }
  .hero--lead .hero__copy > .pill { display: none; }
  .hero--lead h1, .service-hero-grid h1 { font-size: clamp(30px, 8.4vw, 42px); }
  .hero__grid--form { gap: 22px; }
  .hero--lead .checklist { display: none; }
  .hero__form .lead-form { padding: 18px; }
  .lead-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .lead-form .field { min-width: 0; }
  .lead-form input, .lead-form select, .lead-form textarea { padding: 9px 12px; line-height: 1.4; }
  .lead-form textarea { min-height: 62px; }
  .lead-form { gap: 10px; }
  .lead-form .note { font-size: 12px; line-height: 1.4; }
  .page-hero--service { padding-block: 24px 32px; }
  .service-hero-grid h1 { font-size: clamp(28px, 7.6vw, 34px); }
  .service-hero-grid .lead { font-size: 16px; line-height: 1.5; }
  .service-hero-grid .page-hero__inner > .eyebrow { display: none; }
  .service-hero-grid .page-hero__inner .btn--primary { display: none; }
}
@media (max-width: 350px) { .lead-form__row { grid-template-columns: 1fr; } }

/* Navigation and practical resource blocks. */
.content-nav { display:flex; flex-wrap:wrap; gap:10px 22px; padding-block:24px; border-bottom:1px solid var(--border); font-size:14px; }
.content-nav a { text-underline-offset:4px; }
.context-links { padding-left:22px; margin-top:18px; }
.context-links li + li { margin-top:10px; }
.source-note { border-left:3px solid var(--accent); padding-left:24px; }
.source-note h2 { font-size:var(--t-h3); }
.download-card { padding:24px; border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface); }
.download-card .note { margin-top:14px; }
h2[id], #omfattning, #fragor, #delegar { scroll-margin-top:100px; }
@media print { .site-header,.site-footer,.lead-form,.cta-band,.wa-fab,.nav-toggle,.btn-row { display:none!important; } .section { padding-block:18px; } .steps__item { break-inside:avoid; } body { color:#000;background:#fff; } a { color:inherit; } }

@media (min-width:901px) and (max-width:1200px) { .site-header__actions > .btn--secondary { display:none; } }

.mobile-lead-actions { display:none; }
@media (max-width:768px) { body { padding-bottom:76px; } .wa-fab--quote { display:none; } .mobile-lead-actions { position:fixed; inset:auto 0 0; z-index:90; display:grid; grid-template-columns:1fr 1.4fr; gap:10px; padding:10px 16px calc(10px + env(safe-area-inset-bottom)); background:var(--bg); border-top:1px solid var(--border); box-shadow:0 -4px 18px rgba(16,38,58,.08); } .mobile-lead-actions .btn { min-height:44px; } .form-focus .mobile-lead-actions { display:none; } }
@media print { .mobile-lead-actions { display:none!important; } }

@media (max-width:960px) { .contact-grid > div:last-child { order:-1; } }
