/* Prime HELOC — theme.css
   Warm home-equity-at-night system: deep teal dusk + amber window light.
   Naming: BEM-ish (block__element--modifier). */

:root {
  --sky-deep: #04171b;
  --sea: #0a2b2c;
  --sea-2: #0d3536;
  --sea-3: #124442;
  --sea-4: #1a5450;
  --line-warm: rgba(244, 216, 170, 0.16);
  --line-warm-strong: rgba(244, 216, 170, 0.32);
  --amber: #f2a950;
  --amber-2: #ffc987;
  --amber-deep: #d98324;
  --glow: rgba(242, 169, 80, 0.32);
  --ink: #f4ecdd;
  --ink-dim: #cbbfa8;
  --ink-faint: #9a917d;
  --r: 24px;
  --r-sm: 14px;
  --shadow-warm: 0 24px 60px -24px rgba(10, 4, 0, 0.55), 0 4px 18px -6px rgba(30, 12, 0, 0.35);
  --ease-soft: cubic-bezier(0.22, 0.8, 0.3, 1);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background:
    radial-gradient(110% 46% at 50% 0%, rgba(242, 169, 80, 0.05), transparent 62%),
    linear-gradient(180deg, var(--sea) 0%, #092a2c 38%, #082428 72%, #051b21 100%);
  background-color: var(--sea);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain over everything — kills the flat-render look */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: var(--amber-2); text-decoration: none; }
a:hover { color: var(--ink); }

::selection { background: var(--amber-deep); color: #fff8ec; }

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

.wrap { width: min(1120px, 100% - 3rem); margin-inline: auto; }

/* ---------- header ---------- */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  transition: background 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
}
.top--solid {
  background: rgba(6, 26, 28, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-warm);
}
.top__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}
.top__brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); }
.top__brand:hover { color: var(--ink); }
.top__mark { width: 40px; height: 34px; flex: none; }
.top__word {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: 0.10em;
}
.top__word span { color: var(--amber-2); }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav__link {
  color: var(--ink-dim);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--ink); }
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-warm-strong);
  border-radius: 10px;
  color: var(--ink);
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 0;
}
.nav__toggle svg { margin: auto; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.7rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft),
    background 0.25s, color 0.25s, border-color 0.25s;
}
.btn--amber {
  background: linear-gradient(180deg, var(--amber-2), var(--amber));
  color: #2b1602;
  box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px var(--glow), 0 0 0 1px rgba(255, 201, 135, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #2b1602;
}
.btn--ghost {
  background: rgba(244, 236, 221, 0.04);
  border-color: var(--line-warm-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--amber-2);
  box-shadow: 0 0 24px -6px var(--glow);
  transform: translateY(-2px);
  color: var(--ink);
}
.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-deep) 0%, #0a2f31 55%, #123f3c 78%, var(--sea) 100%);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__cloud {
  position: absolute;
  width: 55vw;
  height: 16vw;
  min-width: 420px;
  min-height: 120px;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.14;
  background: radial-gradient(ellipse at center, #ffd9a3 0%, rgba(255, 217, 163, 0) 70%);
  pointer-events: none;
  z-index: 1;
}
.hero__cloud--a { top: 14%; left: -12%; opacity: 0.26; animation: cloud-drift 90s ease-in-out infinite alternate; }
.hero__cloud--b { top: 30%; right: -18%; opacity: 0.18; animation: cloud-drift 120s ease-in-out infinite alternate-reverse; }
@keyframes cloud-drift {
  from { transform: translateX(0); }
  to { transform: translateX(9vw); }
}

/* readability scrim behind the centered copy — lets the scene stay bright at the edges */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(52% 46% at 50% 46%, rgba(3, 14, 18, 0.6), rgba(3, 14, 18, 0.24) 58%, transparent 78%);
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 7.5rem 0 5.5rem;
}
.hero__kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-2);
  background: rgba(242, 169, 80, 0.10);
  border: 1px solid rgba(242, 169, 80, 0.28);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  margin-bottom: 1.6rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero__title {
  font-size: clamp(3.4rem, 7.5vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 19ch;
  margin-inline: auto;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(3, 14, 18, 0.55), 0 8px 60px rgba(3, 14, 18, 0.45);
}
.hero__title em {
  font-style: italic;
  color: var(--amber-2);
  text-shadow: 0 2px 18px rgba(3, 14, 18, 0.55), 0 0 46px rgba(242, 169, 80, 0.45);
}
.hero__sub {
  max-width: 56ch;
  margin: 1.6rem auto 0;
  color: var(--ink-dim);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  text-wrap: balance;
  text-shadow: 0 1px 12px rgba(3, 14, 18, 0.6);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.4rem;
}
.hero__fine {
  margin-top: 1.4rem;
  font-size: 0.86rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.hero__fine b { color: var(--ink-dim); font-weight: 500; }

/* ---------- shared band ---------- */

.band { position: relative; padding: 5.5rem 0; }
/* per-section atmosphere — alternating warm/teal light-fields so no stretch reads flat */
main > .band:nth-of-type(even) {
  background:
    radial-gradient(52% 64% at 88% 4%, rgba(242, 169, 80, 0.075), transparent 66%),
    radial-gradient(46% 70% at 4% 96%, rgba(26, 84, 80, 0.4), transparent 68%);
}
main > .band:nth-of-type(odd) {
  background:
    radial-gradient(50% 62% at 8% 2%, rgba(242, 169, 80, 0.06), transparent 64%),
    radial-gradient(48% 72% at 94% 92%, rgba(26, 84, 80, 0.38), transparent 70%);
}
.band--panel .wrap {
  background: linear-gradient(165deg, var(--sea-2), rgba(13, 53, 54, 0.35));
  border: 1px solid var(--line-warm);
  border-radius: var(--r);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow-warm);
}
.band__head { max-width: 640px; margin-bottom: 3rem; }
.band__head--center { margin-inline: auto; text-align: center; }
.band__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9rem;
}
.band__title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); text-wrap: balance; }
.band__lede { margin-top: 1.1rem; color: var(--ink-dim); font-size: 1.08rem; }

/* ---------- HELOC explainer ---------- */

.explain { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.explain__copy p + p { margin-top: 1.1rem; }
.explain__copy p { color: var(--ink-dim); }
.explain__copy strong { color: var(--ink); font-weight: 600; }

.meter {
  background: rgba(4, 23, 27, 0.55);
  border: 1px solid var(--line-warm);
  border-radius: var(--r);
  padding: 2rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.meter__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
}
.meter__track {
  height: 22px;
  border-radius: 999px;
  background: var(--sea-3);
  border: 1px solid var(--line-warm);
  overflow: hidden;
}
.meter__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber), var(--amber-2));
  box-shadow: 0 0 18px var(--glow);
  transition: width 0.2s linear;
}
.meter__read {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--ink-dim);
}
.meter__read output { color: var(--amber-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.meter__points { list-style: none; margin-top: 1.8rem; display: grid; gap: 0.9rem; }
.meter__points li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--ink-dim);
  font-size: 0.97rem;
}
.meter__points li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--glow);
  transform: translateY(-1px);
}
.meter__points b { color: var(--ink); font-weight: 600; }

/* ---------- products ---------- */

.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.pcard {
  position: relative;
  background: linear-gradient(170deg, var(--sea-2), rgba(13, 53, 54, 0.4));
  border: 1px solid var(--line-warm);
  border-radius: var(--r);
  padding: 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft), border-color 0.3s;
}
.pcard:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 169, 80, 0.45);
  box-shadow: 0 22px 50px -18px var(--glow), var(--shadow-warm);
}
.pcard--flag {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(150deg, #143f3c, #0d3536 55%, rgba(242, 169, 80, 0.07));
  border-color: rgba(242, 169, 80, 0.35);
}
.pcard__tag {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2b1602;
  background: linear-gradient(180deg, var(--amber-2), var(--amber));
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.pcard__name { font-size: 1.28rem; }
.pcard--flag .pcard__name { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.pcard__meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--amber-2);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.pcard__meta span + span::before {
  content: "·";
  margin-right: 1rem;
  color: var(--ink-faint);
}
.pcard__desc { color: var(--ink-dim); font-size: 0.97rem; }
.pcard__cta { margin-top: auto; padding-top: 0.6rem; font-size: 0.92rem; font-weight: 600; }
.pcard__cta::after { content: " →"; }
.pcard__side { display: grid; gap: 0.8rem; }
.pcard__stat {
  background: rgba(4, 23, 27, 0.45);
  border: 1px solid var(--line-warm);
  border-radius: var(--r-sm);
  padding: 0.9rem 1.2rem;
  font-size: 0.93rem;
  color: var(--ink-dim);
}
.pcard__stat b { display: block; font-size: 1.25rem; color: var(--amber-2); font-family: var(--font-display); }

/* ---------- steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.steps__item {
  position: relative;
  background: rgba(4, 23, 27, 0.4);
  border: 1px solid var(--line-warm);
  border-radius: var(--r);
  padding: 2.2rem 1.8rem 1.8rem;
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft), border-color 0.3s;
}
.steps__item:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 169, 80, 0.4);
  box-shadow: 0 18px 44px -18px var(--glow);
}
.steps__item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--amber);
  opacity: 0.85;
  display: block;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 24px var(--glow);
}
.steps__name { font-size: 1.22rem; margin-bottom: 0.55rem; }
.steps__body { color: var(--ink-dim); font-size: 0.97rem; }

/* ---------- why ---------- */

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.why__fact {
  border-left: 2px solid var(--amber);
  padding: 0.4rem 0 0.4rem 1.3rem;
}
.why__num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--amber-2);
  line-height: 1.2;
}
.why__what { color: var(--ink-dim); font-size: 0.95rem; margin-top: 0.3rem; }

/* ---------- faq ---------- */

.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 0.9rem; }
.faq__item {
  background: linear-gradient(170deg, var(--sea-2), rgba(13, 53, 54, 0.35));
  border: 1px solid var(--line-warm);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq__item[open] { border-color: rgba(242, 169, 80, 0.4); }
.faq__q {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  flex: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--amber);
  line-height: 1;
  transition: transform 0.25s var(--ease-soft);
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 1.4rem 1.3rem; color: var(--ink-dim); font-size: 0.99rem; }

/* ---------- cta band ---------- */

.cta {
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 115%, rgba(242, 169, 80, 0.16), transparent 70%),
    linear-gradient(180deg, var(--sea-2), #0a2f30);
  border: 1px solid var(--line-warm);
  border-radius: var(--r);
  padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  box-shadow: var(--shadow-warm);
}
.cta__title { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 22ch; margin-inline: auto; text-wrap: balance; }
.cta__sub { color: var(--ink-dim); margin: 1rem auto 2rem; max-width: 52ch; }
.cta__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }

/* ---------- footer ---------- */

.foot {
  margin-top: 5rem;
  background:
    radial-gradient(64% 130% at 50% 0%, rgba(242, 169, 80, 0.07), transparent 58%),
    radial-gradient(42% 90% at 88% 100%, rgba(18, 68, 66, 0.55), transparent 72%),
    linear-gradient(180deg, #051d22, #030f14);
  border-top: 1px solid var(--line-warm);
  padding: 4rem 0 2.5rem;
  font-size: 0.94rem;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.foot__brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); margin-bottom: 0.9rem; }
.foot__tag { color: var(--ink-dim); max-width: 30ch; }
.foot__h {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.foot__list { list-style: none; display: grid; gap: 0.55rem; }
.foot__list a { color: var(--ink-dim); }
.foot__list a:hover { color: var(--amber-2); }
.foot__contact { color: var(--ink-dim); font-style: normal; display: grid; gap: 0.55rem; }
.foot__contact a { color: var(--ink-dim); }
.foot__contact a:hover { color: var(--amber-2); }
.foot__legal {
  border-top: 1px solid var(--line-warm);
  padding-top: 1.8rem;
  color: var(--ink-faint);
  font-size: 0.85rem;
  display: grid;
  gap: 1rem;
}
.foot__legal strong { color: var(--ink-dim); }

/* ---------- sticky mobile pill ---------- */

.pill {
  position: fixed;
  left: 50%;
  bottom: 1.1rem;
  transform: translate(-50%, 130%);
  z-index: 50;
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, var(--amber-2), var(--amber));
  color: #2b1602;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  box-shadow: 0 14px 40px -8px rgba(242, 169, 80, 0.55), 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s var(--ease-soft);
  white-space: nowrap;
}
.pill--show { transform: translate(-50%, 0); }
.pill:hover { color: #2b1602; }

/* ---------- forms (apply / unsubscribe) ---------- */

.page-head {
  padding: 9rem 0 3rem;
  background:
    radial-gradient(70% 90% at 50% -20%, rgba(242, 169, 80, 0.17), transparent 70%),
    radial-gradient(40% 70% at 90% 100%, rgba(26, 84, 80, 0.45), transparent 70%),
    linear-gradient(180deg, var(--sky-deep), var(--sea));
  text-align: center;
}
.page-head__title { font-size: clamp(2.1rem, 5vw, 3.3rem); text-wrap: balance; }
.page-head__sub { color: var(--ink-dim); max-width: 56ch; margin: 1.1rem auto 0; }

.apply { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.apply__aside { position: sticky; top: 6.5rem; display: grid; gap: 1.1rem; }
.apply__note {
  background: rgba(4, 23, 27, 0.45);
  border: 1px solid var(--line-warm);
  border-radius: var(--r);
  padding: 1.6rem;
}
.apply__note h2 { font-size: 1.2rem; margin-bottom: 0.9rem; }
.apply__next { list-style: none; display: grid; gap: 1rem; counter-reset: n; }
.apply__next li { display: flex; gap: 0.9rem; color: var(--ink-dim); font-size: 0.96rem; }
.apply__next li::before {
  counter-increment: n;
  content: counter(n);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(242, 169, 80, 0.14);
  border: 1px solid rgba(242, 169, 80, 0.4);
  color: var(--amber-2);
  font-weight: 600;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}
.apply__next b { color: var(--ink); font-weight: 600; }

.form {
  background: linear-gradient(165deg, var(--sea-2), rgba(13, 53, 54, 0.4));
  border: 1px solid var(--line-warm);
  border-radius: var(--r);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-warm);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__group { margin-bottom: 1.15rem; }
.form__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.form__label small { color: var(--ink-faint); font-weight: 400; }
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  background: rgba(4, 23, 27, 0.55);
  border: 1px solid var(--line-warm-strong);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  padding: 0.8rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form__select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f2a950' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 169, 80, 0.18);
}
.form__input::placeholder,
.form__textarea::placeholder { color: var(--ink-faint); }
.form__err {
  display: none;
  color: #ffb08a;
  font-size: 0.83rem;
  margin-top: 0.35rem;
}
.form__group--bad .form__err { display: block; }
.form__group--bad .form__input,
.form__group--bad .form__select { border-color: #e0764a; }
.form__fine { font-size: 0.83rem; color: var(--ink-faint); margin-top: 1rem; }
.form__done {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
}
.form__done h2 { font-size: 1.6rem; margin-bottom: 0.7rem; }
.form__done p { color: var(--ink-dim); }
.form__done svg { margin: 0 auto 1.2rem; }
.form--sent .form__done { display: block; }
.form--sent .form__body { display: none; }

/* honeypot — humans never see or reach this */
.hp-wrap { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }

/* ---------- legal pages ---------- */

.legal { max-width: 760px; margin-inline: auto; padding: 3.5rem 0 2rem; }
.legal h2 { font-size: 1.45rem; margin: 2.4rem 0 0.8rem; }
.legal p, .legal li { color: var(--ink-dim); }
.legal ul { padding-left: 1.3rem; margin: 0.6rem 0 1rem; }
.legal p + p { margin-top: 0.9rem; }
.legal__date { color: var(--ink-faint); font-size: 0.9rem; }

/* ---------- 404 ---------- */

.lost {
  min-height: 82svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem 0 4rem;
}
.lost__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  color: var(--amber);
  text-shadow: 0 0 60px var(--glow);
  line-height: 1;
}
.lost__msg { font-size: 1.25rem; margin: 1rem 0 2rem; color: var(--ink-dim); }
.lost__row { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

/* ---------- reveal ---------- */

.r { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft); }
.r--in { opacity: 1; transform: none; }
.r--d1 { transition-delay: 0.08s; }
.r--d2 { transition-delay: 0.16s; }
.r--d3 { transition-delay: 0.24s; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .pgrid { grid-template-columns: 1fr 1fr; }
  .pcard--flag { grid-column: span 2; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .explain { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 1rem; }
  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 66px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(4, 23, 27, 0.97);
    border-bottom: 1px solid var(--line-warm);
    padding: 0.5rem 1.5rem 1.5rem;
    display: none;
  }
  .nav--open { display: flex; }
  .nav__link { padding: 0.9rem 0.2rem; font-size: 1.05rem; border-bottom: 1px solid rgba(244, 216, 170, 0.08); }
  .nav .btn { margin-top: 1rem; }
  .nav__toggle { display: inline-flex; }
  .pgrid { grid-template-columns: 1fr; }
  .pcard--flag { grid-column: span 1; grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; gap: 1.6rem; }
  .foot__grid { grid-template-columns: 1fr; gap: 2rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .apply { grid-template-columns: 1fr; }
  .apply__aside { position: static; order: 2; }
  .pill { display: inline-flex; }
  .band { padding: 3.5rem 0; }
  .hero__inner { padding: 7.5rem 0 6rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .r { opacity: 1; transform: none; }
  .hero__cloud { animation: none; }
  .pill { transition: none; }
}
