/* ==========================================================================
   Tabbatical — Design System & Stylesheet (Per Specification Brief)
   ========================================================================== */

:root {
  /* Fonts */
  --font-headings: 'Fraunces', Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Colors — Light mode (Default) */
  --color-bg: #F6F3EA;
  --color-surface: #FFFFFF;
  --color-surface-subtle: #EDE8DC;
  --color-text: #1C2A2B;
  --color-muted: #566564;
  --color-border: rgba(28, 42, 43, 0.12);
  --color-border-subtle: rgba(28, 42, 43, 0.06);

  --color-accent: #B07C1E;
  --color-accent-hover: #966714;
  --color-accent-glow: rgba(176, 124, 30, 0.2);

  --color-success: #2F6F62;
  --color-success-bg: rgba(47, 111, 98, 0.12);

  --color-warning: #A94E2E;
  --color-warning-bg: rgba(169, 78, 46, 0.12);

  --shadow-subtle: 0 4px 20px rgba(28, 42, 43, 0.05);
  --shadow-medium: 0 8px 30px rgba(28, 42, 43, 0.08);

  --radius-sm: 6px;
  --radius-card: 12px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Automatic Dark Mode & Manual Override */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #131C1D;
    --color-surface: #1B2627;
    --color-surface-subtle: #243234;
    --color-text: #EDE8DA;
    --color-muted: #A9B5B2;
    --color-border: rgba(237, 232, 218, 0.12);
    --color-border-subtle: rgba(237, 232, 218, 0.06);

    --color-accent: #E0AC52;
    --color-accent-hover: #F0C06E;
    --color-accent-glow: rgba(224, 172, 82, 0.25);

    --color-success: #4CA897;
    --color-success-bg: rgba(76, 168, 151, 0.15);

    --color-warning: #D4704B;
    --color-warning-bg: rgba(212, 112, 75, 0.15);

    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.45);
  }
}

[data-theme="dark"] {
  --color-bg: #131C1D;
  --color-surface: #1B2627;
  --color-surface-subtle: #243234;
  --color-text: #EDE8DA;
  --color-muted: #A9B5B2;
  --color-border: rgba(237, 232, 218, 0.12);
  --color-border-subtle: rgba(237, 232, 218, 0.06);

  --color-accent: #E0AC52;
  --color-accent-hover: #F0C06E;
  --color-accent-glow: rgba(224, 172, 82, 0.25);

  --color-success: #4CA897;
  --color-success-bg: rgba(76, 168, 151, 0.15);

  --color-warning: #D4704B;
  --color-warning-bg: rgba(212, 112, 75, 0.15);

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] {
  --color-bg: #F6F3EA;
  --color-surface: #FFFFFF;
  --color-surface-subtle: #EDE8DC;
  --color-text: #1C2A2B;
  --color-muted: #566564;
  --color-border: rgba(28, 42, 43, 0.12);
  --color-border-subtle: rgba(28, 42, 43, 0.06);

  --color-accent: #B07C1E;
  --color-accent-hover: #966714;
  --color-accent-glow: rgba(176, 124, 30, 0.2);

  --color-success: #2F6F62;
  --color-success-bg: rgba(47, 111, 98, 0.12);

  --color-warning: #A94E2E;
  --color-warning-bg: rgba(169, 78, 46, 0.12);

  --shadow-subtle: 0 4px 20px rgba(28, 42, 43, 0.05);
  --shadow-medium: 0 8px 30px rgba(28, 42, 43, 0.08);
}

/* Reset & Global Rules */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
.mono-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-muted);
  display: block;
  margin-bottom: 12px;
}

.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-muted); }
.text-xs { font-size: 0.78rem; }

/* 1. Header & Navigation */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand-wordmark {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

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

.nav-anchor {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle-btn {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--color-text);
  border-color: var(--color-text);
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
:root:not([data-theme="dark"]) .icon-sun { display: none; }
:root:not([data-theme="dark"]) .icon-moon { display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.btn-sm {
  padding: 7px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 8px;
}

.btn-block {
  width: 100%;
}

.btn-gold {
  background-color: var(--color-accent);
  color: #FFFFFF;
}

[data-theme="dark"] .btn-gold {
  color: #131C1D;
  font-weight: 700;
}

.btn-gold:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--color-accent-glow);
}

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

.btn-outline:hover:not(:disabled) {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-outline:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 2. Hero Section */
.hero-section {
  padding: 72px 0 60px;
}

.hero-text-content {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
}

.hero-heading {
  font-family: var(--font-headings);
  font-size: clamp(2.5rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
  color: var(--color-text);
  margin-bottom: 20px;
}

.hero-subhead {
  font-size: 1.18rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.secondary-text-cta {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  font-size: 1rem;
  transition: color var(--transition-fast);
}

.secondary-text-cta:hover {
  color: var(--color-accent);
}

/* Looping Muted Product Demo */
.demo-wrapper {
  max-width: 920px;
  margin: 0 auto;
}

.demo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

.demo-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: var(--color-surface-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.window-controls {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #E05D52; }
.dot.yellow { background: #E5AC44; }
.dot.green { background: #5CB85C; }

.demo-badge-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pulse-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.btn-text-replay {
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
}

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

.demo-viewport {
  position: relative;
  height: 480px;
  background: var(--color-bg);
  overflow: hidden;
}

/* Demo Phases */
.phase-chaos {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.6s ease-in-out;
  opacity: 1;
  z-index: 10;
}

.scatter-win {
  position: absolute;
  width: 250px;
  height: 160px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 1.8s cubic-bezier(0.87, 0, 0.13, 1);
  opacity: 0;
}

.scatter-win-header {
  height: 28px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scatter-win-body {
  flex: 1;
  background: var(--color-surface-subtle);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scatter-win-line {
  background: var(--color-border);
  border-radius: 3px;
  height: 6px;
}

.demo-cursor {
  position: absolute;
  z-index: 50;
  width: 26px;
  height: 26px;
  transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0;
  pointer-events: none;
  top: 80%;
  left: 80%;
}

.cursor-pointer {
  width: 26px;
  height: 26px;
  color: var(--color-text);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.click-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
  margin-left: -5px;
  margin-top: -5px;
}

.phase-calm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease-in-out;
  opacity: 0;
  z-index: 20;
  pointer-events: none;
}

.calm-mac-window {
  width: 680px;
  max-width: 90%;
  height: 380px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.8s ease-out;
}

.mac-header {
  height: 42px;
  background: var(--color-surface-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 14px;
}

.tab-groups-pill-row {
  display: flex;
  gap: 6px;
  flex-grow: 1;
}

.tab-pill {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 5px;
}

.pill-work { background: var(--color-success-bg); color: var(--color-success); }
.pill-research { background: var(--color-accent-glow); color: var(--color-accent); }
.pill-shopping { background: var(--color-warning-bg); color: var(--color-warning); }

.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.ram-saved-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-success);
}

.mac-body {
  flex: 1;
  background: var(--color-surface);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.skeleton-line.short {
  width: 30%;
  height: 12px;
  background: var(--color-surface-subtle);
  border-radius: 3px;
}

.calm-banner-box {
  background: var(--color-surface-subtle);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
}

.banner-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.skeleton-grid-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.calm-grid-cell {
  background: var(--color-surface-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.cell-head {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 2px;
}

.cell-sub {
  font-size: 0.72rem;
  color: var(--color-muted);
}

.phase-end {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease-in-out;
  opacity: 0;
  z-index: 30;
}

.end-card-box {
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.8s ease-out;
  padding: 24px;
}

.end-brand {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 6px;
}

.end-tagline {
  font-size: 1.1rem;
  color: var(--color-accent);
  font-weight: 500;
}

/* Sections Global */
.section {
  padding: 72px 0;
}

.section-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-heading {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--color-text);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-subtle);
}

/* 3. The Problem Section */
.cards-3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.problem-card {
  display: flex;
  flex-direction: column;
}

.card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-subtle);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.card-title {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.card-body-text {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* 4. Features Grid */
.features-2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-item-card {
  display: flex;
  flex-direction: column;
}

.feature-item-card.flagship {
  border-color: var(--color-accent);
  background: linear-gradient(160deg, var(--color-surface), var(--color-surface-subtle));
}

.feature-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.badge-flagship {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-accent-glow);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.feature-title {
  font-family: var(--font-headings);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* 5. Comparison Table */
.table-scroll-wrapper {
  overflow-x: auto;
}

.factual-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.factual-table th, .factual-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.factual-table thead th {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-muted);
  background: var(--color-surface-subtle);
}

.factual-table tbody th {
  font-weight: 600;
  color: var(--color-text);
}

.factual-table .highlight-column {
  background: var(--color-surface-subtle);
  font-weight: 600;
}

/* 6. Founding Member / Scarcity Section */
.scarcity-card {
  border: 1px solid var(--color-warning);
  background: linear-gradient(160deg, var(--color-surface), var(--color-surface-subtle));
  text-align: center;
  padding: 48px 32px;
}

.scarcity-content {
  max-width: 620px;
  margin: 0 auto;
}

.scarcity-heading {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 24px;
}

.scarcity-counter-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 18px;
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--color-surface-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: var(--radius-full);
}

.counter-text-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-text);
}

.scarcity-subcopy {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-bottom: 28px;
}

/* 7. Pricing Section */
.pricing-3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-tier-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-tier-card.highlighted-tier {
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-medium);
}

.tier-badge-pill {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--color-accent);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .tier-badge-pill {
  color: #131C1D;
}

.tier-top {
  margin-bottom: 24px;
}

.tier-name {
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.tier-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.price-amount {
  font-family: var(--font-headings);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.price-freq {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.tier-tagline {
  font-size: 0.88rem;
  color: var(--color-muted);
}

.tier-features-list {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.tier-features-list li {
  font-size: 0.9rem;
  color: var(--color-text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.tier-features-list li i {
  margin-top: 3px;
}

/* 8. FAQ Accordion */
.faq-accordion-wrap {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-toggle {
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: none;
  font-family: var(--font-headings);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.toggle-icon {
  font-size: 0.85rem;
  color: var(--color-muted);
  transition: transform var(--transition-fast);
}

.faq-item.active .toggle-icon {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.faq-item.active .faq-content {
  max-height: 250px;
  padding-bottom: 18px;
}

/* 9. Footer */
.app-footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
  background: var(--color-bg);
}

.footer-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.footer-wordmark {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.footer-email a {
  font-size: 0.88rem;
  color: var(--color-muted);
  text-decoration: none;
}

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

.footer-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.footer-nav a {
  color: var(--color-muted);
  text-decoration: none;
}

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

.footer-nav-dot {
  color: var(--color-border);
}

.footer-bottom-row {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 20px;
}

.footer-credo {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-style: italic;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open { display: flex; }

.modal-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 440px;
  padding: 28px;
  box-shadow: var(--shadow-medium);
}

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

.modal-title {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--color-muted);
  cursor: pointer;
}

.checkout-summary {
  background: var(--color-surface-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 18px;
}

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

.summary-note {
  font-size: 0.78rem;
  color: var(--color-accent);
  margin-top: 4px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-accent);
}

.modal-footer {
  margin-top: 16px;
  text-align: center;
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-medium);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlide 0.25s ease;
}

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

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Legal Pages Styling */
.legal-page {
  background-color: var(--color-bg);
}

.legal-container {
  padding: 48px 24px 80px;
  max-width: 800px;
}

.legal-card {
  padding: 40px 36px;
}

.legal-title {
  font-family: var(--font-headings);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 6px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
  margin-bottom: 32px;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 14px;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.legal-section p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 12px;
}

.legal-section ul {
  padding-left: 24px;
  margin-bottom: 14px;
}

.legal-section li {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.legal-section code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--color-surface-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-text);
}

.legal-link {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Modal Content Expand */
.modal-card.wide-modal {
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
}

/* Responsive */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .features-2-grid { grid-template-columns: 1fr; }
  .footer-top-row { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; flex-wrap: wrap; }
}
