/* ============================================================
   State Affairs — public site design system
   ============================================================ */
:root {
  --bg-light:        #f5f1ea;
  --bg-cards:        #f9f5ef;
  --bg-white-yellow: #f9f6f2;
  --bg-light-gold:   #f3ede0;
  --bg-dark:         #0a0a0a;
  --bg-light-dark:   #111111;

  --green:        #2d7a5f;
  --green-light:  #3d9474;
  --gold:         #c2a056;
  --gold-light:   #e2c075;
  --red:          #b04140;

  --op-gold:  rgba(194,160,86,.15);
  --op-green: rgba(61,148,116,.16);

  --ink:      #0a0a0a;
  --ink-2:    #3a3a38;
  --ink-3:    #6d6a63;
  --line:     rgba(10,10,10,.12);
  --line-2:   rgba(10,10,10,.07);

  --sans:  'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 8px;  --r: 14px;  --r-lg: 22px;  --r-xl: 32px;
  --maxw: 1240px;
  --shadow:    0 1px 2px rgba(10,10,10,.04), 0 8px 24px rgba(10,10,10,.05);
  --shadow-lg: 0 2px 6px rgba(10,10,10,.05), 0 24px 60px rgba(10,10,10,.10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 500; }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.06rem; }
.serif  { font-family: var(--serif); font-style: italic; font-weight: 500; }
.mono   { font-family: var(--mono); font-size: .78em; letter-spacing: .06em; text-transform: uppercase; }
.muted  { color: var(--ink-3); }
.center { text-align: center; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: 860px; }
section { padding: clamp(56px, 8vw, 118px) 0; }
.sec-tight { padding: clamp(40px, 5vw, 68px) 0; }

/* ---------------------------------------------------------------- eyebrow */
.eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px;
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px; background: var(--gold);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: .95rem; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: transform .14s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn--dark  { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #262626; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-light); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: rgba(10,10,10,.03); }
.btn--light { background: #fff; color: var(--ink); }
.btn--onDark { background: #fff; color: var(--ink); }
.btn--onDarkGhost { border-color: rgba(255,255,255,.28); color: #fff; }
.btn--onDarkGhost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--sm { padding: 9px 18px; font-size: .86rem; }
.btn--block { width: 100%; }
.link-arrow { font-weight: 600; color: var(--green); display: inline-flex; gap: 6px; align-items: center; }
.link-arrow:hover { gap: 10px; transition: gap .16s ease; }

/* ---------------------------------------------------------------- header */
.sa-head {
  position: sticky; top: 0; z-index: 90;
  background: rgba(245,241,234,.86); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.sa-head__in { display: flex; align-items: center; gap: 30px; height: 72px; }
.sa-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; letter-spacing: -.03em; }
.sa-logo__mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--ink); color: var(--bg-light);
  display: grid; place-items: center; font-size: .82rem; font-weight: 700; letter-spacing: -.04em;
}
.sa-nav { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.sa-nav > li { list-style: none; position: relative; }
.sa-nav__link {
  display: flex; align-items: center; gap: 5px; padding: 9px 13px; border-radius: 8px;
  font-size: .93rem; font-weight: 500; color: var(--ink-2);
}
.sa-nav__link:hover, .sa-nav li:hover > .sa-nav__link { color: var(--ink); background: rgba(10,10,10,.045); }
.sa-nav__link.is-active { color: var(--ink); font-weight: 600; }
.sa-nav__caret { width: 9px; height: 9px; opacity: .5; }
.sa-mega {
  position: absolute; top: calc(100% + 8px); left: -14px; min-width: 380px;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all .16s ease;
}
.sa-nav li:hover .sa-mega { opacity: 1; visibility: visible; transform: translateY(0); }
.sa-mega a { display: block; padding: 11px 14px; border-radius: 10px; }
.sa-mega a:hover { background: var(--bg-cards); }
.sa-mega strong { display: block; font-size: .93rem; font-weight: 600; }
.sa-mega span { font-size: .82rem; color: var(--ink-3); }
.sa-head__cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sa-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.sa-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(64px, 9vw, 132px) 0 clamp(40px, 5vw, 72px); text-align: center; }
.hero h1 .accent { color: var(--green); font-family: var(--serif); font-style: italic; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 640px; margin: 22px auto 34px; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* logo strip */
.logos { display: flex; flex-wrap: wrap; gap: 14px 44px; justify-content: center; align-items: center; opacity: .62; }
.logos span { font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; color: var(--ink-2); }

/* ---------------------------------------------------------------- ask box */
.askbox {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 20px; max-width: 720px; margin: 0 auto;
}
.askbox__row { display: flex; gap: 10px; }
.askbox input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 14px 20px;
  font-family: inherit; font-size: .98rem; background: var(--bg-white-yellow); color: var(--ink);
}
.askbox input:focus { outline: none; border-color: var(--green); background: #fff; }
.askbox__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; justify-content: center; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px;
  font-size: .84rem; color: var(--ink-2); background: transparent; cursor: pointer; font-family: inherit;
}
.chip:hover { border-color: var(--green); color: var(--green); }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--bg-cards); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 30px; transition: transform .18s ease, box-shadow .18s ease;
}
.card--white { background: #fff; }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card__num {
  font-family: var(--mono); font-size: .74rem; color: var(--gold);
  letter-spacing: .12em; margin-bottom: 16px; display: block;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: .96rem; margin: 0; }

/* capability pills */
.caps { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.caps span {
  font-size: .78rem; padding: 5px 12px; border-radius: 999px;
  background: var(--op-green); color: var(--green); font-weight: 500;
}

/* ---------------------------------------------------------------- stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.stat { border-top: 1px solid var(--line); padding-top: 22px; }
.stat b { display: block; font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.stat span { display: block; font-size: .87rem; color: var(--ink-3); margin-top: 10px; }

/* ---------------------------------------------------------------- dark band */
.band-dark { background: var(--bg-dark); color: #f0ede7; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .muted, .band-dark p { color: rgba(240,237,231,.66); }
.band-dark .card { background: var(--bg-light-dark); border-color: rgba(255,255,255,.08); }
.band-dark .stat { border-color: rgba(255,255,255,.14); }
.band-cream { background: var(--bg-light-gold); }
.band-white { background: var(--bg-white-yellow); }

/* ---------------------------------------------------------------- module tabs */
.modtabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.modtabs a {
  padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line);
  font-size: .93rem; font-weight: 600; color: var(--ink-2);
}
.modtabs a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.modtabs a:hover { border-color: var(--ink); }

/* split feature row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 76px); align-items: center; }
.split--rev > *:first-child { order: 2; }

/* mock UI panel used in feature illustrations */
.mock {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock__bar {
  display: flex; align-items: center; gap: 6px; padding: 11px 14px;
  border-bottom: 1px solid var(--line-2); background: var(--bg-white-yellow);
}
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9d2c6; }
.mock__bar b { margin-left: 8px; font-size: .76rem; font-weight: 600; color: var(--ink-3); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.mock__body { padding: 16px; }
.mock__row {
  display: flex; align-items: center; gap: 12px; padding: 11px 4px;
  border-bottom: 1px solid var(--line-2); font-size: .87rem;
}
.mock__row:last-child { border-bottom: 0; }
.mock__row .bn { font-family: var(--mono); font-size: .76rem; color: var(--green); font-weight: 600; }
.mock__row .tt { flex: 1; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- tags */
.sa-tag {
  display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .74rem;
  font-weight: 600; background: rgba(10,10,10,.06); color: var(--ink-2); white-space: nowrap;
}
.sa-tag--green { background: var(--op-green); color: var(--green); }
.sa-tag--gold  { background: var(--op-gold);  color: #8a6f2c; }
.sa-tag--red   { background: rgba(176,65,64,.13); color: var(--red); }
.sa-party { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font-size: .7rem; font-weight: 700; color: #fff; }
.sa-party--d { background: #2f5d9e; }
.sa-party--r { background: #b04140; }
.sa-party--i { background: #6d6a63; }

.sa-meter { display: inline-block; width: 60px; height: 5px; border-radius: 3px; background: rgba(10,10,10,.1); overflow: hidden; vertical-align: middle; }
.sa-meter > span { display: block; height: 100%; background: var(--green); border-radius: 3px; }

/* ---------------------------------------------------------------- articles */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.art {
  display: flex; flex-direction: column; background: var(--bg-cards);
  border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.art:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.art__hero { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--green) 0%, #1f4d3d 100%); position: relative; }
.art__hero span {
  position: absolute; bottom: 12px; left: 14px; font-family: var(--mono);
  font-size: .68rem; color: rgba(255,255,255,.85); letter-spacing: .1em; text-transform: uppercase;
}
.art__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.art__meta { display: flex; gap: 10px; align-items: center; font-size: .76rem; color: var(--ink-3); margin-bottom: 10px; flex-wrap: wrap; }
.art__body h3 { font-size: 1.12rem; line-height: 1.28; margin-bottom: 9px; }
.art__body p { font-size: .9rem; color: var(--ink-2); flex: 1; }
.art__foot { margin-top: 14px; font-size: .8rem; color: var(--ink-3); display: flex; justify-content: space-between; }
.art--lead { grid-column: span 2; }
.art--lead .art__body h3 { font-size: 1.7rem; }

/* ---------------------------------------------------------------- pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 32px 28px; display: flex; flex-direction: column; position: relative;
}
.plan--feat { border-color: var(--green); box-shadow: 0 0 0 3px var(--op-green); }
.plan__badge {
  position: absolute; top: -12px; left: 28px; background: var(--green); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px;
}
.plan h3 { font-size: 1.35rem; margin-bottom: 4px; }
.plan__tag { font-size: .88rem; color: var(--ink-3); min-height: 42px; }
.plan__price { font-size: 2.5rem; font-weight: 500; letter-spacing: -.04em; margin: 18px 0 2px; }
.plan__price small { font-size: .95rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }
.plan__per { font-size: .82rem; color: var(--ink-3); margin-bottom: 22px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan li { position: relative; padding: 7px 0 7px 26px; font-size: .9rem; color: var(--ink-2); }
.plan li::before {
  content: ''; position: absolute; left: 0; top: 13px; width: 13px; height: 7px;
  border-left: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.toggle { display: inline-flex; background: rgba(10,10,10,.06); border-radius: 999px; padding: 4px; gap: 4px; }
.toggle a { padding: 8px 20px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink-3); }
.toggle a.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* ---------------------------------------------------------------- forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.inp, input[type=text], input[type=email], input[type=password], input[type=tel],
input[type=date], input[type=number], select, textarea {
  width: 100%; padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: .95rem; background: #fff; color: var(--ink);
}
textarea { min-height: 118px; resize: vertical; }
.inp:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--op-green); }
.hint { font-size: .8rem; color: var(--ink-3); margin-top: 5px; }

.sa-flash { padding: 13px 18px; border-radius: 10px; margin-bottom: 18px; font-size: .92rem; font-weight: 500; }
.sa-flash--ok   { background: var(--op-green); color: var(--green); }
.sa-flash--err  { background: rgba(176,65,64,.12); color: var(--red); }
.sa-flash--warn { background: var(--op-gold); color: #8a6f2c; }

/* ---------------------------------------------------------------- auth pages */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 72px); }
.auth__panel { display: grid; place-items: center; padding: 60px 24px; }
.auth__form { width: 100%; max-width: 400px; }
.auth__art { background: var(--bg-dark); color: #f0ede7; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.auth__art h2 { color: #fff; }
.auth__art .quote { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.4; color: #fff; }

/* ---------------------------------------------------------------- footer */
.sa-foot { background: var(--bg-dark); color: rgba(240,237,231,.72); padding: 78px 0 34px; }
.sa-foot h4 { color: #fff; font-size: .78rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.sa-foot__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.sa-foot ul { list-style: none; padding: 0; margin: 0; }
.sa-foot li { margin-bottom: 10px; }
.sa-foot a { font-size: .9rem; }
.sa-foot a:hover { color: #fff; }
.sa-foot__bot {
  margin-top: 54px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; font-size: .84rem; flex-wrap: wrap;
}
.sa-foot .sa-logo { color: #fff; margin-bottom: 16px; }
.sa-foot .sa-logo__mark { background: #fff; color: var(--ink); }
.subscribe { display: flex; gap: 8px; margin-top: 16px; max-width: 340px; }
.subscribe input {
  flex: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  color: #fff; border-radius: 999px; padding: 11px 18px; font-size: .88rem;
}
.subscribe input::placeholder { color: rgba(255,255,255,.4); }

/* ---------------------------------------------------------------- misc */
.sa-pager { display: flex; gap: 6px; justify-content: center; margin-top: 34px; }
.sa-pager a, .sa-pager span {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); font-size: .88rem; font-weight: 600;
}
.sa-pager .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.divider { height: 1px; background: var(--line); margin: 40px 0; }
.kicker { font-size: 1.15rem; color: var(--ink-2); max-width: 620px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--ink-3); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 14px 0 0; color: var(--ink-2); }

.timeline { border-left: 2px solid var(--line); padding-left: 26px; }
.timeline__item { position: relative; padding-bottom: 26px; }
.timeline__item::before {
  content: ''; position: absolute; left: -33px; top: 6px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--green); border: 2px solid var(--bg-light);
}
.timeline__d { font-family: var(--mono); font-size: .72rem; color: var(--ink-3); letter-spacing: .08em; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .grid-4, .grid-5, .plans, .stats { grid-template-columns: repeat(2, 1fr); }
  .art-grid { grid-template-columns: repeat(2, 1fr); }
  .art--lead { grid-column: span 2; }
  .sa-foot__grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .sa-nav { display: none; }
  .sa-burger { display: block; }
  .sa-head__in { height: 64px; }
  .sa-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; position: absolute;
    top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px; gap: 2px; box-shadow: var(--shadow-lg); max-height: 78vh; overflow: auto;
  }
  .sa-nav.is-open .sa-mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; padding: 0 0 8px 14px; background: transparent; }
  .grid-2, .grid-3, .grid-4, .grid-5, .split, .plans, .art-grid, .auth { grid-template-columns: 1fr; }
  .split--rev > *:first-child { order: 0; }
  .art--lead { grid-column: span 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .sa-foot__grid { grid-template-columns: 1fr 1fr; }
  .auth__art { display: none; }
  .hero__cta .btn { width: 100%; }
}
