/* ==========================================================================
   Ingresos Extra Chile — Design System
   --------------------------------------------------------------------------
   1. Fonts           5. Layout & header      9.  Year selector
   2. Tokens          6. Article typography   10. Article sections
   3. Reset           7. Buttons & links      11. Closing block & footer
   4. Base            8. Callouts & lists     12. Modal & form
                                              13. Legal pages, utilities
   ========================================================================== */

/* 1. Fonts — local, SIL Open Font License (see assets/fonts/LICENSE-*.txt) */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens */
:root {
  /* Color */
  --c-primary: #7C3AED;
  --c-primary-hover: #6D28D9;
  --c-primary-dark: #4C1D95;
  --c-tint: #F3E8FF;
  --c-tint-strong: #E9D5FF;
  --c-bg: #FFFFFF;
  --c-bg-soft: #FAF7FD;
  --c-text: #21182E;
  --c-text-2: #655C70;
  --c-border: #E7DFF0;
  --c-border-strong: #CDBFE0;
  --c-error: #B42318;
  --c-error-bg: #FEF3F2;
  --c-success: #067647;
  --c-success-bg: #ECFDF3;
  --c-info-bg: #FFF8E6;
  --c-info-border: #F5D48A;
  --c-footer: #1B1326;

  /* Type */
  --f-head: "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.9375rem;   /* 15 */
  --fs-body: 1.0625rem; /* 17 (mobile) → 18 desktop */
  --fs-lead: 1.1875rem; /* 19 → 21 */
  --fs-h4: 1.0625rem;
  --fs-h3: 1.25rem;     /* 20 */
  --fs-h2: clamp(1.5rem, 1.15rem + 1.4vw, 2rem);      /* 24 → 32 */
  --fs-h1: clamp(1.875rem, 1.25rem + 2.8vw, 2.875rem); /* 30 → 46 */

  --lh-body: 1.7;
  --lh-head: 1.18;

  /* Spacing — 4px base */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;

  /* Layout */
  --w-article: 760px;
  --w-wide: 1120px;
  --gutter: 16px;

  /* Shape & depth */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(33, 24, 46, .06);
  --shadow-md: 0 6px 20px -6px rgba(76, 29, 149, .18);
  --shadow-lg: 0 24px 60px -12px rgba(33, 24, 46, .35);
  --focus: 0 0 0 3px #fff, 0 0 0 6px var(--c-primary);

  --t-fast: 150ms ease;
}

@media (min-width: 768px) {
  :root {
    --fs-body: 1.125rem; /* 18 */
    --fs-lead: 1.3125rem;
    --gutter: 32px;
  }
}

/* 3. Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body, h1, h2, h3, h4, p, figure, ol, ul, dl, dd, blockquote { margin: 0; }
ol, ul { padding: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* 4. Base */
body {
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  line-height: var(--lh-head);
  color: var(--c-text);
  letter-spacing: -0.015em;
}
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 700; }

::selection { background: var(--c-tint-strong); color: var(--c-text); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--c-primary-dark); color: #fff; padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-3); }

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

/* 5. Layout & header */
.container { width: 100%; max-width: calc(var(--w-wide) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--article { max-width: calc(var(--w-article) + var(--gutter) * 2); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em;
  color: var(--c-text); text-decoration: none; white-space: nowrap;
}
.brand__mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: var(--c-primary); color: #fff;
  display: grid; place-items: center;
}
.brand__mark svg { width: 16px; height: 16px; }
.brand__accent { color: var(--c-primary); }
.site-nav { display: flex; align-items: center; gap: var(--s-2); }
.site-nav a {
  font-weight: 600; font-size: var(--fs-sm); color: var(--c-primary-dark);
  text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.site-nav a:hover { background: var(--c-tint); color: var(--c-primary-hover); }
.site-nav a[aria-current="page"] { background: var(--c-tint); }

/* 6. Article typography */
.article { padding: var(--s-6) 0 var(--s-16); }
@media (min-width: 768px) { .article { padding-top: var(--s-10); } }

.ad-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-primary-dark); background: var(--c-tint);
  border: 1px solid var(--c-tint-strong); border-radius: 999px; padding: 4px 12px;
}
.ad-label svg { width: 14px; height: 14px; }

.article__header { margin-bottom: var(--s-6); }
.article__header .ad-label { margin-bottom: var(--s-4); }
.article__title { margin-bottom: var(--s-4); text-wrap: balance; }
.article__meta {
  display: flex; flex-wrap: wrap; gap: 4px 14px;
  font-size: var(--fs-sm); color: var(--c-text-2);
}
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__meta svg { width: 16px; height: 16px; color: var(--c-primary); }

.figure { margin: var(--s-6) 0; }
.figure__img {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: center;
  border-radius: var(--r-md); background: var(--c-tint);
}
.figure--hero { margin: 0 calc(var(--gutter) * -1) var(--s-8); }
.figure--hero .figure__img { aspect-ratio: 16 / 10; border-radius: 0; }
@media (min-width: 600px) {
  .figure--hero { margin-left: 0; margin-right: 0; }
  .figure--hero .figure__img { border-radius: var(--r-lg); aspect-ratio: 16 / 9; }
}
.figure__caption { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--c-text-2); line-height: 1.5; padding: 0 var(--gutter); }
@media (min-width: 600px) { .figure__caption { padding: 0; } }
.figure:not(.figure--hero) .figure__caption { padding: 0; }

.prose > * + * { margin-top: 1.05em; }
.prose p { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--c-text); font-weight: 450; }
.prose strong { font-weight: 650; }

.toc {
  margin: var(--s-10) 0; padding: var(--s-5) var(--s-6);
  border: 1px solid var(--c-border); border-radius: var(--r-lg); background: var(--c-bg-soft);
}
.toc__title { font-family: var(--f-head); font-size: var(--fs-sm); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--c-text-2); margin-bottom: var(--s-3); }
.toc ol { list-style: none; display: grid; gap: 6px; counter-reset: toc; }
.toc li { counter-increment: toc; display: flex; gap: 12px; align-items: baseline; }
.toc li::before { content: "0" counter(toc); font-family: var(--f-head); font-weight: 800; font-size: var(--fs-sm); color: var(--c-primary); min-width: 1.5em; }
.toc a { color: var(--c-text); text-decoration: none; font-weight: 550; line-height: 1.45; }
.toc a:hover { color: var(--c-primary-hover); text-decoration: underline; text-underline-offset: 3px; }

/* 7. Buttons & links */
.prose a, .link {
  color: var(--c-primary-dark); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  text-decoration-color: rgba(124, 58, 237, .45);
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
.prose a:hover, .link:hover { color: var(--c-primary-hover); text-decoration-color: currentColor; }

.btn {
  --btn-bg: var(--c-primary); --btn-fg: #fff; --btn-bd: var(--c-primary);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  font-family: var(--f-body); font-size: 1rem; font-weight: 700; line-height: 1.2; letter-spacing: .005em;
  color: var(--btn-fg); background: var(--btn-bg); border: 2px solid var(--btn-bd);
  border-radius: var(--r-md); text-decoration: none; text-align: center;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform var(--t-fast); }
.btn:hover { --btn-bg: var(--c-primary-hover); --btn-bd: var(--c-primary-hover); box-shadow: var(--shadow-md); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); --btn-bg: var(--c-primary-dark); --btn-bd: var(--c-primary-dark); box-shadow: none; }
.btn:focus-visible { box-shadow: var(--focus); border-radius: var(--r-md); }
.btn:disabled, .btn[aria-disabled="true"] {
  --btn-bg: #D9D2E3; --btn-bd: #D9D2E3; --btn-fg: #5E5669; cursor: not-allowed; box-shadow: none; transform: none;
}
.btn--block { width: 100%; }
.btn--lg { min-height: 58px; font-size: 1.0625rem; padding: 14px 28px; }
.btn--outline { --btn-bg: #fff; --btn-fg: var(--c-primary-dark); --btn-bd: var(--c-primary); }
.btn--outline:hover { --btn-bg: var(--c-primary); --btn-fg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--c-primary-dark); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--c-tint); --btn-bd: var(--c-tint); --btn-fg: var(--c-primary-dark); }
.btn--light:focus-visible { box-shadow: 0 0 0 3px var(--c-primary-dark), 0 0 0 6px #fff; }

/* 8. Callouts & lists */
.callout {
  margin: var(--s-6) 0; padding: var(--s-4) var(--s-5);
  border-left: 4px solid var(--c-primary); background: var(--c-bg-soft);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.callout__label { display: block; font-family: var(--f-head); font-weight: 800; font-size: var(--fs-sm); color: var(--c-primary-dark); margin-bottom: 4px; }
.callout p { font-size: calc(var(--fs-body) - 1px); }

.facts { display: grid; gap: var(--s-3); margin: var(--s-6) 0; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact {
  padding: var(--s-4) var(--s-5); border: 1px solid var(--c-border); border-radius: var(--r-md); background: #fff;
}
.fact dt { display: flex; align-items: center; gap: 8px; font-family: var(--f-head); font-weight: 800; font-size: var(--fs-sm); color: var(--c-primary-dark); margin-bottom: 4px; }
.fact dt svg { width: 18px; height: 18px; color: var(--c-primary); flex: none; }
.fact dd { font-size: var(--fs-sm); line-height: 1.6; color: var(--c-text); }

.howto {
  margin: var(--s-6) 0; padding: var(--s-6); border-radius: var(--r-lg); background: var(--c-tint);
}
.howto__title { font-size: 1.125rem; font-weight: 800; margin-bottom: var(--s-4); color: var(--c-primary-dark); }
.steps { list-style: none; counter-reset: step; display: grid; gap: var(--s-3); }
.steps li { counter-increment: step; position: relative; padding-left: 44px; line-height: 1.55; min-height: 30px; font-size: calc(var(--fs-body) - 1px); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-primary); color: #fff; font-family: var(--f-head); font-weight: 800; font-size: .875rem;
}

.caution {
  display: flex; gap: var(--s-3); margin: var(--s-6) 0; padding: var(--s-4) var(--s-5);
  background: var(--c-info-bg); border: 1px solid var(--c-info-border); border-radius: var(--r-md);
}
.caution svg { width: 22px; height: 22px; flex: none; color: #8A5A00; margin-top: 3px; }
.caution__title { display: block; font-family: var(--f-head); font-weight: 800; font-size: var(--fs-sm); color: #6B4500; margin-bottom: 2px; }
.caution p { font-size: var(--fs-sm); line-height: 1.6; color: var(--c-text); }

/* 9. Year selector */
.years {
  margin: var(--s-10) 0; padding: var(--s-6) var(--s-5);
  background: var(--c-tint); border: 1px solid var(--c-tint-strong); border-radius: var(--r-xl);
  text-align: center;
}
@media (min-width: 600px) { .years { padding: var(--s-10) var(--s-10); } }
.years__title { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.625rem); font-weight: 800; color: var(--c-text); margin-bottom: var(--s-3); text-wrap: balance; }
.years__text { font-size: var(--fs-sm); color: var(--c-text-2); max-width: 520px; margin: 0 auto var(--s-6); line-height: 1.6; }
.years__grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 480px) { .years__grid { grid-template-columns: 1fr 1fr; } .years__grid > :last-child { grid-column: 1 / -1; } }
.year-btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-height: 60px; padding: 14px 20px;
  font-family: var(--f-head); font-size: 1.1875rem; font-weight: 800; letter-spacing: -0.005em; font-variant-numeric: tabular-nums;
  color: var(--c-primary-dark); background: #fff;
  border: 2px solid var(--c-primary); border-radius: var(--r-md);
  transition: background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}
.year-btn svg { width: 22px; height: 22px; flex: none; transition: transform var(--t-fast); }
.year-btn:hover { background: var(--c-primary); color: #fff; box-shadow: var(--shadow-md); }
.year-btn:hover svg { transform: translateX(3px); }
.year-btn:active { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; transform: translateY(1px); }
.year-btn:focus-visible { box-shadow: var(--focus); border-radius: var(--r-md); }
.year-btn--other { justify-content: center; gap: 10px; border-style: dashed; font-size: 1.0625rem; }

/* 10. Article sections */
.option { padding-top: var(--s-12); margin-top: var(--s-12); border-top: 1px solid var(--c-border); scroll-margin-top: 72px; }
.option:first-of-type { border-top: 0; margin-top: var(--s-6); padding-top: 0; }
.option__head { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-5); }
.option__num {
  font-family: var(--f-head); font-weight: 800; font-size: var(--fs-sm); letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-primary);
}
.option__num b { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-right: 10px; border-radius: 10px; background: var(--c-primary); color: #fff; font-size: 1rem; letter-spacing: 0; }
.option h2 { text-wrap: balance; }
.option__cta { margin-top: var(--s-8); display: grid; gap: var(--s-2); justify-items: start; }
.option__cta .btn { min-width: 240px; }
@media (max-width: 479px) { .option__cta .btn { width: 100%; } }
.option__cta-note { font-size: var(--fs-xs); color: var(--c-text-2); }
.source-note { font-size: var(--fs-xs); color: var(--c-text-2); }

.partner {
  margin-top: var(--s-5); padding: var(--s-4) var(--s-5);
  border: 1px dashed var(--c-border-strong); border-radius: var(--r-md); font-size: var(--fs-sm);
}
.partner__tag { display: inline-block; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-text-2); margin-bottom: 4px; }

.checklist {
  margin: var(--s-12) 0 0; padding: var(--s-6); border: 1px solid var(--c-border); border-radius: var(--r-lg);
}
.checklist h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); margin-bottom: var(--s-4); }
.checklist ul { list-style: none; display: grid; gap: var(--s-3); }
.checklist li { display: flex; gap: var(--s-3); line-height: 1.55; font-size: calc(var(--fs-body) - 1px); }
.checklist li svg { width: 22px; height: 22px; flex: none; color: var(--c-primary); margin-top: 2px; }

/* 11. Closing block & footer */
.closing {
  margin-top: var(--s-12); padding: var(--s-8) var(--s-5);
  border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #6D28D9 0%, var(--c-primary-dark) 55%, #3B1577 100%);
}
@media (min-width: 600px) { .closing { padding: var(--s-12) var(--s-10); } }
.closing h2 { color: #fff; margin-bottom: var(--s-3); text-wrap: balance; }
.closing p { color: #EDE4FA; }
.closing__grid { display: grid; gap: var(--s-3); margin: var(--s-6) 0; }
@media (min-width: 560px) { .closing__grid { grid-template-columns: 1fr 1fr; } }
.choice-btn {
  display: flex; align-items: center; gap: var(--s-3); text-align: left;
  min-height: 64px; padding: 12px 16px; border-radius: var(--r-md);
  color: #fff; background: rgba(255, 255, 255, .08); border: 1.5px solid rgba(255, 255, 255, .35);
  font-weight: 650; font-size: 1rem; line-height: 1.3;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.choice-btn__num { font-family: var(--f-head); font-weight: 800; width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.16); }
.choice-btn:hover { background: #fff; color: var(--c-primary-dark); border-color: #fff; }
.choice-btn:hover .choice-btn__num { background: var(--c-tint); }
.choice-btn:focus-visible { box-shadow: 0 0 0 3px var(--c-primary-dark), 0 0 0 6px #fff; }
.closing__fine { margin-top: var(--s-4); font-size: var(--fs-xs); color: #D9C9F2 !important; line-height: 1.55; }

.site-footer { background: var(--c-footer); color: #CFC6DA; padding: var(--s-12) 0 var(--s-8); font-size: var(--fs-sm); line-height: 1.65; }
.site-footer a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.site-footer a:hover { text-decoration-color: #fff; }
.footer__grid { display: grid; gap: var(--s-8); }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.3fr 1fr 0.8fr; gap: var(--s-12); } }
.footer__brand { color: #fff; margin-bottom: var(--s-3); }
.footer__brand .brand__accent { color: #C4A8F5; }
.footer__h { font-family: var(--f-head); color: #fff; font-size: var(--fs-sm); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--s-3); }
.footer__list { list-style: none; display: grid; gap: 6px; }
.footer__contact li { display: flex; gap: 10px; }
.footer__contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: #C4A8F5; }
.footer__disclosure { margin-top: var(--s-10); padding-top: var(--s-6); border-top: 1px solid rgba(255,255,255,.12); font-size: var(--fs-xs); color: #B3A8C2; display: grid; gap: var(--s-2); }
.footer__disclosure strong { color: #fff; }

/* 12. Modal & form */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(27, 19, 38, .62); animation: fade 160ms ease; }
.modal__dialog {
  position: relative; width: 100%; max-height: 94vh; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--shadow-lg);
  padding: var(--s-6) var(--s-5) calc(var(--s-6) + env(safe-area-inset-bottom));
  animation: rise 200ms ease;
}
@media (min-width: 640px) {
  .modal { align-items: center; padding: var(--s-6); }
  .modal__dialog { max-width: 580px; border-radius: var(--r-xl); padding: var(--s-8) var(--s-8) var(--s-8); max-height: calc(100vh - 48px); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--c-text-2);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.modal__close svg { width: 22px; height: 22px; }
.modal__close:hover { background: var(--c-tint); color: var(--c-primary-dark); }
.modal__eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); margin-bottom: 6px; }
.modal__title { font-size: 1.5rem; font-weight: 800; padding-right: 44px; margin-bottom: var(--s-2); }
.modal__intro { font-size: var(--fs-sm); color: var(--c-text-2); line-height: 1.6; margin-bottom: var(--s-5); }

.demo-banner {
  display: flex; gap: 10px; margin-bottom: var(--s-5); padding: 10px 14px;
  background: var(--c-info-bg); border: 1px solid var(--c-info-border); border-radius: var(--r-sm);
  font-size: var(--fs-xs); line-height: 1.5; color: #5C3D00;
}
.demo-banner svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

.form { display: grid; gap: var(--s-4); }
.form__row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-sm); font-weight: 650; color: var(--c-text); }
.field__opt { font-weight: 450; color: var(--c-text-2); }
.field__hint { font-size: var(--fs-xs); color: var(--c-text-2); line-height: 1.45; }
.field__error { display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-xs); font-weight: 600; color: var(--c-error); line-height: 1.45; }
.field__error svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.input, .select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font-size: 1rem; /* ≥16px avoids iOS zoom */
  color: var(--c-text); background: #fff;
  border: 1.5px solid var(--c-border-strong); border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
  -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #8C8497; }
.input:hover, .select:hover { border-color: #A895C4; }
.input:focus, .select:focus { outline: none; border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, .18); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--c-error); background: var(--c-error-bg); }
.input[aria-invalid="true"]:focus, .select[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .16); }
.input:disabled, .select:disabled { background: #F4F1F7; color: #7B7385; cursor: not-allowed; }
.select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234C1D95' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.select[aria-invalid="true"] { background-color: var(--c-error-bg); }

.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check input {
  -webkit-appearance: none; appearance: none; margin: 1px 0 0;
  width: 24px; height: 24px; border: 1.5px solid var(--c-border-strong); border-radius: 6px; background: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.check input::after {
  content: ""; width: 12px; height: 7px; border: solid #fff; border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg) translate(1px, -1px); opacity: 0;
}
.check input:checked { background: var(--c-primary); border-color: var(--c-primary); }
.check input:checked::after { opacity: 1; }
.check input:hover { border-color: var(--c-primary); }
.check input:focus-visible { box-shadow: var(--focus); }
.check input[aria-invalid="true"] { border-color: var(--c-error); background: var(--c-error-bg); }
.check label { font-size: var(--fs-sm); line-height: 1.55; color: var(--c-text); cursor: pointer; }
.check .field__error { grid-column: 2; }
.consents { display: grid; gap: var(--s-4); padding: var(--s-4); background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--r-md); }

.form__status { border-radius: var(--r-sm); padding: 12px 14px; font-size: var(--fs-sm); line-height: 1.55; display: flex; gap: 10px; }
.form__status svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.form__status--error { background: var(--c-error-bg); color: var(--c-error); border: 1px solid #FECDCA; }
.form__status--demo { background: var(--c-info-bg); color: #5C3D00; border: 1px solid var(--c-info-border); }
.form__status--success { background: var(--c-success-bg); color: var(--c-success); border: 1px solid #ABEFC6; }
.form__legal { font-size: var(--fs-xs); color: var(--c-text-2); line-height: 1.55; }
.form__legal a { color: var(--c-primary-dark); font-weight: 600; }
.btn.is-loading svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 13. Legal pages, utilities */
.legal { padding: var(--s-8) 0 var(--s-16); }
.legal__header { padding-bottom: var(--s-6); margin-bottom: var(--s-8); border-bottom: 1px solid var(--c-border); }
.legal__header h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); margin: var(--s-3) 0 var(--s-3); }
.legal__updated { font-size: var(--fs-sm); color: var(--c-text-2); }
.legal .prose { font-size: 1rem; }
.legal .prose h2 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.4rem); margin-top: var(--s-10); scroll-margin-top: 72px; }
.legal .prose h3 { font-size: 1.0625rem; margin-top: var(--s-6); }
.legal .prose ul, .legal .prose ol { padding-left: 1.3em; }
.legal .prose li + li { margin-top: 6px; }
.legal .prose li::marker { color: var(--c-primary); }
.breadcrumb { font-size: var(--fs-sm); }
.breadcrumb a { color: var(--c-primary-dark); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb svg { width: 16px; height: 16px; }

.data-card { margin: var(--s-6) 0; border: 1px solid var(--c-border); border-radius: var(--r-lg); overflow: hidden; }
.data-card dl { display: grid; }
.data-card .row { display: grid; gap: 2px 16px; padding: 14px 20px; border-top: 1px solid var(--c-border); }
.data-card .row:first-child { border-top: 0; }
@media (min-width: 600px) { .data-card .row { grid-template-columns: 190px 1fr; } }
.data-card dt { font-size: var(--fs-sm); font-weight: 650; color: var(--c-text-2); }
.data-card dd { font-size: 1rem; overflow-wrap: anywhere; }

.contact-grid { display: grid; gap: var(--s-4); margin: var(--s-6) 0; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { display: flex; gap: var(--s-4); padding: var(--s-5); border: 1px solid var(--c-border); border-radius: var(--r-lg); background: #fff; }
.contact-card__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--c-tint); color: var(--c-primary-dark); display: grid; place-items: center; }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h2 { font-size: 1rem !important; margin: 0 0 2px !important; }
.contact-card p { margin: 0 !important; font-size: var(--fs-sm); overflow-wrap: anywhere; }
.contact-card--wide { grid-column: 1 / -1; }

.noscript { padding: 10px var(--gutter); background: var(--c-info-bg); font-size: var(--fs-sm); text-align: center; }

@media print {
  .site-header, .modal, .years, .option__cta, .closing { display: none !important; }
  body { font-size: 12pt; }
}
