/* ==========================================================================
   CSS Custom Properties (Light Theme)
   ========================================================================== */

:root {
  /* Colors */
  --bg: #ffffff;
  --bg-2: #f4f4f4;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --surface-3: #efefef;
  --ink: #111111;
  --ink-2: #2a2a2a;
  --muted: #5a5a5a;
  --line: #e2e2e2;
  --accent: #0b3a66;
  --accent-2: #082c4f;
  --accent-3: #061f39;
  --shadow: 0 30px 80px rgba(10, 15, 26, 0.14);
  --header-bg: rgba(255, 255, 255, 0.92);
  --header-border: var(--line);
  --outline-border: var(--ink);
  --overlay: rgba(17, 17, 17, 0.45);
  --badge-bg: rgba(17, 17, 17, 0.08);
  --toggle-track: rgba(17, 17, 17, 0.2);
  --tint-rgb: 17, 17, 17;

  /* Spacing & Layout */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1200px;
}

/* ==========================================================================
   Dark Theme
   ========================================================================== */

:root[data-theme="dark"] {
  --bg: #0b1b2f;
  --bg-2: #0e2238;
  --surface: #0f253d;
  --surface-2: #112944;
  --surface-3: #142f4b;
  --ink: #ffffff;
  --ink-2: #e6e6e6;
  --muted: #bdbdbd;
  --line: #1e3650;
  --accent: #ffffff;
  --accent-2: #f2f2f2;
  --accent-3: #dcdcdc;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  --header-bg: rgba(11, 27, 47, 0.92);
  --header-border: rgba(30, 54, 80, 0.7);
  --outline-border: var(--line);
  --overlay: rgba(3, 9, 18, 0.7);
  --badge-bg: rgba(255, 255, 255, 0.12);
  --toggle-track: rgba(255, 255, 255, 0.2);
  --tint-rgb: 255, 255, 255;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: none;
  pointer-events: none;
  z-index: -1;
}

html[data-theme="dark"] body {
  background: var(--bg);
}

html[data-theme="dark"] body::before {
  background-image: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: "Nunito", "Helvetica Neue", Arial, sans-serif;
  margin: 0 0 16px;
  line-height: 1.15;
}

p {
  margin: 0 0 16px;
  color: var(--ink-2);
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.container {
  width: min(100% - 40px, var(--max-width));
  margin: 0 auto;
}

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

.micro {
  font-size: 0.85rem;
  color: var(--muted);
}

.center {
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-2);
  margin-bottom: 12px;
}

.lede {
  font-size: 1.1rem;
}

/* ==========================================================================
   Skip Link
   ========================================================================== */

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  z-index: 10;
}

.skip-link:focus {
  left: 16px;
}

html[data-theme="dark"] .skip-link {
  background: var(--surface);
  color: var(--ink);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  min-height: 44px;
}

.btn:hover {
  box-shadow: 0 16px 26px rgba(17, 22, 23, 0.12);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .btn.primary {
  color: var(--bg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn .btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-top-color: rgba(255, 255, 255, 0.1);
  display: none;
  margin-left: 10px;
  animation: button-spin 0.9s linear infinite;
}

.btn.is-loading {
  background: rgba(var(--tint-rgb), 0.08);
  color: var(--ink-2);
  border-color: rgba(var(--tint-rgb), 0.18);
  box-shadow: none;
  transform: none;
}

html[data-theme="dark"] .btn.is-loading {
  background: #ffffff;
  color: var(--bg);
  border-color: #ffffff;
}

.btn.is-loading:hover {
  box-shadow: none;
  transform: none;
}

.btn.is-loading .btn-spinner {
  display: inline-block;
  border-color: currentColor;
  border-top-color: transparent;
  opacity: 0.7;
}

.btn.is-loading .btn-label {
  opacity: 0.8;
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

html[data-theme="dark"] .btn.ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 26px rgba(0, 0, 0, 0.35);
}

.btn.outline {
  background: var(--surface);
  border-color: var(--outline-border);
  color: var(--ink);
}

.icon-button {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

/* ==========================================================================
   Badges, Pills & Tags
   ========================================================================== */

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--badge-bg);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
}

.badge.soft {
  background: rgba(var(--tint-rgb), 0.12);
  color: var(--accent-2);
}

html[data-theme="dark"] .badge.soft {
  background: rgba(var(--tint-rgb), 0.18);
  color: var(--accent);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(var(--tint-rgb), 0.12);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 600;
}

html[data-theme="dark"] .pill {
  background: rgba(var(--tint-rgb), 0.18);
  color: var(--accent);
}

.tag {
  display: inline-flex;
  margin-top: 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(var(--tint-rgb), 0.1);
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

html[data-theme="dark"] .status-pill {
  background: rgba(var(--tint-rgb), 0.18);
  color: var(--accent);
}

.status-pill.current {
  background: rgba(var(--tint-rgb), 0.2);
}

html[data-theme="dark"] .status-pill.current {
  background: rgba(var(--tint-rgb), 0.25);
}

.status-email {
  margin-top: -8px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.status-email strong {
  color: var(--ink);
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.toast {
  --toast-accent: var(--accent);
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px 18px;
  width: min(360px, calc(100% - 32px));
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--toast-accent);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}

.toast-info {
  --toast-accent: var(--accent);
}

.toast-success {
  --toast-accent: #1f7a5d;
}

.toast-error {
  --toast-accent: #b42318;
}

html[data-theme="dark"] .toast-error {
  --toast-accent: #ff6b5a;
}

.toast-body {
  display: grid;
  gap: 4px;
}

.toast-title {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.toast-message {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.toast-close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 999px;
  align-self: start;
}

.toast-close:hover {
  background: rgba(var(--tint-rgb), 0.08);
  color: var(--ink);
}

@media (max-width: 640px) {
  .toast {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
  }
}

/* ==========================================================================
   Site Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand img {
  width: 220px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--ink-2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(10, 15, 26, 0.08);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 96px 0;
}

.section.tonal {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), var(--bg-2));
}

html[data-theme="dark"] .section.tonal {
  background: linear-gradient(180deg, rgba(14, 34, 56, 0.98), rgba(11, 27, 47, 0.96));
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 120px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4vw, 4.1rem);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-stack {
  display: grid;
  gap: 18px;
}

.hero-card {
  width: min(100%, 460px);
}

.hero-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ==========================================================================
   Cards & Panels
   ========================================================================== */

.card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(17, 22, 23, 0.08);
}

.panel {
  background: var(--surface);
  padding: 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(17, 22, 23, 0.12);
  display: grid;
  gap: 16px;
}

.mini-panel {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(17, 22, 23, 0.12);
  display: grid;
  gap: 12px;
  width: min(100%, 420px);
}

.mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.mini-status {
  font-weight: 600;
  color: var(--muted);
}

.mini-status.on {
  color: var(--accent);
}

.mini-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Layout Grids
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.feature h3 {
  margin-bottom: 8px;
}

.product-cards {
  display: grid;
  gap: 16px;
  grid-template-rows: repeat(3, 1fr);
}

.product-cards .card {
  display: flex;
  flex-direction: column;
}

.product-cards .card .tag {
  margin-top: auto;
  padding-top: 12px;
}

/* ==========================================================================
   Strategy Section
   ========================================================================== */

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.strategy-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 34px rgba(17, 22, 23, 0.12);
  display: grid;
  gap: 16px;
}

.strategy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.strategy-chart {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.strategy-card ul {
  padding-left: 18px;
  margin: 0;
  color: var(--ink-2);
}

/* ==========================================================================
   Subscriptions Section
   ========================================================================== */

.callouts {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  grid-template-rows: repeat(3, 1fr);
}

.callouts div {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}

.callouts.product-callouts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
}

.callouts.product-callouts > div {
  display: flex;
  flex-direction: column;
  min-height: 150px;
}

.callouts.product-callouts .tag {
  margin-top: auto;
  padding-top: 12px;
}

.account-preview {
  display: flex;
  justify-content: center;
}

.account-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: min(100%, 420px);
}

.account-card.hero-card {
  width: min(100%, 460px);
}

.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.account-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.account-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.account-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ==========================================================================
   Notifications Section
   ========================================================================== */

.notify-panel {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 0;
  color: var(--ink-2);
  line-height: 1.4;
}

.checklist li::before {
  content: "";
  position: static;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(var(--tint-rgb), 0.15);
  border: 2px solid var(--accent);
}

/* Toggle Switch */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.toggle-title {
  font-weight: 600;
  margin: 0 0 4px;
}

.toggle-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--toggle-track);
  border-radius: 999px;
  transition: 0.2s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: var(--surface);
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .slider {
  background: var(--accent);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* Timezone Display */
.timezone,
.timezone-values {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}

.timezone-values {
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pricing-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(17, 22, 23, 0.12);
  display: grid;
  gap: 16px;
}

.pricing-card ul,
.plan-card ul {
  padding-left: 18px;
  margin: 0;
  color: var(--ink-2);
}

.featured {
  border-color: rgba(var(--tint-rgb), 0.5);
  transform: translateY(-8px);
}

.featured-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
}

.billing {
  color: var(--muted);
}

.long-view {
  margin-top: 36px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(var(--tint-rgb), 0.1);
  border: 1px solid rgba(var(--tint-rgb), 0.25);
}

html[data-theme="dark"] .long-view {
  background: rgba(var(--tint-rgb), 0.12);
  border: 1px solid rgba(var(--tint-rgb), 0.25);
}

.long-view h3 {
  margin-bottom: 8px;
}

/* ==========================================================================
   FAQ & Disclosures
   ========================================================================== */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.disclosure-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.faq-card,
.disclosure-card {
  background: var(--surface);
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(17, 22, 23, 0.08);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.cta-section {
  padding: 80px 0;
  background: linear-gradient(120deg, rgba(var(--tint-rgb), 0.18), rgba(var(--tint-rgb), 0.04));
}

html[data-theme="dark"] .cta-section {
  background: linear-gradient(120deg, rgba(var(--tint-rgb), 0.18), rgba(11, 27, 47, 0.6));
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-inner .btn {
  white-space: nowrap;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
  padding: 60px 0 30px;
  background: var(--surface-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.footer-logo {
  width: 140px;
  margin-bottom: 12px;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-signature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-signature .footer-logo {
  width: 110px;
  margin: 0;
}


/* ==========================================================================
   Dashboard Layout
   ========================================================================== */

.dashboard-body {
  background: var(--bg);
}

.dashboard-body::before {
  background-image: none;
}

.dashboard {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 80px);
}

/* Dashboard Topbar */
.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.dashboard-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-toggle {
  display: none;
}

/* Theme Toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  min-height: 44px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

/* User Menu */
.user-menu {
  position: relative;
}

.user-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 6px 12px;
  cursor: pointer;
  color: var(--ink);
  min-height: 44px;
}

.user-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(var(--tint-rgb), 0.12);
  color: var(--accent-2);
  font-weight: 700;
}

html[data-theme="dark"] .user-initials {
  background: rgba(var(--tint-rgb), 0.18);
  color: var(--accent);
}

.user-info {
  display: grid;
  gap: 2px;
  text-align: left;
}

.user-name {
  font-weight: 600;
}

.user-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.chevron svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

/* User Dropdown */
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: none;
  z-index: 60;
}

.user-menu.open .user-dropdown {
  display: grid;
}

.user-dropdown a,
.user-dropdown button {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: rgba(var(--tint-rgb), 0.08);
  color: var(--accent-2);
}

html[data-theme="dark"] .user-dropdown a:hover,
html[data-theme="dark"] .user-dropdown button:hover {
  background: rgba(var(--tint-rgb), 0.12);
  color: var(--accent);
}

.menu-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 0;
}

.signout {
  color: #c0392b;
}

html[data-theme="dark"] .signout {
  color: #ff6b5a;
}

.user-dropdown .signout:hover {
  background: rgba(192, 57, 43, 0.12);
  color: #c0392b;
}

html[data-theme="dark"] .user-dropdown .signout:hover {
  background: rgba(255, 107, 90, 0.18);
  color: #ff6b5a;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
}

.sidebar-head h2 {
  margin-bottom: 6px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: var(--ink-2);
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
  background: rgba(var(--tint-rgb), 0.12);
  color: var(--accent-2);
}

html[data-theme="dark"] .sidebar-nav a.active,
html[data-theme="dark"] .sidebar-nav a:hover {
  background: rgba(var(--tint-rgb), 0.18);
  color: var(--accent);
}

.sidebar-nav a.active {
  box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
}

/* Dashboard Main Content */
.dashboard-main {
  padding: 32px 40px 80px;
  display: grid;
  gap: 48px;
}

.dashboard-section {
  display: grid;
  gap: 24px;
}

.section-header {
  max-width: 720px;
}

/* Dashboard Grids */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* Plan Cards */
.plan-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(17, 22, 23, 0.08);
  display: grid;
  gap: 14px;
}

.plan-card.current {
  border: 2px solid rgba(var(--tint-rgb), 0.5);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

.plan-price span {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

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

/* Summary Card */
.summary-card {
  background: var(--bg-2);
}

/* Payment Components */
.payment-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.payment-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.payment-details {
  display: grid;
  gap: 4px;
}

.payment-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.payment-option input {
  margin-top: 4px;
}

/* Dashboard Overlay */
.dashboard-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 25;
}

.dashboard-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

/* Dashboard Footer */
.dashboard-footer {
  padding: 20px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

/* ==========================================================================
   Modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 40;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.98);
  width: min(92vw, 980px);
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 45;
  padding: 24px;
  display: grid;
  gap: 20px;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

body.modal-open {
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.modal-steps {
  display: grid;
  gap: 20px;
}

/* Stepper */
.stepper {
  display: flex;
  gap: 12px;
}

.step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--muted);
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(var(--tint-rgb), 0.12);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  font-weight: 700;
}

html[data-theme="dark"] .step-number {
  background: rgba(var(--tint-rgb), 0.18);
  color: var(--accent);
}

.step-title {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

.step-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.step.active {
  background: var(--surface);
  border-color: rgba(var(--tint-rgb), 0.4);
  color: var(--ink);
}

.step.active .step-number {
  background: var(--accent);
  color: #ffffff;
}

html[data-theme="dark"] .step.active .step-number {
  color: var(--bg);
}

/* Modal Steps */
.modal-step {
  display: none;
  gap: 20px;
}

.modal-step.active {
  display: grid;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr;
  gap: 20px;
}

.modal-grid.two {
  grid-template-columns: 1.2fr 1fr;
}

.modal-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}

.modal-section.summary {
  background: var(--surface);
}

.modal-plan {
  display: grid;
  gap: 4px;
}

.modal-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* Summary List */
.summary-list {
  display: grid;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.summary-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Modal Footer */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modal-footer.end {
  justify-content: flex-end;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* ==========================================================================
   Portal Layout
   ========================================================================== */

.portal-body {
  background: radial-gradient(circle at top right, rgba(var(--tint-rgb), 0.12), transparent 55%),
    var(--bg);
}

.portal {
  padding-bottom: 80px;
}

.portal-hero {
  padding: 120px 0 60px;
}

.portal-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.portal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-section {
  padding: 72px 0;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* ==========================================================================
   Legal Pages
   ========================================================================== */

.legal-body {
  background: radial-gradient(circle at 20% 20%, rgba(var(--tint-rgb), 0.1), transparent 55%), var(--bg);
}

.legal {
  padding: 120px 0 80px;
}

.legal-content {
  max-width: 860px;
  display: grid;
  gap: 24px;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-card {
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: 0 14px 26px rgba(17, 22, 23, 0.08);
}

.legal-card h2 {
  margin-bottom: 12px;
}

.legal-card ul {
  padding-left: 18px;
  margin: 0;
  color: var(--ink-2);
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-row {
  display: grid;
  gap: 8px;
}

.form-row input,
.form-row select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--surface);
  color: var(--ink);
}

.form-row input::placeholder {
  color: var(--muted);
  opacity: 1;
}

html[data-theme="dark"] .form-row input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.validation,
.field-error {
  color: #b42318;
  font-size: 0.85rem;
}

html[data-theme="dark"] .validation,
html[data-theme="dark"] .field-error {
  color: #ff6b5a;
}

.inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-legal {
  margin-top: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.form-legal a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}

html[data-theme="dark"] .form-legal a {
  color: var(--accent);
}

.form-legal a:hover {
  color: var(--accent);
}

html[data-theme="dark"] .form-legal {
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Table
   ========================================================================== */

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

.table-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.8fr 0.8fr 0.7fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-3);
  color: var(--ink-2);
}

.table-row.header {
  font-weight: 600;
  background: rgba(var(--tint-rgb), 0.12);
  color: var(--accent-2);
}

html[data-theme="dark"] .table-row.header {
  background: rgba(var(--tint-rgb), 0.18);
  color: var(--accent);
}

/* ==========================================================================
   Scroll Reveal Animation
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Focus States
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

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

@media (max-width: 1024px) {
  .hero-grid,
  .split,
  .portal-hero-grid,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .strategy-grid,
  .pricing-grid,
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid,
  .panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .dashboard-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: min(280px, 80vw);
    transform: translateX(-100%);
    transition: 0.25s ease;
    z-index: 30;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .dashboard-sidebar.open {
    transform: translateX(0);
  }

  .dashboard-main {
    padding: 24px;
  }

  .dashboard-toggle {
    display: inline-flex;
  }

  .modal {
    width: min(92vw, 720px);
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 100%;
    right: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    box-shadow: var(--shadow);
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 100px;
  }
}

@media (max-width: 720px) {
  .strategy-grid,
  .pricing-grid,
  .plan-grid,
  .faq-grid,
  .disclosure-grid {
    grid-template-columns: 1fr;
  }

  .callouts.product-callouts {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

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

  .theme-label {
    display: none;
  }

  .user-info {
    display: none;
  }

  .user-trigger {
    padding: 6px;
  }

  .stepper {
    flex-direction: column;
  }

  .modal-footer {
    align-items: flex-start;
  }

  .modal-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links {
    width: calc(100% - 40px);
    right: 20px;
  }
}

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

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }

  .reveal {
    transition: none;
  }
}
