/* NovaGive website. One stylesheet, no build step.
   Order: tokens, base, buttons and type, header, hero, the kiosk demo, ticker, sections (steps, features, receipts,
   calculator, trust, FAQ, contact), footer, motion helpers, and the responsive rules at the end. */

/* ------------------------------------------------------------------ tokens */
:root {
  /* Brand colours sampled from the logo artwork. */
  --purple-950: #12053d;
  --purple-900: #1b0a55;
  --purple-800: #270a7a;
  --purple-700: #3a1aa3;
  --purple-600: #4d2bd0;
  --cyan: #01e1f9;
  --teal: #1df8da;
  --green: #08fda1;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.76);
  --ink-3: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.12);
  --paper: #f6f4ff;
  --paper-ink: #1b0a55;
  --paper-ink-2: #4b437a;
  --grad: linear-gradient(100deg, var(--cyan), var(--green));
  --radius: 22px;
  --shadow: 0 24px 70px rgba(8, 2, 40, 0.5);
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 76px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--purple-800);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 2rem); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--lg { width: 2.2em; height: 2.2em; }
.skip { position: absolute; left: 1rem; top: -4rem; padding: 0.6rem 1rem; background: var(--green); color: var(--purple-900); border-radius: 8px; z-index: 100; font-weight: 700; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* Gradient text used for the emphasised part of each heading. */
.shine {
  background: linear-gradient(100deg, var(--cyan), var(--green), var(--cyan));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
}
.shine--dark { background-image: linear-gradient(100deg, #0aa6c9, #06b87a, #0aa6c9); }
@keyframes shine { to { background-position: 200% 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 1rem;
}
.eyebrow__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(8, 253, 161, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(8, 253, 161, 0); } 100% { box-shadow: 0 0 0 0 rgba(8, 253, 161, 0); } }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 40rem; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.8rem 1.45rem; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s;
  will-change: transform;
}
.btn--big { padding: 1rem 1.75rem; font-size: 1.05rem; }
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.92rem; }
.btn--primary { background: var(--grad); color: var(--purple-900); box-shadow: 0 10px 30px rgba(8, 253, 161, 0.25); }
.btn--primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 40px rgba(8, 253, 161, 0.35); }
.btn--ghost { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, 0.04); }
.btn--ghost:hover { border-color: var(--ink-3); background: rgba(255, 255, 255, 0.09); transform: translateY(-2px); }
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

/* ------------------------------------------------------------------ header */
.progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; background: var(--grad); z-index: 60; }
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(39, 10, 122, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background-color 0.3s;
}
.nav.is-scrolled { border-color: var(--line); background: rgba(27, 10, 85, 0.8); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand__logo { height: 34px; width: auto; }
.brand__word { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.02em; font-weight: 400; }
.brand__word b { font-weight: 800; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; font-weight: 600; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--ink-2); position: relative; transition: color 0.2s; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__admin { color: var(--ink-3) !important; font-weight: 500; }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav__burger span { top: 21px; }
.nav__burger span::before { top: -7px; left: 0; }
.nav__burger span::after { top: 7px; left: 0; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); background: radial-gradient(120% 90% at 50% 0%, var(--purple-700) 0%, var(--purple-800) 45%, var(--purple-900) 100%); }
.hero__grid { display: grid; grid-template-columns: 1fr; justify-items: center; gap: clamp(2.5rem, 5vw, 4rem); position: relative; }
.hero__copy { text-align: center; max-width: 52rem; }
.hero__copy .lead { margin-inline: auto; }
.hero__copy h1 { margin-bottom: 1.2rem; }
.hero__demo { width: 100%; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin: 2rem 0 2.6rem; }
.stats { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 2.8rem; margin: 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); }
.stats li { display: flex; flex-direction: column; align-items: center; }
.stats b { font-family: var(--font-display); font-size: 2rem; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--ink-3); font-size: 0.92rem; margin-top: 0.3rem; }

/* The aurora: three blurred blobs that drift on their own and lean toward the cursor (js moves the layers). */
.aurora { position: absolute; inset: 0; pointer-events: none; }
.aurora__layer { position: absolute; inset: 0; will-change: transform; }
.aurora__blob { position: absolute; width: 56vmax; height: 56vmax; border-radius: 50%; filter: blur(90px); opacity: 0.5; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.aurora__blob--1 { background: radial-gradient(circle, rgba(1, 225, 249, 0.75), transparent 60%); left: -18vmax; top: -22vmax; }
.aurora__blob--2 { background: radial-gradient(circle, rgba(8, 253, 161, 0.55), transparent 60%); right: -20vmax; top: 10vmax; animation-duration: 28s; animation-delay: -8s; }
.aurora__blob--3 { background: radial-gradient(circle, rgba(130, 90, 255, 0.8), transparent 60%); left: 30vw; bottom: -36vmax; animation-duration: 25s; animation-delay: -15s; }
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.12); } }

/* ------------------------------------------------------------------ the kiosk demo (a landscape payment terminal) */
.demo { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; width: 100%; }
.demo__controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); }
.seg__btn { border: 0; background: transparent; color: var(--ink-2); font: 600 0.88rem var(--font-body); padding: 0.4rem 0.85rem; border-radius: 999px; cursor: pointer; transition: background-color 0.25s, color 0.25s; }
.seg__btn:hover { color: var(--ink); }
.seg__btn.is-active { background: var(--ink); color: var(--purple-900); }
.demo__hint { color: var(--ink-3); font-size: 0.95rem; margin: 0; min-height: 1.6em; text-align: center; max-width: 46rem; }
.demo__turn { display: none; color: var(--green); font-size: 0.9rem; margin: 0; text-align: center; }

/* The terminal is a 1360 × 880 box (its 1280 × 800 screen with a 40 px bezel) that scales to the width it is given.
   The script sets --terminal-scale from the wrapper's width; the wrapper keeps the device's aspect ratio. */
.terminal-wrap { position: relative; width: 100%; max-width: 1040px; margin: 0 auto; aspect-ratio: 1360 / 880; }
.terminal {
  position: absolute; top: 0; left: 0; width: 1360px; height: 880px;
  transform: scale(var(--terminal-scale, 0.5)); transform-origin: 0 0;
  border-radius: 44px; background: linear-gradient(160deg, #3a3a46, #15151c 60%, #0b0b10);
  box-shadow: 0 48px 100px rgba(5, 2, 30, 0.55), inset 0 2px 0 rgba(255, 255, 255, 0.14), inset 0 -3px 0 rgba(0, 0, 0, 0.6);
  cursor: pointer; user-select: none; -webkit-user-select: none;
}
.terminal::before { /* the camera */ content: ""; position: absolute; left: 50%; top: 14px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #06060a; box-shadow: inset 0 0 0 3px #1c1c24; }
.terminal__screen { position: absolute; left: 40px; top: 40px; width: 1280px; height: 800px; border-radius: 18px; overflow: hidden; background: #fff; }
/* The card reader: a light on the right bezel that glows while the terminal waits for a card. */
.terminal__nfc { position: absolute; right: 12px; top: 50%; width: 16px; height: 140px; margin-top: -70px; border-radius: 8px; background: #26262e; transition: background-color 0.3s, box-shadow 0.3s; }
.terminal.is-waiting .terminal__nfc { background: var(--green); box-shadow: 0 0 28px var(--green); animation: nfc 1.2s ease-in-out infinite; }
@keyframes nfc { 50% { opacity: 0.35; } }
.terminal__slot { position: absolute; left: 50%; bottom: 12px; width: 300px; height: 7px; margin-left: -150px; border-radius: 4px; background: #050507; box-shadow: inset 0 1px 0 #000, 0 1px 0 rgba(255, 255, 255, 0.08); }
.glow { position: absolute; inset: -60px; border-radius: 80px; background: radial-gradient(circle at 50% 45%, rgba(8, 253, 161, 0.3), transparent 60%); opacity: 0; pointer-events: none; transition: opacity 0.5s; z-index: -1; }
.terminal.is-thanks .glow { opacity: 1; }

/* The payment card that flies in from the right and lands on the reader. */
.card {
  position: absolute; width: 250px; height: 158px; border-radius: 18px; right: -320px; top: 360px; opacity: 0;
  background: linear-gradient(135deg, var(--purple-600), var(--cyan) 110%); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  transition: transform 0.75s var(--ease), opacity 0.35s; pointer-events: none;
}
.card__chip { position: absolute; left: 24px; top: 48px; width: 46px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #f5d98a, #c79b3a); }
.card__wave { position: absolute; right: 26px; top: 34px; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.85); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(45deg); }
.terminal.is-tapping .card { opacity: 1; transform: translate(-330px, -50px) rotate(-10deg); }

/* ---- The kiosk screen, drawn in the app's 1280 × 800 design pixels with the template's colours in variables. */
.ks {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  font-family: var(--ks-font); font-size: var(--t-msg); line-height: var(--t-lh); color: var(--ink);
  background: var(--page);
}
.ks--enter { animation: ks-in 0.3s var(--ease); }
@keyframes ks-in { from { opacity: 0; } }
.ks__header { flex: none; height: 76px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--header-bg); border-top: var(--header-top); border-bottom: var(--header-bottom); box-sizing: content-box; }
.ks__brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.ks__glyph { font-size: 40px; line-height: 44px; color: var(--glyph); }
.ks__org { font: 700 26px/34px var(--serif); color: var(--header-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ks__side { display: flex; align-items: center; gap: 8px; flex: none; }
.ks__chip { min-height: 56px; min-width: 96px; padding: 0 16px; border-radius: 28px; border: 2px solid var(--lang-off-border); color: var(--lang-off-fg); background: transparent; font: 400 22px/31px var(--chip-font, inherit); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.ks__chip.is-on { background: var(--lang-on-bg); color: var(--lang-on-fg); border-color: var(--lang-on-bg); }
.ks__strip { flex: none; height: var(--strip-h, 0); background: var(--strip-bg); border-top: var(--strip-border); }
.ks__columns { flex: 1; min-height: 0; display: flex; align-items: center; gap: 32px; padding: 14px 40px; }
.ks__welcome {
  flex: var(--welcome-grow, 0.8) 1 0; min-width: 0; display: flex; flex-direction: column; align-items: var(--welcome-items);
  text-align: var(--welcome-align); padding: var(--welcome-pad); background: var(--welcome-bg); border: var(--welcome-border);
  border-radius: var(--welcome-radius); box-shadow: var(--welcome-rings);
}
.ks__ornament { height: 64px; display: flex; align-items: flex-end; justify-content: center; font-size: 56px; line-height: 64px; color: var(--ornament); }
.ks__overline { margin: 10px 0 8px; font-size: var(--t-sec); line-height: var(--t-lh); font-weight: 700; letter-spacing: var(--t-ls); text-transform: var(--t-tt); color: var(--overline); }
.ks__title { margin: 0; font: 400 var(--t-title)/var(--t-titlelh) var(--heading-font); color: var(--title); }
.ks__quote { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); align-self: stretch; font-size: var(--t-sec); line-height: var(--t-lh); color: var(--quote); font-style: var(--quote-style); font-family: var(--quote-font); }
.ks__cite { margin-top: 6px; display: block; }
.ks__notice { margin-top: 12px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.7); align-self: stretch; font-size: var(--t-sec); line-height: var(--t-lh); }
.ks__card {
  flex: var(--card-grow, 1.4) 1 0; min-width: 0; min-height: 500px; box-sizing: border-box; display: flex; flex-direction: column;
  padding: 22px 26px; background: var(--card-bg); border: var(--card-border); border-top: var(--card-top); border-radius: var(--card-radius); box-shadow: var(--card-shadow);
}
.ks__card--center { align-items: center; justify-content: center; text-align: center; }
.ks__step { font-size: var(--t-sec); line-height: var(--t-lh); font-weight: 700; letter-spacing: var(--t-ls); text-transform: var(--t-tt); color: var(--accent); }
.ks__heading { margin: 4px 0 14px; font: 400 var(--t-ins)/var(--t-inslh) var(--heading-font); color: var(--ink); }
.ks__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ks__amt { height: 100px; border-radius: 10px; padding: 0 8px; background: var(--amount-bg); border: var(--amount-border); box-shadow: var(--amount-shadow); color: var(--amount-text); font: 700 40px/48px "Noto Sans", sans-serif; direction: ltr; cursor: pointer; transition: transform 0.15s var(--ease), filter 0.2s; }
.ks__amt:hover { transform: translateY(-2px); filter: brightness(0.97); }
.ks__amt:active { transform: scale(0.97); }
.ks__amt--custom { font-family: inherit; font-size: var(--t-ins); line-height: var(--t-btnlh); }
.ks__helper { margin: 14px 0 0; font-size: var(--t-ins); line-height: var(--t-inslh); font-weight: 600; }
.ks__hint { margin: 6px 0 0; font-size: var(--t-sec); line-height: var(--t-lh); color: var(--muted); }
.ks__btn { width: 100%; min-height: 76px; border-radius: 9px; padding: var(--t-btnpad); background: var(--primary-bg); color: var(--primary-text); border: var(--primary-border); font: 700 var(--t-ins)/var(--t-btnlh) inherit; font-family: inherit; cursor: pointer; transition: transform 0.15s var(--ease), opacity 0.2s; }
.ks__btn:hover { transform: translateY(-2px); }
.ks__btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.ks__btn--secondary { min-height: 70px; background: var(--secondary-bg); color: var(--secondary-text); border: var(--secondary-border); }
.ks__btn--auto { width: auto; padding-left: 28px; padding-right: 28px; }
.ks__stack { display: grid; gap: 10px; margin-top: 10px; align-self: stretch; }
.ks__spacer { flex: 1; }
.ks__amount { font: 700 40px/48px "Noto Sans", sans-serif; direction: ltr; }
.ks__big { font-family: "Noto Sans", sans-serif; font-weight: 700; direction: ltr; text-align: center; color: var(--accent); }
.ks__big--52 { font-size: 52px; line-height: 62px; }
.ks__big--58 { font-size: 58px; line-height: 70px; }
.ks__big--64 { font-size: 64px; line-height: 77px; }
.ks__big--76 { font-size: 76px; line-height: 91px; }
.ks__message { font-size: var(--t-msg); line-height: var(--t-lh); color: var(--muted); }
.ks__ins { font-size: var(--t-ins); line-height: var(--t-inslh); }
.ks__sec { font-size: var(--t-sec); line-height: var(--t-lh); }
.ks__muted { color: var(--muted); }
.ks__check { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--success-bg); color: var(--success-text); margin-bottom: 10px; animation: pop 0.5s var(--ease); }
.ks__check--70 { width: 70px; height: 70px; margin-bottom: 14px; }
.ks__check .icon { width: 34px; height: 34px; stroke-width: 3; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } 70% { transform: scale(1.1); } }
.ks__countdown { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: var(--t-sec); color: var(--muted); }
.ks__ring { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 14px/18px "Noto Sans", sans-serif; color: var(--ink); background: conic-gradient(var(--accent) calc(var(--frac, 1) * 360deg), var(--line) 0); }
.ks__ring::before { content: attr(data-seconds); width: 34px; height: 34px; border-radius: 50%; background: var(--card-bg); display: grid; place-items: center; }
.ks__glyphs { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 14px 0; color: var(--accent); }
.ks__glyphs .icon { width: 90px; height: 90px; stroke-width: 1.6; }
.ks__foot { flex: none; height: 50px; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--footer-bg); border-top: var(--footer-top); color: var(--footer-text); font: 400 15px/20px "Noto Sans", sans-serif; direction: ltr; }
.ks__foot img { height: 26px; width: auto; }

/* The custom amount: the typed figure and the buttons beside the kiosk's own 12-key pad. */
.ks__custom { flex: 1; display: flex; gap: 24px; min-height: 0; }
.ks__custom-left { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ks__display { height: 96px; border-radius: 12px; border: var(--input-border); background: #fff; display: flex; align-items: center; justify-content: center; direction: ltr; }
.ks__display .ks__big { color: var(--ink); }
.ks__display .ks__big.is-over { color: #b3261e; }
.ks__range { margin-top: 10px; min-height: calc(var(--t-ins) * var(--t-inslh) * 2); font-size: var(--t-ins); line-height: var(--t-inslh); color: var(--muted); }
.ks__range.is-over { color: #b3261e; }
.ks__pad { flex: 0 0 330px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; direction: ltr; }
.ks__key { min-height: 78px; border-radius: 10px; border: 2px solid var(--line); background: var(--card-bg); color: var(--ink); font: 700 34px/40px "Noto Sans", sans-serif; cursor: pointer; transition: transform 0.1s var(--ease), background-color 0.15s; }
.ks__key:hover { background: var(--welcome-bg-flat, #f3f1ea); }
.ks__key:active, .ks__key.is-pressed { transform: scale(0.95); background: var(--line); }
.ks__key--word { font-family: inherit; font-size: var(--t-sec); font-weight: 700; }

/* The email receipt: full width under the header, with the on-screen keyboard that never remembers a donor. */
.ks__body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 40px; }
.ks__titlerow { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.ks__label { font-size: var(--t-sec); line-height: var(--t-lh); font-weight: 700; }
.ks__fieldrow { display: flex; gap: 14px; direction: ltr; }
.ks__field { flex: 1; height: 72px; border-radius: 12px; border: var(--input-border); background: #fff; display: flex; align-items: center; padding: 0 18px; font: 400 30px/36px "Noto Sans", sans-serif; color: var(--ink); direction: ltr; overflow: hidden; white-space: nowrap; }
.ks__caret { display: inline-block; width: 3px; height: 36px; margin-left: 3px; background: var(--accent); animation: blink 0.9s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ks__send { flex: 0 0 240px; min-height: 72px; }
.ks__shortcuts { display: flex; flex-wrap: wrap; gap: 10px; direction: ltr; }
.ks__shortcut { min-height: 48px; padding: 0 18px; border-radius: 24px; border: 1px solid var(--line); background: var(--card-bg); color: var(--ink); font: 600 20px/26px "Noto Sans", sans-serif; cursor: pointer; }
.ks__optin { display: flex; align-items: center; gap: 12px; font-size: var(--t-msg); line-height: var(--t-lh); }
.ks__box { width: 34px; height: 34px; border-radius: 7px; border: 2px solid var(--accent); flex: none; }
.ks__privacy { font-size: var(--t-sec); line-height: var(--t-lh); color: var(--muted); margin: 0; }
.ks__keyboard { margin-top: auto; display: grid; gap: 8px; direction: ltr; }
.ks__krow { display: flex; gap: 8px; }
.ks__kkey { flex: 1; min-height: 58px; border-radius: 8px; border: 1px solid var(--line); background: var(--card-bg); color: var(--ink); font: 500 26px/30px "Noto Sans", sans-serif; cursor: pointer; transition: transform 0.08s var(--ease), background-color 0.12s; }
.ks__kkey--wide { flex: 2.2; }
.ks__kkey:active, .ks__kkey.is-pressed { transform: scale(0.94); background: var(--line); }

/* The payment app's card screen, which the kiosk hands over to: English, left to right, in the template's two colours. */
.ks--dv { background: #fff; direction: ltr; font-family: "Noto Sans", sans-serif; color: var(--dv-secondary); }
.ks__dvbar { height: 70px; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--dv-primary); }
.ks__dvtitle { font-size: 22px; font-weight: 700; letter-spacing: 0.04em; }
.ks__dvchip { font-size: 14px; padding: 4px 10px; border-radius: 6px; background: #eef1fb; color: #27408b; }
.ks__dvbody { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.ks__dvlabel { font-size: 20px; color: #6c6f7d; }
.ks__dvglyphs { display: flex; align-items: center; gap: 28px; margin: 16px 0; color: var(--dv-primary); }
.ks__dvglyphs .icon { width: 110px; height: 110px; stroke-width: 1.4; }
.ks__dvins { font-size: 30px; font-weight: 600; }
.ks__dvcancel { margin-top: 22px; border: 0; background: transparent; color: #c0392b; font: 700 20px "Noto Sans", sans-serif; cursor: pointer; }
.ks__spinner { width: 60px; height: 60px; border-radius: 50%; border: 5px solid #e8e9f0; border-top-color: var(--dv-primary); animation: spin 0.8s linear infinite; margin: 16px 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Template colours, from kiosk/src/content/themes.json. */
.ks--church {
  --page: #fbf6ed; --header-bg: #fffaf2; --header-top: 0 solid transparent; --header-bottom: 2px solid #bd955d; --header-text: #352f2b; --glyph: #365f80;
  --strip-h: 0; --strip-bg: transparent; --strip-border: 0 solid transparent;
  --ink: #352f2b; --muted: #655c53; --line: #d6c9b8; --accent: #365f80; --ornament: #bd955d; --overline: #365f80; --title: #365f80;
  --welcome-bg: transparent; --welcome-border: 0 solid transparent; --welcome-radius: 0; --welcome-rings: none; --welcome-align: start; --welcome-items: flex-start; --welcome-pad: 10px 0;
  --quote: #675943; --quote-style: italic; --quote-font: var(--serif);
  --card-bg: #fffdf9; --card-border: 1px solid #d6c9b8; --card-top: 1px solid #d6c9b8; --card-radius: 14px; --card-shadow: 0 18px 48px rgba(163, 112, 69, 0.09);
  --amount-bg: #fffdf9; --amount-border: 2px solid #8c7b5f; --amount-text: #352f2b; --amount-shadow: none;
  --primary-bg: #a43f35; --primary-text: #ffffff; --primary-border: 1px solid #8e342b; --secondary-bg: #fffdf9; --secondary-text: #365f80; --secondary-border: 2px solid #365f80;
  --success-bg: #e8f0e9; --success-text: #386748; --footer-bg: transparent; --footer-top: 0 solid transparent; --footer-text: #655c53; --input-border: 2px solid #8c7b5f;
  --lang-on-bg: #365f80; --lang-on-fg: #ffffff; --lang-off-border: #8c7b5f; --lang-off-fg: #352f2b; --dv-primary: #a43f35; --dv-secondary: #352f2b;
}
.ks--mosque {
  --page: radial-gradient(ellipse at 8% 45%, #ecefdf 0, rgba(236, 239, 223, 0) 50%), #fbf8ef; --header-bg: #164c3b; --header-top: 5px solid #ba9955; --header-bottom: 2px solid #ba9955; --header-text: #fff7e6; --glyph: #dec38a;
  --strip-h: 13px; --strip-bg: repeating-linear-gradient(45deg, transparent 0 9px, #bfa366 9px 11px), repeating-linear-gradient(-45deg, transparent 0 9px, #bfa366 9px 11px), #164c3b; --strip-border: 1px solid #c8ae6c;
  --ink: #213e35; --muted: #59695d; --line: #c3ae75; --accent: #245e43; --ornament: #a38642; --overline: #426c52; --title: #19543f;
  --welcome-bg: linear-gradient(180deg, #e8edde, #fffaf0 72%); --welcome-border: 2px solid #bfa56d; --welcome-radius: 48% 48% 10px 10px / 30% 30% 10px 10px; --welcome-rings: inset 0 0 0 6px #fff9eb, inset 0 0 0 8px #ded0a6; --welcome-align: center; --welcome-items: center; --welcome-pad: 30px 26px 22px;
  --quote: #59695d; --quote-style: normal; --quote-font: inherit;
  --card-bg: #fffdf5; --card-border: 1px solid #cbb780; --card-top: 5px solid #b49653; --card-radius: 20px; --card-shadow: 0 12px 34px rgba(25, 61, 40, 0.07);
  --amount-bg: linear-gradient(180deg, #f4f5e9, #e4ecdc); --amount-border: 2px solid #6f8c61; --amount-text: #174532; --amount-shadow: 0 3px 0 rgba(176, 185, 135, 0.13);
  --primary-bg: #185941; --primary-text: #fff9eb; --primary-border: 1px solid #124430; --secondary-bg: #fffaf0; --secondary-text: #25573e; --secondary-border: 2px solid #bda36a;
  --success-bg: #e0ebd6; --success-text: #245a3a; --footer-bg: #f3efdf; --footer-top: 3px double #b79c5f; --footer-text: #5f5a50; --input-border: 2px solid #6f8c61;
  --lang-on-bg: #fff7e6; --lang-on-fg: #164c3b; --lang-off-border: rgba(238, 230, 210, 0.55); --lang-off-fg: #fff7e6; --dv-primary: #185941; --dv-secondary: #213e35;
}
.ks--temple {
  --page: radial-gradient(ellipse at 8% 48%, #ffedc7 0, rgba(255, 237, 199, 0) 48%), #fff9ed; --header-bg: #fff0ce; --header-top: 7px solid #ee9e24; --header-bottom: 2px solid #b98a2a; --header-text: #734018; --glyph: #aa5614;
  --strip-h: 15px; --strip-bg: radial-gradient(ellipse at 50% 0, #d9972c 0 5px, transparent 6px) 0 0 / 30px 15px repeat-x, linear-gradient(90deg, transparent 48%, #c79c4a 49% 51%, transparent 52%) 0 0 / 30px 15px repeat-x, #fff0ce; --strip-border: 1px solid #d8b875;
  --ink: #45301e; --muted: #6b5540; --line: #d9b367; --accent: #8c4a13; --ornament: #b57a1d; --overline: #915018; --title: #914615;
  --welcome-bg: linear-gradient(180deg, #ffe8b6 0, #fff3d7 35%, #fffaf0 80%); --welcome-border: 2px solid #cba04b; --welcome-radius: 145px 145px 14px 14px; --welcome-rings: inset 0 0 0 6px #fff8e6, inset 0 0 0 8px #e3bf76; --welcome-align: center; --welcome-items: center; --welcome-pad: 22px 26px 22px;
  --quote: #6b5540; --quote-style: normal; --quote-font: var(--serif);
  --card-bg: #fffdf5; --card-border: 1px solid #d7b575; --card-top: 6px solid #e9a02f; --card-radius: 14px; --card-shadow: 0 14px 38px rgba(185, 124, 24, 0.08);
  --amount-bg: linear-gradient(180deg, #ffe8b3, #ffda87); --amount-border: 2px solid #b07d24; --amount-text: #593711; --amount-shadow: 0 3px 0 rgba(217, 177, 107, 0.2);
  --primary-bg: #f0a326; --primary-text: #402807; --primary-border: 1px solid #c7861b; --secondary-bg: #fff8e9; --secondary-text: #744012; --secondary-border: 2px solid #cba04c;
  --success-bg: #ffe5ad; --success-text: #805015; --footer-bg: #fff1d2; --footer-top: 3px double #c89d4f; --footer-text: #6b5540; --input-border: 2px solid #b07d24;
  --lang-on-bg: #8c4a13; --lang-on-fg: #fff8ec; --lang-off-border: #b07d24; --lang-off-fg: #734018; --dv-primary: #c7861b; --dv-secondary: #45301e;
}
/* The welcome ornaments: the mosque's arch over its star, the temple's lotus under the Om, the church's cross. */
.ks__arch { position: relative; width: 64px; height: 32px; overflow: hidden; margin-bottom: 4px; }
.ks__arch::before, .ks__arch::after { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid #a1843e; box-sizing: border-box; }
.ks__arch::after { left: 9px; top: 9px; width: 46px; height: 46px; }
.ks__lotus { position: relative; width: 70px; height: 30px; margin-top: 2px; }
.ks__lotus i { position: absolute; bottom: 0; width: 16px; height: 30px; border-radius: 8px; background: #ffd47c; border: 2px solid #b57a1d; box-sizing: border-box; }
.ks__lotus i:nth-child(1) { left: 6px; transform: rotate(-35deg); }
.ks__lotus i:nth-child(2) { left: 27px; height: 34px; }
.ks__lotus i:nth-child(3) { right: 6px; transform: rotate(35deg); }
/* The compact (Tamil) layout gives the card more width. */
.ks--compact { --welcome-grow: 0.55; --card-grow: 1.45; }

/* ------------------------------------------------------------------ ticker */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--purple-900); padding: 0.9rem 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__track { display: flex; gap: 3.5rem; width: max-content; animation: ticker 36s linear infinite; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink-2); }
.ticker__track span::after { content: "·"; margin-left: 3.5rem; color: var(--green); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section--tint { background: var(--purple-900); }
.section__head { text-align: center; max-width: 46rem; margin: 0 auto clamp(2.5rem, 5vw, 4rem); }
.section__head .lead { margin-inline: auto; }
.section__head--left { text-align: left; margin-inline: 0; }

/* How it works */
.steps { position: relative; }
.steps__line { position: absolute; left: 10%; right: 10%; top: 70px; width: 80%; height: 60px; overflow: visible; }
.steps__line path { fill: none; stroke: url(#steps-grad); stroke: var(--green); stroke-width: 2; stroke-dasharray: 6 10; opacity: 0.5; stroke-dashoffset: 1200; transition: stroke-dashoffset 2.2s var(--ease); }
.steps.is-in .steps__line path { stroke-dashoffset: 0; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; position: relative; }
.step { position: relative; padding: 2.2rem 1.6rem 1.6rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); text-align: center; }
.step__num { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: var(--purple-900); font: 800 1rem var(--font-display); }
.step .icon--lg { color: var(--green); margin: 0.6rem auto 1rem; width: 2.6rem; height: 2.6rem; }
.step p { color: var(--ink-2); margin: 0; }

/* Features */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.feature {
  position: relative; padding: 1.6rem 1.4rem 1.4rem; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)); border: 1px solid var(--line);
  transform-style: preserve-3d; transition: border-color 0.3s;
}
.feature:hover { border-color: rgba(8, 253, 161, 0.45); }
.feature .icon { width: 2rem; height: 2rem; color: var(--green); margin-bottom: 1rem; }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--ink-2); font-size: 0.98rem; margin: 0; }
/* Cursor-following glare for tilt cards. --mx/--my are set by the script. */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.18s ease-out, border-color 0.3s; }
.tilt::after { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.14), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.tilt:hover::after { opacity: 1; }

/* Receipts (the light section) */
/* overflow hidden: the receipt's paper plane flies out of the section on its way, and must not widen the page. */
.section--paper { background: var(--paper); color: var(--paper-ink); overflow: hidden; }
.section--paper .lead, .section--paper .checks div { color: var(--paper-ink-2); }
.section--paper .eyebrow { color: #06a36e; }
.section--paper .checks .icon { background: var(--purple-800); color: var(--green); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.checks li { display: flex; gap: 0.9rem; align-items: flex-start; }
.checks .icon { width: 1.7rem; height: 1.7rem; padding: 0.3rem; border-radius: 50%; background: rgba(8, 253, 161, 0.15); color: var(--green); stroke-width: 2.6; }
.checks b { color: inherit; }
.checks--tight { gap: 0.7rem; margin-top: 1.5rem; }

.mock { position: relative; background: #fff; border-radius: 18px; box-shadow: 0 30px 80px rgba(27, 10, 85, 0.18); border: 1px solid #e6e2fa; overflow: visible; }
.mock__bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #efecfb; }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3dff8; }
.mock__head { display: flex; gap: 12px; padding: 16px 18px 8px; align-items: center; }
.mock__avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--purple-800); color: #fff; display: grid; place-items: center; font: 700 0.9rem var(--font-display); flex: none; }
.mock__from { font-weight: 700; }
.mock__from span { color: var(--paper-ink-2); font-weight: 400; font-size: 0.9rem; }
.mock__subject { color: var(--paper-ink-2); font-size: 0.92rem; }
.mock__body { padding: 8px 18px 20px; font-size: 0.98rem; }
.mock__meta { color: var(--paper-ink-2); font-size: 0.88rem; }
.mock__fine { font-size: 0.8rem; color: #7a74a3; margin: 0; }
.mock__chip { position: absolute; right: -14px; top: -14px; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--grad); color: var(--purple-900); font: 700 0.85rem var(--font-display); transform: scale(0); transition: transform 0.5s var(--ease) 0.9s; }
.mock__chip .icon { stroke-width: 3; width: 1rem; height: 1rem; }
.mock__plane { position: absolute; left: -30px; bottom: 30px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-800); color: var(--green); box-shadow: 0 10px 30px rgba(27, 10, 85, 0.3); transition: transform 1s var(--ease), opacity 0.4s 0.7s; }
.mock.is-sent .mock__chip { transform: scale(1); }
.mock.is-sent .mock__plane { transform: translate(420px, -300px) rotate(20deg); opacity: 0; }

/* Calculator */
.calc { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2rem; padding: 2rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.calc__inputs { display: grid; gap: 1.6rem; align-content: center; }
.range { display: grid; gap: 0.7rem; }
.range__label { display: flex; justify-content: space-between; font-weight: 700; }
.range__label output { font-family: var(--font-display); color: var(--green); }
.range input { width: 100%; accent-color: var(--green); cursor: pointer; }
.calc__outputs { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 0.9rem; align-items: stretch; }
.calc__tile { padding: 1.2rem 1rem; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.calc__tile span { color: var(--ink-3); font-size: 0.9rem; }
.calc__tile b { font: 800 1.5rem var(--font-display); margin-top: 0.3rem; font-variant-numeric: tabular-nums; }
.calc__tile--hero { background: var(--grad); color: var(--purple-900); border: 0; }
.calc__tile--hero span { color: rgba(27, 10, 85, 0.7); }
.calc__tile--hero b { font-size: 2rem; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.trust__item { padding: 1.8rem 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); }
.trust__item .icon { width: 2.2rem; height: 2.2rem; color: var(--cyan); margin-bottom: 1rem; }
.trust__item p { color: var(--ink-2); margin: 0; }

/* FAQ */
.faq { display: grid; gap: 0.8rem; }
.faq__item { border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.04); overflow: hidden; }
.faq__item summary { list-style: none; cursor: pointer; padding: 1.1rem 3.2rem 1.1rem 1.3rem; font: 700 1.08rem var(--font-display); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: var(--green); font-weight: 400; font-size: 1.3rem; transition: transform 0.3s var(--ease), background-color 0.3s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--green); color: var(--purple-900); }
.faq__body { padding: 0 1.3rem 1.2rem; color: var(--ink-2); animation: faq-in 0.35s var(--ease); }
.faq__body p { margin: 0; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* Contact */
.section--contact { background: radial-gradient(90% 80% at 80% 100%, rgba(77, 43, 208, 0.55), transparent 60%), var(--purple-900); }
.split--contact { align-items: start; }
.form { display: grid; gap: 1rem; padding: 1.8rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); position: relative; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.4rem; font-weight: 600; font-size: 0.95rem; color: var(--ink-2); }
.field input, .field textarea { width: 100%; padding: 0.85rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(10, 2, 40, 0.35); color: var(--ink); font: 400 1rem var(--font-body); transition: border-color 0.2s, box-shadow 0.2s; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(8, 253, 161, 0.2); }
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__submit { justify-self: start; }
.form__error { color: #ffb4c2; margin: 0; font-weight: 600; }
.form__done { position: absolute; inset: 0; border-radius: var(--radius); background: var(--purple-900); display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; animation: ks-in 0.5s var(--ease); }
.form__done .icon--lg { width: 3.4rem; height: 3.4rem; padding: 0.7rem; border-radius: 50%; background: var(--grad); color: var(--purple-900); stroke-width: 3; margin-bottom: 1rem; }
.form__done p { color: var(--ink-2); margin: 0; }
.form.is-sent .form__done { display: flex; }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--purple-950); padding: 3.5rem 0 2rem; border-top: 1px solid var(--line); }
.footer__inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer__brand img { width: 281px; height: auto; margin-bottom: 1rem; }
.footer__brand p { color: var(--ink-3); margin: 0; max-width: 24rem; }
.footer__links { display: grid; gap: 0.6rem; }
.footer__links a { text-decoration: none; color: var(--ink-2); }
.footer__links a:hover { color: var(--green); }
.footer__legal { color: var(--ink-3); font-size: 0.88rem; margin: 2.5rem auto 0; }

/* ------------------------------------------------------------------ motion helpers */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease) var(--delay, 0s), transform 0.8s var(--ease) var(--delay, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }

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

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 940px) {
  .steps__line { display: none; }
  .steps__list { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
  .split { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; max-width: 34rem; margin-inline: auto; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 1rem 1.2rem;
    background: rgba(18, 5, 61, 0.97); border-bottom: 1px solid var(--line); transform: translateY(calc(-100% - var(--nav-h))); transition: transform 0.35s var(--ease);
  }
  .nav__links a { padding: 0.85rem 0.4rem; }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 0.6rem; justify-content: center; }
  .nav.is-open .nav__links { transform: none; }
  .nav__burger { display: block; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .calc__outputs { grid-template-columns: 1fr; }
  .demo__turn { display: block; }
  .hero .eyebrow__dot { display: none; } /* the dot sits oddly beside a wrapped line on a phone */
  .footer__brand img { width: 220px; }
  .brand__logo { height: 28px; }
}

/* ------------------------------------------------------------------ the 404 page */
.not-found-title { margin-top: 2rem; }
