:root {
  --green: #0b5e3e;
  --gl: #e8f5ef;
  --gm: #1d9e75;
  --white: #fafaf8;
  --black: #0d0d0d;
  --g1: #f4f4f1;
  --g2: #e8e8e3;
  --g4: #a8a89e;
  --g6: #6b6b63;
  --g8: #2c2c28;
  --red: #c0392b;
  --rl: #fcf0ee;
  --amb: #b7600a;
  --al: #fef6ec;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --r: 4px;
  --rl2: 8px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--g2);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nb {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--green);
  text-decoration: none;
  flex-shrink: 0;
}

.nb span {
  color: var(--g4);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  margin-left: 3px;
}

.nl {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  align-items: center;
}

.nl a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--g6);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
}

.nl a:hover {
  color: var(--green);
}

.nc {
  background: var(--green);
  color: #fff !important;
  padding: 6px 13px;
  border-radius: var(--r);
  font-size: 0.78rem !important;
}

.hbg {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.hbg span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--g8);
  border-radius: 2px;
  transition: all 0.25s;
}

.mob-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 56px;
  background: var(--white);
  z-index: 99;
  padding: 1.5rem;
  border-top: 1px solid var(--g2);
}

.mob-menu.open {
  display: block;
}

.mob-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mob-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--g1);
}

.mob-menu a:last-child {
  border-bottom: none;
}

.mob-cta {
  display: block;
  margin-top: 1.25rem;
  background: var(--green);
  color: #fff !important;
  text-align: center;
  padding: 13px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.95rem !important;
  text-decoration: none;
}

@media (max-width: 820px) {
  .nl {
    display: none;
  }
  .hbg {
    display: flex;
  }
}

/* ── HERO ── */
.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.25rem clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.ey {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gm);
  background: var(--gl);
  padding: 4px 13px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--green);
}

.hero-sub {
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: var(--g6);
  max-width: 540px;
  margin: 0 auto 2rem;
  font-weight: 300;
  line-height: 1.7;
}

.hs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--g2);
  border: 1px solid var(--g2);
  border-radius: var(--rl2);
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hst {
  background: var(--white);
  padding: clamp(0.9rem, 3vw, 1.25rem) 0.75rem;
  text-align: center;
}

.hsn {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--green);
  display: block;
  line-height: 1;
  margin-bottom: 3px;
}

.hsl {
  font-size: clamp(0.62rem, 1.5vw, 0.72rem);
  color: var(--g6);
  line-height: 1.3;
}

@media (max-width: 520px) {
  .hs {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── LAYOUT ── */
section {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}

.sl {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gm);
  margin-bottom: 0.4rem;
}

.st {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  line-height: 1.15;
}

.ss {
  font-size: clamp(0.84rem, 2vw, 0.92rem);
  color: var(--g6);
  max-width: 540px;
  font-weight: 300;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

hr.dv {
  border: none;
  border-top: 1px solid var(--g2);
}

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--g1);
  border: 1px solid var(--g2);
  border-radius: var(--rl2);
  padding: 3px;
  margin-bottom: 1.75rem;
  width: fit-content;
  flex-wrap: wrap;
}

.tab {
  padding: 7px clamp(10px, 3vw, 18px);
  border-radius: 6px;
  font-size: clamp(0.75rem, 2vw, 0.82rem);
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--g6);
  font-family: var(--sans);
  transition: all 0.15s;
  white-space: nowrap;
}

.tab.active {
  background: var(--white);
  color: var(--green);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ── FORMS ── */
label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--g8);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

select,
input[type="email"] {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--g2);
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: clamp(0.84rem, 2vw, 0.9rem);
  background: var(--white);
  color: var(--black);
  appearance: none;
  transition: border-color 0.15s;
  min-height: 42px;
}

select:focus,
input:focus {
  outline: none;
  border-color: var(--green);
}

.fg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

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

@media (min-width: 641px) and (max-width: 860px) {
  .fg {
    grid-template-columns: 1fr 1fr;
  }
}

.btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 11px 20px;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: clamp(0.84rem, 2vw, 0.9rem);
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  min-height: 42px;
  transition: background 0.15s;
}

.btn:hover {
  background: #094d33;
}

/* ── RESULT CARDS ── */
.rg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
  margin: 1.4rem 0;
}

@media (max-width: 680px) {
  .rg {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.rc {
  background: var(--g1);
  border: 1px solid var(--g2);
  border-radius: var(--rl2);
  padding: clamp(0.85rem, 3vw, 1.1rem);
}

.rc.hl {
  background: var(--gl);
  border-color: var(--gm);
}

.rc.dn {
  background: var(--rl);
  border-color: #f5c6c2;
}

.rcl {
  font-size: clamp(0.68rem, 1.8vw, 0.72rem);
  color: var(--g6);
  font-weight: 500;
  margin-bottom: 5px;
}

.rcv {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  color: var(--green);
  line-height: 1;
}

.rc.dn .rcv {
  color: var(--red);
}

.rcs {
  font-size: clamp(0.62rem, 1.5vw, 0.7rem);
  color: var(--g4);
  margin-top: 3px;
}

/* ── BARS ── */
.br-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.br-nm {
  font-size: clamp(0.7rem, 2vw, 0.76rem);
  color: var(--g8);
  width: clamp(80px, 22vw, 110px);
  flex-shrink: 0;
}

.br-tk {
  flex: 1;
  height: 7px;
  background: var(--g2);
  border-radius: 4px;
  overflow: hidden;
}

.br-fl {
  height: 100%;
  background: var(--gm);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.br-vl {
  font-size: clamp(0.68rem, 1.8vw, 0.76rem);
  font-weight: 600;
  color: var(--g8);
  width: clamp(55px, 18vw, 70px);
  text-align: right;
  flex-shrink: 0;
}

/* ── ALERTS ── */
.ab {
  background: var(--rl);
  border: 1px solid #f5c6c2;
  border-radius: var(--r);
  padding: 0.85rem 1rem;
  font-size: clamp(0.78rem, 2vw, 0.83rem);
  color: var(--red);
  line-height: 1.55;
  margin-top: 1.1rem;
}

.ib {
  background: var(--gl);
  border: 1px solid #9fe1cb;
  border-radius: var(--r);
  padding: 0.85rem 1rem;
  font-size: clamp(0.78rem, 2vw, 0.83rem);
  color: var(--green);
  line-height: 1.55;
  margin-top: 1rem;
}

.src {
  font-size: clamp(0.65rem, 1.6vw, 0.72rem);
  color: var(--g4);
  margin-top: 0.9rem;
  line-height: 1.55;
}

/* ── TABLES ── */
.tf {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.fb {
  padding: 5px 12px;
  border: 1px solid var(--g2);
  border-radius: 20px;
  font-size: clamp(0.7rem, 1.8vw, 0.76rem);
  font-weight: 500;
  cursor: pointer;
  background: var(--white);
  color: var(--g6);
  font-family: var(--sans);
  white-space: nowrap;
}

.fb.active,
.fb:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.tbl-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mt {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(0.76rem, 2vw, 0.83rem);
  min-width: 580px;
}

.mt th {
  text-align: left;
  font-size: clamp(0.64rem, 1.6vw, 0.7rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--g6);
  padding: 9px 10px;
  border-bottom: 2px solid var(--g2);
  white-space: nowrap;
}

.mt td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--g1);
  vertical-align: middle;
}

.mt tr:hover td {
  background: var(--g1);
}

.mn {
  font-weight: 500;
  font-size: clamp(0.78rem, 2vw, 0.85rem);
}

.mn small {
  display: block;
  font-size: clamp(0.64rem, 1.6vw, 0.7rem);
  color: var(--g4);
  font-weight: 400;
  margin-top: 2px;
}

.bdg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: clamp(0.64rem, 1.6vw, 0.7rem);
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  white-space: nowrap;
}

.bg {
  background: var(--gl);
  color: var(--green);
}

.ba {
  background: var(--al);
  color: var(--amb);
}

.br2 {
  background: var(--rl);
  color: var(--red);
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.dg {
  background: var(--gm);
}

.da {
  background: var(--amb);
}

.dr {
  background: var(--red);
}

.mono {
  font-family: "Courier New", monospace;
  font-size: clamp(0.72rem, 1.8vw, 0.8rem);
}

/* ── COMPARE ── */
.cg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

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

@media (min-width: 681px) and (max-width: 900px) {
  .cg {
    grid-template-columns: 1fr 1fr;
  }
}

.cc {
  border: 1px solid var(--g2);
  border-radius: var(--rl2);
  overflow: hidden;
}

.ch {
  padding: 11px 14px;
  font-size: clamp(0.78rem, 2vw, 0.83rem);
  font-weight: 600;
  color: #fff;
}

.cb {
  padding: 0.9rem;
}

.cr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: clamp(0.74rem, 1.9vw, 0.8rem);
  padding: 6px 0;
  border-bottom: 1px solid var(--g1);
  gap: 0.5rem;
}

.cr:last-child {
  border-bottom: none;
}

.cr span:first-child {
  color: var(--g6);
}

.cr span:last-child {
  font-weight: 600;
  text-align: right;
}

/* ── CONTRACTORS ── */
.cng {
  display: grid;
  gap: 0.85rem;
}

.cnc {
  border: 1px solid var(--g2);
  border-radius: var(--rl2);
  padding: clamp(0.85rem, 3vw, 1.1rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.85rem;
  transition: border-color 0.15s;
}

.cnc:hover {
  border-color: var(--gm);
}

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

.cnn {
  font-weight: 600;
  font-size: clamp(0.84rem, 2.2vw, 0.92rem);
  margin-bottom: 3px;
}

.cnm {
  font-size: clamp(0.7rem, 1.8vw, 0.75rem);
  color: var(--g6);
  margin-bottom: 6px;
}

.cnv {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: var(--green);
  white-space: nowrap;
}

/* ── INSECURITY ── */
.ig {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

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

.ic {
  border: 1px solid var(--g2);
  border-radius: var(--rl2);
  padding: clamp(0.85rem, 3vw, 1.1rem);
}

.is {
  font-weight: 600;
  font-size: clamp(0.84rem, 2.2vw, 0.92rem);
  margin-bottom: 2px;
}

.ir {
  font-size: clamp(0.66rem, 1.7vw, 0.72rem);
  color: var(--g4);
  margin-bottom: 0.8rem;
}

.irow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: clamp(0.74rem, 1.9vw, 0.8rem);
  padding: 5px 0;
  border-bottom: 1px solid var(--g1);
  gap: 0.5rem;
}

.irow:last-child {
  border-bottom: none;
}

.irow span:first-child {
  color: var(--g6);
}

.sr {
  color: var(--red);
}

.sa {
  color: var(--amb);
}

/* ── CHARTS ── */
.cw {
  background: var(--g1);
  border: 1px solid var(--g2);
  border-radius: var(--rl2);
  padding: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: 1.1rem;
}

.chart-box {
  position: relative;
  width: 100%;
  height: 240px;
}

.chart-pair .chart-box {
  height: 210px;
}

.state-chart-grid .chart-box {
  height: 210px;
}

.ct {
  font-size: clamp(0.74rem, 1.9vw, 0.8rem);
  font-weight: 600;
  color: var(--g8);
  margin-bottom: 0.9rem;
  letter-spacing: 0.02em;
}

.chart-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

@media (max-width: 620px) {
  .chart-pair {
    grid-template-columns: 1fr;
  }
}

/* ── STATE BUDGET MODULE ── */
.state-sel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
  max-width: 480px;
}

@media (max-width: 500px) {
  .state-sel-row {
    grid-template-columns: 1fr;
  }
}

.state-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

@media (max-width: 640px) {
  .state-chart-grid {
    grid-template-columns: 1fr;
  }
}

.state-kpi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 560px) {
  .state-kpi {
    grid-template-columns: 1fr 1fr;
  }
}

.kpi {
  background: var(--g1);
  border: 1px solid var(--g2);
  border-radius: var(--rl2);
  padding: 0.9rem;
}

.kpi-l {
  font-size: clamp(0.64rem, 1.6vw, 0.7rem);
  color: var(--g6);
  margin-bottom: 4px;
}

.kpi-v {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: var(--green);
  line-height: 1;
}

.kpi-s {
  font-size: clamp(0.6rem, 1.5vw, 0.68rem);
  color: var(--g4);
  margin-top: 3px;
}

.kpi.red .kpi-v {
  color: var(--red);
}

.kpi.amber .kpi-v {
  color: var(--amb);
}

/* ── LEARN ── */
.lg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

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

.lc {
  border: 1px solid var(--g2);
  border-radius: var(--rl2);
  padding: clamp(1rem, 3vw, 1.4rem);
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
  text-decoration: none;
  display: block;
}

.lc:hover {
  border-color: var(--gm);
  background: var(--gl);
}

.ln {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--g2);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.lt {
  font-weight: 600;
  font-size: clamp(0.84rem, 2.2vw, 0.92rem);
  margin-bottom: 5px;
  color: var(--black);
}

.ld {
  font-size: clamp(0.74rem, 1.9vw, 0.79rem);
  color: var(--g6);
  line-height: 1.5;
}

/* ── MODAL ── */
.mo {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 200;
  overflow-y: auto;
  padding: clamp(1rem, 4vw, 2rem) 1rem;
}

.mb {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--rl2);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  position: relative;
}

.mx {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--g4);
  font-family: var(--sans);
  line-height: 1;
  padding: 4px;
}

.mo-body {
  font-size: clamp(0.84rem, 2vw, 0.9rem);
  color: var(--g8);
  line-height: 1.75;
}

.mo-body p {
  margin-bottom: 1rem;
}

.mo-body p:last-child {
  margin-bottom: 0;
}

/* ── SIGNUP ── */
.sgn {
  background: var(--green);
  padding: clamp(3rem, 6vw, 5rem) 1.25rem;
}

.si {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.si .sl {
  color: rgba(255, 255, 255, 0.6);
}

.si .st {
  color: #fff;
  font-size: clamp(1.4rem, 4vw, 2.3rem);
}

.si .ss {
  color: rgba(255, 255, 255, 0.75);
  margin: 0 auto 1.5rem;
  font-size: clamp(0.84rem, 2vw, 0.92rem);
}

.sf {
  display: grid;
  gap: 0.65rem;
  text-align: left;
}

.sf label {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(0.72rem, 1.9vw, 0.76rem);
}

.sf input,
.sf select {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: clamp(0.84rem, 2vw, 0.9rem);
}

.sf input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.sf select option {
  background: var(--green);
}

.sb {
  background: #fff;
  color: var(--green);
  border: none;
  padding: 12px;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: clamp(0.88rem, 2.2vw, 0.94rem);
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 0.35rem;
}

.su {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--rl2);
  padding: 1.75rem;
  text-align: center;
  color: #fff;
}

.su.sh {
  display: block;
}

.su h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 4vw, 1.5rem);
  margin-bottom: 0.5rem;
}

.su p {
  opacity: 0.8;
  font-size: clamp(0.82rem, 2vw, 0.88rem);
}

/* ── FOOTER ── */
footer {
  background: var(--g8);
  color: rgba(255, 255, 255, 0.5);
  padding: 2.25rem 1.5rem;
  font-size: clamp(0.72rem, 1.8vw, 0.8rem);
}

.fi {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.fb2 {
  font-family: var(--serif);
  font-size: clamp(1rem, 3vw, 1.1rem);
  color: #fff;
  margin-bottom: 0.4rem;
}

.db {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: var(--r);
  font-size: clamp(0.64rem, 1.6vw, 0.7rem);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.4rem;
}

.fn {
  line-height: 1.6;
  max-width: 460px;
  font-size: clamp(0.7rem, 1.8vw, 0.78rem);
}

/* ── ANIMATIONS ── */
@keyframes fu {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

/* Welcome banner */
.welcome-banner {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  width: calc(100% - 1.5rem);
  max-width: 580px;
  background: var(--white);
  border: 1.5px solid var(--g2);
  border-left: 4px solid var(--green);
  border-radius: var(--rl2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 1rem 1.1rem;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 90vh;
  overflow-y: auto;
}

.welcome-banner.hiding {
  animation: fadeOut 0.3s ease forwards;
}

.wb-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.wb-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--black);
  line-height: 1.3;
}

.wb-sub {
  font-size: 0.78rem;
  color: var(--g6);
  margin-top: 2px;
  line-height: 1.4;
}

.wb-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--g4);
  font-size: 1.1rem;
  padding: 0;
  flex-shrink: 0;
  line-height: 1;
}

.wb-close:hover {
  color: var(--black);
}

.wb-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: end;
}

@media (max-width: 500px) {
  .wb-form {
    grid-template-columns: 1fr;
  }
  .wb-btn {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .welcome-banner {
    padding: 0.85rem 1rem;
    bottom: 0.75rem;
  }
  .wb-title {
    font-size: 0.92rem;
  }
  .wb-sub {
    font-size: 0.74rem;
  }
}

.wb-input {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--g2);
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 0.82rem;
  background: var(--white);
  color: var(--black);
}

.wb-input:focus {
  outline: none;
  border-color: var(--green);
}

.wb-btn {
  padding: 8px 16px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.wb-btn:hover {
  background: #094d33;
}

.wb-skip {
  font-size: 0.72rem;
  color: var(--g4);
  text-align: center;
  cursor: pointer;
}

.wb-skip:hover {
  color: var(--g6);
}

.wb-success {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 500;
  text-align: center;
  padding: 0.25rem 0;
}

.wb-progress {
  height: 2px;
  background: var(--g2);
  border-radius: 1px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.wb-progress-bar {
  height: 100%;
  background: var(--green);
  border-radius: 1px;
  transition: width 1s linear;
}

.fu {
  animation: fu 0.5s ease both;
}

.d1 {
  animation-delay: 0.1s;
}

.d2 {
  animation-delay: 0.2s;
}

.d3 {
  animation-delay: 0.3s;
}
