/* Lucensys — site styles */

:root {
  --ink: #161a3d;
  --indigo: #2b2f8f;
  --indigo-700: #22266f;
  --night: #11143a;
  --night-2: #1a1e4d;
  --marigold: #f4b43a;
  --marigold-600: #e09a17;
  --paper: #f5f6fa;
  --white: #ffffff;
  --line: #dcdfec;
  --line-dark: #2c3170;
  --muted: #555a78;
  --muted-dark: #b6badb;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  --t-small: 0.875rem;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.125rem, 1.6vw, 1.3125rem);
  --t-h4: 1.25rem;
  --t-h3: clamp(1.375rem, 2vw, 1.625rem);
  --t-h2: clamp(2rem, 3.6vw, 2.875rem);
  --t-h1: clamp(2.5rem, 5.6vw, 4.25rem);

  --r-sm: 8px;
  --r-md: 14px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: var(--t-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); letter-spacing: -0.01em; }

p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--indigo); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--marigold); color: var(--ink);
  padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */

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

.section { padding-block: clamp(72px, 9vw, 128px); }
.section-tight { padding-block: clamp(56px, 6vw, 88px); }
.bg-paper { background: var(--paper); }
.bg-night { background: var(--night); color: var(--white); }
.bg-indigo { background: var(--indigo); color: var(--white); }

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--muted);
  max-width: 38em;
}
.bg-night .lead, .bg-indigo .lead { color: var(--muted-dark); }
.bg-indigo .lead { color: #d6d8f3; }

.measure { max-width: 40em; }

.section-head { max-width: 46rem; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--indigo); color: var(--white); }
.btn-primary:hover { background: var(--indigo-700); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-marigold { background: var(--marigold); color: var(--ink); }
.btn-marigold:hover { background: #ffc85c; }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  font-weight: 600;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--marigold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 1.625rem;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.logo-dot {
  display: inline-block;
  width: 0.26em; height: 0.26em;
  margin-left: 0.06em;
  border-radius: 50%;
  background: var(--marigold);
}
.logo:hover { text-decoration: none; }
.logo-light { color: var(--white); }

.nav { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--line); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--marigold); }
.nav .btn { min-height: 44px; padding: 10px 18px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle-bars { display: block; width: 24px; height: 14px; position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, top .2s ease;
}
.nav-toggle-bars::before { top: 2px; }
.nav-toggle-bars::after { top: 10px; }
.nav-open .nav-toggle-bars::before { top: 6px; transform: rotate(45deg); }
.nav-open .nav-toggle-bars::after { top: 6px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px var(--gutter) 28px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(17,20,58,.25);
    display: none;
  }
  .nav-open .nav { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--line); color: var(--indigo); }
  .nav .btn { margin-top: 12px; }
}

/* ---------- Hero (home) ---------- */

.hero { padding-block: clamp(48px, 7vw, 104px) clamp(72px, 9vw, 120px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero h1 { max-width: 11.5em; margin-bottom: 0.4em; }
.hero .lead { margin-bottom: 36px; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Conversation demo */

.demo {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 40px 80px -40px rgba(17,20,58,.35), 0 2px 6px rgba(17,20,58,.04);
  overflow: hidden;
}
.demo-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.demo-avatar {
  width: 36px; height: 36px; flex: none;
  border-radius: 50%;
  background: var(--indigo);
  display: grid; place-items: center;
}
.demo-avatar span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--marigold);
}
.demo-title { font-weight: 600; font-size: .9375rem; line-height: 1.3; }
.demo-status { font-size: .8125rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.demo-status::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2bb673;
}
.demo-body {
  padding: 24px 20px 8px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    linear-gradient(var(--white), var(--white)) padding-box;
}
.bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: .9875rem;
  line-height: 1.5;
}
.bubble-user {
  align-self: flex-end;
  background: var(--indigo);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.bubble-bot {
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  min-height: 48px;
}
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i {
  width: 7px; height: 7px; border-radius: 50%; background: #9a9fbe;
  animation: blink 1.1s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.demo-caption {
  margin: 0;
  padding: 14px 20px 18px;
  font-size: .875rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  min-height: 3.4em;
}
.demo-progress { display: flex; gap: 6px; padding: 0 20px 20px; }
.demo-progress button {
  flex: 1;
  height: 4px;
  border: 0;
  padding: 0;
  border-radius: 4px;
  background: var(--line);
  cursor: pointer;
  position: relative;
}
.demo-progress button[aria-current="true"] { background: var(--marigold); }
.demo-progress button::after { content: ""; position: absolute; inset: -10px 0; }

.fade-in { animation: fadeIn .35s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Trust strip ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.fact { padding: 28px 28px 4px 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact h3 { font-size: 1.125rem; margin-bottom: 6px; letter-spacing: -0.01em; }
.fact p { color: var(--muted); font-size: .9875rem; margin: 0; }

@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 20px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* ---------- Services ---------- */

.service-list { list-style: none; }
.service {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px clamp(32px, 6vw, 96px);
  padding-block: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { margin: 0; max-width: 12em; }
.service-body p { color: var(--muted); max-width: 36em; }
.service-body p:last-child { margin-bottom: 0; }

.ticks { list-style: none; display: grid; gap: 8px; margin-top: 18px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: "";
  position: absolute; left: 2px; top: .55em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--indigo);
  border-bottom: 2px solid var(--indigo);
  transform: rotate(-45deg);
}
.bg-night .ticks li::before, .bg-indigo .ticks li::before { border-color: var(--marigold); }
.ticks.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }

@media (max-width: 760px) {
  .service { grid-template-columns: 1fr; }
  .ticks.two-col { grid-template-columns: 1fr; }
}

/* ---------- Process ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  counter-reset: step;
}
.step { counter-increment: step; position: relative; padding-top: 64px; }
.step::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font-weight: 700;
}
.step::after {
  content: "";
  position: absolute; top: 22px; left: 56px; right: -12px;
  height: 2px; background: var(--line);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .9875rem; margin: 0; }

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .step::after { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Campus spotlight & mockups ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  border: 1px solid var(--line-dark);
  color: var(--muted-dark);
  margin-bottom: 24px;
}
.status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--marigold);
  box-shadow: 0 0 0 4px rgba(244,180,58,.18);
}
.status-light { border-color: var(--line); color: var(--muted); }

.campus-word {
  font-size: clamp(3.5rem, 9vw, 7rem);
  letter-spacing: -0.06em;
  line-height: .9;
  margin-bottom: 24px;
}

/* School brand variables, set by JS per sample school */
.mock {
  --s-primary: #0f5e4e;
  --s-primary-ink: #ffffff;
  --s-accent: #e8b04b;
  --s-crest-radius: 50%;
  position: relative;
  min-height: 560px;
}

.site-frame {
  position: absolute;
  top: 24px; left: 0;
  width: min(440px, 82%);
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.45);
  color: var(--ink);
}
.site-bar { height: 28px; background: #eceef5; display: flex; align-items: center; padding: 0 12px; gap: 6px; }
.site-bar i { width: 8px; height: 8px; border-radius: 50%; background: #c9cde0; }
.site-nav {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #eceef5;
  font-size: .75rem;
}
.site-nav strong { font-size: .8125rem; letter-spacing: -0.01em; }
.site-nav span { margin-left: auto; color: var(--muted); }
.site-hero {
  background: var(--s-primary);
  color: var(--s-primary-ink);
  padding: 28px 18px 32px;
  transition: background-color .35s ease;
}
.site-hero small { display: block; font-size: .6875rem; opacity: .8; margin-bottom: 6px; }
.site-hero b { display: block; font-size: 1.25rem; line-height: 1.15; max-width: 11em; letter-spacing: -0.02em; }
.site-hero em {
  display: inline-block; margin-top: 14px;
  font-style: normal; font-size: .6875rem; font-weight: 600;
  background: var(--s-accent); color: #1b1b1b;
  padding: 6px 10px; border-radius: 4px;
  transition: background-color .35s ease;
}
.site-rows { padding: 14px 16px 18px; display: grid; gap: 8px; }
.site-rows i { display: block; height: 8px; border-radius: 4px; background: #eceef5; }
.site-rows i:nth-child(2) { width: 80%; }
.site-rows i:nth-child(3) { width: 60%; }

.phone {
  position: absolute;
  right: 0; bottom: 0;
  width: 264px;
  aspect-ratio: 9 / 18.5;
  padding: 9px;
  border-radius: 40px;
  background: #0a0c26;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08);
  color: var(--ink);
}
.screen {
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #f4f5f8;
  display: flex;
  flex-direction: column;
  font-size: .75rem;
}
.app-head {
  background: var(--s-primary);
  color: var(--s-primary-ink);
  padding: 34px 16px 18px;
  transition: background-color .35s ease;
}
.app-brand { display: flex; align-items: center; gap: 10px; }
.crest {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  border-radius: var(--s-crest-radius);
  background: var(--s-accent);
  color: #1b1b1b;
  font-weight: 700; font-size: .6875rem; letter-spacing: .02em;
  transition: background-color .35s ease, border-radius .35s ease;
}
.app-name { font-weight: 700; font-size: .8125rem; line-height: 1.2; }
.app-greet { margin-top: 16px; font-size: .75rem; opacity: .85; }
.app-greet b { display: block; font-size: 1rem; opacity: 1; margin-top: 2px; }
.app-body { padding: 14px 12px; display: grid; gap: 10px; flex: 1; align-content: start; }
.app-card {
  background: var(--white);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(17,20,58,.06);
}
.app-card small { display: block; color: var(--muted); font-size: .6875rem; margin-bottom: 2px; }
.app-card b { display: block; font-size: .8125rem; line-height: 1.3; }
.app-fee { display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.app-fee .amount { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em; }
.app-pay {
  background: var(--s-primary); color: var(--s-primary-ink);
  font-weight: 600; font-size: .6875rem;
  padding: 7px 12px; border-radius: 999px;
  transition: background-color .35s ease;
}
.app-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 10px 8px 16px;
  background: var(--white);
  border-top: 1px solid #eceef5;
  font-size: .625rem; color: var(--muted); text-align: center;
}
.app-tabs span::before {
  content: ""; display: block; width: 18px; height: 18px; margin: 0 auto 4px;
  border-radius: 5px; background: #e2e4ee;
}
.app-tabs span:first-child { color: var(--s-primary); font-weight: 600; }
.app-tabs span:first-child::before { background: var(--s-primary); transition: background-color .35s ease; }

@media (max-width: 520px) {
  .mock { min-height: 500px; }
  .site-frame { width: 92%; }
  .phone { width: 220px; }
}

/* Brand switcher */
.switcher { margin-top: 32px; }
.switcher-label { font-size: .9375rem; color: var(--muted-dark); margin-bottom: 12px; }
.switcher-options { display: flex; flex-wrap: wrap; gap: 10px; }
.switcher-options button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  padding: 8px 16px 8px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--white);
  font: inherit; font-size: .9375rem;
  cursor: pointer;
}
.switcher-options button:hover { border-color: var(--muted-dark); }
.switcher-options button[aria-pressed="true"] { border-color: var(--marigold); background: rgba(244,180,58,.08); }
.swatch { width: 22px; height: 22px; border-radius: 6px; flex: none; }
.swatch-a { background: #0f5e4e; }
.swatch-b { background: #7a1f2b; }
.swatch-c { background: #1d4e89; }

/* ---------- Founding schools ---------- */

.founding {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
}
.perks { list-style: none; display: grid; gap: 0; }
.perk { padding: 22px 0; border-top: 1px solid var(--line); }
.perk:last-child { border-bottom: 1px solid var(--line); }
.perk h3 { font-size: 1.1875rem; margin-bottom: 4px; letter-spacing: -0.01em; }
.perk p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .founding { grid-template-columns: 1fr; } }

/* ---------- Feature grid (Campus page) ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 72px);
}
.feature { padding: 32px 0; border-top: 1px solid var(--line); }
.feature h3 { font-size: 1.375rem; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); max-width: 32em; }
@media (max-width: 760px) { .features { grid-template-columns: 1fr; } }

/* ---------- Big statement ---------- */

.statement {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 24em;
  margin: 0;
  text-wrap: balance;
}
.statement-muted { color: var(--muted); }
.bg-night .statement-muted { color: var(--muted-dark); }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { padding-block: clamp(56px, 8vw, 112px) clamp(48px, 6vw, 80px); }
.page-hero h1 { max-width: 13em; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .btn-row { margin-top: 36px; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 48px 22px 0;
  font-weight: 600;
  font-size: 1.125rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 48px 24px 0; color: var(--muted); max-width: 44em; }
.faq .answer p:last-child { margin: 0; }

/* ---------- Forms ---------- */

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) { .form-shell { grid-template-columns: 1fr; } }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  background: var(--white);
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.field { display: grid; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .9375rem; }
.field .optional { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #c4c8dc;
  border-radius: var(--r-sm);
  padding: 12px 14px;
  min-height: 50px;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(43,47,143,.18);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.form .hp { display: none; }
.form-foot {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
}
.form-note { font-size: .875rem; color: var(--muted); margin: 0; flex: 1 1 240px; }
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-weight: 500;
}
.form-status[hidden] { display: none; }
.form-status.ok { background: #e7f6ee; color: #135c37; }
.form-status.err { background: #fdecec; color: #8a1c1c; }

@media (max-width: 600px) { .form { grid-template-columns: 1fr; } }

.contact-aside h2 { font-size: var(--t-h3); }
.contact-aside p { color: var(--muted); }
.contact-steps { list-style: none; counter-reset: c; display: grid; gap: 18px; margin-top: 28px; }
.contact-steps li { counter-increment: c; position: relative; padding-left: 44px; }
.contact-steps li::before {
  content: counter(c);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 700; font-size: .875rem;
}
.contact-steps b { display: block; }
.contact-steps span { color: var(--muted); font-size: .9375rem; }

/* ---------- CTA band ---------- */

.cta-band { padding-block: clamp(72px, 9vw, 120px); }
.cta-band h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); max-width: 14em; letter-spacing: -0.035em; }
.cta-band .lead { margin-bottom: 36px; }

/* ---------- Prose (legal pages) ---------- */

.prose { max-width: 44em; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; letter-spacing: -0.015em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #33385a; }
.prose ul { padding-left: 1.25em; margin: 0 0 1em; display: grid; gap: 6px; }
.prose .updated { color: var(--muted); font-size: .9375rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--night); color: var(--muted-dark); padding-block: 72px 32px; font-size: .9375rem; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid p { max-width: 22em; margin-top: 16px; }
.footer-grid h2 { font-size: 1rem; color: var(--white); letter-spacing: 0; margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--muted-dark); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 28px; font-size: .875rem; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- 404 ---------- */
.not-found { min-height: 60vh; display: grid; align-content: center; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.stack-lg > * + * { margin-top: clamp(40px, 5vw, 64px); }

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

/* ---------- Spacing between composed blocks ---------- */
.ticks + .btn-row { margin-top: 36px; }
.service-list + .text-link { display: inline-block; margin-top: 32px; }
.founding + .form-shell { margin-top: clamp(64px, 8vw, 104px); }
.after { margin: 28px 0 0; }
.split h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
.app-pay { white-space: nowrap; }
@media (max-width: 520px) {
  .app-body .app-card:nth-child(3) { display: none; }
}

.captcha { min-height: 78px; }
