/* Mellom — shared design system for mellom.es and the product landings.
 *
 * One stylesheet for every static page under edge/static. Each page sets
 * <html data-theme="corp|guest|invoice|host">; the theme only swaps tokens,
 * components never hard-code a product colour. A product card on the
 * corporate page can carry its own data-theme to borrow that palette.
 *
 * Brand: umbrella (corp) = azul profundo #0F172A, turquesa #0EA5A5,
 * arena #F4F1EA, gris #64748B · Inter. Products (Sora headings):
 * Guest #0F4D3A/#22C55E/#A7E3C6/#F4F7F5, Invoice #2563EB/#60A5FA/#DBEAFE/#F8FAFF,
 * Host #EA6B4A/#F4A261/#F8DCC8/#FAF7F4. Text-on-colour pairs are the
 * AA-checked shades below (e.g. Host buttons use #C8482A, not #EA6B4A).
 * Invoice's mark is a navy wax seal (#0C1B3D family) drawn with gradients
 * from each page's sprite (#iv-*); .seal-dark swaps in its brighter
 * version for dark backgrounds.
 *
 * Served from /shared/ with a 1-day cache: bump ?v= in the pages' <link>
 * whenever this file changes.
 */

/* === Fonts (self-hosted, latin subset, variable) ======================== */

@font-face {
  font-family: "Inter";
  src: url("/shared/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  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: "Sora";
  src: url("/shared/fonts/sora-latin-var.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  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: "Caveat";
  src: url("/shared/fonts/caveat-latin-var.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  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;
}

/* === Tokens ============================================================= */

:root {
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sora", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  /* Umbrella palette */
  --navy: #0F172A;
  --navy-2: #16213A;
  --navy-3: #1E293B;
  --teal: #0EA5A5;
  --teal-2: #14B8A6;
  --teal-3: #2DD4BF;
  --teal-ink: #0A6B6C;
  --sand: #F4F1EA;
  --sand-2: #ECE7DB;
  --slate: #64748B;

  /* Product palettes (also used by the corporate page) */
  --guest: #0F4D3A;
  --guest-2: #22C55E;
  --guest-3: #A7E3C6;
  --invoice: #2563EB;
  --invoice-2: #60A5FA;
  --invoice-3: #DBEAFE;
  --host: #EA6B4A;
  --host-2: #F4A261;
  --host-3: #F8DCC8;

  /* Semantic tokens — the theme blocks below override these */
  --bg: var(--sand);
  --bg-2: var(--sand-2);
  --surface: #FFFFFF;
  --ink: var(--navy);
  --ink-2: #334155;
  --ink-3: #566579;
  --line: rgba(15, 23, 42, .09);
  --line-2: rgba(15, 23, 42, .16);
  --brand: var(--teal);
  --brand-2: var(--teal-3);
  --brand-soft: #D3EEEA;
  --brand-wash: #E6F4F1;
  --brand-ink: var(--teal-ink);
  --brand-grad: linear-gradient(120deg, #0A4F63 0%, #0EA5A5 55%, #3FDCC8 100%);
  --btn: var(--navy);
  --btn-ink: #FFFFFF;
  --dark: var(--navy);
  --dark-2: var(--navy-2);
  --on-dark: #FFFFFF;
  --on-dark-2: #CBD5E1;
  --on-dark-3: #94A3B8;
  --accent-on-dark: var(--teal-3);
  --check: var(--teal);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --shadow: 0 12px 32px -14px rgba(15, 23, 42, .22), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 44px 90px -34px rgba(15, 23, 42, .42), 0 14px 28px -16px rgba(15, 23, 42, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --section-y: clamp(80px, 10vw, 136px);
}

[data-theme="guest"] {
  --bg: #F4F7F5;
  --bg-2: #E9F1EC;
  --ink: #0E2A21;
  --ink-2: #33483F;
  --ink-3: #56685F;
  --line: rgba(14, 42, 33, .09);
  --line-2: rgba(14, 42, 33, .16);
  --brand: var(--guest-2);
  --brand-2: var(--guest-3);
  --brand-soft: #D7F2E3;
  --brand-wash: #E8F6EE;
  --brand-ink: #13773A;
  --brand-deep: var(--guest);
  --brand-grad: linear-gradient(120deg, #0F4D3A 0%, #15803D 50%, #22C55E 100%);
  --btn: var(--guest);
  --dark: var(--guest);
  --dark-2: #0B3B2D;
  --on-dark-2: #D2E9DD;
  --on-dark-3: #A3C4B4;
  --accent-on-dark: var(--guest-3);
  --check: var(--guest-2);
}

[data-theme="invoice"] {
  --bg: #F8FAFF;
  --bg-2: #EEF3FD;
  --ink: #0B1B3F;
  --ink-2: #334155;
  --ink-3: #56657C;
  --line: rgba(11, 27, 63, .09);
  --line-2: rgba(11, 27, 63, .16);
  --brand: var(--invoice);
  --brand-2: var(--invoice-2);
  --brand-soft: var(--invoice-3);
  --brand-wash: #EAF1FE;
  --brand-ink: #1D4ED8;
  --brand-deep: #0B1B3F;
  --brand-grad: linear-gradient(120deg, #1D4ED8 0%, #2563EB 45%, #60A5FA 100%);
  --btn: var(--invoice);
  --dark: #0B1B3F;
  --dark-2: #102554;
  --on-dark-2: #CFDCF5;
  --on-dark-3: #9DB0D6;
  --accent-on-dark: #93C5FD;
  --check: var(--invoice);
}

[data-theme="host"] {
  --bg: #FAF7F4;
  --bg-2: #F4EDE6;
  --ink: #1F1D1B;
  --ink-2: #4A433E;
  --ink-3: #6B625B;
  --line: rgba(31, 29, 27, .09);
  --line-2: rgba(31, 29, 27, .16);
  --brand: var(--host);
  --brand-2: var(--host-2);
  --brand-soft: var(--host-3);
  --brand-wash: #FCEDE3;
  --brand-ink: #B5401F;
  --brand-deep: #1F1D1B;
  --brand-grad: linear-gradient(120deg, #C8482A 0%, #EA6B4A 50%, #F4A261 100%);
  --btn: #C8482A;
  --dark: #1F1D1B;
  --dark-2: #2B2724;
  --on-dark-2: #E7DDD6;
  --on-dark-3: #B9ACA3;
  --accent-on-dark: var(--host-2);
  --check: var(--host);
}

/* === Base =============================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; color: inherit; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline: 3px solid color-mix(in srgb, var(--brand) 70%, var(--ink));
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

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

/* === Typography ========================================================= */

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.35rem, 1.2rem + 4.3vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: -.038em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 1.15rem + 2.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.032em;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -.018em;
}
.lead {
  font-size: clamp(1.06rem, 1rem + .35vw, 1.24rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 60ch;
}
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.tnum { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font: 600 .78rem/1 var(--font-sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: .7;
}
.eyebrow--plain::before { display: none; }

.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.script {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem);
  line-height: 1.05;
  color: var(--brand-ink);
  transform: rotate(-4deg);
  transform-origin: left center;
}
.script svg {
  width: 100%;
  max-width: 260px;
  height: 14px;
  margin-top: 2px;
  color: var(--brand);
}
.script path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease-out) .5s; }
.script.is-in path, .no-js .script path { stroke-dashoffset: 0; }

/* === Buttons, links, pills ============================================== */

.btn {
  --b-bg: var(--btn);
  --b-ink: var(--btn-ink);
  --b-line: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid var(--b-line);
  border-radius: 999px;
  background: var(--b-bg);
  color: var(--b-ink);
  font: 600 .98rem/1.1 var(--font-sans);
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--b-bg) 80%, transparent);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn::after {
  /* sheen */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .7s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px color-mix(in srgb, var(--b-bg) 85%, transparent); }
.btn:hover::after { transform: translateX(110%); }
.btn:active { transform: translateY(0); }
.btn .i-arrow { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .i-arrow { transform: translateX(3px); }

.btn--sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.02rem; }
.btn--ghost { --b-bg: transparent; --b-ink: var(--ink); --b-line: var(--line-2); box-shadow: none; }
.btn--ghost:hover { --b-line: color-mix(in srgb, var(--ink) 40%, transparent); box-shadow: none; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.btn--accent { --b-bg: var(--teal); --b-ink: var(--navy); }
.btn--light { --b-bg: #FFFFFF; --b-ink: var(--dark); }
.btn--glass { --b-bg: rgba(255, 255, 255, .08); --b-ink: #fff; --b-line: rgba(255, 255, 255, .22); box-shadow: none; backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255, 255, 255, .14); box-shadow: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--brand-ink);
  text-decoration: none;
}
.link-arrow .i-arrow { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link-arrow:hover .i-arrow { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font: 600 .78rem/1 var(--font-sans);
  letter-spacing: .01em;
  white-space: nowrap;
}
.pill--live { background: #DCFCE7; color: #166534; }
.pill--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  animation: ping 2.2s var(--ease) infinite;
}
.pill--soon { background: rgba(15, 23, 42, .07); background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink-2); }
.pill--soon::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: .7;
}
.pill--dark { background: rgba(255, 255, 255, .1); color: var(--on-dark-2); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* === Header ============================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--ink);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(255, 255, 255, .86);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -24px rgba(15, 23, 42, .35);
}
/* Over a [data-dark] section: white text, dark glass once scrolled */
.site-header.on-dark:not(.nav-open) { color: #fff; }
.site-header.on-dark.is-scrolled:not(.nav-open) {
  background: rgba(11, 18, 34, .62);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.site-header.on-dark:not(.nav-open) .btn--ghost { --b-ink: #fff; --b-line: rgba(255, 255, 255, .32); }
.site-header.on-dark:not(.nav-open) .lockup { --m1: #fff; --m2: rgba(255, 255, 255, .8); --seal-b: url(#iv-b2); --seal-h: url(#iv-h2); --seal-d: url(#iv-d2); --seal-e: url(#iv-e2); }
.site-header.on-dark:not(.nav-open) .lockup__mark { color: #fff; }
.site-header.on-dark:not(.nav-open) .btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.site-header .container { display: flex; align-items: center; gap: 20px; }

.brand-link { display: inline-flex; align-items: center; text-decoration: none; color: inherit; border-radius: 10px; }

.header-menu { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .nav .nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: inherit;
  font: 500 .93rem/1 var(--font-sans);
  text-decoration: none;
  opacity: .82;
  transition: opacity .2s, background-color .2s;
}
.nav a:hover, .nav .nav-btn:hover, .nav .nav-btn[aria-expanded="true"] { opacity: 1; background: color-mix(in srgb, currentColor 8%, transparent); }
.nav .nav-btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.nav .nav-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.header-cta { display: flex; align-items: center; gap: 10px; margin-left: 8px; }

/* Language switch: the two versions of this page, the current one marked. */
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(15, 23, 42, .16); border-color: color-mix(in srgb, currentColor 20%, transparent); font: 600 .76rem/1 var(--font-sans); letter-spacing: .05em; }
.lang a { display: grid; place-items: center; min-width: 36px; height: 30px; padding: 0 9px; border-radius: 999px; color: inherit; text-decoration: none; opacity: .68; transition: opacity .2s, background-color .2s; }
.lang a:hover { opacity: 1; }
.lang a[aria-current="true"] { opacity: 1; background: rgba(15, 23, 42, .08); background: color-mix(in srgb, currentColor 13%, transparent); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: 12px;
  background: none;
  color: inherit;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Product switcher (dropdown) */
.switcher {
  position: absolute;
  top: calc(var(--header-h) - 6px);
  right: var(--gutter);
  width: min(440px, calc(100vw - 2 * var(--gutter)));
  padding: 10px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, .06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity .22s var(--ease), transform .28s var(--ease-out), visibility 0s linear .28s;
}
.switcher.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.switcher__title { padding: 8px 12px 6px; font: 600 .72rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: #5B6B80; }
.switcher a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color .2s;
}
.switcher a:hover, .switcher a:focus-visible { background: #F4F1EA; }
.switcher a[aria-current="page"] { background: #F1F5F9; }
.switcher .tile { width: 44px; height: 44px; }
.switcher b { display: block; font: 600 .98rem/1.2 var(--font-display); letter-spacing: -.01em; }
.switcher small { display: block; margin-top: 2px; color: #5B6B80; font-size: .84rem; line-height: 1.35; }
.switcher .pill { padding: 4px 9px; font-size: .7rem; }

/* === Brand marks & lockups ============================================== */

.lockup { display: inline-flex; align-items: center; gap: 11px; line-height: 1; }
.lockup__mark { width: 40px; height: 40px; }
.lockup__mark--m { width: 46px; height: 33px; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.62rem;
  letter-spacing: -.048em;
  line-height: .86;
}
.wordmark small {
  display: block;
  margin-top: 1px;
  font-weight: 300;
  font-size: .83em;
  letter-spacing: -.02em;
  line-height: 1;
}
.lockup--lg .lockup__mark { width: 64px; height: 64px; }
.lockup--lg .lockup__mark--m { width: 76px; height: 55px; }
.lockup--lg .wordmark { font-size: 2.6rem; }

.tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-ink);
}
.tile svg { width: 26px; height: 26px; }
.tile--solid { background: var(--dark); color: #fff; }
.tile--white { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
/* Invoice's seal on a dark background: the #mk-invoice gradients read these. */
.seal-dark { --seal-b: url(#iv-b2); --seal-h: url(#iv-h2); --seal-d: url(#iv-d2); --seal-e: url(#iv-e2); }

/* Line icons (24px grid, 1.75 stroke) */
.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* === Sections =========================================================== */

.section { position: relative; padding-block: var(--section-y); }
.section > .container, .hero > .container { position: relative; z-index: 1; }
.section--surface { background: var(--surface); }
.section--tint { background: var(--bg-2); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .lead, .section--dark .muted { color: var(--on-dark-2); }
.section--dark .eyebrow { color: var(--accent-on-dark); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }
.section-head { max-width: 780px; margin-bottom: clamp(40px, 5.5vw, 68px); }
.section-head .lead { margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.section-head--split .lead { margin-top: 0; }

/* Curved top edge, echoing the arcs of the brand artwork */
.curve-top { position: relative; }
.curve-top::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -1px;
  height: clamp(40px, 6vw, 90px);
  background: var(--curve-from, var(--bg));
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  pointer-events: none;
}

/* === Decorative backgrounds ============================================= */

.bg-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
  animation: drift 22s ease-in-out infinite alternate;
}
.aurora span:nth-child(2) { animation-duration: 28s; animation-direction: alternate-reverse; }
.aurora span:nth-child(3) { animation-duration: 34s; }
.dotgrid {
  background-image: radial-gradient(color-mix(in srgb, currentColor 22%, transparent) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  opacity: .5;
}
.noise {
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.blob {
  position: absolute;
  border-radius: 50%;
  background: var(--brand-soft);
  pointer-events: none;
}

/* === Hero (shared) ====================================================== */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(36px, 6vw, 84px));
  padding-bottom: clamp(64px, 8vw, 112px);
  overflow: hidden;
  isolation: isolate;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__copy .display { margin-bottom: 22px; }
.hero__copy .lead { margin-bottom: 30px; }
.hero__note { margin-top: 16px; font-size: .86rem; color: var(--ink-3); max-width: 56ch; }
.hero__visual { position: relative; min-width: 0; }

.checks { list-style: none; display: grid; gap: 11px; margin: 0 0 32px; }
.checks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.checks li { position: relative; display: flex; gap: 11px; align-items: flex-start; font-weight: 500; color: var(--ink-2); line-height: 1.45; }
.checks li::before {
  content: "";
  flex: 0 0 22px;
  height: 22px;
  margin-top: -1px;
  border-radius: 50%;
  background: var(--check) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4 8-9'/></svg>") center / 14px no-repeat;
  box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--check) 70%, transparent);
}
.section--dark .checks li { color: var(--on-dark-2); }

/* Product hero: light, with big soft arcs */
.hero--product { background: var(--bg); }
.hero--product .hero__arc {
  position: absolute;
  z-index: -1;
  right: -18vw;
  top: -10vw;
  width: min(78vw, 1100px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--brand-soft) 90%, #fff) 0%, var(--brand-wash) 55%, transparent 71%);
}
.hero--product .hero__arc::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--brand) 28%, transparent);
  animation: spin 90s linear infinite;
}
.hero--product .dotgrid { color: var(--brand-ink); opacity: .35; }
.hero__script { margin-top: 36px; }
.hero--product .display { font-size: clamp(2.3rem, 1.15rem + 3.3vw, 3.95rem); }
.hero--product .display.display--long { font-size: clamp(2.2rem, 1.1rem + 2.9vw, 3.5rem); }
@media (min-width: 961px) {
  .hero--product .hero__grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); }
}

/* === Corporate hero (dark) ============================================== */

.hero--corp {
  background: var(--navy);
  color: #fff;
  padding-bottom: 0;
}
.hero--corp .aurora span:nth-child(1) { width: 720px; height: 720px; left: -260px; top: 22%; background: #0EA5A5; opacity: .42; }
.hero--corp .aurora span:nth-child(2) { width: 560px; height: 560px; right: -160px; top: -200px; background: #1D4E89; opacity: .5; }
.hero--corp .aurora span:nth-child(3) { width: 420px; height: 420px; right: 18%; bottom: -220px; background: #14B8A6; opacity: .28; }
.hero--corp .dotgrid { color: #fff; opacity: .28; }
.hero--corp .eyebrow { color: var(--teal-3); }
.hero--corp .display { color: #fff; font-size: clamp(2.35rem, 1.1rem + 3.9vw, 4.25rem); }
@media (min-width: 961px) {
  .hero--corp .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
}
.hero--corp .grad-text { background-image: linear-gradient(100deg, #2DD4BF 10%, #5EEAD4 45%, #A5F3FC 90%); }
.hero--corp .lead { color: #CBD5E1; }
.hero--corp::after {
  /* fade into the next section */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
}

.hero-products {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero-product {
  --glow: var(--teal);
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr 20px;
  gap: 16px;
  align-items: center;
  padding: 28px clamp(12px, 2.4vw, 32px) 32px;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: background-color .3s;
}
.hero-product + .hero-product { border-left: 1px solid rgba(255, 255, 255, .1); }
.hero-product::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -120px;
  width: 280px;
  height: 200px;
  translate: -50% 0;
  border-radius: 50%;
  background: var(--glow);
  filter: blur(60px);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.hero-product:hover::before, .hero-product:focus-visible::before { opacity: .55; }
.hero-product:hover { background: rgba(255, 255, 255, .03); }
.hero-product .tile--white { position: relative; transition: transform .35s var(--ease-spring); }
.hero-product:hover .tile--white { transform: translateY(-3px) rotate(-4deg); }
.hero-product__text b { display: block; font: 600 1.05rem/1.25 var(--font-display); letter-spacing: -.01em; }
.hero-product__desc { display: block; margin-top: 3px; color: #B6C2D3; font-size: .92rem; line-height: 1.4; }
.hero-product .i-arrow { width: 20px; height: 20px; color: #94A3B8; transition: transform .3s var(--ease), color .3s; }
.hero-product:hover .i-arrow { transform: translateX(4px); color: #fff; }
.hero-product[data-p="guest"] { --glow: #22C55E; }
.hero-product[data-p="invoice"] { --glow: #3B82F6; }
.hero-product[data-p="host"] { --glow: #EA6B4A; }

/* Constellation: M in the middle, the three products around it */
.constellation {
  --px: 0;
  --py: 0;
  position: relative;
  width: 100%;
  max-width: 580px;
  margin-inline: auto;
  aspect-ratio: 1 / .92;
  container-type: inline-size;
}
.constellation__stage { position: absolute; inset: 0; font-size: clamp(8.5px, 2.3cqw, 13.5px); }
.constellation svg.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.constellation .links path { fill: none; stroke-width: 1.4; stroke-linecap: round; }
.constellation .links .base { stroke: rgba(255, 255, 255, .26); stroke-dasharray: 2 6; }
.constellation .links .flow { stroke-dasharray: .12 .88; stroke-width: 2.2; animation: flow 3.6s linear infinite; }
.constellation .links .flow:nth-of-type(2n) { animation-duration: 4.4s; }
.constellation .core {
  position: absolute;
  left: 56.9%;
  top: 49%;
  width: 22%;
  aspect-ratio: 1;
  translate: calc(-50% + var(--px) * -6px) calc(-50% + var(--py) * -6px);
  display: grid;
  place-items: center;
  border-radius: 28%;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.constellation .core svg { width: 60%; height: auto; filter: drop-shadow(0 8px 18px rgba(14, 165, 165, .45)); }
.constellation .core::before, .constellation .core::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1.5px solid rgba(45, 212, 191, .55);
  animation: ripple 3.6s var(--ease) infinite;
}
.constellation .core::after { animation-delay: 1.8s; }
.constellation .node {
  position: absolute;
  translate: calc(var(--px) * var(--depth, 10px)) calc(var(--py) * var(--depth, 10px));
  transition: translate .6s var(--ease-out);
}
.constellation .node > .float { animation: bob 7s ease-in-out infinite; }
.constellation .node--guest { right: 0; top: 0; width: 43%; --depth: 16px; }
.constellation .node--invoice { left: 0; top: 38%; width: 38%; --depth: 22px; }
.constellation .node--invoice > .float { animation-delay: -2.5s; }
.constellation .node--host { right: 0; bottom: 2%; width: 45%; --depth: 12px; }
.constellation .node--host > .float { animation-delay: -4.5s; }

.glass {
  border-radius: 1.3em;
  padding: 1.15em 1.2em;
  background: rgba(255, 255, 255, .96);
  color: var(--navy);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .5);
  font-size: 1em;
  line-height: 1.35;
}
.glass__head { display: flex; align-items: center; gap: .7em; margin-bottom: .9em; }
.glass__head svg { width: 2.2em; height: 2.2em; }
.glass__head b { display: block; font: 600 1.05em/1.15 var(--font-display); letter-spacing: -.01em; }
.glass__head small { display: block; color: #5B6B80; font-size: .82em; }
.glass__row { display: flex; align-items: center; gap: .6em; padding: .45em 0; font-size: .92em; font-weight: 500; }
.glass__row + .glass__row { border-top: 1px solid rgba(15, 23, 42, .07); }
.glass__row .dot { flex: 0 0 1.35em; height: 1.35em; border-radius: 50%; display: grid; place-items: center; background: #E2E8F0; color: #fff; transition: background-color .4s var(--ease), transform .4s var(--ease-spring); }
.glass__row .dot svg { width: .8em; height: .8em; opacity: 0; transition: opacity .3s; }
.glass__row.on .dot { background: #22C55E; transform: scale(1.08); }
.glass__row.on .dot svg { opacity: 1; }
.glass__amount { font: 600 1.7em/1 var(--font-display); letter-spacing: -.03em; }
.glass__meta { display: flex; justify-content: space-between; align-items: center; gap: .6em; margin-top: .7em; font-size: .85em; color: #5B6B80; }
.status { position: relative; display: inline-grid; font-size: .78em; font-weight: 600; }
.status > span {
  grid-area: 1 / 1;
  padding: .35em .75em;
  border-radius: 999px;
  text-align: center;
  transition: opacity .35s var(--ease), transform .45s var(--ease-spring);
}
.status .s-a { background: #FEF3C7; color: #92400E; }
.status .s-b { background: #DCFCE7; color: #166534; opacity: 0; transform: scale(.6); }
.status.on .s-a { opacity: 0; transform: scale(.6); }
.status.on .s-b { opacity: 1; transform: none; }
.vf-tag { display: inline-flex; align-items: center; gap: .45em; padding: .35em .6em; border-radius: .6em; background: #EFF6FF; color: #1D4ED8; font-size: .78em; font-weight: 700; letter-spacing: .02em; }
.vf-tag i { width: 1.4em; height: 1.4em; border-radius: .25em; background: conic-gradient(from 90deg, #1D4ED8 25%, #fff 0 50%, #1D4ED8 0 75%, #fff 0) 0 0 / .47em .47em; }
.spark { display: flex; align-items: flex-end; gap: .32em; height: 3.2em; margin: .5em 0 .2em; }
.spark i { flex: 1; border-radius: .25em .25em .1em .1em; background: linear-gradient(to top, #EA6B4A, #F4A261); height: var(--h); transform-origin: bottom; transform: scaleY(.15); transition: transform .9s var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
.on .spark i, .spark.on i { transform: scaleY(1); }
.toast {
  position: absolute;
  left: -8%;
  bottom: -18%;
  display: flex;
  align-items: center;
  gap: .6em;
  padding: .7em .95em;
  border-radius: 1em;
  background: var(--navy);
  color: #fff;
  font-size: .86em;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .12);
  opacity: 0;
  transform: translateY(.8em) scale(.94);
  transition: opacity .45s var(--ease), transform .55s var(--ease-spring);
}
.toast.on { opacity: 1; transform: none; }
.toast i { width: 1.9em; height: 1.9em; border-radius: .6em; display: grid; place-items: center; background: #EA6B4A; font-style: normal; }
.toast i svg { width: 1.1em; height: 1.1em; }

/* === Marquee ============================================================ */

.marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  padding-block: 22px;
  border-block: 1px solid var(--line);
  background: var(--surface);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  flex-shrink: 0;
  gap: 44px;
  padding-right: 44px;
  align-items: center;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font: 600 clamp(1.05rem, .9rem + .6vw, 1.45rem)/1 var(--font-display);
  letter-spacing: -.02em;
  color: var(--ink);
  white-space: nowrap;
}
.marquee__item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c, var(--teal));
  transform: rotate(45deg);
}

/* === Cards ============================================================== */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--line-2); }
.spot { --mx: 50%; --my: 50%; }
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand) 14%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.spot:hover::after { opacity: 1; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.feature { padding: clamp(24px, 2.6vw, 32px); overflow: hidden; }
.feature .tile { margin-bottom: 22px; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--ink-2); font-size: .98rem; }
.feature--wide { grid-column: span 2; }
.feature__visual { margin: -4px 0 24px; }
.section--dark .card { background: var(--dark-2); border-color: rgba(255, 255, 255, .08); color: var(--on-dark); box-shadow: none; }
.section--dark .card p { color: var(--on-dark-2); }
.section--dark .tile { background: rgba(255, 255, 255, .08); color: var(--accent-on-dark); }

/* Product cards on the corporate page */
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pcard__visual {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: radial-gradient(120% 90% at 20% 0%, #fff 0%, var(--brand-wash) 45%, var(--brand-soft) 100%);
  container-type: inline-size;
}
.pcard__visual .stage { position: absolute; inset: 0; font-size: clamp(8px, 3.1cqw, 13px); }
.pcard__body { display: flex; flex-direction: column; gap: 14px; padding: 26px clamp(22px, 2.4vw, 30px) 30px; flex: 1; }
.pcard__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pcard h3 { font-size: 1.32rem; line-height: 1.25; letter-spacing: -.022em; }
.pcard p { color: var(--ink-2); }
.pcard .tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.pcard .tags li { padding: 5px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .8rem; font-weight: 500; color: var(--ink-2); }
.pcard .link-arrow { margin-top: auto; padding-top: 6px; }
.pcard .link-arrow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Floating mini-UI inside pcard visuals */
.mini {
  position: absolute;
  border-radius: 1.1em;
  background: #fff;
  box-shadow: 0 22px 44px -22px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .05);
  padding: 1em 1.1em;
  font-size: 1em;
  line-height: 1.35;
  color: #0F172A;
  transition: transform .7s var(--ease-out);
}
.pcard:hover .mini--a { transform: translateY(-.5em) rotate(-1.5deg); }
.pcard:hover .mini--b { transform: translateY(.4em) rotate(1.5deg); }

/* === Icon strip ========================================================= */

.icon-strip { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 12px; }
.icon-strip__item { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 18px 10px; text-align: center; font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--ink); border-radius: var(--radius); transition: background-color .3s; }
.icon-strip__item:hover { background: var(--surface); }
.icon-strip__item .tile { transition: transform .45s var(--ease-spring), background-color .3s, color .3s; }
.icon-strip__item:hover .tile { transform: translateY(-4px) scale(1.06); background: var(--btn); color: #fff; }
.icon-strip__item small { display: block; margin-top: -4px; font-weight: 400; font-size: .86rem; color: var(--ink-3); }

/* === Concept (scroll-lit statement) ===================================== */

.statement {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1rem + 3vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -.03em;
  max-width: 22ch;
}
.js .statement .w { opacity: .16; transition: opacity .35s linear, color .35s linear; }
.js .statement .w.lit { opacity: 1; }
.statement .hl { color: var(--brand-ink); }

/* === Steps ============================================================== */

.steps { --p: 0; position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.steps__line {
  position: absolute;
  top: 27px;
  left: calc(100% / var(--n, 5) / 2);
  right: calc(100% / var(--n, 5) / 2);
  height: 2px;
  background: var(--line-2);
  border-radius: 2px;
  overflow: hidden;
}
.steps__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-grad);
  transform-origin: left;
  transform: scaleX(var(--p));
}
.no-js .steps__line::after { transform: none; }
.step { position: relative; }
.step__n {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--line-2);
  font: 600 1rem/1 var(--font-display);
  color: var(--ink-3);
  transition: background-color .5s var(--ease), color .5s, border-color .5s, transform .6s var(--ease-spring);
}
.step.on .step__n, .no-js .step .step__n { background: var(--btn); border-color: var(--btn); color: #fff; transform: scale(1.06); box-shadow: 0 10px 24px -10px var(--btn); }
.step h3 { margin-bottom: 8px; font-size: 1.08rem; }
.step p { font-size: .95rem; color: var(--ink-2); }

/* === Comparison timeline (Guest) ======================================== */

.day { display: grid; gap: 12px; }
.day__row {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
.day__row > div { padding: 20px 22px; }
.day__when { display: flex; flex-direction: column; gap: 4px; background: var(--bg-2); }
.day__when b { font: 600 1.25rem/1 var(--font-display); letter-spacing: -.02em; }
.day__when span { font-size: .85rem; color: var(--ink-3); line-height: 1.35; }
.day__without, .day__with { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; align-items: start; line-height: 1.5; }
.day__without { color: var(--ink-3); border-left: 1px solid var(--line); }
.day__with { color: var(--ink); font-weight: 500; border-left: 1px solid var(--line); background: linear-gradient(90deg, var(--brand-wash), transparent 70%); }
.day__without::before, .day__with::before { flex: 0 0 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; line-height: 22px; text-align: center; }
.day__without::before { content: "×"; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-3); }
.day__with::before { content: "✓"; background: var(--check); color: #fff; }
.day__head { display: grid; grid-template-columns: 196px minmax(0, 1fr) minmax(0, 1fr); padding: 0 0 4px; font: 600 .78rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.day__head span { padding-inline: 22px; }
.day__head span:last-child { color: var(--brand-ink); }
.day__label { display: none; }

/* === Zeros / pricing ==================================================== */

.zeros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.zero { padding: clamp(24px, 2.6vw, 34px); background: var(--surface); }
.zero__n { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.zero__n b { font: 600 2.6rem/1 var(--font-display); letter-spacing: -.04em; color: var(--brand-ink); }
.zero__n span { font-weight: 600; color: var(--ink); }
.zero p { color: var(--ink-2); font-size: .96rem; }

.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin-inline: auto; }
.price { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px); border-radius: var(--radius-xl); }
.price__name { font: 600 .82rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); }
.price__amount { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 6px; }
.price__amount b { font: 600 3.4rem/1 var(--font-display); letter-spacing: -.045em; }
.price__amount span { color: var(--ink-3); font-weight: 500; }
.price__scope { color: var(--ink-2); margin-bottom: 24px; }
.price .checks { margin-bottom: 30px; }
.price .btn { margin-top: auto; }
.price--featured { background: var(--dark); color: var(--on-dark); border-color: transparent; box-shadow: var(--shadow-lg); }
.price--featured .price__name { color: var(--accent-on-dark); }
.price--featured .price__amount span, .price--featured .price__scope { color: var(--on-dark-2); }
.price--featured .checks li { color: var(--on-dark-2); }
.price--featured .checks li::before { background-color: var(--accent-on-dark); background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F4D3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4 8-9'/></svg>"); }
.price__badge { align-self: flex-start; margin-bottom: 18px; }
.price__amount b span { color: inherit; font-weight: inherit; }
/* The monthly price, crossed out next to what a month costs when paid yearly. */
.price__amount s { align-self: center; font: 500 1.25rem/1 var(--font-display); color: var(--ink-3); text-decoration-thickness: 1.5px; }
.price--featured .price__amount s { color: var(--on-dark-3); }
.price__alt { margin: 0 0 24px; font-size: .9rem; color: var(--ink-3); }
.price--featured .price__alt { color: var(--on-dark-3); }
/* Three plans: the name first, then who it is for, then the price. */
.prices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; align-items: stretch; }
.prices--3 .price { padding: clamp(24px, 2.4vw, 34px); }
.prices--3 .price__scope { margin: 10px 0 0; min-height: 3.2em; }
.prices--3 .price__amount { margin: 14px 0 6px; }
.prices--3 .price__amount b { font-size: clamp(2.6rem, 2rem + 1.6vw, 3.2rem); }
.prices--3 .price__badge { position: absolute; top: 22px; right: 22px; margin: 0; }
.prices--3 .price { position: relative; }

/* Yearly / monthly switch. Yearly shows by default; the radios switch it with
   :has, and mellom.js mirrors the choice in data-billing for older browsers. */
.billing__switch { display: flex; width: fit-content; margin: 0 auto clamp(28px, 3.5vw, 44px); padding: 5px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.billing__switch label { position: relative; cursor: pointer; }
.billing__switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.billing__switch span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; color: var(--ink-2); transition: background-color .25s var(--ease), color .25s var(--ease); }
.billing__switch em { padding: 4px 9px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font: 600 .74rem/1 var(--font-sans); font-style: normal; white-space: nowrap; }
.billing__switch input:checked + span { background: var(--btn); color: var(--btn-ink); }
.billing__switch input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 3px; }
.billing [data-bill="month"] { display: none; }
.billing[data-billing="month"] [data-bill="month"] { display: inline; }
.billing[data-billing="month"] [data-bill="year"] { display: none; }
.billing:has(input[value="month"]:checked) [data-bill="month"] { display: inline; }
.billing:has(input[value="month"]:checked) [data-bill="year"] { display: none; }
.fineprint { margin-top: 22px; text-align: center; font-size: .9rem; color: var(--ink-3); }
.fineprint a { color: var(--brand-ink); font-weight: 600; text-underline-offset: 3px; }
.steps + .fineprint { margin-top: clamp(28px, 4vw, 44px); font-size: .98rem; }

/* === Benefits trio + script tagline ===================================== */

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.2fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.trio__item { display: flex; gap: 14px; align-items: center; font-weight: 600; line-height: 1.3; }
.trio .script { justify-self: end; text-align: left; font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem); }

/* === Split feature (media + text) ======================================= */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split .lead + .lead { margin-top: 14px; }
.facts { display: grid; gap: 14px; margin-top: 28px; list-style: none; }
.facts li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.facts .tile { width: 44px; height: 44px; border-radius: 12px; }
.facts .tile svg { width: 22px; height: 22px; }
.facts b { display: block; font-weight: 600; color: var(--ink); }
.facts span { color: var(--ink-2); font-size: .96rem; }
.section--dark .facts b { color: #fff; }
.section--dark .facts span { color: var(--on-dark-2); }

/* === Quote / origin ===================================================== */

.origin { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.origin p + p { margin-top: 16px; }
.quote {
  position: relative;
  margin: 32px 0 0;
  padding: 28px 30px 28px 34px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  font: 500 1.2rem/1.45 var(--font-display);
  letter-spacing: -.015em;
}
.quote::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand-grad); }

/* === Stats ============================================================== */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(44px, 6vw, 72px); border-radius: var(--radius-lg); overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stat { padding: clamp(22px, 2.4vw, 30px); background: var(--surface); }
.stat b { display: block; font: 600 clamp(2.2rem, 1.5rem + 2.2vw, 3.3rem)/1 var(--font-display); letter-spacing: -.045em; color: var(--ink); }
.stat b small { font-size: .5em; letter-spacing: -.02em; margin-left: 2px; }
.stat > span { display: block; margin-top: 12px; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }

/* === Values ============================================================= */

.value { padding: clamp(24px, 2.6vw, 32px); }
.value__n { display: block; margin-bottom: 26px; font: 600 .8rem/1 var(--font-sans); letter-spacing: .12em; color: var(--ink-3); }
.value h3 { margin: 18px 0 10px; }
.value p { color: var(--ink-2); font-size: .97rem; }

/* === Devices / mockups ================================================== */

.device-stage { position: relative; display: grid; place-items: center; }

.phone {
  position: relative;
  width: min(300px, 76vw);
  aspect-ratio: 300 / 610;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2A2F36, #0E1116 60%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .08);
  container-type: inline-size;
}
.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #fff;
  font-size: 4.3cqw;
  color: #0E2A21;
}
.phone__notch { position: absolute; left: 50%; top: 9px; translate: -50% 0; width: 34%; height: 24px; border-radius: 20px; background: #0E1116; z-index: 2; }
.phone__status { display: flex; justify-content: space-between; padding: 13px 22px 0; font-size: .72em; font-weight: 600; }

.laptop { position: relative; width: 100%; max-width: 640px; margin-inline: auto; container-type: inline-size; }
.laptop__screen {
  position: relative;
  aspect-ratio: 16 / 10.2;
  padding: 1.6% 1.6% 2%;
  border-radius: 2.6cqw 2.6cqw .8cqw .8cqw;
  background: linear-gradient(160deg, #2B3038, #0F1216);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.laptop__ui { position: relative; height: 100%; border-radius: .9cqw; overflow: hidden; background: #fff; font-size: 1.62cqw; color: var(--ink); display: grid; grid-template-columns: 19% 1fr; }
.laptop__base { position: relative; height: 2.4cqw; margin: 0 -6%; border-radius: 0 0 2.2cqw 2.2cqw; background: linear-gradient(#DDE1E6, #B5BBC3 70%, #9EA5AE); box-shadow: 0 30px 40px -24px rgba(15, 23, 42, .5); }
.laptop__base::before { content: ""; position: absolute; left: 50%; top: 0; translate: -50% 0; width: 15%; height: 42%; border-radius: 0 0 1.2cqw 1.2cqw; background: #A9AFB8; }

.ui-side { padding: 1.4em 1em; background: #F8FAFC; border-right: 1px solid #EEF2F6; display: flex; flex-direction: column; gap: .3em; }
.ui-side__brand { display: flex; align-items: center; gap: .45em; margin-bottom: 1em; font: 700 1.05em/1 var(--font-display); letter-spacing: -.04em; }
.ui-side__brand svg { width: 1.5em; height: 1.5em; }
.ui-side span { display: flex; align-items: center; gap: .55em; padding: .5em .6em; border-radius: .5em; font-size: .9em; color: #64748B; }
.ui-side span::before { content: ""; width: .8em; height: .8em; border-radius: .25em; border: 1.5px solid currentColor; opacity: .7; }
.ui-side span.on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.ui-main { padding: 1.4em 1.6em; display: flex; flex-direction: column; gap: 1em; min-width: 0; }
.ui-top { display: flex; align-items: center; justify-content: space-between; gap: 1em; }
.ui-top h4 { font: 600 1.35em/1.1 var(--font-display); letter-spacing: -.02em; }
.ui-btn { display: inline-flex; align-items: center; gap: .4em; padding: .55em .9em; border-radius: .55em; background: var(--btn); color: #fff; font-size: .82em; font-weight: 600; white-space: nowrap; }
.ui-search { height: 2.1em; border-radius: .55em; border: 1px solid #E2E8F0; background: #F8FAFC; display: flex; align-items: center; padding: 0 .8em; color: #94A3B8; font-size: .82em; width: 55%; }

.ui-table { width: 100%; border-collapse: collapse; font-size: .85em; }
.ui-table th { text-align: left; font-weight: 600; color: #94A3B8; font-size: .85em; padding: 0 .6em .7em; border-bottom: 1px solid #EEF2F6; }
.ui-table td { padding: .75em .6em; border-bottom: 1px solid #F1F5F9; white-space: nowrap; }
.ui-table td:nth-child(4), .ui-table th:nth-child(4) { text-align: right; }
.ui-table .num { color: #64748B; }
.ui-table tr.new td { background: #EFF6FF; }
.ui-table tr.new { opacity: 0; transform: translateY(-.6em); transition: opacity .5s var(--ease), transform .6s var(--ease-out); }
.ui-table tr.new.on { opacity: 1; transform: none; }
.tag { display: inline-block; padding: .28em .7em; border-radius: 999px; font-size: .85em; font-weight: 600; }
.tag--ok { background: #DCFCE7; color: #166534; }
.tag--sent { background: #DBEAFE; color: #1E40AF; }
.tag--wait { background: #FEF3C7; color: #92400E; }
.tag--late { background: #FEE2E2; color: #991B1B; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; }
.kpi { padding: .9em 1em; border-radius: .8em; border: 1px solid #EEF2F6; background: #fff; }
.kpi small { display: block; color: #94A3B8; font-size: .8em; }
.kpi b { display: block; white-space: nowrap; margin-top: .2em; font: 600 1.6em/1.1 var(--font-display); letter-spacing: -.03em; }
.kpi em { font-style: normal; font-size: .72em; font-weight: 600; color: #16A34A; }
.chart { position: relative; height: 7.5em; border-radius: .8em; border: 1px solid #EEF2F6; padding: .6em .8em; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease-out); }
.chart .area { opacity: 0; transition: opacity 1s var(--ease) .8s; }
.chart.on .line { stroke-dashoffset: 0; }
.chart.on .area { opacity: 1; }
.arrivals { display: grid; gap: .1em; }
.arrivals div { display: grid; grid-template-columns: 2em 1fr auto auto; gap: .7em; align-items: center; padding: .5em 0; border-bottom: 1px solid #F1F5F9; font-size: .88em; }
.arrivals i { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-style: normal; font-weight: 700; font-size: .78em; }

/* Floating chips around devices */
.chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px 11px 11px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 44px -20px rgba(15, 23, 42, .35), 0 0 0 1px rgba(15, 23, 42, .05);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  white-space: nowrap;
  animation: bob 6.5s ease-in-out infinite;
}
.chip small { display: block; font-weight: 500; color: var(--ink-3); font-size: .78rem; }
.chip .tile { width: 36px; height: 36px; border-radius: 11px; }
.chip .tile svg { width: 19px; height: 19px; }
.chip:nth-of-type(2) { animation-delay: -2.2s; }
.chip:nth-of-type(3) { animation-delay: -4.1s; }

/* Paper invoice (Invoice) */
.paper {
  position: relative;
  width: 100%;
  padding: 1.6em 1.6em 1.4em;
  border-radius: 1em;
  background: #fff;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(15, 23, 42, .05);
  font-size: 1em;
  color: #0B1B3F;
}
.paper__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1em; margin-bottom: 1.2em; }
.paper__head b { display: block; font: 600 1.35em/1 var(--font-display); letter-spacing: -.02em; }
.paper__head small { color: #64748B; }
.paper__lines { display: grid; gap: .55em; margin: 1em 0; font-size: .9em; }
.paper__lines div { display: flex; justify-content: space-between; gap: 1em; }
.paper__lines span { color: #64748B; }
.paper__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: .8em; border-top: 1.5px solid #0B1B3F; font-weight: 700; }
.paper__total b { font: 700 1.5em/1 var(--font-display); letter-spacing: -.03em; }
.paper__foot { display: flex; align-items: center; gap: .9em; margin-top: 1.2em; padding: .8em; border-radius: .7em; background: #F8FAFF; border: 1px dashed #BFDBFE; font-size: .8em; line-height: 1.35; color: #334155; }
.qr { flex: 0 0 4.4em; height: 4.4em; border-radius: .35em; background: #fff; padding: .3em; box-shadow: 0 0 0 1px #DBEAFE; }
.qr svg { width: 100%; height: 100%; }

/* Hash chain (Invoice VERI*FACTU explainer) */
.chain { display: grid; }
.chain__block { position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: #fff; border: 1px solid #DBEAFE; box-shadow: var(--shadow-sm); line-height: 1.35; opacity: .4; transform: translateY(8px); transition: opacity .6s var(--ease), transform .7s var(--ease-out), border-color .4s, box-shadow .4s; }
.chain__block.on { opacity: 1; transform: none; border-color: #93C5FD; box-shadow: var(--shadow); }
.no-js .chain__block { opacity: 1; transform: none; }
.chain__block .tile { width: 44px; height: 44px; border-radius: 12px; }
.chain__block .tile svg { width: 22px; height: 22px; }
.chain__block b { display: block; font: 600 1rem/1.2 var(--font-display); letter-spacing: -.01em; color: #0B1B3F; }
.chain__block code { display: block; margin-top: 4px; font: 500 .8rem/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: #1D4ED8; }
.chain__block code span { color: #64748B; }
.chain__link { position: relative; width: 2px; height: 26px; margin-left: 39px; background: #DBEAFE; overflow: hidden; }
.chain__link::after { content: ""; position: absolute; inset: 0; background: #2563EB; transform-origin: top; transform: scaleY(0); transition: transform .5s var(--ease); }
.chain__link.on::after, .no-js .chain__link::after { transform: none; }
.chain__aeat { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: #0B1B3F; color: #fff; font-weight: 600; font-size: .92rem; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .6s var(--ease-spring); }
.chain__aeat.on, .no-js .chain__aeat { opacity: 1; transform: none; }
.chain__aeat .tile { width: 32px; height: 32px; border-radius: 10px; background: #22C55E; color: #fff; }
.chain__aeat .tile svg { width: 18px; height: 18px; }

/* Timeline of dates */
.dates { display: grid; gap: 12px; margin-top: 28px; }
.date { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.date b { font: 600 1.05rem/1.1 var(--font-display); letter-spacing: -.01em; color: var(--brand-ink); white-space: nowrap; }
.date span { color: var(--ink-2); font-size: .95rem; line-height: 1.45; }

/* Bento (Host) */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.bento .feature { display: flex; flex-direction: column; }
.bento .b-3 { grid-column: span 3; }
.bento .b-2 { grid-column: span 2; }
.bento .b-4 { grid-column: span 4; }
.bento .feature__visual { flex: 1; display: grid; align-items: end; min-height: 150px; }
.mock-browser { border-radius: 14px; border: 1px solid var(--line); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.mock-browser__bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.mock-browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 18%, transparent); }
.mock-browser__bar span { flex: 1; margin-left: 8px; height: 20px; border-radius: 6px; background: #fff; font-size: .72rem; color: var(--ink-3); display: flex; align-items: center; padding-inline: 8px; }
.mock-hero { position: relative; padding: 22px 20px; min-height: 130px; background: linear-gradient(120deg, rgba(31, 29, 27, .72), rgba(31, 29, 27, .2)), radial-gradient(120% 140% at 80% 20%, #F4A261 0%, #EA6B4A 38%, #7A3524 100%); color: #fff; }
.mock-hero b { display: block; font: 600 1.2rem/1.15 var(--font-display); letter-spacing: -.02em; max-width: 14ch; }
.mock-hero .booking { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; padding: 6px 6px 6px 12px; border-radius: 10px; background: #fff; color: var(--ink); font-size: .74rem; font-weight: 500; }
.mock-hero .booking em { font-style: normal; padding: 5px 10px; border-radius: 7px; background: #C8482A; color: #fff; font-weight: 600; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: .68rem; color: var(--ink-3); }
.cal span { height: 22px; border-radius: 6px; background: var(--bg-2); }
.cal .b1 { background: #EA6B4A; }
.cal .b2 { background: #F4A261; }
.cal .b3 { background: #F8DCC8; }
.pay { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pay b { font: 600 1.2rem/1 var(--font-display); letter-spacing: -.02em; }
.pay small { display: block; color: var(--ink-3); font-size: .78rem; }
.pay .tile { width: 40px; height: 40px; border-radius: 12px; }
.serp { padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: .82rem; line-height: 1.4; box-shadow: var(--shadow-sm); }
.serp u { text-decoration: none; color: #1A0DAB; font-size: .98rem; font-weight: 500; }
.serp small { display: block; color: #0D652D; }
.serp .stars { color: #F59E0B; letter-spacing: 1px; }

/* Calculator (Host) */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc__inputs { padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 28px; }
.calc__out { position: relative; padding: clamp(24px, 3.4vw, 44px); background: var(--dark); color: var(--on-dark); display: flex; flex-direction: column; justify-content: center; gap: 18px; overflow: hidden; }
.field-range label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font-weight: 600; }
.field-range output { font: 600 1.1rem/1 var(--font-display); letter-spacing: -.02em; color: var(--brand-ink); white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; --fill: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--brand) var(--fill), var(--bg-2) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--bg-2); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--brand); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 2px solid var(--btn); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35); transition: transform .2s var(--ease-spring); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--btn); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__big { font: 600 clamp(2.6rem, 1.6rem + 3vw, 4.2rem)/1 var(--font-display); letter-spacing: -.045em; color: #fff; }
.calc__bars { display: grid; gap: 12px; }
.calc__bar { display: grid; gap: 6px; font-size: .88rem; color: var(--on-dark-2); }
.calc__bar div { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.calc__bar i { display: block; height: 100%; width: var(--w, 50%); border-radius: inherit; background: var(--on-dark-3); transition: width .6s var(--ease-out); }
.calc__bar--after i { background: linear-gradient(90deg, var(--host), var(--host-2)); }
.calc__note { font-size: .84rem; color: var(--on-dark-3); }

/* === Contact ============================================================ */

.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact .aurora span:nth-child(1) { width: 620px; height: 620px; right: -200px; top: -240px; background: var(--brand); opacity: .35; }
.contact .aurora span:nth-child(2) { width: 460px; height: 460px; left: -180px; bottom: -220px; background: var(--brand-2); opacity: .2; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact__alt { display: grid; gap: 14px; margin-top: 30px; list-style: none; }
.contact__alt a { color: #fff; font-weight: 600; text-underline-offset: 4px; }
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(22px, 3vw, 36px);
  border-radius: var(--radius-xl);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.form .full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field label span { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--btn); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--btn) 16%, transparent); }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.form__legal { font-size: .8rem; color: var(--ink-3); max-width: 42ch; line-height: 1.45; }
.form__legal a { color: var(--ink-2); }
.form__status { grid-column: 1 / -1; display: none; padding: 14px 16px; border-radius: 12px; font-weight: 500; font-size: .95rem; }
.form__status.is-ok { display: block; background: #DCFCE7; color: #14532D; }
.form__status.is-error { display: block; background: #FEE2E2; color: #7F1D1D; }
.form__status a { color: inherit; font-weight: 700; }
.form.is-sending .btn { opacity: .7; pointer-events: none; }
.form.is-sent { align-content: center; min-height: 320px; }
.form.is-sent .field, .form.is-sent .form__foot { display: none; }
.form.is-sent .form__status { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 22px; text-align: center; font-size: 1.05rem; line-height: 1.5; background: transparent; color: var(--ink); }
.form.is-sent .form__status::before {
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--check) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4 8-9'/></svg>") center / 30px no-repeat;
  box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--check) 80%, transparent);
  animation: pop .6s var(--ease-spring);
}
.form.is-sent .form__status strong { display: block; font: 600 1.35rem/1.2 var(--font-display); letter-spacing: -.02em; }

/* === Footer ============================================================= */

.site-footer { position: relative; background: #0B1222; color: #CBD5E1; padding: clamp(56px, 7vw, 88px) 0 32px; overflow: hidden; }
.site-footer a { color: #E2E8F0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.footer__brand p { margin-top: 18px; max-width: 34ch; color: #94A3B8; }
.footer__brand .lockup { color: #fff; }
.footer__tag { margin-top: 20px; font: 600 .72rem/1.6 var(--font-sans); letter-spacing: .22em; text-transform: uppercase; color: #8391A7; white-space: nowrap; }
.footer__col h2 { margin-bottom: 16px; font: 600 .75rem/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: #8391A7; }
.footer__col ul { list-style: none; display: grid; gap: 10px; }
.footer__col li { display: flex; align-items: center; gap: 8px; font-size: .95rem; }
.footer__col .pill { padding: 3px 8px; font-size: .68rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; color: #94A3B8; }
.footer__giant {
  position: absolute;
  right: -2vw;
  bottom: -5.2vw;
  font: 700 clamp(6rem, 17vw, 16rem)/1 var(--font-display);
  letter-spacing: -.06em;
  color: rgba(255, 255, 255, .025);
  pointer-events: none;
  user-select: none;
}

/* === Invoice: list, floating paper, developer card ===================== */

.ui-list { font-size: .86em; }
.ui-row { display: grid; grid-template-columns: .95fr 2.1fr .9fr 1.05fr 1fr; gap: .7em; align-items: center; padding: .7em .6em; border-bottom: 1px solid #F1F5F9; white-space: nowrap; }
.ui-row > :nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; }
.ui-row > :nth-child(1) { color: #64748B; font-variant-numeric: tabular-nums; }
.ui-row > :nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.ui-row--head { padding-top: 0; color: #94A3B8; font-weight: 600; font-size: .88em; border-bottom-color: #EEF2F6; }
.ui-row.new { max-height: 0; padding-block: 0; opacity: 0; overflow: hidden; border-bottom-width: 0; background: #EFF6FF; border-radius: .5em; transition: max-height .6s var(--ease-out), padding .6s var(--ease-out), opacity .5s var(--ease) .1s; }
.ui-row.new.on, .no-js .ui-row.new { max-height: 3.4em; padding-block: .7em; opacity: 1; border-bottom-width: 1px; }
.ui-row .status { font-size: 1em; justify-self: start; }
.ui-row .status .s-a { background: #DBEAFE; color: #1E40AF; }
.ui-row .tag { font-size: .85em; justify-self: start; }

/* Home: who each product is for, and the Invoice invoice on its own */
.pcard .pcard__for { margin-bottom: -6px; font: 600 .72rem/1.2 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.paper--card { max-width: 420px; font-size: clamp(13px, 1.2vw, 15px); transform: rotate(-2deg); }
.device-stage--paper { padding-bottom: 76px; }

.paper--float { position: absolute; z-index: 3; right: -4%; bottom: -12%; width: 46%; font-size: clamp(9px, 1.25vw, 13px); transform: rotate(3deg); }
.paper--float .qr { flex-basis: 4.2em; height: 4.2em; }

.dev-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: var(--radius-xl); background: var(--dark); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.dev-card::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: var(--brand); filter: blur(90px); opacity: .45; }
.dev-card .eyebrow { color: var(--accent-on-dark); }
.dev-card p { color: var(--on-dark-2); margin-top: 14px; max-width: 58ch; }
.code {
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  font: 500 .82rem/1.75 ui-monospace, "SF Mono", Menlo, monospace;
  color: #CFDCF5;
  white-space: pre;
  overflow-x: auto;
}
.code .k { color: #93C5FD; }
.code .s { color: #A7F3D0; }
.code .c { color: #7C8DB5; }
/* The Engine card carries a request and its response: two equal columns. */
.dev-card--code { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.dev-card .checks { margin: 22px 0 0; }
.dev-card .checks li { color: var(--on-dark-2); }
.dev-card .actions { margin-top: 26px; }

/* === Invoice: one engine, two products ================================== */

/* "In testing": the product colours and a solid dot. */
.pill--beta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* The two products, as two doors under the hero copy. */
.doors { display: grid; gap: 10px; max-width: 540px; margin: 0 0 30px; }
.door { display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; gap: 14px; align-items: center; padding: 12px 18px 12px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.door:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.door .tile { width: 48px; height: 48px; }
.door b { display: block; font: 600 1.06rem/1.25 var(--font-display); letter-spacing: -.012em; }
.door small { display: block; margin-top: 2px; font-size: .92rem; line-height: 1.4; color: var(--ink-2); }
.door .i-arrow { width: 20px; height: 20px; color: var(--ink-3); transition: transform .3s var(--ease), color .3s; }
.door:hover .i-arrow { transform: translateX(3px); color: var(--brand-ink); }

/* Hero map: the customer's own software and Invoice App both go through
   Engine, and Engine talks to the tax agency. Sized in em from the stage,
   like .constellation, so it scales with its column; the scene lights the
   request, then Engine's four jobs, then the agency's acceptance. */
.emap { position: relative; width: 100%; max-width: 560px; margin-inline: auto; aspect-ratio: 560 / 520; container-type: inline-size; }
.emap__stage { position: absolute; inset: 0; font-size: clamp(8.5px, 2.32cqw, 13px); }
.emap .links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.emap .links path { fill: none; stroke-linecap: round; }
.emap .links .base { stroke: var(--brand-2); stroke-width: 1.6; stroke-dasharray: 2 7; opacity: .75; }
.emap .links .flow { stroke: var(--brand); stroke-width: 2.8; stroke-dasharray: .1 .9; animation: flow 3.4s linear infinite; }
.emap .links .flow:nth-child(5) { animation-duration: 4.1s; }
.emap .links .flow:nth-child(6) { animation-duration: 2.6s; }
.emap__node { position: absolute; padding: 1.05em 1.15em; border-radius: 1.3em; background: #fff; color: var(--ink); line-height: 1.35; box-shadow: 0 1.9em 3.4em -1.7em rgba(11, 27, 63, .45), 0 0 0 1px rgba(11, 27, 63, .06); }
.emap__node--soft { left: 0; top: 0; width: 46.5%; }
.emap__node--app { right: 0; top: 9%; width: 46.5%; }
.emap__node--engine { left: 17%; top: 44%; width: 66%; padding: 1.3em 1.4em 1.4em; background: var(--dark); color: #fff; box-shadow: 0 2.4em 4em -1.8em rgba(11, 27, 63, .75), 0 0 0 1px rgba(255, 255, 255, .06); }
.emap__node--aeat { left: 22%; bottom: 0; width: 56%; }
.emap__head { display: flex; align-items: center; gap: .75em; }
.emap__head .tile { flex: 0 0 auto; width: 2.75em; height: 2.75em; border-radius: .8em; }
.emap__head .tile svg { width: 1.5em; height: 1.5em; }
.emap__head b { display: block; font: 600 1.1em/1.15 var(--font-display); letter-spacing: -.012em; }
.emap__head small { display: block; margin-top: .2em; font-size: .82em; color: var(--ink-3); }
.emap__seal { flex: 0 0 auto; width: 3em; height: 3em; }
.emap__node--engine .emap__head b { font-size: 1.32em; }
.emap__node--engine .emap__head small { color: var(--on-dark-3); }
.emap__code { display: block; margin-top: .9em; padding: .62em .8em; border-radius: .6em; background: var(--brand-wash); color: var(--brand-ink); font: 500 .78em/1.3 ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .4s var(--ease), color .4s; }
.emap__code.on, .no-js .emap__code { background: var(--btn); color: #fff; }
.emap__row { display: flex; align-items: center; justify-content: space-between; gap: .6em; margin-top: .9em; padding: .55em .7em; border-radius: .6em; background: var(--bg); font-size: .82em; font-weight: 500; white-space: nowrap; }
.emap__row .tag { font-size: .9em; }
.emap__chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5em; margin-top: 1.1em; }
.emap__chips span { padding: .6em .2em; border-radius: .7em; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); color: var(--on-dark-3); font-size: .8em; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background-color .4s var(--ease), color .4s, border-color .4s, transform .5s var(--ease-spring); }
.emap__chips span.on, .no-js .emap__chips span { background: rgba(147, 197, 253, .18); border-color: rgba(147, 197, 253, .45); color: #fff; transform: translateY(-.15em); }
.emap__node--aeat .tile { background: #E2E8F0; color: #fff; transition: background-color .4s var(--ease), transform .5s var(--ease-spring); }
.emap__node--aeat.on .tile, .no-js .emap__node--aeat .tile { background: #22C55E; transform: scale(1.08); }

/* Who a product is for: a small title and three facts in a row. */
.who { margin-top: clamp(40px, 5vw, 64px); padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.who .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); margin-top: 22px; }

/* The App's laptop keeps its floating invoice; the steps below leave it room. */
.device-stage--app { padding-bottom: 8%; }
.steps--after-stage { margin-top: clamp(56px, 7vw, 96px); }
.actions--center { justify-content: center; margin-top: clamp(24px, 3vw, 36px); }

/* === Host: dashboard, notifications, modules =========================== */

.dash-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1em; }
.dash-top h4 { font: 600 1.45em/1.1 var(--font-display); letter-spacing: -.025em; }
.dash-top small { display: block; margin-top: .25em; color: #94A3B8; font-size: .82em; }
.dash-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: .9em; min-height: 0; }
.dash-card { border: 1px solid #EEF2F6; border-radius: .8em; padding: .8em .9em; }
.dash-card h5 { margin: 0 0 .5em; font: 600 .9em/1.2 var(--font-sans); color: #334155; }
.arrivals .tag { font-size: .78em; }

.notify {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(300px, 70%);
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 26px 50px -22px rgba(31, 29, 27, .5), 0 0 0 1px rgba(31, 29, 27, .06);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: .86rem;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(-12px) scale(.96);
  transition: opacity .45s var(--ease), transform .6s var(--ease-spring);
}
.notify.on, .no-js .notify { opacity: 1; transform: none; }
.notify .tile { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; }
.notify b { display: block; font-weight: 600; color: var(--ink); }
.notify small { display: block; color: var(--ink-3); }
.notify time { margin-left: auto; align-self: flex-start; font-size: .74rem; color: var(--ink-3); }

.ledger { display: grid; gap: 8px; width: 100%; font-size: .86rem; }
.ledger div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); color: var(--ink-2); }
.ledger div b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ledger div:last-child { background: var(--brand-soft); border-color: transparent; }

/* === Step-by-step guide (Guest: primeros pasos) ========================= */

/* A list of steps on the left and, on wide screens, one phone on the right
   that shows the screen of the open step. Each step also carries its own
   phone: that is the one phones and no-JS readers see. mellom.js opens one
   step at a time and remembers the ticked ones in localStorage. */
.guide-hero { padding: calc(var(--header-h) + clamp(44px, 6.5vw, 88px)) 0 clamp(28px, 4vw, 44px); text-align: center; }
.guide-hero .display { max-width: 15ch; margin-inline: auto; font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4rem); }
.guide-hero .lead { margin: 22px auto 0; }
.guide__note { max-width: 62ch; margin: 16px auto 0; font-size: .92rem; color: var(--ink-3); }

.guide { padding-bottom: var(--section-y); }
.guide__top { display: flex; align-items: center; gap: 16px; max-width: 620px; margin: 0 auto clamp(32px, 5vw, 60px); }
.guide__progress { flex: 1; height: 10px; border-radius: 99px; background: var(--brand-soft); overflow: hidden; }
.guide__progress i { display: block; width: calc(var(--p, 0) * 100%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-ink), var(--brand)); transition: width .6s var(--ease-out); }
.guide__count { font-size: .94rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.guide__reset { margin-left: 8px; padding: 0; border: 0; background: none; font-size: .86rem; font-weight: 500; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.no-js .guide__top { display: none; }

.guide__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.guide__grid > * { min-width: 0; }
.guide__group { margin: 26px 0 12px 6px; font: 600 .74rem/1 var(--font-sans); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }
.guide__group:first-child { margin-top: 0; }
.guide__steps { display: grid; gap: 10px; list-style: none; }

.gstep { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.gstep.is-open { border-color: var(--brand); border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: var(--shadow); }
.gstep__head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 18px; border: 0; border-radius: inherit; background: none; text-align: left; }
.gstep__n { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-wash); color: var(--brand-ink); font: 600 1.02rem/1 var(--font-display); transition: background-color .3s var(--ease), color .3s var(--ease); }
.gstep.is-open .gstep__n { background: var(--btn); color: #fff; }
.gstep.is-done .gstep__n { background: var(--brand); color: transparent; }
.gstep.is-done .gstep__n::after { content: ""; position: absolute; inset: 0; background: center / 20px no-repeat url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>"); }
.gstep__title { flex: 1; font: 600 1.08rem/1.3 var(--font-display); letter-spacing: -.016em; color: var(--ink); }
.gstep.is-done:not(.is-open) .gstep__title { color: var(--ink-3); }
.gstep__time { flex: 0 0 auto; font-size: .82rem; color: var(--ink-3); white-space: nowrap; }
.gstep__body { padding: 2px 20px 22px 70px; }
.gstep__body > p { color: var(--ink-2); }
.gstep__tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--brand-wash); font-size: .93rem; line-height: 1.5; }
.gstep__tip svg { width: 18px; height: 18px; margin-top: 2px; color: var(--brand-ink); }
.gstep__tip a { color: var(--brand-ink); font-weight: 600; text-underline-offset: 3px; }
.gstep__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
/* Long labels wrap inside the button instead of widening the card. */
.gstep__actions .btn { max-width: 100%; padding-block: 9px; white-space: normal; text-align: center; }
.gstep__done[aria-pressed="true"] { --b-bg: var(--brand-soft); --b-ink: var(--brand-ink); --b-line: transparent; }
.gstep__shot { display: none; margin-top: 22px; }
.gstep__shot .phone { width: min(250px, 72vw); margin-inline: auto; }

.guide__stage { position: sticky; top: calc(var(--header-h) + 28px); }
.guide__stage .phone { width: min(300px, 100%); margin-inline: auto; }
.guide__stage .phone__screen img { transition: opacity .3s var(--ease); }
.guide__stage.is-swapping .phone__screen img { opacity: 0; }
.guide__caption { margin-top: 18px; text-align: center; font-size: .9rem; font-weight: 600; color: var(--ink-3); }
.guide__caption b { color: var(--ink); }

.guide__end { display: flex; gap: 16px; align-items: center; margin-top: 18px; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--dark); color: var(--on-dark); }
.guide__end[hidden] { display: none; }
.guide__end .tile { background: rgba(255, 255, 255, .1); color: var(--accent-on-dark); }
.guide__end b { display: block; font: 600 1.1rem/1.3 var(--font-display); }
.guide__end span { color: var(--on-dark-2); font-size: .95rem; }

/* Without JS every step is open, with its own phone. */
.no-js .guide__grid { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-inline: auto; }
.no-js .guide__stage { display: none; }
.no-js .gstep__shot { display: block; }
.no-js .gstep__done { display: none; }

/* === Text pages (legal notice, privacy) ================================= */

.doc { padding: calc(var(--header-h) + clamp(44px, 7vw, 92px)) 0 var(--section-y); }
.doc__inner { max-width: calc(780px + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.6rem); line-height: 1.05; letter-spacing: -.036em; }
.doc__meta { margin-top: 14px; font-size: .94rem; color: var(--ink-3); }
.doc .lead { margin-top: 26px; }
.doc h2 { margin: 52px 0 14px; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); line-height: 1.25; letter-spacing: -.022em; }
.doc p, .doc li { color: var(--ink-2); line-height: 1.72; }
.doc p + p, .doc ul + p, .doc dl + p { margin-top: 14px; }
.doc ul { display: grid; gap: 10px; margin-top: 14px; padding-left: 1.25em; }
.doc li::marker { color: var(--brand); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc a:hover { text-decoration-thickness: 2px; }
.doc__card { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 24px; margin: 18px 0 0; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.doc__card dt { font-size: .9rem; color: var(--ink-3); }
.doc__card dd { margin: 0; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.doc__card dd.pending { font-weight: 400; font-style: italic; color: var(--ink-3); }
.doc__note { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-3); }
.doc__note + .doc__note { margin-top: 12px; padding-top: 0; border-top: 0; }

/* === Host: real screens in device frames ================================ */

/* A screenshot inside .phone: a status-bar band in the screen's own colour
   (--shot-bg) keeps the notch off the content. */
.phone--shot .phone__screen { padding-top: 30px; background: var(--shot-bg, #F5EFE6); }
.phone--shot .phone__screen > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.laptop--shot .laptop__screen > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; border-radius: .9cqw; background: #fff; }
.shot-note { margin-top: 18px; font-size: .86rem; color: var(--ink-3); }

/* Two phones side by side, the second a little lower. */
.pair { display: flex; justify-content: center; align-items: flex-start; gap: clamp(14px, 2.4vw, 28px); }
.pair .phone { width: min(260px, 42vw); flex: 0 0 auto; }
.pair .phone + .phone { margin-top: clamp(36px, 6vw, 72px); }
/* In a two-column split the pair has half the page: keep both phones inside it. */
@media (min-width: 961px) { .split .pair .phone { width: min(260px, 20vw); } }

/* The guest's four steps, each with its screen. */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 34px); list-style: none; }
.journey__step { display: flex; flex-direction: column; }
.journey__step .phone { width: 100%; max-width: 250px; margin: 0 auto 24px; }
.journey__n { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 50%; background: var(--btn); color: #fff; font: 600 .95rem/1 var(--font-display); }
.journey__step h3 { margin-bottom: 6px; font-size: 1.1rem; }
.journey__step p { font-size: .95rem; color: var(--ink-2); }
.journey--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 980px; margin-inline: auto; margin-top: clamp(56px, 7vw, 88px); }

/* What already exists: the modules a site is built from. */
.modules { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: clamp(36px, 4.5vw, 56px); }
.modules li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.modules li::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.modules li.soon { background: transparent; border-style: dashed; }
.modules li.soon::before { background: transparent; box-shadow: inset 0 0 0 2px var(--brand); }

/* A laptop with a phone leaning on it. */
.devices { position: relative; max-width: 760px; margin-inline: auto; padding-right: 13%; padding-bottom: 4%; }
.devices .phone { position: absolute; right: 0; bottom: 0; width: min(200px, 27%); padding: 7px; border-radius: 30px; }
.devices .phone .phone__screen { border-radius: 24px; padding-top: 20px; }
.devices .phone .phone__notch { top: 6px; height: 16px; }

/* === Testimonial ======================================================= */

/* A customer's words: stars, a short line that carries the quote, the rest
   of it, and who said it. Takes the product colour from data-theme. */
.testimonial {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(40px, 5.5vw, 72px) clamp(22px, 6vw, 80px) clamp(36px, 5vw, 60px);
  border-radius: var(--radius-xl);
  background: radial-gradient(130% 100% at 50% 0%, #fff 0%, var(--brand-wash) 58%, var(--brand-soft) 100%);
  box-shadow: 0 40px 80px -48px rgba(15, 23, 42, .35), 0 0 0 1px var(--line);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -.05em;
  translate: -50% 0;
  font: 700 clamp(10rem, 22vw, 16rem)/1 var(--font-display);
  color: var(--brand);
  opacity: .13;
}
.stars { display: inline-flex; align-items: center; gap: 4px; color: #F5A524; }
.stars svg { width: 24px; height: 24px; fill: currentColor; }
.stars b { margin-left: 8px; font: 600 .95rem/1 var(--font-sans); color: var(--ink-2); }
.testimonial blockquote { margin: 22px 0 0; }
.testimonial__lead { font: 600 clamp(1.6rem, 3.4vw, 2.5rem)/1.18 var(--font-display); letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.testimonial__body { max-width: 58ch; margin: 18px auto 0; font-size: clamp(1.02rem, 1.4vw, 1.14rem); line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.testimonial figcaption { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; text-align: left; }
.testimonial__avatar { display: grid; place-items: center; flex: 0 0 auto; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-ink)); color: #fff; font: 600 1.35rem/1 var(--font-display); box-shadow: 0 0 0 4px #fff, 0 12px 24px -12px rgba(15, 23, 42, .5); }
.testimonial figcaption b { display: block; font-weight: 600; color: var(--ink); }
.testimonial figcaption small { display: block; font-size: .92rem; color: var(--ink-3); }

/* === Guest: phone check-in, ID scan, languages ========================= */

.ci { position: relative; display: flex; flex-direction: column; gap: .8em; flex: 1; min-height: 0; padding: 1.3em 1.2em 1.25em; }
.ci__hotel { display: flex; align-items: center; justify-content: space-between; font-size: .74em; font-weight: 600; color: #56685F; }
.ci__hotel span { display: inline-flex; align-items: center; gap: .5em; }
.ci__hotel svg { width: 1.7em; height: 1.7em; color: var(--guest); }
.ci__avatar { display: grid; place-items: center; width: 2.9em; height: 2.9em; margin-top: .3em; border-radius: .95em; background: var(--brand-soft); color: var(--guest); }
.ci__avatar svg { width: 1.5em; height: 1.5em; }
.ci h4 { font: 600 1.42em/1.12 var(--font-display); letter-spacing: -.025em; color: #0E2A21; }
.ci__sub { margin-top: -.45em; font-size: .8em; color: #56685F; }
.ci__bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3em; }
.ci__bar i { height: .38em; border-radius: 1em; background: #E3ECE6; overflow: hidden; position: relative; }
.ci__bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #15803D, #22C55E); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease-out); }
.ci__bar i.on::after { transform: none; }
.ci__list { display: grid; gap: .5em; }
.ci__row { display: flex; align-items: center; gap: .7em; padding: .58em .75em; border-radius: .9em; background: #F4F7F5; font-size: .84em; font-weight: 600; color: #33483F; transition: background-color .4s var(--ease), color .4s; }
.ci__row small { display: block; font-weight: 500; font-size: .86em; color: #6B7C74; }
.ci__row .dot { flex: 0 0 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px dashed #B9CCC1; transition: all .45s var(--ease-spring); }
.ci__row .dot svg { width: 1em; height: 1em; opacity: 0; transform: scale(.4); transition: all .45s var(--ease-spring); }
.ci__row.on { background: #E8F6EE; color: #0E2A21; }
.ci__row.on .dot { background: #22C55E; border: 1.5px solid #22C55E; box-shadow: 0 6px 14px -6px rgba(34, 197, 94, .8); }
.ci__row.on .dot svg { opacity: 1; transform: none; }
.ci__done { display: flex; align-items: center; gap: .6em; padding: .75em .9em; border-radius: .9em; background: var(--guest); color: #fff; font-size: .84em; font-weight: 600; opacity: 0; transform: translateY(.6em) scale(.96); transition: opacity .45s var(--ease), transform .55s var(--ease-spring); }
.ci__done.on { opacity: 1; transform: none; }
.ci__done svg { width: 1.3em; height: 1.3em; flex: 0 0 auto; }
.ci__btn { margin-top: auto; display: grid; place-items: center; height: 3.2em; border-radius: 1em; background: linear-gradient(135deg, #15803D, #0F4D3A); color: #fff; font-weight: 600; font-size: .9em; box-shadow: 0 12px 22px -12px rgba(15, 77, 58, .9); }
.ci__btn.on { animation: pulse-btn 1.6s var(--ease) infinite; }

.idcard { position: relative; aspect-ratio: 1.586; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #E6F2EB 0%, #FFFFFF 55%, #EEF6F1 100%); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 7% 7% 6%; display: grid; grid-template-columns: 27% 1fr; grid-template-rows: 1fr auto; column-gap: 6%; row-gap: 8%; }
.idcard__photo { border-radius: 10px; background: radial-gradient(circle at 50% 38%, #9DBFAD 0 18%, transparent 19%), radial-gradient(ellipse at 50% 100%, #9DBFAD 0 42%, transparent 43%), linear-gradient(#D8E8DF, #C4DACE); }
.idcard__lines { display: grid; align-content: start; gap: 9px; padding-top: 4px; }
.idcard__lines i { display: block; height: 8px; border-radius: 4px; background: rgba(14, 42, 33, .12); }
.idcard__lines i:nth-child(1) { width: 40%; background: rgba(14, 42, 33, .22); }
.idcard__lines i:nth-child(2) { width: 78%; }
.idcard__lines i:nth-child(3) { width: 64%; }
.idcard__lines i:nth-child(4) { width: 52%; }
.idcard__mrz { grid-column: 1 / -1; font: 600 clamp(.56rem, .9vw, .76rem)/1.45 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .1em; color: rgba(14, 42, 33, .55); white-space: nowrap; overflow: hidden; }
.idcard__scan { position: absolute; left: 3%; right: 3%; top: 10%; height: 2px; border-radius: 2px; background: #22C55E; box-shadow: 0 0 18px 5px rgba(34, 197, 94, .45); animation: scan 3.4s ease-in-out infinite; }
.idcard__frame { position: absolute; inset: 4%; pointer-events: none; }
.idcard__frame::before, .idcard__frame::after { content: ""; position: absolute; width: 22px; height: 22px; border: 3px solid #22C55E; }
.idcard__frame::before { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.idcard__frame::after { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; }
.scan-ok { position: absolute; right: 5%; top: 7%; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #0F4D3A; color: #fff; font-size: .74rem; font-weight: 600; box-shadow: var(--shadow); }

.langs { display: flex; flex-wrap: wrap; gap: 8px; }
.langs span { padding: 7px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font: 600 .82rem/1 var(--font-sans); letter-spacing: .04em; color: var(--ink-2); transition: background-color .35s, color .35s, transform .45s var(--ease-spring), border-color .35s; }
.langs span.now { background: var(--btn); border-color: var(--btn); color: #fff; transform: translateY(-3px); }
.hello { position: relative; height: 1.3em; margin-top: 22px; font: 600 clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem)/1.3 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.hello span { position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0; transform: translateY(.4em); transition: opacity .45s var(--ease), transform .55s var(--ease-out); }
.hello span.now { opacity: 1; transform: none; }
.no-js .hello span:first-child { opacity: 1; transform: none; }
.no-js .langs span:first-child { background: var(--btn); border-color: var(--btn); color: #fff; }

.notice { display: flex; gap: 14px; align-items: flex-start; max-width: 860px; margin: 28px auto 0; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; line-height: 1.55; }
.notice .tile { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; }
.notice strong { color: var(--ink); }

/* Small illustrative bits inside feature cards */
.log { list-style: none; display: grid; gap: 8px; width: 100%; }
.log li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: .84rem; font-weight: 500; color: var(--ink-2); }
.log li em { font-style: normal; }
.log li .status { font-size: .98em; }
.log li[data-at] { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .6s var(--ease-out); }
.log li[data-at].on, .no-js .log li[data-at] { opacity: 1; transform: none; }
.mail { width: 100%; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: .86rem; line-height: 1.45; color: var(--ink-2); }
.mail__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.mail__head b { color: var(--ink); font-weight: 600; }
.mail__head small { color: var(--ink-3); font-size: .78rem; }
.mail__btn { display: inline-block; margin-top: 10px; padding: 7px 12px; border-radius: 9px; background: var(--btn); color: #fff; font-weight: 600; font-size: .8rem; }

/* === Reveal on scroll =================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0ms));
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="left"] { transform: translate3d(-32px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(32px, 0, 0); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Safety net: if mellom.js never runs, show everything after a moment */
.js:not(.js-ready) [data-reveal] { animation: reveal-fallback .6s var(--ease-out) 2.5s forwards; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }
@media print {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .site-header, .bg-layer, .marquee, .footer__giant { display: none !important; }
}

.js .hero [data-reveal] { transition-duration: 1.1s; }
@media (max-width: 960px) {
  /* Sideways entrances would poke past the viewport edge on phones */
  .js [data-reveal="left"]:not(.is-in), .js [data-reveal="right"]:not(.is-in) { transform: translate3d(0, 28px, 0); }
}

/* Scenes and ambient loops pause off-screen */
.js [data-scene]:not(.is-playing) *,
.js .constellation:not(.is-playing) *,
.js .marquee:not(.is-playing) .marquee__track,
.js .aurora:not(.is-playing) span,
.js .hero__arc:not(.is-playing)::after { animation-play-state: paused !important; }

/* === Keyframes ========================================================== */

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6%, -8%, 0) scale(1.08); }
  100% { transform: translate3d(-6%, 5%, 0) scale(.96); }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 80%, 100% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }
@keyframes scan { 0%, 100% { top: 8%; } 50% { top: 84%; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse-btn { 0%, 100% { box-shadow: 0 12px 22px -12px rgba(15, 77, 58, .9), 0 0 0 0 rgba(34, 197, 94, .45); } 50% { box-shadow: 0 12px 22px -12px rgba(15, 77, 58, .9), 0 0 0 .5em rgba(34, 197, 94, 0); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* === Responsive ========================================================= */

@media (max-width: 1080px) {
  .grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .icon-strip { --n: 3 !important; }
  .trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .trio .script { grid-column: 1 / -1; justify-self: center; text-align: center; margin-top: 12px; }
  .bento .b-2 { grid-column: span 3; }
  .bento .b-4 { grid-column: span 6; }
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 52px; }
  .journey--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav a, .nav .nav-btn { padding-inline: 9px; }
  .header-cta { margin-left: 2px; gap: 8px; }
  .site-header .container { gap: 12px; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .header-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 10px var(--gutter) 22px;
    background: var(--bg);
    color: var(--ink);
    box-shadow: 0 1px 0 var(--line), 0 30px 40px -30px rgba(15, 23, 42, .4);
  }
  .nav-open .header-menu { display: flex; animation: menu-in .3s var(--ease-out); }
  .nav { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a, .nav .nav-btn { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; opacity: 1; }
  .nav .nav-btn { justify-content: space-between; }
  .header-cta { margin: 6px 0 0; }
  .header-cta { flex-wrap: wrap; }
  .header-cta .btn { flex: 1 1 auto; }
  /* The language switch goes last and drops to its own line when the buttons need the room. */
  .header-cta .lang { order: 2; margin-inline: auto; }
  .lang a { min-width: 44px; height: 40px; font-size: .84rem; }
  .switcher { position: fixed; right: var(--gutter); left: var(--gutter); width: auto; top: calc(var(--header-h) + 4px); }

  .hero__grid, .split, .origin, .contact__grid, .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .split--rev > :first-child { order: 0; }
  .hero__visual { max-width: 560px; margin-inline: auto; width: 100%; }
  .device-stage .chip { transform: scale(.92); }
  .device-stage .chip[style*="left"] { left: 0 !important; }
  .device-stage .chip[style*="right"] { right: 0 !important; }
  .pcards { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .prices--3 { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .guide__grid { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
  .guide__stage { display: none; }
  .gstep__shot { display: block; }
  .prices--3 .price__scope { min-height: 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { --n: 1 !important; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps__line { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .steps__line::after { transform-origin: top; transform: scaleY(var(--p)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding-bottom: 28px; }
  .step__n { margin-bottom: 0; grid-row: span 2; }
  .step h3 { margin-top: 14px; }
  .zeros, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day__head { display: none; }
  .day__row { grid-template-columns: minmax(0, 1fr); }
  .day__without, .day__with { border-left: 0; border-top: 1px solid var(--line); }
  .day__label { display: block; grid-column: 1 / -1; order: -1; font: 600 .7rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
  .calc, .dev-card { grid-template-columns: minmax(0, 1fr); }
  .who .facts { grid-template-columns: minmax(0, 1fr); }
  .paper--float { right: 0; bottom: -16%; width: 52%; font-size: clamp(8px, 2vw, 12px); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .hero-products { grid-template-columns: minmax(0, 1fr); }
  .hero-product + .hero-product { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .hero-product { padding-inline: 4px; }
}

@media (max-width: 640px) {
  .eyebrow { letter-spacing: .12em; }
  .grid--2, .grid--3, .grid--4, .grid--5, .prices, .zeros { grid-template-columns: minmax(0, 1fr); }
  .feature--wide { grid-column: auto; }
  .icon-strip { --n: 2 !important; }
  .checks--2 { grid-template-columns: minmax(0, 1fr); }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .trio .script { justify-self: start; text-align: left; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento .b-2, .bento .b-3, .bento .b-4 { grid-column: auto; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .doc__card { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .gstep__body { padding-left: 20px; }
  .gstep__time { display: none; }
  .guide__top { flex-direction: column; align-items: stretch; gap: 10px; }
  .guide__progress { flex: none; }
  .doc__card dd + dt { margin-top: 12px; }
  /* On phones the floating chips would cover the mockup's content */
  .device-stage .chip { display: none; }
  /* …and the laptop's base, wider than its screen, stays inside the gutter. */
  .laptop__base { margin-inline: -4%; }
  .device-stage--paper { padding-bottom: 0; }
  .device-stage .notify { right: 0 !important; top: -12% !important; width: 78%; }
  /* …and room above the device so the notification doesn't sit on the copy. */
  .device-stage:has(> .notify) { padding-top: 64px; }
  .device-stage:has(> .notify) > .notify { top: 0 !important; }
  .actions .btn { flex: 1 1 auto; }
  /* «En periodo de pruebas · Lista de espera abierta» is too long for the narrowest phones. */
  .pill--beta { white-space: normal; line-height: 1.3; }
  .billing__switch span { padding: 0 13px; gap: 6px; font-size: .95rem; }
  /* The longest buttons (“Tell us about your property”) on the narrowest phones. */
  .btn--lg { padding-inline: 20px; }
  .hero__script { margin-top: 28px; }
  /* The four steps become a row you swipe, one screen at a time. */
  .journey {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 76%;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 10px;
    scrollbar-width: none;
  }
  .journey::-webkit-scrollbar { display: none; }
  .journey__step { scroll-snap-align: center; }
  .pair .phone { width: 44vw; }
  .modules li { font-size: .9rem; padding: 8px 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  .marquee { overflow-x: auto; }
  .constellation .links .flow { display: none; }
}
