/* Betbel Technologies — main stylesheet
   One family (Bricolage Grotesque, variable). Ink / Paper / Sun palette.
   Sections are spaced by .section only; components never set outer margins. */

/* Self-hosted variable font (SIL Open Font License, see /assets/fonts/OFL.txt) */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff?v=6") format("woff");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

/* Cross-document page transitions (EN <-> ES, legal pages). Ignored by older browsers. */
@view-transition { navigation: auto; }
.header .brand { view-transition-name: brand; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }

:root {
  --ink: #151b2e;
  --ink-2: #202842;
  --paper: #f4f3ef;
  --paper-2: #e9e7e0;
  --sun: #ff5a1f;
  --sun-deep: #d9430b;
  --slate: #5b6170;
  --line: #d6d4cc;
  --line-dark: #2e3652;
  --white: #ffffff;

  --font: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.25rem);
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 3.5rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.5vw, 5.75rem);
  --step-5: clamp(3.2rem, 1.4rem + 8vw, 9rem);

  --gutter: clamp(1rem, 4vw, 4rem);
  --measure: 62ch;
  --radius: 4px;
  --radius-lg: 14px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.7s;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  font-variation-settings: "opsz" 14, "wdth" 100;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
::selection { background: var(--sun); color: var(--ink); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; top: 0; left: 0; z-index: 1000; padding: 0.75rem 1rem;
  background: var(--ink); color: var(--paper); transform: translateY(-120%);
}
.skip-link:focus { transform: none; }

/* ---------- Type ---------- */
.display {
  font-variation-settings: "opsz" 96, "wdth" 92;
  font-weight: 620;
  line-height: 0.98;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.h-xl { font-size: var(--step-5); }
.h-lg { font-size: var(--step-4); }
.h-md { font-size: var(--step-3); }
.h-sm { font-size: var(--step-2); font-variation-settings: "opsz" 48, "wdth" 94; font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }
.lede { font-size: var(--step-1); line-height: 1.4; font-weight: 400; max-width: 44ch; text-wrap: pretty; }
.muted { color: var(--slate); }
.small { font-size: var(--step--1); }
.measure { max-width: var(--measure); text-wrap: pretty; }

/* ---------- Layout ---------- */
section[id], [id="quote-form"] { scroll-margin-top: 4.75rem; }

.wrap { width: min(100% - 2 * var(--gutter), 90rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 10vw, 9rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--dark .muted { color: #a9afc0; }
.section-head { display: grid; gap: 1.25rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
@media (min-width: 60em) {
  .section-head { grid-template-columns: 7fr 5fr; align-items: end; }
  .section-head .lede { justify-self: end; }
}
.grid-2 { display: grid; gap: 2rem; }
@media (min-width: 48em) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; padding: 0.85rem 1.5rem;
  border-radius: 999px; border: 1.5px solid var(--ink);
  font-weight: 560; font-size: var(--step-0); line-height: 1;
  transition: transform 0.35s var(--ease-out), background-color 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn--sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.btn--sun:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.section--dark .btn--sun:hover, .package--featured .btn--sun:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.section--dark .btn--ghost { border-color: var(--paper); color: var(--paper); }
.section--dark .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link { position: relative; font-weight: 520; }
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand__mark { height: 1.4rem; width: auto; aspect-ratio: 1351.6 / 1005.7; flex: none; }
.nav { display: none; }
.nav__list { display: flex; gap: 1.75rem; }
.nav a { font-weight: 500; }
.header__actions { display: flex; align-items: center; gap: 0.75rem; }
.lang { font-weight: 560; font-size: var(--step--1); padding: 0.4rem 0.6rem; border-radius: 999px; border: 1.5px solid var(--line); }
.lang:hover { border-color: var(--ink); }
.header .btn { min-height: 2.75rem; padding: 0.6rem 1.1rem; font-size: var(--step--1); }
.menu-btn { display: inline-flex; flex-direction: column; gap: 5px; padding: 0.6rem; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: 4.5rem 0 0 0; z-index: 49; background: var(--paper);
  padding: 2rem var(--gutter); display: grid; align-content: start; gap: 1.25rem;
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, visibility 0s 0.3s;
}
.mobile-nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.3s, transform 0.3s; }
.mobile-nav a { font-size: var(--step-2); font-weight: 600; }
@media (min-width: 64em) {
  .nav { display: block; }
  .menu-btn, .mobile-nav { display: none; }
  .header__cta--mobile { display: none; }
}
@media (max-width: 63.99em) { .header__cta { display: none; } }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 60; transform-origin: left; transform: scaleX(0); background: var(--sun); pointer-events: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 8vw, 7rem) 0; position: relative; }
.hero__title { max-width: 14ch; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; transform: translateY(110%); }
.hero__grid { display: grid; gap: 2.5rem; margin-top: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 60em) { .hero__grid { grid-template-columns: 5fr 7fr; } }
.hero__copy { display: grid; gap: 1.5rem; }
.trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--slate); font-size: var(--step--1); }
.trust li { position: relative; padding-left: 0.9rem; }
.trust li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--sun); }

/* Device mock — pure CSS placeholder until real screenshots arrive */
.devices { position: relative; aspect-ratio: 16 / 11; width: 100%; min-width: 0; }
.hero__grid > * { min-width: 0; }
.device { position: absolute; background: var(--ink); border-radius: 12px; box-shadow: 0 30px 60px -30px rgba(21, 27, 46, 0.5); overflow: hidden; }
.device--desktop { inset: 0 8% 6% 0; padding: 10px; }
.device--phone { width: 24%; min-width: 0; aspect-ratio: 9 / 18; right: 0; bottom: 0; padding: 8px; border-radius: 22px; }
.screen { width: 100%; height: 100%; background: var(--paper); border-radius: 6px; padding: 7%; display: flex; flex-direction: column; gap: 5cqb; overflow: hidden; container-type: size; }
.device--phone .screen { border-radius: 16px; padding: 10%; gap: 4cqb; }
.screen i { display: block; flex: none; border-radius: 3px; background: var(--paper-2); }
.screen .bar { height: 4cqb; width: 40%; }
.screen .head { height: 12cqb; width: 85%; background: var(--ink); }
.screen .head--2 { width: 60%; }
.screen .txt { height: 3.5cqb; width: 70%; }
.screen .cta { height: 8cqb; width: 32%; background: var(--sun); border-radius: 999px; }
.screen .img { height: 28cqb; width: 100%; background: linear-gradient(135deg, var(--paper-2), #dcd9d0); }
.device--phone .screen .cta { width: 60%; height: 5cqb; }
.device--phone .screen .head { width: 100%; height: 7cqb; }
.device--phone .screen .txt { height: 2cqb; }
.device--phone .screen .img { height: 22cqb; }
.devices [data-parallax] { will-change: transform; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 0.9rem; margin-top: clamp(3rem, 7vw, 6rem); }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { white-space: nowrap; font-size: var(--step-1); font-weight: 560; font-variation-settings: "opsz" 48, "wdth" 92; }
.marquee__track span::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); margin-left: 3rem; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Problem (manifesto) ---------- */
.manifesto { max-width: 24ch; }
.challenges { display: grid; gap: 0; margin-top: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--line-dark); }
.challenge { display: grid; gap: 0.75rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 48em) { .challenge { grid-template-columns: 1fr 1.4fr; gap: 2rem; } }
.challenge h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.2; }
.transition { margin-top: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Benefits (ledger rows) ---------- */
.ledger { border-top: 1px solid var(--line); }
.ledger__row {
  display: grid; gap: 0.5rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line);
}
.ledger__row > * { transition: transform 0.4s var(--ease-out); }
@media (min-width: 48em) { .ledger__row { grid-template-columns: 1fr 1.6fr; gap: 2rem; align-items: baseline; } .ledger__row:hover > * { transform: translateX(1rem); } }
.ledger__row h3 { font-size: var(--step-2); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; font-variation-settings: "opsz" 48, "wdth" 92; }
.ledger__row p { color: var(--slate); max-width: 48ch; }

/* ---------- Packages ---------- */
.packages { display: grid; gap: 1.25rem; }
@media (min-width: 64em) { .packages { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.package {
  position: relative; display: grid; gap: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.package--featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.package--featured .muted { color: #a9afc0; }
.package--featured .btn--ghost { border-color: var(--paper); color: var(--paper); }
.package--featured .btn--ghost:hover { background: var(--paper); color: var(--ink); }
@media (min-width: 64em) { .package--featured { margin-top: -1.25rem; padding-top: calc(clamp(1.5rem, 3vw, 2.25rem) + 1.25rem); } }
.package__flag {
  position: absolute; top: -0.9rem; left: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--sun); color: var(--ink); font-weight: 600; font-size: var(--step--1);
  padding: 0.35rem 0.8rem; border-radius: 999px;
}
.package__name { font-size: var(--step-2); font-weight: 640; line-height: 1.05; letter-spacing: -0.015em; }
.package__tag { margin-top: 0.4rem; color: var(--slate); }
.package--featured .package__tag { color: #c4c9d8; }
.price { display: grid; gap: 0.2rem; }
.price__amount { font-size: var(--step-3); font-weight: 640; letter-spacing: -0.02em; line-height: 1; font-variation-settings: "opsz" 96, "wdth" 90; }
.price__amount small { font-size: 0.45em; font-weight: 500; letter-spacing: 0; vertical-align: 0.5em; }
.price__care { font-size: var(--step--1); color: var(--slate); }
.package--featured .price__care { color: #c4c9d8; }
.checklist { display: grid; gap: 0.55rem; font-size: var(--step--1); }
.checklist li { position: relative; padding-left: 1.4rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 0.7rem; height: 0.4rem;
  border-left: 2px solid var(--sun); border-bottom: 2px solid var(--sun); transform: rotate(-45deg);
}
.package__ideal { font-size: var(--step--1); color: var(--slate); padding-top: 1rem; border-top: 1px solid var(--line); }
.package--featured .package__ideal { border-top-color: var(--line-dark); color: #c4c9d8; }
.package details { font-size: var(--step--1); }
.package summary { cursor: pointer; font-weight: 560; list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.package summary::-webkit-details-marker { display: none; }
.package summary::before { content: "+"; font-weight: 600; width: 1.2rem; }
.package details[open] summary::before { content: "–"; }
.package details ul { margin-top: 0.75rem; }
.pricing-note { margin-top: 1.5rem; font-size: var(--step--1); color: var(--slate); max-width: 80ch; }

/* ---------- Add-ons ---------- */
.addons { display: grid; gap: 0; border-top: 1px solid var(--line); }
.addon { display: grid; gap: 0.5rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
@media (min-width: 48em) { .addon { grid-template-columns: 1.1fr 0.7fr 1.6fr; gap: 1.5rem; align-items: baseline; } }
.addon h3 { font-size: var(--step-0); font-weight: 600; }
.addon__price { font-weight: 560; }
.addon p { color: var(--slate); font-size: var(--step--1); }

/* ---------- Process (sticky stack) ---------- */
.steps { display: grid; gap: 1rem; }
.step {
  position: sticky; top: 5.5rem;
  display: grid; gap: 1rem; padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 -10px 40px -30px rgba(21, 27, 46, 0.35);
}
@media (min-width: 48em) { .step { grid-template-columns: 4rem 1fr 1.2fr; gap: 2rem; align-items: start; } }
.step__num { font-size: var(--step-3); font-weight: 640; line-height: 1; letter-spacing: -0.03em; color: var(--sun); font-variation-settings: "opsz" 96, "wdth" 85; }
.step h3 { font-size: var(--step-2); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }
.step p { color: var(--slate); max-width: 48ch; }
.step:nth-child(2) { top: 6.5rem; }
.step:nth-child(3) { top: 7.5rem; }
.step:nth-child(4) { top: 8.5rem; }

/* ---------- Marketing plans ---------- */
/* Sticky stack, same device as the process steps: each plan parks under the header
   and the next one slides over it. */
.plans { display: grid; gap: 1rem; }
.plan {
  position: sticky; top: 5.5rem;
  display: grid; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  box-shadow: 0 -10px 40px -30px rgba(0, 0, 0, 0.8);
  align-content: start;
}
.plan:nth-child(2) { top: 6.5rem; }
.plan:nth-child(3) { top: 7.5rem; }
@media (min-width: 48em) {
  .plan { grid-template-columns: 1.1fr 1.4fr; column-gap: 2.5rem; align-items: start; }
  .plan__head { display: grid; gap: 1.25rem; align-content: start; }
  .plan .btn { justify-self: start; width: auto; }
}
.plan h3 { font-size: var(--step-2); font-weight: 640; line-height: 1.05; letter-spacing: -0.015em; }
.plan .checklist li::before { border-color: var(--sun); }
.plan__note { font-size: var(--step--1); color: #a9afc0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 56rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.25rem; cursor: pointer; list-style: none;
  font-size: var(--step-1); font-weight: 560; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 0.9rem; height: 0.9rem;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat,
              linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform 0.35s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: 1.5rem; color: var(--slate); max-width: 62ch; }

/* ---------- Final CTA + form ---------- */
.cta-final { display: grid; gap: 3rem; }
@media (min-width: 64em) { .cta-final { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 560; font-size: var(--step--1); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem; background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.field textarea { min-height: 7rem; resize: vertical; }
.field.is-invalid input, .field.is-invalid select { border-color: #c8321a; }
.field__error { display: none; color: #b42c15; font-size: var(--step--1); }
.field.is-invalid .field__error { display: block; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 40em) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__status { padding: 1rem 1.1rem; border-radius: var(--radius); font-size: var(--step--1); display: none; }
.form__status.is-ok { display: block; background: #e3f3e8; color: #16512b; }
.form__status.is-err { display: block; background: #fbe6e1; color: #7a1c0d; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.contact-lines { display: grid; gap: 0.5rem; }
.contact-lines a { font-weight: 560; }

/* ---------- Footer ---------- */
.footer { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line-dark); background: var(--ink); color: var(--paper); }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 48em) { .footer__grid { grid-template-columns: 2fr; grid-auto-flow: column; grid-auto-columns: 1fr; } }
.footer h4 { font-size: var(--step--1); font-weight: 600; margin-bottom: 0.75rem; color: #a9afc0; }
.footer li + li { margin-top: 0.4rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: var(--step--1); color: #a9afc0; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; inset-inline: var(--gutter); bottom: 1rem; z-index: 70;
  max-width: 34rem; margin-inline: auto; padding: 1.1rem 1.25rem;
  background: var(--ink); color: var(--paper); border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
  display: none; gap: 1rem; align-items: center; flex-wrap: wrap;
}
.cookie.is-visible { display: flex; }
.cookie p { flex: 1 1 16rem; font-size: var(--step--1); }
.cookie .btn { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: var(--step--1); }
.cookie .btn--ghost { border-color: var(--paper); color: var(--paper); }

/* ---------- Cursor (desktop with a fine pointer only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
    width: 12px; height: 12px; border-radius: 50%; background: var(--sun);
    border: 1.5px solid var(--sun); transform: translate(-50%, -50%);
    transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), background-color 0.25s, opacity 0.3s;
    opacity: 0;
  }
  body.has-cursor .cursor { opacity: 1; }
  .cursor.is-hover { width: 44px; height: 44px; background: transparent; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-words] .w { display: inline-block; opacity: 0.18; transition: opacity 0.4s; }
[data-words] .w.is-in { opacity: 1; }

/* ---------- Legal pages ---------- */
.prose { max-width: 70ch; display: grid; gap: 1rem; }
.prose h1 { font-size: var(--step-4); line-height: 1; letter-spacing: -0.025em; margin-bottom: 1rem; }
.prose h2 { font-size: var(--step-2); font-weight: 600; line-height: 1.15; margin-top: 1.5rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 0.35rem; }
.prose p, .prose li { color: #2b3144; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; align-content: center; gap: 1.5rem; }


/* ---------- Price labels ---------- */
.price__label { font-size: var(--step--1); font-weight: 560; color: var(--slate); }
.package--featured .price__label, .plan .price__label { color: #c4c9d8; }

/* ---------- Package finder ---------- */
.finder {
  margin-top: clamp(2.5rem, 6vw, 4rem); padding: clamp(1.5rem, 4vw, 3rem);
  border: 1.5px solid var(--ink); border-radius: var(--radius-lg); background: var(--white);
  display: grid; gap: 2rem;
}
@media (min-width: 60em) { .finder { grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; } }
.finder__head { display: grid; gap: 0.75rem; }
.finder__body { position: relative; min-height: 12rem; }
.finder__q { border: 0; padding: 0; margin: 0; display: none; }
.finder__q.is-active { display: grid; gap: 1.25rem; animation: finder-in 0.45s var(--ease-out); }
.finder__q legend { padding: 0; font-size: var(--step-1); font-weight: 600; line-height: 1.25; display: grid; gap: 0.4rem; }
.finder__step { font-size: var(--step--1); font-weight: 500; color: var(--slate); }
.finder__opts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0.7rem 1.25rem;
  border: 1.5px solid var(--line); border-radius: 999px; font-weight: 520;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 3px; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.finder__result:empty { display: none; }
.finder__result { display: grid; gap: 1rem; animation: finder-in 0.5s var(--ease-out); }
.finder__result .h-sm span { color: var(--sun-deep); }
.finder__pick { font-size: var(--step-3); font-weight: 640; letter-spacing: -0.02em; line-height: 1; font-variation-settings: "opsz" 96, "wdth" 88; }
.finder__reset { justify-self: start; font-weight: 560; font-size: var(--step--1); }
@keyframes finder-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Portfolio (shown when config.js has entries) ---------- */
.work { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.work__item { display: grid; gap: 0.75rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); transition: border-color 0.25s; }
.work__item:hover { border-color: var(--ink); }
.work__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.work__item h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.2; }
.work__item p { color: var(--slate); font-size: var(--step--1); }

/* ---------- About ---------- */
.about { background: var(--paper-2); }
.about__grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 60em) { .about__grid { grid-template-columns: 1.05fr 1fr; } }
.about__copy { display: grid; gap: 1.5rem; }
.about__copy h2 { max-width: 12ch; }
.about__facts { display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.about__facts dt { font-size: var(--step--1); color: var(--slate); }
.about__facts dd { margin: 0.2rem 0 0; font-weight: 600; }
.desert { background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; }
.desert svg { width: 100%; height: auto; display: block; }
.desert__sun { fill: var(--sun); transform: translateY(70px); transition: transform 2s var(--ease-out) 0.2s; }
.desert.is-in .desert__sun { transform: none; }
.desert__far { fill: #cfcabd; }
.desert__near { fill: var(--ink); }
.desert__cactus { fill: none; stroke: var(--ink); stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; }
.desert__cactus path:first-child { stroke-width: 24; }
.desert__cactus--far { stroke: #b4ae9f; stroke-width: 7; }
.desert__cactus--far path:first-child { stroke-width: 9; }

/* ---------- Mobile CTA bar ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; gap: 0.5rem; padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); visibility: hidden;
  transition: transform 0.35s var(--ease-out), visibility 0s 0.35s;
}
.mbar.is-on { transform: none; visibility: visible; transition: transform 0.35s var(--ease-out); }
.mbar .btn { flex: 1 1 0; min-height: 3rem; padding-inline: 0.75rem; }
@media (min-width: 64em) { .mbar { display: none; } }

/* ---------- Stack depth (set by JS) ---------- */
.step, .plan { transform-origin: 50% 0; will-change: transform; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  [data-words] .w { opacity: 1; transition: none; }
  .hero__title .line > span { transform: none; }
  .cursor { display: none !important; }
  .step, .plan { position: static; transform: none !important; filter: none !important; }
  .desert__sun { transform: none; transition: none; }
  .finder__q.is-active, .finder__result { animation: none; }
  .mbar { transition: none; }
  .btn { transition: background-color 0.2s, color 0.2s; }
}

/* ======================================================================
   v8 — multipage site (2026-10-25)
   ====================================================================== */

/* Six nav items + language + CTA need ~1200px; below that the menu button takes over. */
@media (min-width: 64em) and (max-width: 74.99em) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav { display: grid; }
}
.nav__list { gap: 1.5rem; }
.nav a[aria-current="page"] { color: var(--sun-deep); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.mobile-nav a[aria-current="page"]:not(.btn) { color: var(--sun-deep); }

/* Breadcrumbs */
.crumbs { padding-top: 1.25rem; font-size: var(--step--1); color: var(--slate); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; }
.crumbs li + li::before { content: "›"; margin-right: 0.5rem; color: var(--line); }
.crumbs [aria-current] { color: var(--ink); font-weight: 560; }

.kicker { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--sun-deep); }
.section--dark .kicker, .band .kicker { color: var(--sun); }
.section--paper2 { background: var(--paper-2); }
.stack { display: grid; gap: 2rem; align-content: start; }
.bullets { list-style: disc; padding-left: 1.2rem; display: grid; gap: 0.6rem; margin-top: 1.25rem; color: #2b3144; }
.note-card { padding: clamp(1.25rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; gap: 0.75rem; }

/* Home hero with photo: stacked on phones, headline over the photo's empty wall on desktop */
.hero-photo { padding-top: clamp(1rem, 3vw, 2rem); }
.hero-photo__grid { display: grid; gap: 1.75rem; }
.hero-photo__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); }
.hero-photo__media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.hero-photo__copy { display: grid; gap: 1.25rem; }
.hero-photo .hero__title { max-width: 13ch; }
@media (min-width: 60em) {
  .hero-photo__grid { grid-template-areas: "stack"; }
  .hero-photo__grid > * { grid-area: stack; }
  .hero-photo__media { aspect-ratio: auto; min-height: min(80vh, 48rem); }
  .hero-photo__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(244,243,239,0.95) 0%, rgba(244,243,239,0.86) 30%, rgba(244,243,239,0.35) 50%, rgba(244,243,239,0) 62%);
  }
  .hero-photo__copy { position: relative; z-index: 1; align-self: center; max-width: 38rem; padding: clamp(2rem, 4vw, 4rem); }
}

/* Sub-page hero */
.page-hero { padding-block: clamp(1.5rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem); }
.page-hero__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.page-hero__copy { display: grid; gap: 1.25rem; align-content: start; }
.page-hero__copy .price { margin-block: 0.25rem; }
.page-hero--plain .page-hero__copy > * { max-width: 52rem; }
.page-hero__media { border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.page-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.page-hero__media--tall img { aspect-ratio: 4 / 5; max-height: 78vh; }
@media (min-width: 60em) { .page-hero__grid { grid-template-columns: 1.1fr 1fr; } }

/* Text + photo sections (problem, transformation, industries) */
.split__grid { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media { border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split__media--wide img { aspect-ratio: 4 / 3; }
.split__copy { display: grid; gap: 1.25rem; align-content: start; }
.split__pkg { font-weight: 560; }
@media (min-width: 60em) {
  .split__grid { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 2; }
}
.split--series + .split--series { padding-top: 0; }
.section--dark .split__media { background: var(--ink-2); }

/* Full-bleed photo band with text */
.band { position: relative; color: var(--paper); overflow: hidden; background: var(--ink); isolation: isolate; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(21,27,46,0.9) 0%, rgba(21,27,46,0.7) 45%, rgba(21,27,46,0.25) 100%); }
.band__inner { padding-block: clamp(5rem, 14vw, 10rem); display: grid; gap: 1.5rem; }
.band__inner > * { max-width: 40rem; }
.band .btn--ghost { border-color: var(--paper); color: var(--paper); }
.band .btn--ghost:hover { background: var(--paper); color: var(--ink); }
.band .btn--sun:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.band .muted { color: #c4c9d8; }

/* Trades grid (home) */
.trades { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 64em) { .trades { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trade { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2); }
.trade__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.trade--wide { grid-column: 1 / -1; }
.trade--wide .trade__img { aspect-ratio: 21 / 9; object-position: 50% 45%; }
@media (max-width: 39.99em) { .trade--wide .trade__img { aspect-ratio: 4 / 3; } }
.trade::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(transparent, rgba(21,27,46,0.82)); pointer-events: none; }
.trade__name { position: absolute; left: 1rem; right: 1rem; bottom: 0.9rem; z-index: 1; color: var(--paper); font-weight: 620; font-size: var(--step-1); line-height: 1.15; }
.trade:hover .trade__img { transform: scale(1.04); }

/* Package teasers (home) */
.teasers { display: grid; gap: 1rem; }
@media (min-width: 64em) { .teasers { grid-template-columns: repeat(3, 1fr); } }
.teaser { position: relative; display: grid; gap: 0.75rem; align-content: start; padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color 0.25s, transform 0.35s var(--ease-out); }
.teaser:hover { border-color: var(--ink); transform: translateY(-3px); }
.teaser--featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.teaser__kicker { font-size: var(--step--1); font-weight: 600; color: var(--sun-deep); text-transform: uppercase; letter-spacing: 0.06em; }
.teaser--featured .teaser__kicker { color: var(--sun); }
.teaser__title { font-size: var(--step-3); font-weight: 640; line-height: 1; letter-spacing: -0.02em; font-variation-settings: "opsz" 96, "wdth" 90; }
.teaser__text { color: var(--slate); }
.teaser--featured .teaser__text { color: #c4c9d8; }
.teaser__price { font-weight: 640; font-size: var(--step-1); margin-top: 0.5rem; }
.teaser__price span { font-weight: 500; font-size: var(--step--1); color: var(--slate); }
.teaser--featured .teaser__price span { color: #c4c9d8; }
.teaser__go { position: absolute; top: clamp(1.5rem, 3vw, 2.25rem); right: clamp(1.5rem, 3vw, 2.25rem); font-size: var(--step-1); transition: transform 0.35s var(--ease-out); }
.teaser:hover .teaser__go { transform: translateX(4px); }

.package__more { justify-self: center; font-size: var(--step--1); }

/* Comparison table */
.compare { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.compare table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: var(--step--1); }
.compare th, .compare td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare thead th { font-size: var(--step-0); font-weight: 640; background: var(--paper); }
.compare tbody th { text-align: left; font-weight: 500; }
.compare tr:last-child > * { border-bottom: 0; }
.compare .yes { color: var(--sun-deep); font-weight: 700; font-size: 1.1em; }
.compare .no { color: var(--line); }
.compare__money th, .compare__money td { background: var(--paper); font-weight: 600; }

/* Add-on cards */
.addon-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.addon-card { display: grid; gap: 0.6rem; align-content: start; padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.addon-card h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.2; }
.addon-card__price { font-weight: 640; color: var(--sun-deep); }
.addon-card__solves span { font-weight: 600; }
.addon-card__with { padding-top: 0.75rem; margin-top: 0.25rem; border-top: 1px solid var(--line); }

/* Steps with extra detail */
.step__detail { margin-top: 0.75rem; color: var(--ink) !important; }

/* Closing CTA band without photo */
.cta-band__inner { display: grid; gap: 1.5rem; }
.cta-band__inner h2 { max-width: 20ch; }

/* Quote page */
.next-steps { display: grid; gap: 1rem; counter-reset: n; margin-top: 2rem; }
.next-steps li { counter-increment: n; display: grid; grid-template-columns: 2.25rem 1fr; gap: 0.75rem; align-items: start; }
.next-steps li::before { content: counter(n); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--sun); color: var(--ink); font-weight: 700; }
