/* Porchlight Claims. One evening sky from top to bottom: night where the house is, daylight where you read. */

:root {
  --night: #15103a;
  --night-2: #23175a;
  --dusk: #5a2f90;
  --ember: #ff7a59;
  --lamp: #ffb938;
  --lamp-soft: #ffe3a8;
  --mist: #f5f2fc;
  --paper: #ffffff;
  --ink: #1c1740;
  --ink-soft: #524c76;
  --line: #ddd6f0;
  --link: #4a2bb8;
  --on-night: #f3effc;
  --on-night-soft: #c3bbe4;

  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --wide: 76rem;
  --text: 40rem;
  --band: clamp(4rem, 9vw, 7.5rem);
  --r-lg: 28px;
  --r-md: 16px;
  --lift: 0 1px 2px rgba(41, 27, 110, .08), 0 18px 44px -18px rgba(41, 27, 110, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 clamp(1.125rem, 1.02rem + .32vw, 1.25rem)/1.62 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.028em;
  word-spacing: 0.06em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.45rem, 6vw, 4.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.95rem, 4.2vw, 3.1rem); line-height: 1.1; }
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.018em; }
p { text-wrap: pretty; }
strong { font-weight: 700; }

a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }
.on-night :focus-visible, .top :focus-visible, .hero :focus-visible { outline-color: #fff; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.flow > * + * { margin-top: 1.1em; }
.flow > h2 + * { margin-top: 1.4rem; }
.measure { max-width: var(--text); }
.band { padding-block: var(--band); }
.band-paper { background: var(--paper); }
.muted { color: var(--ink-soft); }
.small { font-size: 1rem; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--lamp); color: var(--ink); padding: .7rem 1rem; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.5rem; padding: .85rem 1.7rem;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--lamp); color: var(--ink);
  font: 700 1.125rem/1.1 var(--body); text-decoration: none;
  box-shadow: 0 10px 30px -10px rgba(255, 185, 56, .7);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { background: #ffc85c; transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(255, 185, 56, .85); }
.btn:active { transform: translateY(0); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 30px -14px rgba(28, 23, 64, .8); }
.btn-ink:hover { background: #2c2468; box-shadow: 0 16px 36px -14px rgba(28, 23, 64, .9); }
.quiet-link { color: inherit; font-weight: 600; }

/* ---------- top bar ---------- */
.top { position: absolute; inset: 0 0 auto 0; z-index: 20; color: var(--on-night); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none;
  font: 800 1.5rem/1 var(--display); letter-spacing: -0.03em; white-space: nowrap;
}
.brand .mark { width: 2.7rem; height: 2.7rem; flex: none; border-radius: 27%; box-shadow: 0 6px 20px -6px rgba(255, 185, 56, .75); }
.brand-name span { font-weight: 500; color: var(--lamp-soft); }
.top nav ul { display: flex; align-items: center; gap: clamp(.9rem, 2.4vw, 2rem); list-style: none; }
.top nav a { color: var(--on-night); text-decoration: none; font-weight: 600; font-size: 1.05rem; padding: .5rem 0; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .4em; }
.top nav .nav-cta a {
  background: rgba(255, 255, 255, .12); padding: .6rem 1.1rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
}
.top nav .nav-cta a:hover { background: rgba(255, 255, 255, .2); text-decoration: none; }
@media (max-width: 720px) {
  .top nav .nav-extra { display: none; }
  .top nav .nav-cta a { padding: .5rem .9rem; }
  .top nav a { font-size: .98rem; }
  .top nav ul { gap: .75rem; }
  .brand { font-size: 1.05rem; gap: .45rem; }
  .brand .mark { width: 1.9rem; height: 1.9rem; }
}

/* ---------- the sky ---------- */
.sky {
  position: relative; isolation: isolate; color: var(--on-night);
  background: linear-gradient(180deg, #110c31 0%, #1d1450 34%, #40237f 62%, #8a3c8e 82%, #e0637a 94%, #ff9c62 100%);
}
.sky::before {            /* stars, thinning toward the horizon */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 22px 34px, #fff 60%, transparent),
    radial-gradient(1px 1px at 141px 88px, rgba(255,255,255,.9) 60%, transparent),
    radial-gradient(1.6px 1.6px at 97px 162px, #ffe9c2 60%, transparent),
    radial-gradient(1px 1px at 201px 20px, rgba(255,255,255,.7) 60%, transparent),
    radial-gradient(1.2px 1.2px at 60px 120px, rgba(255,255,255,.8) 60%, transparent),
    radial-gradient(1px 1px at 255px 140px, rgba(255,255,255,.75) 60%, transparent);
  background-size: 290px 210px, 370px 250px, 230px 310px, 310px 190px, 410px 270px, 330px 330px;
  -webkit-mask-image: linear-gradient(#000 0%, #000 30%, transparent 68%);
  mask-image: linear-gradient(#000 0%, #000 30%, transparent 68%);
}
.sky a { color: #fff; }
.hill { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 7vw, 110px); z-index: 1; }
.hill path { fill: var(--mist); }

/* ---------- hero ---------- */
.hero { padding-top: 4.6rem; padding-bottom: clamp(4.5rem, 10vw, 9rem); overflow: hidden; }
.hero-in {
  display: grid; gap: 1rem clamp(1rem, 3vw, 3rem); align-items: center;
  grid-template-columns: minmax(0, 1fr);
}
.hero-copy { position: relative; z-index: 2; max-width: 37rem; }
.hero-copy p { margin-top: 1.25rem; color: var(--on-night-soft); font-size: 1.2rem; }
.hero-copy p.promise { color: #fff; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.9rem; }

.hero-stage { position: relative; order: -1; margin-inline: calc(-1 * var(--gutter)); }
.hero-stage::before {       /* the light the lamp throws into the evening */
  content: ""; position: absolute; left: 50%; top: 46%; width: min(120vw, 780px); aspect-ratio: 1;
  transform: translate(-50%, -50%); z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 190, 90, .34), rgba(255, 160, 80, .12) 45%, transparent 72%);
  opacity: 0; transition: opacity .9s ease;
}
html[data-lamp="on"] .hero-stage::before, html:not([data-lamp]) .hero-stage::before { opacity: 1; }
.scene { position: relative; z-index: 1; height: clamp(270px, 37vh, 400px); touch-action: pan-y; cursor: grab; }
.scene.is-grabbing { cursor: grabbing; }
.scene canvas { width: 100%; height: 100%; touch-action: pan-y; }
.no-3d .scene { cursor: default; }
.no-3d .scene::after {      /* no WebGL: a plain lamp glow so the space isn't empty */
  content: ""; position: absolute; left: 50%; top: 50%; width: 5rem; height: 5rem; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--lamp-soft);
  box-shadow: 0 0 60px 30px rgba(255, 190, 90, .55), 0 0 160px 90px rgba(255, 160, 80, .3);
}
.no-3d .stage-bar { display: none; }

.stage-bar {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .6rem 1.2rem; margin-top: -.4rem; padding-inline: var(--gutter);
}
.switch {
  display: inline-flex; align-items: center; gap: .7rem; cursor: pointer;
  min-height: 3rem; padding: .5rem 1rem .5rem .6rem; border-radius: 999px;
  background: rgba(21, 16, 58, .55); border: 1px solid rgba(255, 255, 255, .26); color: #fff;
  font: 600 1rem/1 var(--body); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.switch-track { position: relative; width: 2.9rem; height: 1.7rem; border-radius: 999px; background: rgba(255, 255, 255, .22); transition: background-color .25s ease; }
.switch-track::after {
  content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: #fff; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), box-shadow .25s ease;
}
.switch[aria-checked="true"] .switch-track { background: var(--lamp); }
.switch[aria-checked="true"] .switch-track::after { transform: translateX(1.2rem); box-shadow: 0 0 14px 4px rgba(255, 220, 150, .9); }
.hint { color: var(--on-night-soft); font-size: .98rem; transition: opacity .4s ease; }
.scene.was-turned ~ .stage-bar .hint { opacity: 0; }

@media (min-width: 900px) {
  .hero { padding-top: 6.5rem; }
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); min-height: min(74vh, 700px); }
  .hero-stage { order: 0; margin-inline: 0 calc(-1 * var(--gutter)); }
  .scene { height: clamp(460px, 66vh, 660px); }
  .stage-bar { margin-top: -1.5rem; }
}

/* ---------- where the money comes from ---------- */
.split { display: grid; gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.sale { background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.4rem, 3.4vw, 2.4rem); box-shadow: var(--lift); }
.sale h3 { margin-bottom: 1.3rem; }
.sale-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.sale-row + .sale-row { margin-top: .5rem; }
.sale-row label, .sale-row .lbl { font-weight: 600; }
.sale-row output, .sale-row .val { font: 700 1.5rem/1 var(--display); font-variant-numeric: tabular-nums; }
.sale input[type="range"] {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 3rem; margin: .3rem 0 1rem;
  background: transparent; cursor: pointer; touch-action: pan-y;
}
.sale input[type="range"]::-webkit-slider-runnable-track {
  height: .7rem; border-radius: 999px;
  background: linear-gradient(90deg, var(--ink) var(--pct, 50%), var(--line) var(--pct, 50%));
}
.sale input[type="range"]::-moz-range-track { height: .7rem; border-radius: 999px; background: var(--line); }
.sale input[type="range"]::-moz-range-progress { height: .7rem; border-radius: 999px; background: var(--ink); }
.sale input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 2.3rem; height: 2.3rem; margin-top: -.8rem; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--ink); box-shadow: 0 4px 12px rgba(28, 23, 64, .3);
}
.sale input[type="range"]::-moz-range-thumb {
  width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--paper); border: 4px solid var(--ink);
  box-shadow: 0 4px 12px rgba(28, 23, 64, .3);
}
.sale-bar { display: flex; height: 4.6rem; margin: 1.5rem 0 .7rem; border-radius: var(--r-md); overflow: hidden; background: var(--line); }
.sale-bar > div { min-width: 0; transition: flex-basis .25s ease; }
.sale-bar .owed { flex: 0 0 var(--owed, 20%); background: var(--dusk); }
.sale-bar .left {
  flex: 1 1 0; background: var(--lamp);
  background-image: radial-gradient(120% 140% at 85% 0%, #ffe08f, transparent 60%);
}
.sale-key { display: grid; gap: .55rem; list-style: none; }
.sale-key li { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.sale-key .dot { display: inline-block; width: .85rem; height: .85rem; border-radius: 4px; margin-right: .55rem; }
.sale-key .dot-owed { background: var(--dusk); }
.sale-key .dot-left { background: var(--lamp); }
.sale-key .val { font: 700 1.2rem/1 var(--display); font-variant-numeric: tabular-nums; }
.sale-key .is-left .val { font-size: 1.9rem; }
.sale-note { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 1rem; }

/* ---------- you can do this free ---------- */
.free { background: var(--lamp); color: var(--ink); }
.free h2 { max-width: 20ch; }
.free .split { align-items: start; }
.free a { color: var(--ink); font-weight: 700; }
.free p { font-size: 1.2rem; }
.diy-h { margin-top: clamp(2.4rem, 5vw, 3.6rem); font-size: 1.55rem; }
.diy { display: grid; gap: .8rem; list-style: none; margin-top: 1.2rem; counter-reset: diy; }
@media (min-width: 700px) { .diy { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .diy { grid-template-columns: repeat(4, 1fr); } }
.diy li { counter-increment: diy; background: rgba(255, 255, 255, .5); border-radius: var(--r-md); padding: 1.2rem 1.3rem 1.35rem; }
.diy li::before {
  content: counter(diy); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: .85rem;
  border-radius: 50%; background: var(--ink); color: var(--lamp); font: 800 1.1rem/1 var(--display);
}
.diy b { display: block; font: 700 1.2rem/1.25 var(--display); letter-spacing: -0.018em; }
.diy span { display: block; margin-top: .35rem; font-size: 1.05rem; line-height: 1.5; }
.free .diy-note { margin-top: 1.2rem; font-size: 1.05rem; max-width: var(--text); }

/* ---------- the packet ---------- */
.packet .split { align-items: center; }
.stack {
  position: relative; height: 470px; perspective: 1300px; border-radius: var(--r-lg);
  background: radial-gradient(120% 90% at 20% 10%, #7a4fd0 0%, #4a2a9a 45%, #23175a 100%);
}
.stack-tilt {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(calc(9deg + var(--ty, 0deg))) rotateY(calc(-16deg + var(--tx, 0deg)));
  transition: transform .35s ease-out;
}
.sheet {
  --d: 0;
  position: absolute; left: 50%; top: 50%; width: 252px; height: 336px; margin: -168px 0 0 -150px;
  padding: 1.5rem 1.4rem; border: 0; border-radius: 12px; text-align: left; cursor: pointer;
  background: #fff; color: var(--ink); font: inherit;
  box-shadow: 0 1px 0 rgba(28, 23, 64, .06), 0 30px 50px -20px rgba(10, 6, 40, .7);
  transform: translate3d(calc(var(--d) * 30px), calc(var(--d) * -20px), calc(var(--d) * -70px)) rotateZ(calc(var(--d) * 2.2deg));
  transition: transform .6s cubic-bezier(.2, .85, .25, 1), filter .4s ease;
  filter: brightness(calc(1 - var(--d) * .055));
  z-index: calc(10 - var(--d));
}
.sheet.is-leaving { transform: translate3d(-60px, 40px, 120px) rotateZ(-7deg); }
.sheet-title { display: block; font: 700 1.2rem/1.1 var(--display); letter-spacing: -0.015em; margin-bottom: 1.1rem; }
.sheet i { display: block; height: 9px; border-radius: 5px; background: #e6e0f5; margin-bottom: 13px; }
.sheet i.w9 { width: 92%; } .sheet i.w7 { width: 72%; } .sheet i.w5 { width: 52%; } .sheet i.w4 { width: 40%; }
.sheet i.gold { background: var(--lamp-soft); }
.sheet .tick { display: flex; align-items: center; gap: .6rem; margin-bottom: 13px; }
.sheet .tick::before { content: ""; flex: none; width: 17px; height: 17px; border-radius: 5px; border: 2px solid var(--dusk); }
.sheet .tick.done::before { background: var(--dusk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.sheet .tick i { flex: 1; margin: 0; }
.sheet .num { display: flex; align-items: center; gap: .6rem; margin-bottom: 13px; font: 700 .9rem/1 var(--display); color: var(--dusk); }
.sheet .num i { flex: 1; margin: 0; }
.sheet .sig { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.4rem; border-top: 2px solid var(--ink); padding-top: .35rem; font-size: .8rem; color: var(--ink-soft); }

.parts { display: grid; gap: .6rem; list-style: none; margin-top: 1.6rem; }
.part {
  display: block; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit;
  padding: 1rem 1.2rem; border-radius: var(--r-md); border: 2px solid transparent; background: var(--mist);
  transition: background-color .2s ease, border-color .2s ease;
}
.part b { display: block; font: 700 1.2rem/1.2 var(--display); letter-spacing: -0.012em; }
.part span { display: block; color: var(--ink-soft); margin-top: .25rem; font-size: 1.05rem; line-height: 1.5; }
.part:hover { border-color: var(--line); }
.part[aria-pressed="true"] { background: #fff5dc; border-color: var(--lamp); }
.part[aria-pressed="true"] span { color: var(--ink); }
.nevers { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin-top: 1.5rem; }
.nevers li { padding: .55rem 1rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 1rem; }

@media (max-width: 899px) {
  .stack { height: 410px; overflow: hidden; }
  .sheet { margin-left: -146px; }
}

/* ---------- how it works ---------- */
.aside-grid { display: grid; gap: 2.4rem clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (min-width: 900px) {
  .aside-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .aside-head { position: sticky; top: 2.5rem; }
}
.steps { position: relative; list-style: none; max-width: 44rem; counter-reset: step; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: 1.55rem; top: 1.6rem; width: 4px; margin-left: -2px; border-radius: 4px;
}
.steps::before { bottom: 1.6rem; background: var(--line); }
.steps::after {
  height: calc((100% - 3.2rem) * var(--fill, 1)); background: var(--lamp);
  box-shadow: 0 0 14px 2px rgba(255, 185, 56, .6);
}
.steps li { position: relative; padding: 0 0 2.4rem 4.6rem; counter-increment: step; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; z-index: 1;
  width: 3.1rem; height: 3.1rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--lamp); color: var(--ink); font: 700 1.3rem/1 var(--display);
  box-shadow: 0 0 0 6px var(--mist), 0 0 26px 4px rgba(255, 185, 56, .55);
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.js-steps .steps li:not(.is-lit)::before { background: var(--paper); color: var(--ink-soft); box-shadow: 0 0 0 6px var(--mist), inset 0 0 0 2px var(--line); }
.steps h3 { padding-top: .55rem; }
.steps p { margin-top: .45rem; color: var(--ink-soft); }
.steps-foot { font-weight: 600; }

/* ---------- price ---------- */
.night { background: var(--night); color: var(--on-night); }
.night a { color: #fff; }
.price .split { align-items: start; }
.picker { background: var(--night-2); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-lg); padding: clamp(1.4rem, 3.4vw, 2.4rem); }
.picker fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; min-width: 0; }
.picker legend { padding: 0; margin-bottom: .7rem; font-weight: 600; font-size: 1.1rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span {
  display: flex; flex-direction: column; justify-content: center; min-height: 4.4rem; height: 100%;
  padding: .8rem 1rem; border-radius: var(--r-md);
  border: 2px solid rgba(255, 255, 255, .2); font-weight: 700; line-height: 1.25;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.seg span small { display: block; font-weight: 500; font-size: .93rem; color: var(--on-night-soft); margin-top: .15rem; }
.seg input:checked + span { background: var(--lamp); border-color: var(--lamp); color: var(--ink); }
.seg input:checked + span small { color: var(--ink); }
.seg input:focus-visible + span { outline: 3px solid #fff; outline-offset: 3px; }
.quote { display: flex; align-items: flex-end; gap: 1rem 1.4rem; flex-wrap: wrap; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .14); }
.quote-amt {
  font: 800 clamp(4.2rem, 13vw, 6.5rem)/.85 var(--display); letter-spacing: -0.04em; color: var(--lamp);
  font-variant-numeric: tabular-nums; text-shadow: 0 0 44px rgba(255, 185, 56, .45);
}
.quote-for { flex: 1 1 12rem; color: var(--on-night-soft); padding-bottom: .3rem; }
.quote-for b { display: block; color: #fff; font-size: 1.15rem; }
.terms-list { display: grid; gap: .9rem; list-style: none; margin-top: 1.6rem; }
.terms-list li { position: relative; padding-left: 1.9rem; color: var(--on-night-soft); }
.terms-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: .8rem; height: .8rem; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 12px 2px rgba(255, 185, 56, .55); }
.terms-list b { color: #fff; }

/* ---------- who we can't help ---------- */
.cant { display: grid; gap: 1rem; list-style: none; margin-top: 2rem; }
@media (min-width: 800px) { .cant { grid-template-columns: repeat(3, 1fr); } }
.cant li { padding: 1.4rem 1.5rem; border-radius: var(--r-md); background: var(--mist); }
.cant b { display: block; font: 700 1.2rem/1.2 var(--display); margin-bottom: .35rem; }
.cant span { color: var(--ink-soft); }

/* ---------- who we are ---------- */
.about { align-items: start; }
.checks { display: grid; gap: .8rem; list-style: none; }
.checks li { position: relative; background: var(--paper); border-radius: var(--r-md); padding: 1.25rem 1.4rem 1.35rem 4.3rem; box-shadow: var(--lift); }
.checks li::before {
  content: ""; position: absolute; left: 1.25rem; top: 1.3rem; width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: var(--lamp) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.4l2.3 2.3 4.7-5' fill='none' stroke='%231c1740' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/1.2rem no-repeat;
}
.checks b { display: block; font: 700 1.2rem/1.25 var(--display); letter-spacing: -0.018em; }
.checks span { display: block; margin-top: .3rem; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.5; }

/* ---------- words you'll see ---------- */
.words { margin-top: 2rem; }
.words-tap { display: none; }
.js-words .words-tap { display: inline; }
.words dl { margin: 0; display: grid; gap: .8rem; }
@media (min-width: 800px) { .words dl { grid-template-columns: 1fr 1fr; } }
.word { background: var(--mist); border-radius: var(--r-md); padding: 1.2rem 1.4rem; }
.word dt { font: 700 1.25rem/1.2 var(--display); letter-spacing: -0.018em; }
.word dd { margin-top: .35rem; color: var(--ink-soft); }
.word-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.word-tabs button {
  min-height: 2.9rem; padding: .5rem 1.1rem; border-radius: 999px; border: 2px solid var(--line); cursor: pointer;
  background: var(--paper); color: var(--ink); font: 600 1.05rem/1 var(--body);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.word-tabs button:hover { border-color: var(--ink); }
.word-tabs button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.js-words .words dl { display: block; margin-top: 1rem; max-width: 46rem; }
.js-words .word { display: none; padding: 1.6rem 1.8rem; background: #fff5dc; border: 2px solid var(--lamp); }
.js-words .word.is-on { display: block; }
.js-words .word dt { font-size: 1.6rem; }
.js-words .word dd { color: var(--ink); font-size: 1.15rem; }

/* ---------- sign up for texts ---------- */
.optin-grid { display: grid; gap: 2rem clamp(1.5rem, 4vw, 4rem); margin-top: 2.2rem; align-items: start; }
@media (min-width: 900px) { .optin-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.optin-form { background: var(--night); color: var(--on-night); border-radius: var(--r-lg); padding: clamp(1.3rem, 3.4vw, 2.4rem); }
.field + .field { margin-top: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; }
.field .opt { font-weight: 400; color: var(--on-night-soft); }
.field input {
  width: 100%; min-height: 3.4rem; padding: .7rem 1rem; border-radius: 14px; border: 2px solid transparent;
  background: #fff; color: var(--ink); font: 500 1.1rem/1.2 var(--body);
}
.field input::placeholder { color: #8d88a8; }
.field input:focus { outline: 3px solid var(--lamp); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--ember); }
.consent {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; margin-top: 1.4rem; padding: 1.1rem 1.2rem;
  border-radius: var(--r-md); background: var(--night-2); border: 1px solid rgba(255, 255, 255, .16);
  font-size: 1rem; line-height: 1.55;
}
.consent input { width: 1.7rem; height: 1.7rem; margin: .1rem 0 0; accent-color: var(--lamp); cursor: pointer; }
.consent a { color: #fff; }
.optin-form .btn { width: 100%; margin-top: 1.4rem; }
.optin-form .btn[disabled] { opacity: .6; cursor: default; transform: none; }
.optin-status { margin-top: 1rem; font-weight: 600; min-height: 1.6em; }
.optin-status:empty { margin-top: 0; min-height: 0; }
.optin-status.ok { color: #a6ecbb; }
.optin-status.err { color: #ffc9bb; }
.optin-status a { color: #fff; }
.optin-terms { font-size: 1.05rem; color: var(--ink-soft); }
.optin-terms h3 { color: var(--ink); font-size: 1.45rem; }
.optin-terms p { margin-top: .9rem; }
.optin-terms b { color: var(--ink); }

/* ---------- questions ---------- */
.faq { max-width: 48rem; }
.faq details { border-bottom: 2px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none;
  padding: 1.25rem 0; font: 700 1.3rem/1.25 var(--display); letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: var(--paper) center/1rem no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 2v12M2 8h12' stroke='%231c1740' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 0 2px var(--line); transition: transform .25s ease, background-color .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--lamp); box-shadow: none; }
.faq .answer { padding: 0 0 1.5rem; max-width: var(--text); }
.faq .answer > * + * { margin-top: .9em; }
.faq ul, .legal ul, .county ul { padding-left: 1.3rem; }
.faq li + li, .legal li + li { margin-top: .5em; }

/* ---------- closing and footer ---------- */
.closing { position: relative; overflow: hidden; text-align: center; padding-block: clamp(4.5rem, 10vw, 8rem); }
.closing::before {
  content: ""; position: absolute; left: 50%; top: 0; width: min(140vw, 900px); aspect-ratio: 1; transform: translate(-50%, -62%);
  background: radial-gradient(closest-side, rgba(255, 196, 100, .75), rgba(255, 150, 80, .22) 45%, transparent 72%);
  pointer-events: none;
}
.closing > .wrap { position: relative; }
.closing h2 { max-width: 16ch; margin-inline: auto; }
.closing p { max-width: 34rem; margin: 1.2rem auto 0; color: var(--on-night-soft); font-size: 1.2rem; }
.closing .actions { justify-content: center; }

.foot { background: #0f0b2c; color: var(--on-night-soft); padding-block: 3rem; font-size: 1rem; }
.foot .wrap > * + * { margin-top: .9rem; }
.foot a { color: #fff; }
.foot strong { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; list-style: none; padding-top: .6rem; }

/* ---------- inner pages ---------- */
.page-head { padding-top: 7.5rem; padding-bottom: clamp(4.5rem, 9vw, 7.5rem); }
.page-head p { max-width: 40rem; margin-top: 1.2rem; font-size: 1.2rem; color: var(--on-night-soft); }
.legal { max-width: var(--text); }
.legal h2 { font-size: 1.6rem; margin-top: 2.6rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin-top: .9rem; }

/* ---------- counties: the map ---------- */
.page-head.map-band { padding-bottom: clamp(5rem, 11vw, 9rem); }
.map-tools { margin-top: 2.4rem; }
.kinds-note { margin-top: 1.4rem; }
.map-grid { display: grid; gap: 1.6rem clamp(1.5rem, 4vw, 4rem); align-items: start; }
@media (min-width: 960px) { .map-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.state-tabs { display: inline-grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: .3rem; border-radius: 999px; background: rgba(255, 255, 255, .1); margin-bottom: 1.2rem; }
.state-tabs button {
  min-height: 3rem; padding: .5rem 1.6rem; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--on-night); font: 700 1.1rem/1 var(--body);
}
.state-tabs button[aria-selected="true"] { background: var(--lamp); color: var(--ink); }
.map svg { width: 100%; height: auto; max-height: 70vh; overflow: visible; }
.map .c { fill: #33267a; stroke: var(--night); stroke-width: 1; cursor: pointer; transition: fill .15s ease; }
.map .c:hover { fill: #46369a; }
.map .c.on { fill: #b47c20; }
.map .c.on:hover, .map .c.on.is-picked { fill: var(--lamp); }
.map .c.is-picked { stroke: #fff; stroke-width: 2; }
.map .c:focus-visible { outline: none; stroke: #fff; stroke-width: 2.5; }
.map .lampdot { fill: var(--lamp-soft); pointer-events: none; }
.map .lampglow { fill: var(--lamp); opacity: .5; pointer-events: none; }
.map .lbl { fill: #fff; font: 700 13px var(--body); pointer-events: none; text-anchor: middle; paint-order: stroke; stroke: var(--night); stroke-width: 3.5px; stroke-linejoin: round; }
.map-key { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1rem; color: var(--on-night-soft); font-size: 1rem; list-style: none; }
.map-key i { display: inline-block; width: .9rem; height: .9rem; border-radius: 50%; margin-right: .5rem; vertical-align: -.05em; }
.map-key .k-on { background: var(--lamp); box-shadow: 0 0 10px 2px rgba(255, 185, 56, .6); }
.map-key .k-off { background: #33267a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.no-map .map-tools { display: none; }

.pick {
  background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); min-height: 14rem;
}
.pick a { color: var(--link); }
.page-head .pick p { color: var(--ink); font-size: inherit; max-width: none; margin-top: .9rem; }
.page-head .pick p.pick-empty, .page-head .pick p.office { color: var(--ink-soft); }
.pick h3 { font-size: 1.9rem; }
.pick > * + * { margin-top: .9rem; }
.pick .office { margin-top: .5rem; }
.pick-empty { color: var(--ink-soft); }

.tag { display: inline-block; padding: .2rem .7rem; border-radius: 999px; font-size: .9rem; font-weight: 700; background: #fff0c9; color: #5b3c00; white-space: nowrap; }
.tag-court { background: #ebe4ff; color: #3a1f8f; }

.kinds { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 800px) { .kinds { grid-template-columns: 1fr 1fr; } }
.kind { background: var(--paper); border-radius: var(--r-md); padding: 1.4rem 1.5rem; box-shadow: var(--lift); }
.kind h3 { margin-bottom: .5rem; }
.kind .cost { margin-top: .7rem; font-weight: 700; }

.finder { margin-top: 2.2rem; max-width: 30rem; }
.finder label { display: block; font-weight: 700; margin-bottom: .5rem; }
.finder input {
  width: 100%; min-height: 3.6rem; padding: .8rem 1.2rem; border-radius: 999px; border: 2px solid var(--line);
  background: var(--paper); color: var(--ink); font: 500 1.15rem/1.2 var(--body);
}
.finder input:focus { outline: 3px solid var(--lamp); outline-offset: 2px; border-color: var(--ink); }
.finder-msg { margin-top: .8rem; font-weight: 600; min-height: 1.6em; }

.state-h { margin-top: 3.2rem; }
.state-h + p { margin-top: .8rem; max-width: var(--text); color: var(--ink-soft); }
.county-list { display: grid; gap: 1rem; list-style: none; margin-top: 1.6rem; }
@media (min-width: 800px) { .county-list { grid-template-columns: 1fr 1fr; } }
.county { background: var(--paper); border-radius: var(--r-md); padding: 1.4rem 1.5rem; box-shadow: var(--lift); scroll-margin-top: 1.5rem; }
.county > * + * { margin-top: .75rem; }
.county .office { margin-top: .4rem; color: var(--ink-soft); font-weight: 600; }
.county[hidden] { display: none; }
.county:target { outline: 3px solid var(--lamp); outline-offset: 3px; }

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