/* Desktop: show full nav, hide collapsed Menu */
@media (min-width: 701px) {
  .topbar .desktop-nav {
    display: flex !important;
  }

  .topbar .mobile-nav {
    display: none !important;
  }
}

/* Mobile: hide full nav, show collapsed Menu */
@media (max-width: 700px) {
  .topbar .desktop-nav {
    display: none !important;
  }

  .topbar .mobile-nav {
    display: block !important;
    width: 100%;
    margin-top: 12px;
    border: 1px solid #dce8da;
    border-radius: 22px;
    padding: 12px 16px;
    background: #ffffff;
  }
}

:root {
  --background: #f6f8f4;
  --background-secondary: #eef3ea;
  --card: #ffffff;
  --card-soft: #f8faf6;
  --text: #102015;
  --text-secondary: #5f6f64;
  --text-muted: #8a978e;
  --primary: #2e7d32;
  --primary-pressed: #256a2a;
  --primary-soft: #ddeedf;
  --action: #0091ff;
  --border: #d9e3d6;
  --warning: #b7791f;
  --error: #c62828;
  --shadow: 0 18px 40px rgba(16, 32, 21, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(46, 125, 50, 0.12), transparent 28%),
    linear-gradient(180deg, #fbfdf9 0%, var(--background) 52%, #f2f6ee 100%);
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

.site-shell {
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
  padding: 28px 0 80px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 227, 214, 0.92);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 24px rgba(16, 32, 21, 0.05);
  position: sticky;
  top: 14px;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(46, 125, 50, 0.95), rgba(0, 145, 255, 0.9));
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(46, 125, 50, 0.2);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(238, 243, 234, 0.7);
  border: 1px solid rgba(217, 227, 214, 0.9);
  font-size: 14px;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--primary-soft);
  text-decoration: none;
}

.hero {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
}

.hero-card,
.card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 227, 214, 0.92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 30px 30px 28px;
}

.hero-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.lead {
  max-width: 66ch;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meta-badge {
  padding: 10px 14px;
  background: var(--card-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px;
}

.hero-side {
  padding: 24px;
}

.hero-side h2,
.card h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.hero-side p,
.card p,
.card li {
  color: var(--text-secondary);
  line-height: 1.7;
}

.grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.span-12 {
  grid-column: span 12;
}

.span-8 {
  grid-column: span 8;
}

.span-7 {
  grid-column: span 7;
}

.span-6 {
  grid-column: span 6;
}

.span-5 {
  grid-column: span 5;
}

.span-4 {
  grid-column: span 4;
}

.card {
  padding: 24px;
}

#support-form-card {
  scroll-margin-top: 110px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.card ul,
.card ol {
  margin: 12px 0 0;
  padding-left: 20px;
}

.card li+li {
  margin-top: 10px;
}

.notice {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(183, 121, 31, 0.25);
  background: rgba(183, 121, 31, 0.09);
  color: #6e4d16;
}

.success {
  border-color: rgba(46, 125, 50, 0.38);
  background: linear-gradient(180deg,
      rgba(46, 125, 50, 0.18),
      rgba(46, 125, 50, 0.1));
  color: #18451b;
  box-shadow: inset 0 0 0 1px rgba(46, 125, 50, 0.08);
  font-weight: 600;
}

.danger {
  border-color: rgba(198, 40, 40, 0.25);
  background: rgba(198, 40, 40, 0.08);
  color: #7d1d1d;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button,
button.button {
  appearance: none;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #3f9344);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(46, 125, 50, 0.2);
}

/* This changes only the Save button text in the password reset form */
#reset-form button.button {
  font-size: 1.25rem;
}

.button.secondary {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.button.linklike {
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(46, 125, 50, 0.18);
  box-shadow: none;
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 600;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(248, 250, 246, 0.95);
  color: var(--text);
  font: inherit;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.kicker {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 14px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.footer {
  margin-top: 36px;
  padding: 22px 24px 30px;
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
}

.hidden {
  display: none !important;
}

.mobile-nav {
  display: none;
}

.account-action-priority {
  margin-top: 32px;
}

.account-action-info {
  margin-top: 32px;
}

.action-card {
  order: 1;
}

.next-steps-card {
  order: 2;
}

@media (max-width: 980px) {

  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .span-8,
  .span-7,
  .span-6,
  .span-5,
  .span-4 {
    grid-column: span 12;
  }

  .topbar {
    border-radius: 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, var(--content-width));
    padding-top: 18px;
  }

  .hero-card,
  .hero-side,
  .card {
    padding: 20px;
  }

  .hero-card h1 {
    line-height: 1;
  }
}

/* Mobile account action layout */
@media (max-width: 700px) {
  .topbar {
    align-items: flex-start;
    gap: 16px;
  }

  .topbar .desktop-nav,
  .topbar>.nav {
    display: none !important;
  }

  .topbar .mobile-nav {
    display: block !important;
    width: 100%;
    margin-top: 12px;
    border: 1px solid #dce8da;
    border-radius: 22px;
    padding: 12px 16px;
    background: #ffffff;
  }

  .mobile-nav summary {
    cursor: pointer;
    font-weight: 800;
    color: #092315;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav summary::before {
    content: "▶ ";
  }

  .mobile-nav[open] summary::before {
    content: "▼ ";
  }

  .mobile-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
  }

  .mobile-nav-links a {
    display: inline-block;
    border: 1px solid #dce8da;
    border-radius: 999px;
    padding: 9px 14px;
    text-decoration: none;
    color: #5f7064;
    font-weight: 700;
  }

  .account-action-priority {
    margin-top: 20px;
  }

  .account-action-info {
    margin-top: 20px;
  }

  .grid,
  .hero {
    display: flex;
    flex-direction: column;
  }

  .action-card {
    order: 1;
  }

  .next-steps-card {
    order: 2;
  }

  .account-action-info .hero-card {
    order: 3;
  }

  .account-action-info .hero-side {
    order: 4;
  }

  #hero-title {
    font-size: 38px;
    line-height: 44px;
  }

  #hero-body {
    font-size: 22px;
    line-height: 34px;
  }

  #reset-panel h2,
  #status-title {
    font-size: 32px;
    line-height: 38px;
  }

  .button {
    width: 100%;
    text-align: center;
  }
}

@media (min-width: 701px) {
  .topbar .desktop-nav {
    display: flex !important;
  }

  .topbar .mobile-nav {
    display: none !important;
  }
}

/* Simplified screen after account action completes */
.auth-complete .account-action-info {
  display: none !important;
}

.auth-complete-compact .next-steps-card,
.auth-complete .account-action-info {
  display: none !important;
}

.auth-complete .account-action-priority {
  align-items: stretch;
}

.auth-complete-compact .account-action-priority {
  display: block;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.auth-complete-compact .action-card {
  width: 100%;
}

.auth-complete #status-box {
  display: block;
}
