/* MEDIC Money™ — site styles */
:root {
  --navy: #0b1f3a;
  --navy-light: #132d52;
  --gold: #c9a227;
  --gold-light: #e4c04a;
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-100: #f5f7fa;
  --gray-200: #e8ecf1;
  --gray-600: #5c6b7a;
  --shadow: 0 12px 40px rgba(11, 31, 58, 0.12);
  --radius: 12px;
  --nav-height: 72px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

.container {
  width: min(1140px, 92vw);
  margin: 0 auto;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 31, 58, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--nav-height);
  padding: 0 4vw;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}

.logo span {
  color: var(--gold);
}

.nav-menu {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.nav-menu > li {
  position: relative;
}

.nav-menu a,
.nav-dropdown-trigger {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover,
.nav-dropdown-trigger:hover {
  color: var(--gold);
}

.nav-menu > li > a {
  display: inline-block;
  padding: 0.35rem 0.2rem;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0.35rem 0.2rem;
}

.nav-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.75;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 0.35rem 0 0.45rem;
  list-style: none;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(11, 31, 58, 0.18);
  z-index: 120;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--navy);
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--gray-100);
  color: var(--navy);
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

@media (min-width: 901px) and (hover: hover) {
  .nav-dropdown:hover > .nav-dropdown-menu {
    display: block;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--navy);
}

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

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-secondary {
  background: var(--navy-light);
  color: var(--white);
  border-color: var(--navy-light);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
  background: linear-gradient(135deg, var(--navy) 0%, #1a3a6b 50%, var(--navy-light) 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero-bg.jpg") center/cover no-repeat;
  opacity: 0.15;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--gold-light);
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.hero .sub {
  font-size: 1.05rem;
  opacity: 0.9;
  margin: 0 0 2rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(201, 162, 39, 0.45);
  background: var(--black);
}

.hero-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: middle;
}

/* Sections */
section {
  padding: 5rem 0;
}

section:nth-child(even) {
  background: var(--gray-100);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  color: var(--navy);
}

.section-header p {
  margin: 0;
  color: var(--gray-600);
  font-size: 1.05rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--gray-200);
}

.mission-quote {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy-light);
  border-left: 4px solid var(--gold);
  padding-left: 1.25rem;
  margin: 1.5rem 0 0;
}

/* Book */
.book-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
}

.book-cover {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.theme-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.theme-list li {
  background: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  font-weight: 500;
  font-size: 0.95rem;
}

.book-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.book-links .btn-book {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 0.65rem;
  font-size: 0.88rem;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}

.btn-pending {
  background: var(--gray-200);
  color: var(--gray-600);
  border: 2px solid #d1d9e2;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 1;
}

@media (max-width: 720px) {
  .book-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .book-links {
    grid-template-columns: 1fr;
  }
}

/* Framework */
.framework-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.framework-diagram {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
  padding: 1rem;
}

.medic-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pillar {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.06);
  border-left: 4px solid var(--gold);
}

.pillar h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.pillar h3 span {
  color: var(--gold);
  font-weight: 800;
}

.pillar p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray-600);
}

.framework-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  justify-content: center;
}

.badge {
  background: var(--navy);
  color: var(--white);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Speaking */
.speaking-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
}

.speaking-card h2 {
  color: var(--white);
  margin-top: 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 180px));
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  max-width: 960px;
  text-align: center;
}

.audience-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.calendly-wrap {
  margin-top: 2rem;
  min-height: 600px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}

.calendly-wrap iframe {
  width: 100%;
  min-height: 600px;
  border: none;
}

/* Simulator teaser */
.simulator-teaser {
  text-align: center;
  padding: 4rem 0;
  color: var(--navy);
}

.simulator-teaser h2 {
  color: var(--navy);
}

.simulator-teaser .sim-lead {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--gray-600);
}

.category-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  justify-content: center;
  gap: 1.25rem;
  margin: 2rem auto;
  max-width: 960px;
  text-align: left;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(11, 31, 58, 0.06);
}

.category-card h3 {
  margin: 0 0 0.5rem;
  color: var(--navy-light);
  font-size: 1rem;
}

.category-card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--gray-600);
}

.author-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.35;
}

.about-bio p {
  margin: 0 0 1rem;
}

.reminder-date {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.calendly-setup {
  background: var(--gray-100);
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.5rem;
}

.calendly-setup h3 {
  margin: 0 0 0.75rem;
  color: var(--navy);
}

.calendly-setup ol {
  text-align: left;
  margin: 1rem auto;
  max-width: 420px;
  color: var(--gray-600);
}

.calendly-wrap.is-live {
  display: block;
}

.calendly-wrap:not(.is-live) {
  display: none;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
  justify-content: flex-start;
}

.social-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s, transform 0.2s;
}

.social-icon-link:hover {
  background: rgba(201, 162, 39, 0.25);
  transform: translateY(-2px);
}

.social-icon-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.social-grid-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.social-grid-icons .social-icon-link {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.12);
}

.social-grid-icons .social-icon-link img {
  width: 26px;
  height: 26px;
}

/* Reminders */
.reminders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.reminders-help {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: -1rem auto 2rem;
  max-width: 520px;
}

.reminder-card {
  background: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.06);
  transition: opacity 0.2s, box-shadow 0.2s;
}

.reminder-card:has(.reminder-checkbox:not(:checked)) {
  opacity: 0.65;
}

.reminder-select {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  cursor: pointer;
  margin: 0;
}

.reminder-checkbox {
  margin-top: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  accent-color: var(--gold);
  cursor: pointer;
}

.reminder-body {
  flex: 1;
  min-width: 0;
}

.reminder-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.reminder-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.form-status.is-success {
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #a5d6a7;
}

.form-status.is-error {
  background: #ffebee;
  color: #b71c1c;
  border: 1px solid #ef9a9a;
}

.form-status.is-sending {
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

#contact-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.calendar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

/* Social */
.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.social-btn {
  min-width: 140px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-info p {
  margin: 0 0 1rem;
}

/* Footer */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  align-items: start;
}

.footer-explore {
  text-align: right;
}

.footer-explore-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1.5rem;
}

.footer-explore-cols ul {
  margin: 0;
}

.footer-explore .footer-social {
  justify-content: flex-end;
}

.footer h4 {
  color: var(--gold);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

.counties {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-qr {
  width: 80px;
  margin-top: 0.5rem;
}

/* Simulator page */
.sim-page {
  padding-top: calc(var(--nav-height) + 2rem);
  min-height: 100vh;
  background: var(--gray-100);
}

.sim-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  padding-bottom: 4rem;
}

.sim-sidebar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  align-self: start;
}

.sim-sidebar label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.sim-sidebar select {
  width: 100%;
  padding: 0.65rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  font-family: inherit;
}

.sim-main {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.sim-main h1 {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
}

.sim-main .sim-desc {
  color: var(--gray-600);
  margin: 0 0 2rem;
}

.calc-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
}

.calc-form .field {
  display: flex;
  flex-direction: column;
}

.calc-form label {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.calc-form input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 1rem;
}

.results-panel {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-stat {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

.result-stat .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.result-stat .label {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}

.chart-wrap {
  position: relative;
  height: 320px;
  margin: 1.5rem 0;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.results-table th,
.results-table td {
  padding: 0.6rem 0.75rem;
  text-align: right;
  border-bottom: 1px solid var(--gray-200);
}

.results-table th {
  text-align: left;
  background: var(--navy);
  color: var(--white);
}

.results-table th:not(:first-child),
.results-table td {
  text-align: right;
}

.insight-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}

.insight-box strong {
  color: var(--gold-light);
}

.compare-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.compare-col {
  background: var(--white);
  padding: 1rem;
  border-radius: 8px;
}

.compare-col h4 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .book-grid,
  .framework-layout,
  .contact-grid,
  .footer-grid,
  .sim-layout {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.5rem;
    gap: 0.65rem;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
    flex: none;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.06);
    margin: 0.25rem 0 0.5rem;
    padding: 0.25rem 0;
    border-radius: 8px;
  }

  .nav-dropdown-menu a {
    color: rgba(255, 255, 255, 0.92);
    padding-left: 1.25rem;
  }

  .nav-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold);
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .sim-sidebar {
    position: static;
  }

  .footer-explore {
    text-align: left;
  }

  .footer-explore .footer-social {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .compare-cols {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.06);
  border: 1px solid var(--gray-200);
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* Pricing */
.pricing-page {
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
  background: var(--gray-100);
}

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

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.is-popular {
  border-color: var(--gold);
  box-shadow: 0 16px 48px rgba(201, 162, 39, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -0.65rem;
  right: 1rem;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.pricing-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-600);
}

.pricing-tagline {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0 0 1rem;
}

.pricing-card ul {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  flex: 1;
  font-size: 0.92rem;
  color: var(--gray-600);
}

.pricing-card .btn {
  width: 100%;
}

.pricing-note {
  text-align: center;
  color: var(--gray-600);
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Coming soon / page hero */
.page-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
}

.coming-soon h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
}

.coming-soon .sub {
  max-width: 520px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.coming-soon .tagline {
  color: var(--gold-light);
  font-weight: 600;
}

/* Assessment */
.assessment-page {
  padding: calc(var(--nav-height) + 2rem) 0 4rem;
  background: var(--gray-100);
}

.assess-shell {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 760px;
  margin: 0 auto;
}

.assess-progress {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1.5rem;
}

.assess-form label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.assess-form input[type="text"],
.assess-form input[type="number"],
.assess-form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  margin-top: 0.35rem;
}

.assess-fieldset {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 0 0 1.25rem;
}

.assess-fieldset legend {
  font-weight: 700;
  padding: 0 0.5rem;
}

.assess-checkgrid {
  display: grid;
  gap: 0.5rem;
}

.assess-check,
.assess-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-weight: 400;
}

.assess-check input,
.assess-radio input {
  margin-top: 0.2rem;
  accent-color: var(--gold);
}

.assess-tip,
.assess-muted {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.assess-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0.1rem;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: help;
  vertical-align: middle;
}

.assess-fun-fact {
  background: var(--gray-100);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  font-size: 0.9rem;
}

.assess-bill-grid {
  display: grid;
  gap: 0.65rem;
}

.assess-bill-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 0.75rem;
  align-items: center;
}

.assess-plan-block {
  background: var(--gray-100);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.assess-plan-block h4 {
  margin: 0 0 0.5rem;
}

.assess-calc-box {
  background: var(--gray-100);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 0.75rem;
}

.assess-calc-lead {
  margin: 0 0 0.75rem;
}

.assess-calc-breakdown {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}

.assess-calc-breakdown li {
  margin-bottom: 0.4rem;
}

.assess-calc-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
}

.assess-calc-value {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  white-space: nowrap;
}

.assess-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.assess-results h2 {
  margin-top: 0;
}

.assess-celebration {
  text-align: center;
  padding: 1.5rem 1rem 1.75rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.12), rgba(11, 31, 58, 0.04));
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.35);
}

.assess-celebration-inline {
  margin-bottom: 1.75rem;
}

.assess-results .assess-celebration-badge {
  margin: 0 0 0.75rem;
}

.assess-results-lead {
  margin: 0 0 1.35rem;
  color: var(--gray-600);
  line-height: 1.55;
}

.about-page {
  padding: calc(var(--nav-height) + 2rem) 0 4rem;
}

.bill-compare-page {
  padding: calc(var(--nav-height) + 2rem) 0 4rem;
  background: var(--gray-100);
}

.benefits-explore-page {
  padding: calc(var(--nav-height) + 2rem) 0 4rem;
  background: var(--gray-100);
}

.benefits-step-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.benefits-step-card h2 {
  margin-top: 0;
  color: var(--navy);
}

.benefits-step-card label {
  display: block;
  margin: 1rem 0;
  font-weight: 600;
  color: var(--navy);
}

.benefits-step-card input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
}

.benefits-suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.benefits-suggestion {
  display: block;
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  width: 100%;
  margin-bottom: 0.35rem;
}

.benefits-source-row {
  margin-bottom: 0.75rem;
}

.benefits-choice,
.benefits-yesno {
  display: block;
  width: 100%;
  margin-bottom: 0.5rem;
}

.benefits-callout {
  background: #f8f4e8;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
  color: var(--gray-700);
}

.benefits-not-sure-panel {
  margin: 1rem 0;
  padding: 1rem;
  background: #f8f4e8;
  border-radius: var(--radius);
}

.benefits-projection-highlight {
  background: #d4edda;
  border: 1px solid #28a745;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  color: var(--navy);
}

.benefits-projection-highlight ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.benefits-apy-note {
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}

.benefits-progress {
  max-width: 760px;
  margin: 0 auto 1rem;
}

.benefits-progress-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--navy));
  border-radius: 2px;
  animation: benefits-pulse 1.2s ease-in-out infinite alternate;
}

@keyframes benefits-pulse {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

.benefits-found-list {
  padding-left: 1.2rem;
}

.benefit-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.benefit-pill {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.benefit-pill-wrap.compact .benefit-pill {
  font-size: 0.7rem;
  padding: 0.25rem 0.55rem;
}

.employer-match-callout {
  background: #d4edda;
  border: 1.5px solid #28a745;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.45;
  margin: 0.75rem 0;
}

.field-locked-match input {
  background: #f0f4f0;
  border-color: #28a745;
  color: var(--navy);
}

.simulator-lock-note {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.bill-privacy-notice {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.15rem;
  background: #fff8e6;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--navy);
}

.bill-compare-form {
  max-width: 760px;
  margin: 0 auto 1.5rem;
}

.bill-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.bill-upload-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--white);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.bill-upload-card:hover {
  border-color: var(--gold);
}

.bill-upload-label {
  font-weight: 600;
  color: var(--navy);
}

.bill-upload-hint,
.bill-file-name {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.bill-compare-status {
  max-width: 760px;
  margin: 0 auto 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.bill-compare-status.is-error {
  background: #fdecea;
  border-color: #f5c2c0;
  color: #8a1f17;
}

.bill-compare-results {
  max-width: 900px;
  margin: 0 auto;
}

.bill-results-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.bill-results-card h2 {
  margin: 0 0 0.5rem;
}

.bill-results-summary {
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.bill-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.bill-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

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

.bill-table th {
  background: var(--gray-100);
  font-weight: 600;
}

.bill-table tr.is-up td:last-child {
  color: #b71c1c;
  font-weight: 600;
}

.bill-table tr.is-down td:last-child {
  color: #2e7d32;
  font-weight: 600;
}

.bill-window-explainer {
  max-width: 760px;
  margin: 0 auto 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.55;
}

.bill-window-explainer p {
  margin: 0.5rem 0 0;
  color: var(--gray-600);
}

.bill-switch-note {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: #f3f0ff;
  border-radius: 8px;
  border: 1px solid #d4c9f0;
  font-size: 0.92rem;
}

.bill-table tr.is-provider-switch td:first-child {
  font-weight: 600;
  color: var(--navy-light);
}

.assess-subscription-alerts {
  margin: 0 0 1.75rem;
  padding: 1.15rem 1.25rem;
  background: #fff8e6;
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: var(--radius);
}

.assess-subscription-alerts h3 {
  margin: 0 0 0.35rem;
}

.subscription-alert-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.subscription-alert-card {
  background: var(--white);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-200);
}

.subscription-alert-card p {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--gray-600);
}

.subscription-alert-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.bill-limit-notice {
  max-width: 760px;
  margin: 0 auto 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #e8f4fd;
  border: 1px solid #b3d9f2;
  color: var(--navy);
  font-size: 0.92rem;
}

.bill-auth-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 440px;
  width: calc(100% - 2rem);
  box-shadow: 0 20px 50px rgba(11, 31, 58, 0.25);
}

.bill-auth-dialog::backdrop {
  background: rgba(11, 31, 58, 0.45);
}

.bill-auth-dialog-inner {
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem;
}

.bill-auth-dialog-inner h2 {
  margin: 0 2rem 0.75rem 0;
  font-size: 1.2rem;
  color: var(--navy);
}

.bill-auth-dialog-inner p {
  margin: 0 0 0.65rem;
  font-size: 0.94rem;
  line-height: 1.55;
}

.bill-auth-dialog-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bill-auth-dialog-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gray-600);
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.bill-auth-dialog-close:hover {
  color: var(--navy);
}

.bill-signin-banner {
  display: none;
  max-width: 760px;
  margin: 0 auto 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: #fff8e6;
  border: 1px solid rgba(201, 162, 39, 0.5);
  font-size: 0.92rem;
  line-height: 1.55;
}

.bill-signin-banner.is-visible {
  display: block;
}

.bill-signin-banner p {
  margin: 0 0 0.75rem;
}

.bill-upload-gate-msg {
  display: none;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #9a6700;
}

.bill-upload-card.is-signin-required .bill-upload-gate-msg {
  display: block;
}

.bill-upload-card.is-ai-locked .bill-upload-gate-msg {
  display: block;
  color: var(--navy-light);
}

.bill-upload-card.is-ai-locked .bill-upload-gate-msg::before {
  content: none;
}

.bill-upload-card.is-signin-required {
  cursor: pointer;
  border-color: rgba(201, 162, 39, 0.55);
  background: var(--gray-100, #f4f5f7);
  opacity: 0.92;
}

.bill-upload-card.is-signin-required input[type="file"] {
  display: none;
}

.bill-upload-card.is-signin-required::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.bill-upload-card.is-signin-required .bill-file-name {
  color: var(--gray-600);
}

.bill-file-signin-hint {
  display: none;
  color: var(--gold);
  font-weight: 600;
}

.bill-upload-card.is-signin-required .bill-file-signin-hint {
  display: inline;
}

.bill-ai-limit-note {
  margin: 0 0 1rem;
}

.bill-table-editable input {
  width: 100%;
  min-width: 4.5rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 0.88rem;
}

.bill-results-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.bill-row-remove {
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.bill-saved-note {
  margin: 0 0 0.75rem;
}

.line-items-import-note {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #e8f4fd;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--navy);
}

.nav-profile-section {
  margin: 0.35rem 0 0;
  padding: 0.5rem 1rem 0.15rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
}

@media (max-width: 700px) {
  .bill-upload-grid {
    grid-template-columns: 1fr;
  }
}

.assess-celebration-badge {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.assess-celebration h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--navy);
}

.assess-celebration p {
  margin: 0 auto 1.25rem;
  max-width: 36rem;
  color: var(--gray-600);
  line-height: 1.55;
}

.assess-results-gate .assess-celebration {
  margin-bottom: 0;
}

.assess-results-gate .btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.assess-confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.assess-priority-recap,
.assess-checklist {
  padding-left: 1.2rem;
}

.assess-reminder-picks {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.hidden {
  display: none !important;
}

.hint {
  font-weight: 400;
  color: var(--gray-600);
  font-size: 0.9rem;
}

/* Simulator line items & loan actions */
.line-items-wrap {
  width: 100%;
}

.line-items-help {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin: 0 0 1rem;
}

.line-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.line-items-table th,
.line-items-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
}

.line-items-table input[type="text"],
.line-items-table input[type="number"] {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
}

.line-items-table tr.is-inactive {
  opacity: 0.45;
}

.line-remove {
  background: none;
  border: none;
  color: #b71c1c;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.calc-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  grid-column: 1 / -1;
}

.loan-term-beside {
  font-size: 0.95rem;
  color: var(--gray-600);
}

.loan-term-beside strong {
  color: var(--navy);
  font-size: 1.1rem;
}

.calc-form input[readonly] {
  background: var(--gray-100);
  color: var(--navy);
}

.car-compare-wrap {
  width: 100%;
}

.car-compare-settings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.car-compare-preview {
  margin-bottom: 1rem;
}

.car-scenario {
  border: 2px solid var(--gray-200);
}

.car-scenario-saved {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.06);
}

.car-scenario h4 {
  margin: 0 0 0.35rem;
  color: var(--navy);
}

.car-scenario-lead {
  font-size: 0.88rem;
  color: var(--gray-600);
  margin: 0 0 0.75rem;
}

.car-scenario ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.92rem;
}

.assess-check.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.assess-check.is-disabled input {
  cursor: not-allowed;
}

.assess-tool-list {
  padding-left: 1.2rem;
  margin: 0 0 1.5rem;
}

.assess-tool-list li {
  margin-bottom: 0.65rem;
}

.auth-bar {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.06);
}

.auth-bar.is-signed-in {
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(201, 162, 39, 0.08);
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.auth-email-wrap {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
  max-width: 360px;
}

.auth-email-wrap input {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
}

.auth-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .auth-name-row {
    grid-template-columns: 1fr;
  }
}

.password-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field-wrap input {
  width: 100%;
  padding-right: 2.75rem;
}

.password-toggle-btn {
  position: absolute;
  right: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--gray-600);
  cursor: pointer;
}

.password-toggle-btn:hover {
  color: var(--navy);
  background: var(--gray-100);
}

.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;
}

.medic-auth-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: min(420px, calc(100vw - 2rem));
  box-shadow: var(--shadow);
}

.medic-auth-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.medic-auth-dialog-inner {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
}

.medic-auth-dialog-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gray-600);
  cursor: pointer;
}

.medic-auth-dialog-close:hover {
  background: var(--gray-100);
  color: var(--navy);
}

.medic-auth-dialog h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--navy);
}

.medic-auth-dialog-lead {
  margin: 0 0 1rem;
  color: var(--gray-600);
  font-size: 0.95rem;
}

.medic-auth-form {
  margin-top: 0;
}

.medic-auth-error {
  margin: 0;
  font-size: 0.88rem;
  color: #b91c1c;
}

.medic-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--gray-600);
  font-size: 0.85rem;
}

.medic-auth-divider::before,
.medic-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.medic-auth-google {
  width: 100%;
}

.medic-auth-mode-toggle {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: var(--navy);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}

.admin-auth-email {
  margin-bottom: 0.75rem;
}

/* —— Admin dashboard app —— */
.admin-body--app {
  overflow: hidden;
  height: 100vh;
}

.admin-gate {
  min-height: 100vh;
  background: var(--gray-100);
}

.admin-gate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 4vw;
  height: var(--nav-height);
  background: var(--navy);
}

.admin-gate-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 4vw 4rem;
  min-height: calc(100vh - var(--nav-height));
}

.admin-gate-card {
  width: min(520px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.admin-gate-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.admin-gate-card > p {
  margin: 0 0 1.25rem;
  color: var(--gray-600);
}

.admin-auth-inline {
  margin-top: 1rem;
}

.admin-setup {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
}

.admin-app {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  background: var(--gray-100);
}

.admin-aside {
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--white);
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.35rem 1.25rem;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}

.admin-brand-text {
  font-size: 0.82rem;
  line-height: 1.3;
  opacity: 0.95;
}

.admin-brand-text strong {
  display: block;
  color: var(--gold-light);
  font-weight: 700;
}

.admin-aside-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0.75rem;
}

.admin-aside-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.admin-aside-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.admin-aside-link.is-active {
  background: rgba(201, 162, 39, 0.22);
  color: var(--white);
  box-shadow: inset 3px 0 0 var(--gold);
}

.admin-aside-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
}

.admin-aside-footer {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-aside-back {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

.admin-aside-back:hover {
  color: var(--gold-light);
}

.admin-workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.75rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-header-eyebrow {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-600);
}

.admin-header-titles h1 {
  margin: 0.15rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.admin-header-auth .nav-profile-avatar {
  background: var(--navy);
  color: var(--gold);
}

.admin-workspace-main {
  flex: 1;
  min-height: 0;
  padding: 1.5rem 1.75rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-dashboard-status {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-size: 0.92rem;
  border: 1px solid var(--gray-200);
}

.admin-dashboard-status.is-error {
  background: #fdecea;
  color: #8a1f17;
  border-color: #f5c2c0;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.06);
  border: 1px solid var(--gray-200);
}

.admin-stat-label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 500;
}

.admin-stat-value {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--navy);
}

.admin-stat-value--success {
  color: #2e7d32;
}

.admin-stat-value--muted {
  color: var(--gray-600);
}

.admin-stat-value--bill-up {
  color: #b45309;
}

.admin-stat-value--bill-down {
  color: #2e7d32;
}

.admin-bill-trend {
  font-weight: 600;
  white-space: nowrap;
}

.admin-bill-trend.is-up {
  color: #b45309;
}

.admin-bill-trend.is-down {
  color: #2e7d32;
}

.admin-bill-trend.is-flat {
  color: var(--gray-600);
}

.admin-bill-summary-cell {
  max-width: 280px;
  font-size: 0.88rem;
  color: var(--gray-600);
}

.admin-plan-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
}

.admin-plan-bar {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  min-width: 64px;
  max-width: 120px;
}

.admin-plan-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
  transition: width 0.2s ease;
}

.admin-plan-bar-fill.is-complete {
  background: #2e7d32;
}

.admin-plan-pct {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.admin-plan-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.admin-plan-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.35rem 0;
  font-size: 0.92rem;
}

.admin-plan-checklist li.is-done {
  color: var(--gray-600);
  text-decoration: line-through;
}

.admin-plan-check-icon {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--gold);
}

.admin-plan-check-icon.is-done {
  color: #2e7d32;
}

.admin-stat-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--gray-600);
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.05);
  padding: 1.25rem 1.35rem;
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-card-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.admin-link-btn {
  border: none;
  background: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}

.admin-link-btn:hover {
  color: var(--gold);
}

.admin-list-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-empty {
  margin: 0;
  color: var(--gray-600);
  font-size: 0.92rem;
}

.admin-rank-list,
.admin-list-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-rank-item,
.admin-list-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  padding: 0.75rem 0.9rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.admin-list-item--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

.admin-list-item-name {
  width: 100%;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-item-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

.admin-list-item-date {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--gray-600);
  white-space: nowrap;
}

.admin-list-item-trail {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-list-panel .admin-plan-progress {
  min-width: 0;
  max-width: 5.5rem;
  flex: 1 1 4.5rem;
}

.admin-list-panel .admin-plan-bar {
  max-width: 3.5rem;
}

.admin-list-item {
  justify-content: space-between;
}

.admin-rank-item:hover,
.admin-list-item:hover {
  border-color: rgba(201, 162, 39, 0.45);
  background: #fffdf6;
}

.admin-list-item.is-selected {
  border-color: var(--gold);
  background: #fff9e8;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.25);
}

.admin-rank-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.admin-rank-meta,
.admin-list-item-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.admin-rank-meta strong,
.admin-list-item-main strong,
.admin-list-item-name {
  font-size: 0.9rem;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list-item-name {
  font-weight: 700;
}

.admin-list-item-email {
  font-size: 0.78rem;
  color: var(--gray-600);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-rank-meta span,
.admin-list-item-main > span {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.admin-list-preview {
  font-size: 0.78rem !important;
  color: var(--gray-600) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-pill {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.admin-pill.is-yes {
  background: #e8f5e9;
  color: #2e7d32;
}

.admin-pill.is-no {
  background: var(--gray-100);
  color: var(--gray-600);
}

.admin-pill.is-na {
  background: #e3f2fd;
  color: #1565c0;
}

.admin-split {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.admin-list-panel {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 200px);
}

.admin-list-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--gray-200);
}

.admin-list-panel-head h2 {
  margin: 0;
  font-size: 1rem;
}

.admin-list-scroll {
  overflow-y: auto;
  padding: 0.65rem;
  max-height: calc(100vh - 260px);
}

.admin-detail-panel {
  min-width: 0;
}

.admin-detail-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(11, 31, 58, 0.05);
  padding: 1.35rem 1.5rem;
}

.admin-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.admin-detail-head h2 {
  margin: 0;
  font-size: 1.15rem;
  word-break: break-word;
}

.admin-detail-sub {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.admin-detail-cal {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--gray-600);
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-detail-block {
  background: var(--gray-100);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

.admin-detail-block--wide {
  grid-column: 1 / -1;
}

.admin-detail-block h3 {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-600);
}

.admin-detail-block p {
  margin: 0;
  font-size: 0.92rem;
}

.admin-detail-block ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
}

.admin-detail-block li {
  margin-bottom: 0.3rem;
}

.admin-detail-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  background: var(--white);
  border: 1px dashed var(--gray-200);
  border-radius: var(--radius);
  color: var(--gray-600);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table--light th {
  background: var(--gray-100);
  color: var(--navy);
  font-weight: 600;
}

.admin-priorities-card .admin-card-header {
  align-items: flex-start;
}

.admin-priorities-lead {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--gray-600);
  max-width: 40rem;
}

.admin-priorities-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.admin-priorities-chart-wrap {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--gray-200);
}

.admin-priorities-chart-wrap canvas {
  max-width: 100%;
}

.admin-priorities-table-wrap {
  overflow-x: auto;
}

.admin-priorities-table td:first-child {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-priority-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .admin-priorities-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-app {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .admin-aside {
    position: relative;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .admin-aside-nav {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0.5rem;
  }

  .admin-aside-link {
    flex: 1;
    min-width: 8.5rem;
    justify-content: center;
    font-size: 0.82rem;
    padding: 0.65rem 0.75rem;
  }

  .admin-aside-footer {
    display: none;
  }

  .admin-split {
    grid-template-columns: 1fr;
  }

  .admin-list-panel {
    max-height: none;
  }

  .admin-list-scroll {
    max-height: 280px;
  }

  .admin-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-workspace-main {
    padding: 1rem;
  }

  .admin-header {
    padding: 1rem;
  }
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 0.88rem;
}

.admin-table th,
.admin-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--gray-200);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: var(--navy);
  color: var(--white);
}

.admin-table ul {
  margin: 0;
  padding-left: 1rem;
}

.nav-menu a[aria-current="page"] {
  color: var(--gold);
}

.nav-auth {
  flex-shrink: 0;
  margin-left: auto;
  position: relative;
  z-index: 130;
}

.nav-profile {
  position: relative;
}

.nav-profile-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

.nav-profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-profile-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(280px, 88vw);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(11, 31, 58, 0.2);
  padding: 0.85rem 0 0.5rem;
  z-index: 140;
}

.nav-profile-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: var(--white);
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(11, 31, 58, 0.04);
}

.nav-profile-header {
  padding: 0 1rem 0.75rem;
}

.nav-profile-brand {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.nav-profile-email {
  display: block;
  color: var(--gray-600);
  font-size: 0.82rem;
  word-break: break-all;
}

.nav-profile-name {
  display: block;
  color: var(--gray-600);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.nav-profile-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 0 0 0.35rem;
}

.nav-profile-item-desc {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--gray-600);
  margin-top: 0.15rem;
}

.nav-profile-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.65rem 1rem;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-profile-item:hover {
  background: var(--gray-100);
  color: var(--navy);
}

.nav-profile-signout {
  color: var(--navy);
}

.nav-auth-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.nav-auth-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-auth-signin {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.nav-auth-signin:hover {
  background: var(--gold-light);
  color: var(--navy);
}

.action-progress-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 1rem;
  padding: 1rem 1.15rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
}

.action-progress-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  color: var(--navy);
}

.action-dial {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
}

.action-dial svg {
  display: block;
}

.action-dial-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.action-checklist .assess-check {
  cursor: pointer;
}

.action-checklist input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--gold);
  cursor: pointer;
}

.assess-shell.is-results-only .assess-nav {
  display: none;
}

.my-plans-page .my-results-section {
  max-width: 820px;
}

.my-plans-gate {
  max-width: 520px;
  margin: 2rem auto 0;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.bill-source-group {
  border: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.bill-source-group legend {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.bill-source-required {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.bill-source-optional {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--gray-600);
}

.bill-source-hint {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--gray-600);
}

.my-results-section {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.my-results-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.saved-plan-card {
  background: var(--gray-100);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.saved-plan-card summary {
  cursor: pointer;
  font-weight: 600;
}

.saved-plan-detail ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
}

@media (max-width: 900px) {
  .logo {
    flex: 1;
    min-width: 0;
  }

  .nav-auth {
    order: 2;
    margin-left: 0;
  }

  .nav-toggle {
    order: 3;
  }

  .nav-menu {
    order: 4;
  }

  .nav-profile-menu {
    right: 0;
  }
}

/* Net Worth reports */
.net-worth-page {
  padding: calc(var(--nav-height) + 2rem) 0 4rem;
  background: var(--gray-100);
}

.net-worth-page .container {
  max-width: 1100px;
}

.net-worth-page .section-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  color: var(--navy);
}

.net-worth-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  border-bottom: 2px solid var(--gray-200, #e8e8e8);
  justify-content: center;
}
.net-worth-tab { background: none; border: none; padding: 0.75rem 1rem; font-weight: 600; color: var(--gray-600); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.net-worth-tab.is-active { color: var(--navy); border-bottom-color: var(--navy); }
.net-worth-filters { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; justify-content: center; }
.net-worth-share, .bill-share-networth { display: flex; gap: 0.5rem; align-items: flex-start; margin: 1rem auto; padding: 0.75rem; background: #f0f7f0; border: 1px solid #28a745; border-radius: 8px; font-size: 0.9rem; line-height: 1.4; max-width: 100%; }
#net-worth-tier-note { text-align: center; margin-bottom: 0.5rem; }
.net-worth-panel { margin: 0 auto; }
.net-worth-manual.card,
.net-worth-upload.card { margin-top: 1.5rem; }
.net-worth-split { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; }
@media (max-width: 800px) { .net-worth-split { grid-template-columns: 1fr; } }
.net-worth-chart-wrap { background: #fff; border: 1px solid var(--gray-200, #e8e8e8); border-radius: 12px; padding: 1rem; position: relative; }
.net-worth-center-label { text-align: center; margin-top: -2.5rem; font-size: 0.95rem; }
.net-worth-sidebar { background: #fafafa; border: 1px solid var(--gray-200); border-radius: 12px; padding: 1rem; }
.net-worth-stat-block { margin-bottom: 1rem; }
.net-worth-stat-block span { display: block; font-size: 0.75rem; text-transform: uppercase; color: var(--gray-600); }
.net-worth-stat-block strong { font-size: 1.35rem; color: var(--navy); }
.net-worth-cat-table { width: 100%; font-size: 0.85rem; margin-top: 0.5rem; }
.nw-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.nw-cat-row { cursor: pointer; }
.nw-cat-row:hover { background: #f5f5f5; }
.nw-positive { color: #1e7e34; }
.nw-negative { color: #c0392b; }
.net-worth-form-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; align-items: center; }
.net-worth-form-row input, .net-worth-form-row select { flex: 1; min-width: 120px; padding: 0.5rem; }
.net-worth-cat-detail { margin-top: 1rem; padding: 1rem; border: 1px solid var(--gray-200); border-radius: 8px; background: #fff; }

/* ——— Platform-centric home (Medic Money) ——— */
.platform-hero {
  background: linear-gradient(145deg, #0b1f3a 0%, #132d52 45%, #1a3a5c 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
  min-height: auto;
}
.platform-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.platform-hero-copy h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  color: #fff;
}
.platform-hero .tagline { color: var(--gold); font-weight: 600; margin: 0; }
.platform-lead { font-size: 1.1rem; opacity: 0.92; max-width: 36rem; line-height: 1.6; }
.platform-hero .hero-actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.platform-hero .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.platform-hero .btn-outline:hover { background: rgba(255,255,255,0.1); }
.platform-hero-visual {
  position: relative;
  min-height: 280px;
}
.platform-shot {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.platform-shot strong { display: block; font-size: 1.05rem; color: #fff; }
.platform-shot span { font-size: 0.85rem; opacity: 0.8; }
.platform-shot-main {
  position: absolute;
  top: 0;
  left: 10%;
  width: 58%;
  z-index: 3;
}
.platform-shot-main img { margin-bottom: 0.75rem; border-radius: 12px; }
.platform-shot-secondary {
  position: absolute;
  bottom: 8%;
  left: 0;
  width: 48%;
  z-index: 2;
}
.platform-shot-tertiary {
  position: absolute;
  top: 28%;
  right: 0;
  width: 46%;
  z-index: 1;
}
.platform-tools-strip {
  background: #f8f9fb;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.platform-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.platform-tool-card {
  display: block;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.platform-tool-card:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(11,31,58,0.08);
  transform: translateY(-2px);
}
.platform-tool-card h3 { font-size: 1rem; color: var(--navy); margin: 0 0 0.35rem; }
.platform-tool-card p { font-size: 0.88rem; color: var(--gray-600); margin: 0; line-height: 1.45; }

@media (max-width: 900px) {
  .platform-hero-inner { grid-template-columns: 1fr; }
  .platform-hero-visual { min-height: 220px; margin-top: 1rem; }
  .platform-tools-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .platform-tools-grid { grid-template-columns: 1fr; }
}

/* Wider flat nav for platform tools */
@media (min-width: 1024px) {
  .nav-menu { gap: 0.35rem 0.65rem; flex-wrap: wrap; justify-content: flex-end; }
  .nav-menu a { font-size: 0.78rem; white-space: nowrap; }
}
