/* =========================================================
   ARR SL Vidyashraam — Admissions 2027–28
   ========================================================= */

:root {
  --indigo: #3d4196;
  --indigo-600: #353988;
  --indigo-700: #2c2f72;
  --indigo-900: #1c1e4d;
  --indigo-50: #f0f1fa;
  --indigo-100: #e1e3f4;
  --green: #17aa59;          /* brand accent (icons, borders, large display) */
  --green-ink: #0d8443;      /* AA-contrast green for text & solid buttons */
  --green-700: #0a6e37;
  --green-50: #e9f8f0;
  --yellow: #ffd200;
  --ink: #1a1c3b;
  --body: #3f4364;
  --muted: #676b8a;
  --line: #e4e6f1;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --danger: #c62f3b;
  --danger-50: #fdf0f1;
  --warn: #9a5b00;
  --warn-50: #fff6e5;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(28 30 77 / 6%), 0 2px 8px rgb(28 30 77 / 5%);
  --shadow: 0 2px 6px rgb(28 30 77 / 5%), 0 12px 32px rgb(28 30 77 / 8%);
  --shadow-lg: 0 8px 24px rgb(28 30 77 / 10%), 0 32px 64px rgb(28 30 77 / 14%);
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; interpolate-size: allow-keywords; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--body);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--indigo-700); }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1rem + .6vw, 1.45rem); }
h4 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2.5rem, 1240px); margin-inline: auto; }
.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: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--indigo); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 1rem; color: #fff; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ico { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
.ico-sm { width: 1em; height: 1em; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--surface); --b-fg: var(--ink); --b-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px; border: 1.5px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-fg); font-weight: 700; font-size: .975rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap; position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); color: var(--b-fg); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: .9rem 1.7rem; font-size: 1.02rem; }
.btn-primary { --b-bg: var(--indigo); --b-fg: #fff; box-shadow: 0 8px 20px -8px rgb(61 65 150 / 60%); }
.btn-primary:hover { --b-bg: var(--indigo-700); box-shadow: 0 14px 28px -10px rgb(61 65 150 / 70%); }
.btn-green, .btn-whatsapp { --b-bg: var(--green-ink); --b-fg: #fff; box-shadow: 0 8px 20px -8px rgb(23 170 89 / 60%); }
.btn-green:hover, .btn-whatsapp:hover { --b-bg: var(--green-700); box-shadow: 0 14px 28px -10px rgb(23 170 89 / 70%); }
.btn-ghost { --b-bg: transparent; --b-fg: var(--indigo); --b-bd: var(--indigo-100); }
.btn-ghost:hover { --b-bg: var(--indigo-50); --b-bd: var(--indigo); }
.btn-white { --b-bg: #fff; --b-fg: var(--indigo); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: block; flex: none; padding: 6px 12px; margin-left: -12px; border-radius: 14px; background: transparent; transition: background-color .35s var(--ease), box-shadow .35s var(--ease), padding .35s; }
.brand img { height: 60px; width: auto; transition: height .35s var(--ease); }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .85rem; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; transition: background-color .2s, color .2s;
}
.nav-link:hover { background: rgb(61 65 150 / 8%); color: var(--indigo); }
.nav-link[aria-current="true"] { color: var(--indigo); background: rgb(61 65 150 / 10%); }
.nav-ext { border: 1.5px solid var(--indigo-100); }

/* Scrolled state: brand-coloured bar */
.site-header.is-scrolled { --header-h: 72px; background: var(--indigo); box-shadow: 0 10px 30px -12px rgb(28 30 77 / 45%); }
.site-header.is-scrolled .brand { background: #fff; box-shadow: var(--shadow-sm); margin-left: 0; padding: 4px 10px; }
.site-header.is-scrolled .brand img { height: 46px; }
.site-header.is-scrolled .nav-link { color: rgb(255 255 255 / 88%); }
.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link[aria-current="true"] { color: #fff; background: rgb(255 255 255 / 14%); }
.site-header.is-scrolled .nav-ext { border-color: rgb(255 255 255 / 35%); }
.site-header.is-scrolled .nav-toggle span { background: #fff; }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; border-radius: 14px; background: rgb(61 65 150 / 8%);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.site-header.is-scrolled .nav-toggle { background: rgb(255 255 255 / 14%); }
.nav-toggle span { width: 22px; height: 2.5px; border-radius: 2px; background: var(--indigo); transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--header-h) + 1.25rem) 0 3rem; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(23 170 89 / 12%), transparent 60%),
    radial-gradient(50rem 30rem at -10% 10%, rgb(61 65 150 / 14%), transparent 60%),
    linear-gradient(180deg, #eef0fb 0%, var(--bg) 70%);
}
.hero-banner { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #e9ecf6; }
.hero-banner img { width: 100%; aspect-ratio: 1672 / 941; object-fit: cover; }
.hero-cta {
  position: relative; z-index: 2; margin: -3.25rem auto 0; width: min(100% - 3rem, 1080px);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem;
  padding: 1.4rem 1.6rem 1.4rem 2rem; border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 86%); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgb(255 255 255 / 70%); box-shadow: var(--shadow-lg);
}
.hero-cta h1 { font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); margin: .55rem 0 .3rem; }
.hero-cta p { margin: 0; color: var(--muted); font-size: .95rem; }
.hero-cta-actions { display: flex; gap: .75rem; flex: none; }
.live-pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .8rem; border-radius: 999px;
  background: var(--green-50); color: var(--green-ink); font-size: .8rem; font-weight: 700; letter-spacing: .02em;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgb(23 170 89 / 60%); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(23 170 89 / 55%); } 70% { box-shadow: 0 0 0 9px rgb(23 170 89 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(23 170 89 / 0%); } }

.highlights { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.25rem; }
.highlight {
  display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.highlight strong { display: block; color: var(--ink); font-size: 1rem; line-height: 1.3; }
.highlight span:not(.hl-icon) { display: block; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.hl-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--indigo-50); color: var(--indigo); flex: none; }
.highlight:nth-child(even) .hl-icon { background: var(--green-50); color: var(--green-ink); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 2rem + 5vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 1.5rem + 3vw, 4rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; }
.section-head.split > div:first-child { max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin-bottom: .8rem;
  font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--green-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--green); }
.center .eyebrow::after { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--green); }
.eyebrow-light { color: #9ff0c2; }
.eyebrow-light::before { background: #9ff0c2; }
.lead { font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); color: var(--muted); }
.sub-head { margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 1.25rem; display: flex; align-items: center; gap: .75rem; }
.sub-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 1rem + 1.2vw, 2rem); box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
}
.card:hover { box-shadow: var(--shadow); }
.card-tag { display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: var(--indigo-50); color: var(--indigo); font-weight: 700; font-size: .82rem; margin-bottom: 1rem; }
.card-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--indigo); color: #fff; margin-bottom: 1.1rem; box-shadow: 0 10px 20px -10px rgb(61 65 150 / 80%); }
.card-icon-green, .card-accent-green .card-icon { background: var(--green-ink); box-shadow: 0 10px 20px -10px rgb(23 170 89 / 80%); }
.card-accent { border-top: 4px solid var(--indigo); }
.card-accent-green { border-top-color: var(--green); }
.note { display: flex; gap: .55rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--indigo-50); color: var(--ink); font-size: .93rem; }
.note .ico { margin-top: .2em; color: var(--indigo); }

.ticks li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d8443' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* Partners */
.partners { background: var(--surface); border-block: 1px solid var(--line); }
.partners .section-head { margin-bottom: 1.75rem; }
.partner-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.partner {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem 1rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--bg); min-width: min(100%, 340px);
}
.partner strong { display: block; color: var(--ink); line-height: 1.3; }
.partner span:not(.partner-mark) { display: block; color: var(--muted); font-size: .88rem; }
.partner-mark { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: var(--indigo); color: #fff; font-weight: 800; letter-spacing: .04em; flex: none; }
.partner-logo { padding: 1rem 1.5rem; min-width: 0; }
.partner-logo img { height: 56px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .3s, opacity .3s; }
.partner-logo:hover img { filter: none; opacity: 1; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--indigo-100) 0 8px, transparent 8px 14px); z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; padding: 0 .5rem; }
.step-num {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--indigo); color: var(--indigo); font-weight: 800; font-size: 1.2rem;
  box-shadow: 0 0 0 6px var(--bg);
  transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.step:hover .step-num { background: var(--indigo); color: #fff; transform: scale(1.06); }
.step:last-child .step-num { border-color: var(--green); color: var(--green-ink); }
.step:last-child:hover .step-num { background: var(--green-ink); color: #fff; }
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { font-size: .9rem; color: var(--muted); }

/* Age table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.age-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.age-table th, .age-table td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.age-table tbody tr:last-child > * { border-bottom: 0; }
.age-table thead th { background: var(--indigo-50); color: var(--indigo); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.age-table tbody th { color: var(--ink); font-weight: 700; }
.age-table small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.badge { display: inline-block; padding: .25rem .65rem; border-radius: 999px; background: var(--green-50); color: var(--green-ink); font-weight: 700; font-size: .85rem; white-space: nowrap; }

/* ---------- Documents ---------- */
.documents { background: linear-gradient(180deg, var(--surface), var(--bg)); }
.doc-tools { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.doc-progress { display: flex; align-items: center; gap: .75rem; font-weight: 700; color: var(--ink); font-size: .9rem; }
.doc-progress-bar { width: 140px; height: 8px; border-radius: 99px; background: var(--indigo-100); overflow: hidden; }
.doc-progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--indigo), var(--green)); border-radius: inherit; transition: width .5s var(--ease); }
.doc-actions { display: flex; gap: .5rem; }
.doc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.doc-card h4 { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.doc-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--indigo-50); color: var(--indigo); flex: none; }
.doc-card:nth-child(even) .doc-ico { background: var(--green-50); color: var(--green-ink); }

.check { display: flex; align-items: flex-start; gap: .8rem; padding: .65rem .75rem; margin: 0 -.75rem; border-radius: 12px; cursor: pointer; transition: background-color .2s; }
.check:hover { background: var(--indigo-50); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid #c5c8de; flex: none; margin-top: .15em;
  display: grid; place-items: center; background: #fff; transition: background-color .2s, border-color .2s;
}
.check .box svg { width: 14px; height: 14px; color: #fff; transform: scale(0); transition: transform .25s var(--ease); }
.check input:checked + .box { background: var(--green-ink); border-color: var(--green-ink); }
.check input:checked + .box svg { transform: scale(1); }
.check input:checked ~ span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: rgb(103 107 138 / 45%); }
.check input:focus-visible + .box { outline: 3px solid var(--green); outline-offset: 2px; }
.check em { color: var(--muted); font-style: normal; font-size: .9em; }
.chips-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem 2.2rem; }
.chips-list li { padding: .35rem .8rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .88rem; color: var(--ink); font-weight: 500; }
.doc-card .note { margin-left: 2.2rem; }

.callout {
  display: flex; align-items: flex-start; gap: .9rem; margin-top: 1.5rem; padding: 1.1rem 1.4rem; border-radius: var(--radius);
  background: var(--danger-50); border: 1px solid #f5cdd1; color: #7d1d26;
}
.callout .ico { color: var(--danger); margin-top: .15em; }

/* ---------- Info ---------- */
.info-card h3 { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.info-card .btn { margin-top: .5rem; }
.status-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .01em; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.open { background: var(--green-50); color: var(--green-ink); }
.status-pill.closed { background: var(--indigo-50); color: var(--muted); }
.hours { margin: 0 0 1rem; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px dashed var(--line); }
.hours dt { color: var(--ink); font-weight: 600; }
.hours dd { margin: 0; font-weight: 700; color: var(--indigo); text-align: right; white-space: nowrap; }
.hours .closed dd { color: var(--danger); }

/* ---------- Register ---------- */
.register { position: relative; background: var(--indigo); isolation: isolate; overflow: hidden; }
.register::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(40rem 30rem at 0% 0%, rgb(23 170 89 / 35%), transparent 60%),
    radial-gradient(40rem 30rem at 100% 100%, rgb(255 255 255 / 10%), transparent 60%),
    linear-gradient(160deg, var(--indigo) 0%, var(--indigo-900) 100%);
}
.register-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 9fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.register-aside { color: rgb(255 255 255 / 85%); position: sticky; top: calc(var(--header-h) + 1.5rem); }
.register-aside h2 { color: #fff; }
.register-aside .req { color: #ffb3ba; }
.next-steps { margin: 2rem 0; counter-reset: ns; }
.next-steps li { position: relative; padding-left: 3.2rem; padding-bottom: 1.4rem; counter-increment: ns; }
.next-steps li::before {
  content: counter(ns); position: absolute; left: 0; top: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center; background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 25%); color: #fff; font-weight: 800; font-size: .9rem;
}
.next-steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.1rem; top: 2.5rem; bottom: .3rem; width: 1px; background: rgb(255 255 255 / 20%); }
.next-steps strong { display: block; color: #fff; }
.next-steps span { font-size: .92rem; }
.aside-help { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.2rem; border-radius: var(--radius); background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 15%); font-size: .92rem; }
.aside-help .ico { width: 1.6rem; height: 1.6rem; color: #9ff0c2; }
.aside-help a { color: #fff; font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.aside-help span { opacity: .75; }

.form-card { background: var(--surface); border-radius: calc(var(--radius-lg) + 4px); padding: clamp(1.25rem, .75rem + 2vw, 2.5rem); box-shadow: 0 40px 80px -30px rgb(0 0 0 / 45%); }
.fs { border: 0; margin: 0 0 2rem; padding: 0 0 2rem; border-bottom: 1px solid var(--line); min-width: 0; }
.fs:last-of-type { border-bottom: 0; padding-bottom: 0; }
.fs legend { display: flex; align-items: center; gap: .7rem; font-weight: 800; color: var(--ink); font-size: 1.1rem; margin-bottom: 1.25rem; padding: 0; }
.fs-num { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--indigo); color: #fff; font-size: .9rem; flex: none; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field[hidden] { display: none; }
.field > label, .field > .label { font-weight: 600; color: var(--ink); font-size: .93rem; }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 500; font-size: .85em; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem; border: 1.5px solid #d6d9ea; border-radius: 12px; background: #fbfbfe;
  font-size: 1rem; color: var(--ink); transition: border-color .2s, box-shadow .2s, background-color .2s; appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field select {
  padding-right: 2.75rem; cursor: pointer;
  background: #fbfbfe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4196' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 18px no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: #9a9db6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #b9bdd8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); background: #fff; box-shadow: 0 0 0 4px rgb(61 65 150 / 14%); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea, .field.is-invalid .input-prefix, .field.is-invalid .dropzone, .field.is-invalid .segmented { border-color: var(--danger); background-color: var(--danger-50); }
.field.is-invalid .input-prefix input { background: transparent; }
.field.is-valid input:not([type="radio"]), .field.is-valid select, .field.is-valid textarea { border-color: #9bd8b6; }
.err { margin: 0; color: var(--danger); font-size: .84rem; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.hint { margin: 0; font-size: .84rem; color: var(--muted); }
.hint:empty { display: none; }
.hint.ok { color: var(--green-ink); font-weight: 600; }
.hint.warn { color: var(--warn); background: var(--warn-50); padding: .45rem .7rem; border-radius: 8px; font-weight: 600; }

.input-prefix { display: flex; align-items: stretch; border: 1.5px solid #d6d9ea; border-radius: 12px; background: #fbfbfe; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.input-prefix > span { display: grid; place-items: center; padding: 0 .85rem; font-weight: 700; color: var(--indigo); background: var(--indigo-50); border-right: 1.5px solid #d6d9ea; font-size: .95rem; }
.field .input-prefix input { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.input-prefix:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 4px rgb(61 65 150 / 14%); background: #fff; }
.field .input-prefix input:focus { box-shadow: none; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1.5px solid #d6d9ea; border-radius: 12px; background: #fbfbfe; min-height: 50px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: grid; place-items: center; height: 100%; min-height: 40px; border-radius: 9px; font-weight: 600; color: var(--body); transition: background-color .2s, color .2s, box-shadow .2s; }
.segmented label:hover span { background: var(--indigo-50); }
.segmented input:checked + span { background: var(--indigo); color: #fff; box-shadow: 0 6px 14px -6px rgb(61 65 150 / 70%); }
.segmented input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 1px; }

.dropzone { position: relative; border: 2px dashed #c5c8de; border-radius: var(--radius); background: #fbfbfe; transition: border-color .2s, background-color .2s; }
.dropzone:focus-within { border-color: var(--indigo); box-shadow: 0 0 0 4px rgb(61 65 150 / 14%); }
.dropzone.is-drag { border-color: var(--green); background: var(--green-50); }
.dz-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1.75rem 1rem; cursor: pointer; }
.dz-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--indigo-50); color: var(--indigo); margin-bottom: .35rem; }
.dz-title { font-weight: 600; color: var(--ink); }
.dz-browse { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.dz-help { font-size: .84rem; color: var(--muted); }
.dz-preview { display: flex; align-items: center; gap: 1rem; padding: 1rem; }
.dz-preview[hidden], .dz-empty[hidden] { display: none; }
.dz-preview img { width: 76px; height: 92px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); flex: none; background: #fff; }
.dz-meta { flex: 1; min-width: 0; }
.dz-meta strong { display: block; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-meta span { font-size: .85rem; color: var(--green-ink); font-weight: 600; }
.dz-btns { display: flex; gap: .5rem; flex-wrap: wrap; }

.chip-group { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1rem; border-radius: 999px; border: 1.5px solid #d6d9ea;
  background: #fbfbfe; font-weight: 600; font-size: .92rem; color: var(--body); transition: all .2s;
}
.chip span::before { content: "+"; font-weight: 800; color: var(--indigo); width: 1em; text-align: center; }
.chip:hover span { border-color: var(--indigo); }
.chip input:checked + span { background: var(--green-50); border-color: var(--green); color: var(--green-700); }
.chip input:checked + span::before { content: "✓"; color: var(--green-ink); }
.chip input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }

.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.privacy { display: flex; align-items: center; gap: .45rem; margin: 0; }
.privacy .ico { color: var(--green-ink); }
.form-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgb(255 255 255 / 40%); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-alert { display: flex; gap: .75rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: var(--danger-50); border: 1px solid #f5cdd1; color: #7d1d26; margin-bottom: 1.5rem; font-size: .95rem; }
.form-alert[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success { text-align: center; padding: clamp(1rem, .5rem + 3vw, 3rem) clamp(0rem, 2vw, 2rem); animation: pop .5s var(--ease); }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.success-badge { width: 84px; height: 84px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--green-ink); color: #fff; box-shadow: 0 0 0 10px var(--green-50), 0 20px 40px -12px rgb(23 170 89 / 70%); }
.success-badge .ico { width: 40px; height: 40px; }
.form-success h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.ref-box { display: inline-flex; align-items: center; gap: .75rem; margin: .25rem 0 1.5rem; padding: .7rem .8rem .7rem 1.5rem; border-radius: var(--radius); background: var(--indigo-50); border: 2px dashed var(--indigo-100); }
.ref-id { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: .18em; color: var(--indigo); font-variant-numeric: tabular-nums; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: #fff; color: var(--indigo); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: background-color .2s, color .2s; }
.icon-btn:hover { background: var(--indigo); color: #fff; }
.icon-btn.copied { background: var(--green-ink); color: #fff; }
.form-success .btn { margin-top: 1.25rem; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.faq .section-head { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.accordion { display: grid; gap: .75rem; }
.accordion details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .3s, box-shadow .3s; overflow: hidden; }
.accordion details[open] { border-color: var(--indigo-100); box-shadow: var(--shadow); }
.accordion summary {
  list-style: none; display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.25rem; cursor: pointer;
  font-weight: 700; color: var(--ink); font-size: 1.02rem; line-height: 1.4; transition: background-color .2s;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--indigo-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d4196' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .35s var(--ease), background-color .3s;
}
.accordion details[open] summary::after {
  transform: rotate(135deg);
  background-color: var(--indigo);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.accordion summary:hover { background: var(--indigo-50); }
.q-num { font-size: .8rem; font-weight: 800; color: var(--green-ink); background: var(--green-50); padding: .25rem .55rem; border-radius: 8px; flex: none; font-variant-numeric: tabular-nums; }
.answer { padding: 0 1.25rem 1.35rem 4.1rem; color: var(--body); }
/* Smooth open/close where supported */
.accordion details::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.accordion details[open]::details-content { block-size: auto; }

.lang-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.lang-card { padding: 1rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.lang-card h5 { font-size: .95rem; color: var(--indigo); margin-bottom: .6rem; }
.lang-card dl { margin: 0; font-size: .88rem; }
.lang-card dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.lang-card dd { margin: 0 0 .5rem; color: var(--ink); font-weight: 600; }
.lang-card dd:last-child { margin: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tag-list li { padding: .35rem .85rem; border-radius: 999px; background: var(--indigo-50); color: var(--indigo); font-weight: 600; font-size: .87rem; }
.answer > .tag-list:last-child { margin-bottom: 0; }
.group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.group-card { padding: 1rem 1.1rem; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--green); font-size: .92rem; color: var(--ink); font-weight: 500; }
.group-card span { display: block; font-weight: 800; color: var(--indigo); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-900); color: rgb(255 255 255 / 75%); padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.footer-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--indigo) 0%, #2f6f8f 60%, var(--green-ink) 130%);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 60%);
}
.footer-cta h2 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin-bottom: .25rem; }
.footer-cta p { color: rgb(255 255 255 / 85%); margin: 0; }
.footer-cta-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
.footer-cta .btn-whatsapp { --b-bg: #fff; --b-fg: var(--green-ink); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr .8fr; gap: 2.5rem; padding: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0; }
.footer-grid h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.2rem; }
.footer-logo { display: inline-block; background: #fff; border-radius: 16px; padding: 10px 14px; margin-bottom: 1.1rem; }
.footer-logo img { height: 64px; width: auto; }
.footer-brand p { font-size: .93rem; max-width: 34ch; }
.contact-list li { display: flex; gap: .8rem; margin-bottom: 1rem; font-size: .94rem; line-height: 1.55; }
.contact-list .ico { color: #9ff0c2; margin-top: .15em; }
.contact-list small { display: block; color: rgb(255 255 255 / 55%); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #9ff0c2; text-decoration: underline; }
.site-footer .btn, .site-footer .btn:hover { color: var(--b-fg); text-decoration: none; }
.contact-list a { word-break: break-word; }
.link-list li { margin-bottom: .6rem; font-size: .94rem; }
.link-list a { color: rgb(255 255 255 / 80%); }
.footer-bottom { display: flex; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; padding: 1.4rem 0 calc(1.4rem + env(safe-area-inset-bottom)); border-top: 1px solid rgb(255 255 255 / 12%); font-size: .85rem; color: rgb(255 255 255 / 55%); }
.footer-bottom p { margin: 0; }

/* ---------- Floating buttons ---------- */
.fab-whatsapp, .to-top {
  position: fixed; right: 1.25rem; z-index: 90; border-radius: 50%; display: grid; place-items: center; border: 0; cursor: pointer;
  transition: transform .3s var(--ease), opacity .3s, visibility .3s;
}
.fab-whatsapp { bottom: calc(1.25rem + env(safe-area-inset-bottom)); width: 58px; height: 58px; background: #1faa53; color: #fff; box-shadow: 0 12px 28px -8px rgb(23 170 89 / 70%); }
.fab-whatsapp .ico { width: 30px; height: 30px; }
.fab-whatsapp:hover { transform: scale(1.08); color: #fff; }
.to-top { bottom: calc(5.4rem + env(safe-area-inset-bottom)); width: 46px; height: 46px; background: #fff; color: var(--indigo); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--indigo); color: #fff; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .nav-link { padding: .5rem .65rem; font-size: .9rem; }
  .brand img { height: 52px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 74px; }
  .site-header.is-scrolled { --header-h: 66px; }
  .brand img { height: 50px; }
  .site-header.is-scrolled .brand img { height: 40px; }
  .nav-toggle { display: flex; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem 1.25rem 1.5rem; background: var(--indigo); box-shadow: 0 30px 40px -20px rgb(0 0 0 / 40%);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .4s var(--ease), visibility .4s;
  }
  .nav.open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav .nav-link { color: #fff; padding: .9rem 1rem; border-radius: 12px; font-size: 1.05rem; justify-content: space-between; }
  .nav .nav-link:hover, .nav .nav-link[aria-current="true"] { background: rgb(255 255 255 / 12%); color: #fff; }
  .nav-ext { border-color: rgb(255 255 255 / 30%); }
  .nav-cta { min-height: 52px; }
  .site-header.menu-open:not(.is-scrolled) { background: var(--indigo); }
  .site-header.menu-open .brand { background: #fff; margin-left: 0; padding: 4px 10px; }
  .site-header.menu-open .nav-toggle { background: rgb(255 255 255 / 14%); }
  .site-header.menu-open .nav-toggle span { background: #fff; }

  .hero-cta { flex-direction: column; align-items: stretch; text-align: center; margin-top: -2rem; width: min(100% - 2rem, 760px); padding: 1.4rem; }
  .hero-cta .live-pill { align-self: center; }
  .hero-cta-actions { justify-content: center; }
  .highlights { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
  .steps::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--indigo-100) 0 8px, transparent 8px 14px); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.1rem; text-align: left; padding: 0 0 1.5rem; }
  .step-num { grid-row: span 2; margin: 0; }
  .step h3 { margin-top: .4rem; }
  .register-wrap, .faq-wrap { grid-template-columns: 1fr; }
  .register-aside, .faq .section-head { position: static; }
  .next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
  .next-steps li { padding: 3rem 0 0; }
  .next-steps li::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .grid-2, .doc-grid { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: 1fr; }
  .group-grid { grid-template-columns: 1fr; }
  .next-steps { grid-template-columns: 1fr; }
  .next-steps li { padding: 0 0 0 3.2rem; }
  .answer { padding-left: 1.25rem; }
  .section-head.split { align-items: stretch; }
  .doc-tools { justify-content: space-between; width: 100%; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 1.75rem, 1240px); }
  .hero { padding-top: calc(var(--header-h) + .75rem); }
  .hero-banner { border-radius: var(--radius); }
  .hero-cta { margin-top: 1rem; width: 100%; padding: 1.25rem 1rem; }
  .hero-cta-actions { flex-direction: column; }
  .hero-cta-actions .btn { width: 100%; }
  .highlights { grid-template-columns: 1fr; gap: .65rem; margin-top: 1.5rem; }
  .highlight { padding: .9rem 1rem; }
  .partner { min-width: 0; width: 100%; }
  .form-card { border-radius: var(--radius-lg); }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-btns { flex-direction: column-reverse; }
  .form-btns .btn { width: 100%; }
  .dz-preview { flex-wrap: wrap; }
  .dz-btns { width: 100%; }
  .dz-btns .btn { flex: 1; }
  .accordion summary { padding: 1rem; gap: .75rem; font-size: .97rem; }
  .answer { padding: 0 1rem 1.2rem; }
  .ref-box { padding-left: 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-cta-btns, .footer-cta-btns .btn { width: 100%; }
  .doc-progress-bar { width: 100px; }
  .fab-whatsapp { width: 54px; height: 54px; right: 1rem; }
  .to-top { right: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Print: documents checklist ---------- */
@media print {
  body.print-docs > *:not(main), body.print-docs main > section:not(#documents) { display: none !important; }
  body.print-docs .doc-tools, body.print-docs .fab-whatsapp, body.print-docs .to-top { display: none !important; }
  body.print-docs { background: #fff; }
  body.print-docs .card { box-shadow: none; break-inside: avoid; }
  body.print-docs .reveal { opacity: 1 !important; transform: none !important; }
  body.print-docs .doc-grid { grid-template-columns: 1fr 1fr; }
}
