/* ==========================================================================
   SEBBY IT: Design System v4 ("Harbor", blue palette 2026-10)
   Brand kit: see assets/brand/ and the Sebby IT Brand Kit artifact.
   Order: tokens > reset > typography > layout > components > sections > responsive
   Rules: no em dashes, no emoji. Colors only through tokens.
   ========================================================================== */

/* ===== TOKENS ===== */
:root {
  /* Color: brand (white and blue) */
  --ink: #0B1B34;            /* primary text, deep bands */
  --ink-muted: #51627A;      /* secondary text (6.0:1 on white, 5.6:1 on mist) */
  --ink-faint: #7A8AA0;      /* icons, control borders only, never body text */
  --surface: #FFFFFF;
  --surface-mist: #F3F6FB;   /* alternate sections, quiet cards */
  --surface-deep: #0B1B34;   /* footer, dark bands */
  --line: #E1E7F0;           /* hairlines */
  --brand: #1D4ED8;          /* primary: buttons, links, Shield */
  --brand-hover: #1E3A8A;
  --on-brand: #FFFFFF;
  --brand-tint: #EEF3FF;
  --brand-bright: #93C5FD;   /* links and labels on deep surfaces */
  --accent: #60A5FA;         /* lighter blue: Care, highlights, typing dots */
  --accent-hover: #3B82F6;
  --on-accent: #0B1B34;
  --accent-tint: #E8F1FF;
  --accent-ink: #1E40AF;     /* text on accent-tint */
  --success: #15803D;
  --danger: #B42318;
  --focus: #1D4ED8;

  /* On deep surfaces */
  --deep-text: #E8EEF8;
  --deep-muted: #A9B6CB;
  --deep-line: #22355A;
  --deep-raised: #13264A;

  /* Type */
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --text-display-xl: clamp(2.6rem, 6vw, 4rem);
  --text-display-l: clamp(2rem, 4.2vw, 2.75rem);
  --text-heading: clamp(1.45rem, 2.6vw, 1.75rem);
  --text-subhead: 1.25rem;
  --text-body-l: 1.1875rem;  /* 19px */
  --text-body: 1.0625rem;    /* 17px: larger default for older readers */
  --text-small: 0.9375rem;   /* 15px */
  --text-label: 0.8125rem;   /* 13px mono labels */

  /* Space (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Radius: the "bubble" shape is radius-lg with one radius-tail corner */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-tail: 6px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(11, 27, 52, 0.06), 0 8px 24px rgba(11, 27, 52, 0.08);
  --shadow-lift: 0 2px 4px rgba(11, 27, 52, 0.08), 0 18px 40px rgba(11, 27, 52, 0.14);

  --header-bg: rgba(255, 255, 255, 0.92);
  --danger-tint: #FBE9E5;
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4ED8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");

  --container: 1160px;
  --gutter: 20px;
  --header-h: 72px;
}

/* Dark theme: follows the device setting unless the visitor picks one
   (data-theme on <html>, set by the inline head script and the header toggle).
   The two blocks below must stay identical. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #E8EEF8;
    --ink-muted: #A7B4C8;
    --ink-faint: #7C8BA3;
    --surface: #0A1426;
    --surface-mist: #101D35;
    --surface-deep: #060D1A;
    --line: #1F2F4D;
    --brand: #60A5FA;
    --brand-hover: #93C5FD;
    --on-brand: #0B1B34;
    --brand-tint: #15284A;
    --accent-tint: #142848;
    --accent-ink: #93C5FD;
    --success: #4ADE80;
    --danger: #F87171;
    --danger-tint: #3A1518;
    --focus: #60A5FA;
    --deep-raised: #101D35;
    --deep-line: #1F2F4D;
    --header-bg: rgba(10, 20, 38, 0.92);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 18px 40px rgba(0, 0, 0, 0.5);
    --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360A5FA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #E8EEF8;
  --ink-muted: #A7B4C8;
  --ink-faint: #7C8BA3;
  --surface: #0A1426;
  --surface-mist: #101D35;
  --surface-deep: #060D1A;
  --line: #1F2F4D;
  --brand: #60A5FA;
  --brand-hover: #93C5FD;
  --on-brand: #0B1B34;
  --brand-tint: #15284A;
  --accent-tint: #142848;
  --accent-ink: #93C5FD;
  --success: #4ADE80;
  --danger: #F87171;
  --danger-tint: #3A1518;
  --focus: #60A5FA;
  --deep-raised: #101D35;
  --deep-line: #1F2F4D;
  --header-bg: rgba(10, 20, 38, 0.92);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 18px 40px rgba(0, 0, 0, 0.5);
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360A5FA' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
}

/* Spanish visitors: hide the page until the dictionary is applied (main.js adds
   .i18n-ready; the head script adds it after 2.5s regardless, as a fallback). */
:root[data-lang="es"]:not(.i18n-ready) body { visibility: hidden; }

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-deep :focus-visible { outline-color: var(--brand-bright); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface-deep); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); z-index: 200; }
.skip-link:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
h1 { font-size: var(--text-display-xl); line-height: 1.02; font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--text-display-l); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: var(--text-heading); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: var(--text-subhead); line-height: 1.3; font-weight: 700; }
p { margin: 0; }
.lede { font-size: var(--text-body-l); color: var(--ink-muted); max-width: 60ch; }
.muted { color: var(--ink-muted); }
.small { font-size: var(--text-small); }
.label {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.highlight { color: var(--brand); }
.on-deep .highlight { color: var(--accent); }

/* ===== LAYOUT ===== */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.section { padding-block: var(--space-24); }
.section-tight { padding-block: var(--space-16); }
.section-mist { background: var(--surface-mist); }
.section-head { display: grid; gap: var(--space-4); margin-bottom: var(--space-12); max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.stack { display: grid; gap: var(--space-4); }
.stack-lg { display: grid; gap: var(--space-8); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-16); align-items: center; }
.on-deep { background: var(--surface-deep); color: var(--deep-text); }
.on-deep h1, .on-deep h2, .on-deep h3, .on-deep h4 { color: #FFFFFF; }
.on-deep .muted, .on-deep .lede { color: var(--deep-muted); }
.on-deep .label { color: var(--brand-bright); }
.on-deep a:not(.btn) { color: var(--brand-bright); }

/* ===== COMPONENTS ===== */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius-pill); border: 2px solid transparent;
  font-family: var(--font-body); font-size: var(--text-body); font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); color: var(--on-brand); }
.btn-secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand-tint); color: var(--brand-hover); }
.btn-warm { background: var(--accent); color: var(--on-accent); }
.btn-warm:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost-light { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.45); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; border-color: #FFFFFF; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: var(--text-small); }
.btn-block { width: 100%; }

/* Chips: status and channel tags */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--brand-tint); color: var(--brand);
  font-family: var(--font-mono); font-size: var(--text-label); font-weight: 500; letter-spacing: 0.02em;
  white-space: nowrap;
}
.card > .chip, .plan > .chip { justify-self: start; }
.chip-warm { background: var(--accent-tint); color: var(--accent-ink); }
.chip-deep { background: var(--deep-raised); color: var(--brand-bright); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Message bubbles: the brand motif (tail corner = radius-tail) */
.bubble {
  max-width: 34ch; padding: 12px 16px;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-tail);
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-card);
  font-size: var(--text-small); line-height: 1.5;
  justify-self: start;
}
.bubble-out {
  margin-left: auto; justify-self: end;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-tail) var(--radius-lg);
  background: var(--brand); color: var(--on-brand);
}
.bubble-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.bubble-out + .bubble-meta { text-align: right; }
.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: typing 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .55; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-8);
  display: grid; gap: var(--space-3); align-content: start;
}
.card-mist { background: var(--surface-mist); border-color: transparent; }
.card-link { text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.card-link:hover { border-color: var(--brand); box-shadow: var(--shadow-card); transform: translateY(-2px); color: inherit; }
.icon-tile {
  width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) var(--radius-tail);
  background: var(--brand-tint); color: var(--brand);
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile.warm { background: var(--accent-tint); color: var(--accent-ink); }

/* Plan cards */
.plan {
  position: relative; display: grid; gap: var(--space-4); align-content: start;
  padding: var(--space-8); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.plan-featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lift); }
.plan-care.plan-featured { border-color: var(--accent); }
.plan-flag {
  position: absolute; top: -14px; left: var(--space-8);
  padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--brand); color: var(--on-brand);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
}
.plan-care .plan-flag { background: var(--accent); color: var(--on-accent); }
.plan-name { font-family: var(--font-display); font-size: var(--text-subhead); font-weight: 700; }
.plan-for { font-size: var(--text-small); color: var(--ink-muted); }
.price { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); }
.price-amount { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-period { font-family: var(--font-body); font-size: var(--text-small); color: var(--ink-muted); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: var(--text-small); }
.checklist li::before {
  content: ""; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--brand-tint) var(--check-icon) center / 14px no-repeat;
}
.plan-care .checklist li::before { background-color: var(--accent-tint); }
.on-deep .checklist li::before { background-color: var(--deep-raised); }

/* Path chooser (home hero) */
.path-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4); align-items: center;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-tail);
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.path-card:hover { border-color: var(--brand); box-shadow: var(--shadow-card); transform: translateY(-2px); color: var(--ink); }
.path-card strong { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.path-card span { font-size: var(--text-small); color: var(--ink-muted); }
.path-card .arrow { color: var(--brand); }
.path-card.care:hover { border-color: var(--accent); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); counter-reset: step; }
.steps li { display: grid; gap: var(--space-3); align-content: start; }
.step-num {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) var(--radius-tail);
  background: var(--surface-deep); color: var(--accent);
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
}

/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); }
.proof-item { display: grid; gap: 6px; padding-top: var(--space-4); border-top: 2px solid var(--line); }
.proof-item strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.on-deep .proof-item { border-top-color: var(--deep-line); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: var(--text-small); }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-size: 1rem; background: var(--surface-mist); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.yes { color: var(--success); font-weight: 700; }
.compare td.no { color: var(--ink-muted); }

/* FAQ */
.faq { display: grid; gap: var(--space-3); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 var(--space-6); }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-4) 0; font-weight: 700; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: var(--space-4); color: var(--ink-muted); }

/* Forms */
.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: var(--text-small); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--ink-faint); border-radius: var(--radius-sm); background: var(--surface);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--brand-tint); border-color: var(--brand); }
.field .hint { font-size: var(--text-small); color: var(--ink-muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-small); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); }
.form-status { padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.form-status.ok { background: var(--brand-tint); color: var(--brand); }
.form-status.err { background: var(--danger-tint); color: var(--danger); }

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--text-small); color: var(--ink-muted); }
.crumbs a { color: var(--ink-muted); }

/* Referral band (Made by Sebby) */
.referral {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-6); align-items: center;
  padding: var(--space-8); border-radius: var(--radius-lg);
  background: var(--accent-tint);
}
.referral .label { color: var(--accent-ink); }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: var(--header-h); }
.brand-link { display: inline-flex; align-items: center; gap: 10px; flex: none; text-decoration: none; }
.brand-link img { width: 36px; height: 36px; }
.brand-name { font-family: "Plus Jakarta Sans", var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.site-footer .brand-name { color: #FFFFFF; }
.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-link { display: block; padding: 8px 12px; border-radius: var(--radius-pill); color: var(--ink); text-decoration: none; font-weight: 700; font-size: var(--text-small); }
.nav-link:hover { background: var(--surface-mist); color: var(--ink); }
.nav-link.active { color: var(--brand); background: var(--brand-tint); }
.nav-cta { margin-left: 8px; }

/* Language + theme switchers (outside .nav-menu so they stay visible on mobile) */
.nav-tools { display: flex; align-items: center; gap: 6px; }
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.lang-switch button {
  min-width: 40px; min-height: 34px; padding: 4px 10px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--ink-muted); cursor: pointer;
  font-family: var(--font-mono); font-size: var(--text-label); font-weight: 500; letter-spacing: 0.04em;
}
.lang-switch button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.theme-btn {
  width: 42px; height: 42px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.theme-btn:hover, .lang-switch button:not([aria-pressed="true"]):hover { background: var(--surface-mist); }
.theme-btn svg { width: 20px; height: 20px; display: none; }
.theme-btn[data-mode="auto"] .i-auto, .theme-btn[data-mode="light"] .i-light, .theme-btn[data-mode="dark"] .i-dark { display: block; }
.hamburger-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: var(--radius-sm); cursor: pointer; padding: 10px; }
.hamburger-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.hamburger-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== FOOTER ===== */
.site-footer { background: var(--surface-deep); color: var(--deep-text); }
.footer-cta {
  display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: center;
  padding-block: var(--space-16); border-bottom: 1px solid var(--deep-line);
}
.footer-cta h2 { color: #FFFFFF; font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.footer-cta h2 span { color: var(--accent); }
.contact-pills { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.contact-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-tail);
  background: var(--deep-raised); text-decoration: none; font-weight: 700;
  border: 1px solid var(--deep-line); transition: border-color .15s ease;
}
.site-footer a.contact-pill { color: #FFFFFF; }
.contact-pill:hover { border-color: var(--brand-bright); }
.contact-pill svg { width: 18px; height: 18px; color: var(--brand-bright); }
.contact-pill small { display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--deep-muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); padding-block: var(--space-12); }
.footer-brand { display: grid; gap: var(--space-4); align-content: start; }
.footer-brand .brand-link { justify-self: start; }
.footer-brand p { color: var(--deep-muted); font-size: var(--text-small); max-width: 34ch; }
.footer-col h3 { font-family: var(--font-mono); font-size: var(--text-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-bright); margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer .footer-col a { color: var(--deep-text); text-decoration: none; font-size: var(--text-small); }
.site-footer .footer-col a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-col .ext::after { content: " \2197"; color: var(--deep-muted); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding-block: var(--space-6); border-top: 1px solid var(--deep-line);
  font-size: var(--text-small); color: var(--deep-muted);
}
.footer-bottom p { margin: 0; }
.credit { display: inline-flex; align-items: center; gap: 8px; color: var(--deep-muted); }
.site-footer .credit a { color: #FFFFFF; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.site-footer .credit a:hover { color: var(--accent); }
.credit-mark { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Floating WhatsApp */
.float-wa {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: var(--radius-lg) var(--radius-lg) var(--radius-tail) var(--radius-lg);
  background: var(--brand); color: var(--on-brand); text-decoration: none; font-weight: 700;
  box-shadow: var(--shadow-lift);
}
.float-wa:hover { background: var(--brand-hover); color: var(--on-brand); }
.float-wa svg { width: 20px; height: 20px; }

/* ===== SECTIONS ===== */

/* Home hero */
.hero { padding-block: var(--space-16) var(--space-24); background: linear-gradient(180deg, var(--surface) 0%, var(--surface-mist) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-16); align-items: center; }
.hero h1 .accent { color: var(--brand); }
.hero .lede { margin-top: var(--space-6); }
.hero-paths { display: grid; gap: var(--space-3); margin-top: var(--space-8); max-width: 520px; }
.hero-note { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Chat mock */
.thread {
  display: grid; gap: var(--space-3);
  padding: var(--space-6); border-radius: var(--radius-lg);
  background: var(--surface-mist); border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
}
.thread-head { display: flex; align-items: center; gap: var(--space-3); padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.thread-head img { width: 36px; height: 36px; }
.thread-head strong { display: block; font-family: var(--font-display); }
.thread-head span { font-size: 13px; color: var(--success); font-weight: 700; }
.thread-event { justify-self: center; }
.thread-caption { font-size: 13px; color: var(--ink-muted); text-align: center; }

/* Inner page hero */
.page-hero { padding-block: var(--space-16); background: var(--surface-mist); }
.page-hero .stack-lg { max-width: 780px; }
.page-hero.deep { background: var(--surface-deep); color: var(--deep-text); }
.page-hero.deep h1 { color: #FFFFFF; }
.page-hero.deep .lede { color: var(--deep-muted); }
.page-hero.deep .crumbs, .page-hero.deep .crumbs a { color: var(--deep-muted); }

/* Category rows (services) */
.category { display: grid; grid-template-columns: 64px 1fr 1fr; gap: var(--space-8); padding-block: var(--space-8); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.category:last-child { border-bottom: 1px solid var(--line); }
.category ul { margin: 0; padding-left: 1.1em; color: var(--ink-muted); display: grid; gap: 6px; font-size: var(--text-small); }

/* About */
.about-photo { border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius-tail); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; max-width: 420px; }

/* Anchor offset */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: var(--space-12); }
  .grid-4, .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .thread { max-width: 520px; }
}
/* Header collapses earlier than the content grid: the nav plus the language and
   theme switchers (and longer Spanish labels) need ~1100px on one line. */
@media (max-width: 1100px) {
  .hamburger-btn { display: block; order: 3; }
  .nav-tools { order: 2; margin-left: auto; }
  .nav-menu {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: var(--space-4) var(--gutter) var(--space-6);
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-link { padding: 12px 14px; font-size: var(--text-body); }
  .nav-cta { margin: 8px 0 0; }
  .nav-cta .btn { width: 100%; }
}
@media (max-width: 860px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .category { grid-template-columns: 1fr; gap: var(--space-4); }
  .referral { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .section { padding-block: var(--space-16); }
  .grid-4, .proof, .footer-grid { grid-template-columns: 1fr; }
  .card, .plan { padding: var(--space-6); }
  .plan-flag { left: var(--space-6); }
  .path-card { grid-template-columns: auto 1fr; }
  .path-card .arrow { display: none; }
  .float-wa span { display: none; }
  .float-wa { padding: 14px; }
  .brand-link img { width: 32px; height: 32px; }
  .brand-name { font-size: 1.125rem; }
  .nav { gap: var(--space-2); }
}
