/* ==========================================================================
   Avanzza · Sistema compartido (todas las páginas de día/noche editoriales)
   Tipografía: Newsreader (display) + Geist Mono (texto e interfaz).
   Acento de marca: #139595.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-display-weight: 400;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-brand: "Sora", ui-sans-serif, system-ui, sans-serif;

  --fs-h1: clamp(3rem, 6.6vw, 6.5rem);
  --fs-h2: clamp(2.5rem, 4.8vw, 4.25rem);
  --fs-h3: clamp(2.125rem, 3.9vw, 3.625rem);
  --fs-body: 15.5px;
  --fs-small: 13px;
  --fs-label: 12px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --section-pad: clamp(6rem, 12vw, 14rem);
  --container: 1280px;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --header-h: 76px;

  --radius-pill: 999px;
  --radius-card: 24px;
  --radius-panel: 36px;
  --radius-input: 12px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);
  --dur-fast: 0.28s;
  --dur-slow: 0.6s;

  --z-header: 50;
  --z-announce: 51;
  --z-cta-bar: 40;
  --z-menu: 45;
  --z-intro: 100;
}

:root,
[data-theme="light"] {
  color-scheme: light;
  /* 7 semantic tokens */
  --paper: #f6f3f1;
  --ink: #1d1c1b;
  --graphite: #52504e;
  --ash: #d6d1ce;
  --accent: #139595;
  --periwinkle: #d3dcf4;
  --night: #07080f;
  /* derived */
  --paper-2: color-mix(in oklab, var(--paper) 93%, var(--ink));
  --accent-ink: #061616;
  --accent-text: #0e7373;
  --accent-soft: color-mix(in oklab, var(--accent) 14%, transparent);
  --accent-glow: color-mix(in oklab, var(--accent) 45%, transparent);
  --line-ink: color-mix(in oklab, var(--ink) 38%, transparent);
  --shadow-soft: 0 30px 60px -40px rgba(29, 28, 27, 0.28);
  --scrim: rgba(29, 28, 27, 0.42);
  --wash-o: 1;
  /* illustration washes (never UI state, never text) */
  --wash-teal: #a3d9d4;
  --wash-sky: #b3c8f2;
  --wash-sand: #e9dbc1;
  --wash-lilac: #cdc3ef;
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0e0d0c;
  --ink: #f3efec;
  --graphite: #b1aaa5;
  --ash: #36322f;
  --accent: #139595;
  --periwinkle: #16223a;
  --night: #05060f;
  --paper-2: #171514;
  --accent-ink: #041212;
  --accent-text: #3cc4c0;
  --accent-soft: color-mix(in oklab, var(--accent) 22%, transparent);
  --accent-glow: color-mix(in oklab, #3cc4c0 50%, transparent);
  --line-ink: color-mix(in oklab, var(--ink) 30%, transparent);
  --shadow-soft: 0 30px 60px -40px rgba(0, 0, 0, 0.7);
  --scrim: rgba(0, 0, 0, 0.6);
  --wash-o: 0.42;
}

/* --------------------------------------------------------------------------
   2. 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) + 24px);
}
html.modal-open,
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--paper);
  color: var(--graphite);
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
em { font-style: italic; }

::selection { background: color-mix(in oklab, var(--accent) 22%, transparent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo { width: 26px; height: 26px; flex: none; fill: currentColor; }

.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;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: calc(var(--z-intro) + 1);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { position: relative; padding-block: var(--section-pad); }

/* --------------------------------------------------------------------------
   3. Type
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-optical-sizing: auto;
  color: var(--ink);
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.028em;
}
.section-head {
  display: grid;
  justify-items: center;
  gap: var(--space-5);
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}
.section-head--start { justify-items: start; margin-inline: 0; text-align: left; }
.section-sub { max-width: 60ch; font-size: var(--fs-body); line-height: 1.7; color: var(--graphite); }
.split-line-mask { padding-bottom: 0.12em; margin-bottom: -0.12em; }

/* --------------------------------------------------------------------------
   4. Pills and icon buttons
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.pill .icon { width: 16px; height: 16px; stroke-width: 1.8; transition: transform var(--dur-fast) var(--ease-out); }
.pill:hover .icon { transform: translateX(3px); }
.pill--lg { height: 52px; padding: 0 28px; font-size: 13px; }
.pill--xs { height: 30px; padding: 0 12px; gap: 6px; font-size: 10.5px; }
.pill--xs .icon { width: 13px; height: 13px; }
.pill--block { width: 100%; justify-content: space-between; }
.pill--accent { background-color: var(--accent); color: var(--accent-ink); }
.pill--accent:hover { background-color: color-mix(in oklab, var(--accent) 86%, #ffffff); }
.pill--ink { background-color: var(--ink); color: var(--paper); }
.pill--ink:hover { background-color: color-mix(in oklab, var(--ink) 82%, var(--accent)); }
.pill--ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pill--ghost:hover { background-color: var(--ink); color: var(--paper); }
.pill--paper { background-color: #f6f3f1; color: #1d1c1b; }
.pill--paper:hover { background-color: #ffffff; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ash);
  transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background-color: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line-ink); }
.icon-btn .icon { width: 19px; height: 19px; }

/* --------------------------------------------------------------------------
   5. Intro curtain, page veil
   -------------------------------------------------------------------------- */
.intro { display: none; }
.js .intro {
  position: fixed;
  inset: 0;
  z-index: var(--z-intro);
  display: grid;
  place-items: center;
  background-color: var(--paper);
  animation: intro-fallback 0.5s ease 2.6s forwards;
}
@keyframes intro-fallback { to { opacity: 0; visibility: hidden; } }
.intro-mark {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-spark { fill: var(--accent); stroke: none; }
.page-veil { position: fixed; inset: 0; z-index: 300; pointer-events: none; }

/* --------------------------------------------------------------------------
   6. Announcement bar + header
   -------------------------------------------------------------------------- */
.announce {
  position: relative;
  z-index: var(--z-announce);
  background-color: #11100f;
  color: #f6f3f1;
  box-shadow: inset 0 -1px 0 rgba(246, 243, 241, 0.08);
}
html.announce-closed .announce { display: none; }
.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  min-height: 44px;
  padding: 6px 60px;
  font-size: 13px;
  line-height: 1.4;
}
.announce-inner p { display: flex; align-items: center; gap: 10px; }
.announce-tag {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #041212;
  background-color: #3cc4c0;
}
.announce-short { display: none; }
.announce-close {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border-radius: 50%;
  color: #f6f3f1;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.announce-close:hover { background-color: rgba(246, 243, 241, 0.1); }
.announce-close .icon { width: 17px; height: 17px; }

/* The header keeps its height; the inner bar turns into a floating
   liquid-glass pill once the page scrolls (see liquid-glass.css). */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  pointer-events: none;
}
.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  border-radius: var(--radius-pill);
  pointer-events: auto;
  transition:
    height 0.5s var(--ease-out),
    margin 0.5s var(--ease-out),
    padding 0.5s var(--ease-out),
    background-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
}
.site-header[data-state="scrolled"] .header-inner {
  height: calc(var(--header-h) - 12px);
  margin-top: 6px;
  padding-inline: 20px 8px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-height: 44px; color: var(--ink); }
.brand-mark {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-word { font-family: var(--font-brand); font-size: 20px; font-weight: 600; letter-spacing: -0.035em; }

.nav { display: flex; gap: 2px; }
.nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 12.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease-out);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left center; }
.nav a[aria-current="page"]::after { background-color: var(--accent); height: 2px; }

.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.theme-btn .icon-sun { display: none; }
[data-theme="dark"] .theme-btn .icon-sun { display: block; }
[data-theme="dark"] .theme-btn .icon-moon { display: none; }
.menu-btn { display: none; }
.menu-lines { position: relative; display: block; width: 18px; height: 10px; }
.menu-lines i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background-color: var(--ink);
  transition: transform var(--dur-fast) var(--ease-out), top var(--dur-fast) var(--ease-out);
}
.menu-lines i:first-child { top: 0; }
.menu-lines i:last-child { top: 8.5px; }
.menu-btn[aria-expanded="true"] .menu-lines i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-lines i:last-child { top: 4.25px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-7);
  padding: calc(var(--header-h) + 48px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background-color: var(--paper);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu { justify-content: flex-start; overflow-y: auto; }
.mobile-menu > .pill { margin-top: auto; flex: none; }
.mobile-menu-nav { display: grid; }
.mobile-menu-nav a[aria-current="page"] { color: var(--accent-text); }
.mobile-menu-sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: calc(-1 * var(--space-4)); }
.mobile-menu-sub a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ash);
}
.mobile-menu-nav a {
  padding-block: 10px;
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 8vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ash);
}

/* Mobile CTA: a liquid-glass tray that floats over the content. */
.cta-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: var(--z-cta-bar);
  display: none;
  padding: 6px;
  border-radius: var(--radius-pill);
  transform: translateY(calc(100% + 40px));
  transition: transform 0.45s var(--ease-out);
}
.cta-bar.is-visible { transform: translateY(0); }

/* --------------------------------------------------------------------------
   6b. Shared components: kicker, tags, floating chips
   -------------------------------------------------------------------------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.kicker::before { content: ""; width: 18px; height: 1px; background-color: currentColor; }
.section-head .kicker { justify-self: center; }
.section-head--start .kicker { justify-self: start; }
h1 em, h2 em, h3 em { color: inherit; }
.accent-em em { color: var(--accent-text); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; }
.tags li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background-color: color-mix(in oklab, var(--paper) 72%, transparent);
  box-shadow: inset 0 0 0 1px var(--ash);
}
.tags .icon { width: 15px; height: 15px; }

.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  background-color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ash), 0 14px 28px -16px rgba(29, 28, 27, 0.4);
}
.float-chip .icon { width: 15px; height: 15px; color: var(--accent); }
/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq-list { margin-top: clamp(2.5rem, 5vw, 4rem); }
.acc { box-shadow: inset 0 -1px 0 var(--ash); }
.acc-h { font: inherit; }
.acc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 88px;
  padding: 28px var(--space-5);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.3;
  letter-spacing: -0.012em;
  text-align: left;
  color: var(--ink);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.acc-btn:hover { background-color: color-mix(in oklab, var(--paper-2) 60%, transparent); }
.acc-btn .icon { width: 22px; height: 22px; stroke-width: 1.8; transition: transform 0.35s var(--ease-out); }
.acc-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.4s var(--ease-out), visibility 0s linear 0.4s;
}
.acc-panel.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.4s var(--ease-out), visibility 0s linear 0s;
}
.acc-inner { min-height: 0; overflow: hidden; }
.acc-inner p { max-width: 70ch; padding: 0 var(--space-5) 32px; line-height: 1.75; color: var(--graphite); }

/* --------------------------------------------------------------------------
   13. Closing CTA
   -------------------------------------------------------------------------- */
.closing-box {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--space-5);
  padding: clamp(72px, 10vw, 140px) clamp(24px, 5vw, 64px);
  border-radius: 32px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px var(--line-ink);
}
.closing-box h2 { max-width: 15ch; }
.closing-wash {
  position: absolute;
  left: 4%;
  right: 4%;
  z-index: -1;
  height: 70%;
  pointer-events: none;
  opacity: calc(0.9 * var(--wash-o));
}
.closing-wash--top { top: -38%; background: radial-gradient(50% 50% at 50% 50%, var(--wash-teal), transparent 72%); }
.closing-wash--bottom { bottom: -40%; background: radial-gradient(50% 50% at 50% 50%, var(--wash-sky), transparent 72%); }
.closing-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-3); }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer { padding: 72px 0 48px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); }
.footer-brand p { max-width: 22ch; margin-top: var(--space-4); font-family: var(--font-serif); font-size: 1.5rem; font-style: italic; line-height: 1.25; color: var(--ink); }
.footer-title { margin-bottom: var(--space-3); font-size: var(--fs-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--graphite); }
.footer-col a {
  display: block;
  width: max-content;
  padding: 7px 0;
  font-size: 14px;
  color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 4px) / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease-out);
}
.footer-col a:hover { background-size: 100% 1px; }
.footer-legal { grid-column: 1 / -1; padding-top: var(--space-6); font-size: 12.5px; color: var(--graphite); box-shadow: inset 0 1px 0 var(--ash); }

/* --------------------------------------------------------------------------
   15. Modal + form
   -------------------------------------------------------------------------- */
.modal {
  width: min(560px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  color: var(--graphite);
  background: transparent;
  overflow: visible;
}
.modal::backdrop { background-color: var(--scrim); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open]::backdrop { animation: backdrop-in 0.35s var(--ease-out); }
.modal.is-closing::backdrop { animation: backdrop-out 0.2s ease forwards; }
.modal[open] .modal-card { animation: modal-in 0.5s var(--ease-out); }
.modal.is-closing .modal-card { animation: modal-out 0.2s var(--ease-in) forwards; }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes backdrop-out { to { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(6px) scale(0.98); } }
.modal-card {
  position: relative;
  max-height: calc(100dvh - 24px);
  padding: clamp(24px, 4vw, 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 28px;
  background-color: var(--paper);
  box-shadow: inset 0 0 0 1px var(--ash), 0 40px 80px -30px rgba(29, 28, 27, 0.45);
}
.modal-close { position: absolute; top: 16px; right: 16px; }
.modal-title { padding-right: 52px; font-family: var(--font-serif); font-size: clamp(1.875rem, 3.4vw, 2.375rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.022em; color: var(--ink); }
.modal-sub { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--graphite); }
.dx-form { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label,
.field legend { padding: 0; font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.field input[type="text"],
.field input[type="tel"],
.field select {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-input);
  font-size: 16px;
  color: var(--ink);
  background-color: transparent;
  box-shadow: inset 0 0 0 1px var(--ash);
  transition: box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352504e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6l6 -6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
.field select option { color: #1d1c1b; }
.field input:hover,
.field select:hover { box-shadow: inset 0 0 0 1px var(--line-ink); }
.field input:focus-visible,
.field select:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px color-mix(in oklab, var(--accent) 16%, transparent); }
.field-help { font-size: 12.5px; color: var(--graphite); }
.field-error { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); }
.field-error[hidden] { display: none; }
.field-error .icon { width: 16px; height: 16px; color: var(--accent); }
.field.is-invalid input { box-shadow: inset 0 0 0 1.5px var(--accent); }
.field.is-shaking { animation: shake 0.42s var(--ease-out); }
@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { position: relative; cursor: pointer; }
.check-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ash);
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.check-chip input:checked + span { color: var(--paper); background-color: var(--ink); box-shadow: none; }
.check-chip input:focus-visible + span { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--accent); }
.dx-submit { margin-top: var(--space-2); }
.dx-submit[aria-busy="true"] { pointer-events: none; opacity: 0.8; }
.form-status { min-height: 1.4em; font-size: 13.5px; color: var(--ink); }
.form-privacy { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--graphite); }
.form-privacy .icon { width: 15px; height: 15px; }
.modal-success { display: grid; justify-items: center; gap: var(--space-4); padding: var(--space-6) 0 var(--space-3); text-align: center; }
.modal-success[hidden] { display: none; }
.modal-success .modal-title { padding-right: 0; }
.modal-success .pill { margin-top: var(--space-4); }
.success-check { width: 72px; height: 72px; }
.success-ring { fill: color-mix(in oklab, var(--accent) 14%, transparent); stroke: var(--accent); stroke-width: 2; }
.success-tick { fill: none; stroke: var(--ink); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; }
.modal-success.is-shown .success-tick { animation: tick 0.5s var(--ease-out) 0.2s forwards; }
@keyframes tick { to { stroke-dashoffset: 0; } }

/* --------------------------------------------------------------------------
   16. Plans (shared tabs + detail panel)
   -------------------------------------------------------------------------- */
.plan-tabs {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  width: max-content;
  max-width: 100%;
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding: 5px;
  border-radius: var(--radius-pill);
  box-shadow: inset 0 0 0 1px var(--ash);
}
/* Selection lens: liquid glass on top of the labels (bends, never blurs). */
.plan-tabs-pill {
  position: absolute;
  top: 5px;
  left: 0;
  z-index: 2;
  width: var(--pill-w, 0px);
  height: calc(100% - 10px);
  border-radius: var(--radius-pill);
  pointer-events: none;
  transform: translateX(var(--pill-x, 0px));
  transition: transform 0.5s cubic-bezier(0.34, 1.36, 0.64, 1), width 0.5s cubic-bezier(0.34, 1.36, 0.64, 1);
}
.plan-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  transition: color var(--dur-fast) var(--ease-out);
}
.plan-tab:hover { color: var(--accent-text); }
.plan-tab[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.plan-tab-badge {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  background-color: var(--accent);
}
.plan-stage { display: grid; margin-top: var(--space-5); }
.plan-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(24px, 3.5vw, 48px);
  border-radius: var(--radius-panel);
  box-shadow: inset 0 0 0 1px var(--ash);
}
.plan-panel[hidden] { display: none; }
.plan-main { display: grid; align-content: start; gap: var(--space-5); }
.plan-name { font-family: var(--font-serif); font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.028em; color: var(--ink); }
.plan-for { max-width: 48ch; line-height: 1.7; color: var(--graphite); }
.plan-list { display: grid; gap: 12px; list-style: none; }
.plan-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.plan-list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent-text); stroke-width: 2; }
.plan-meta { display: inline-flex; align-items: center; gap: 8px; width: max-content; padding: 8px 14px; border-radius: var(--radius-pill); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ash); }
.plan-meta .icon { width: 15px; height: 15px; color: var(--accent-text); }
.plan-side {
  display: grid;
  align-content: start;
  gap: var(--space-5);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-card);
  background-color: var(--paper-2);
}
.plan-quote { display: grid; gap: 10px; padding-bottom: var(--space-5); box-shadow: inset 0 -1px 0 var(--ash); }
.plan-quote-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.plan-quote-title { font-family: var(--font-serif); font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }
.plan-quote-text { font-size: 14px; line-height: 1.65; color: var(--graphite); }
.plan-note { font-size: 12.5px; text-align: center; color: var(--graphite); }
.plans-note { max-width: 70ch; margin: var(--space-5) auto 0; font-size: 13px; text-align: center; color: var(--graphite); }
.inline-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color var(--dur-fast) var(--ease-out); }
.inline-link:hover { color: var(--accent-text); }

/* --------------------------------------------------------------------------
   17. Responsive (shared)
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-btn { display: grid; }
}

@media (max-width: 1023px) {
  .plan-panel { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .announce-inner { justify-content: flex-start; padding: 8px 52px 8px var(--gutter); font-size: 12px; }
  .announce-long { display: none; }
  .announce-short { display: inline; }
  .header-cta { display: none; }
  .cta-bar { display: block; }

  .tags li { height: 32px; padding: 0 12px; font-size: 10.5px; }
  .float-chip { height: 32px; padding: 0 12px; font-size: 10px; }

  .plan-tabs { width: 100%; grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 20px; }
  .plan-tabs-pill { border-radius: 16px; }
  .plan-tab { justify-content: center; height: 52px; padding: 0 6px; border-radius: 16px; font-size: 10.5px; white-space: normal; text-align: center; line-height: 1.2; }
  .plan-tab-badge { display: none; }
  .plan-panel { padding: 22px 18px; border-radius: 28px; }

  .acc-btn { padding: 24px 4px; min-height: 76px; }
  .acc-inner p { padding: 0 4px 28px; }

  .closing-box { border-radius: 28px; }
  .closing-ctas { flex-direction: column; width: 100%; }
  .closing-ctas .pill { width: 100%; }

  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .site-footer { padding-bottom: 104px; }
}

/* --------------------------------------------------------------------------
   18. Preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .intro { display: none; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .modal::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (forced-colors: active) {
  .closing-wash { display: none; }
  .pill--accent,
  .pill--ink { border: 1px solid ButtonText; }
}
