:root {
  --bg-deep: #0a1628;
  --bg-panel: rgba(15, 28, 48, 0.78);
  --bg-elevated: rgba(20, 36, 58, 0.9);
  --gold: #2dd4bf;
  --gold-soft: #5eead4;
  --gold-dim: rgba(45, 212, 191, 0.12);
  --champagne: #e8f4f2;
  --text: #f0f4f8;
  --muted: rgba(240, 244, 248, 0.65);
  --border: rgba(94, 234, 212, 0.2);
  --danger: #f87171;
  --success: #4ade80;
  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.55;
  overflow-x: hidden;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.07;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  z-index: 0;
  pointer-events: none;
}

.glow-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.28), transparent 70%);
}

.glow-2 {
  width: 420px;
  height: 420px;
  bottom: 10%;
  left: -100px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 70%);
}

a {
  color: var(--champagne);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(180deg, rgba(7, 6, 10, 0.94), rgba(7, 6, 10, 0.72));
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

@media (max-width: 640px) {
  .site-header {
    justify-content: center;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: inherit;
}

.brand-mark {
  color: var(--gold);
  font-size: 0.9rem;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 0.25s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2.5rem) 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  color: var(--champagne);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-soft);
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0 0 1rem;
}

.lead.fine-print {
  font-size: 0.88rem;
  max-width: 58ch;
  opacity: 0.95;
}

.lead.fine-print code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--border);
}

.hero-stats dt {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.hero-stats dd {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--champagne);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.orbital {
  position: relative;
  width: 260px;
  height: 260px;
}

.ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: spin 24s linear infinite;
}

.ring-2 {
  inset: 18px;
  animation-duration: 18s;
  animation-direction: reverse;
  border-color: rgba(45, 212, 191, 0.1);
}

.ring-3 {
  inset: 42px;
  animation-duration: 32s;
  border-style: dashed;
  border-color: rgba(96, 165, 250, 0.22);
}

.emblem-seal {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: #06221f;
  background: radial-gradient(circle at 30% 25%, #ecfdf5, var(--gold-soft) 50%, #0d9488);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 20px 50px rgba(0, 0, 0, 0.45);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, #5eead4, #14b8a6 45%, #0d9488);
  color: #042f2e;
  box-shadow: 0 8px 28px rgba(20, 184, 166, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(20, 184, 166, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--champagne);
}

.btn-outline:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.icon-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
}

.icon-btn:hover {
  color: var(--text);
}

.bell {
  display: block;
  width: 18px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 0 0;
  border-bottom: none;
  position: relative;
}

.bell::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

#btn-notifications {
  position: relative;
}

.badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.panel {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.panel-head h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.35rem;
  letter-spacing: 0.04em;
}

.muted {
  color: var(--muted);
  margin: 0;
}

.muted.small {
  font-size: 0.85rem;
}

.panel-tools {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.input:focus {
  outline: none;
  border-color: var(--gold-soft);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.input.textarea {
  resize: vertical;
  min-height: 72px;
}

#search-messages {
  width: min(280px, 100%);
}

.hub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

@media (min-width: 768px) {
  .hub {
    grid-template-columns: minmax(220px, 32%) 1fr;
  }
}

.thread-list-wrap {
  background: var(--bg-panel);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.thread-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.pill {
  background: var(--gold-dim);
  color: var(--gold);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}

.thread-list {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  flex: 1;
  overflow-y: auto;
  max-height: 360px;
}

.thread-item {
  width: 100%;
  text-align: left;
  padding: 0.85rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 0.35rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.thread-item:hover,
.thread-item:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.thread-item.active {
  background: var(--gold-dim);
  border-color: rgba(45, 212, 191, 0.35);
}

.thread-item-title {
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.thread-item-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.empty-hint {
  padding: 1rem 1.1rem 1.5rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.empty-hint[hidden] {
  display: none;
}

.thread-detail {
  background: var(--bg-elevated);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.thread-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.thread-detail-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.thread-actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}

.messages-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 200px;
}

.msg-bubble {
  max-width: 88%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
  animation: fadeUp 0.35s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg-bubble.in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.msg-bubble.out {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.22), rgba(45, 212, 191, 0.06));
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.msg-meta {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.typing {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.typing .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: bounce 1s ease infinite;
}

.typing .dot:nth-child(2) {
  animation-delay: 0.15s;
}

.typing .dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.reply-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  align-items: flex-end;
}

.reply-form .textarea {
  flex: 1 1 200px;
  min-height: 52px;
}

.features {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 1.5rem;
  letter-spacing: 0.06em;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.feature-card:hover,
.feature-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  outline: none;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--champagne);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-strip {
  margin: 0 auto 4rem;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(90, 60, 140, 0.15));
  border: 1px solid var(--border);
}

.contact-inner h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
}

.contact-inner > p {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.contact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.contact-form .input {
  flex: 1 1 180px;
  max-width: 280px;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.site-footer .footer-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.panel-inner.disclaimer {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.25);
  font-size: 0.9rem;
  line-height: 1.5;
}

.panel-inner.disclaimer p {
  margin: 0;
}

.section-intro {
  margin: -0.5rem 0 1.25rem;
  max-width: 65ch;
}

.section-intro code {
  font-size: 0.88em;
  padding: 0.08em 0.3em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.snapshot-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.snapshot-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 1rem;
  color: var(--champagne);
}

.kv {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 42%) 1fr;
  gap: 0.35rem 1rem;
  font-size: 0.9rem;
}

.kv dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.kv dd {
  margin: 0;
  color: var(--text);
}

.app-field-missing {
  font-style: italic;
  color: rgba(248, 113, 113, 0.95);
}

.check-list,
.legalese-list {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.65;
}

.check-list li,
.legalese-list li {
  margin-bottom: 0.65rem;
}

.check-list strong,
.legalese-list strong {
  color: var(--champagne);
}

.funds-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.funds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.funds-table th,
.funds-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.funds-table th {
  background: rgba(0, 0, 0, 0.25);
  color: var(--champagne);
  font-family: var(--font-display);
  font-weight: 600;
}

.funds-table tbody tr:last-child td {
  border-bottom: none;
}

.funds-table td:last-child {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.subsection-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--champagne);
}

.milestone-list {
  margin: 0;
  padding-left: 1.25rem;
  max-width: 65ch;
  color: var(--muted);
  line-height: 1.65;
}

.milestone-list li {
  margin-bottom: 0.5rem;
}

.contact-block {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.contact-block-inner {
  padding: 2rem clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  color: var(--champagne);
}

.contact-lines {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: pre-line;
}

.contact-lines a {
  color: var(--gold-soft);
}

.contact-lines a[href] {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form-extended {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 36rem;
}

.contact-form-extended .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
}

.form-caption {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.assessor-panel {
  padding-bottom: 0.5rem;
}

.pill-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.apill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--gold-dim);
  border: 1px solid rgba(45, 212, 191, 0.28);
  color: var(--champagne);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.case-card {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-panel);
  border: 1px solid var(--border);
}

.case-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.65rem;
  color: var(--gold-soft);
}

.case-body {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

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

.projections-table tbody th[scope="row"] {
  font-weight: 600;
  color: var(--champagne);
  background: rgba(0, 0, 0, 0.2);
}

.expenditure-note {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 70ch;
}

.reg-ref {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
  opacity: 0.85;
}

.plan-panel .subsection-title:first-of-type {
  margin-top: 0;
}

.plan-panel .subsection-title {
  margin-top: 2rem;
}

.plan-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.plan-card-flat {
  margin: 0;
}

.small-print {
  margin: 0 0 0.75rem;
  max-width: 52ch;
}

.market-para {
  margin: 0 0 0.75rem;
  max-width: 65ch;
  line-height: 1.6;
}

.market-para:last-child {
  margin-bottom: 0;
}

.contact-label {
  display: inline-block;
  min-width: 3.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 100;
  backdrop-filter: blur(4px);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal[hidden],
.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  width: min(480px, 100%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 0 1.25rem;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

#compose-form {
  padding: 1.25rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

#compose-form label {
  font-size: 0.8rem;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.toast-stack {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(360px, calc(100vw - 2.5rem));
}

.toast {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  animation: slideIn 0.35s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast strong {
  display: block;
  color: var(--champagne);
  margin-bottom: 0.25rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

  html {
    scroll-behavior: auto;
  }
}
