* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0b0f14 url("background.png") right center / cover no-repeat fixed;
  color: #e6e8eb;
  line-height: 1.6;
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
}

a {
  color: #60a5fa;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 120px;
  background: rgba(5, 8, 12, 0.75);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  align-items: center;
  z-index: 10;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid #1f2937;
  backdrop-filter: blur(5px);
}

.logo {
  height: 72px;
}

.nav-home {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-home:hover {
  text-decoration: none;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 600;
  color: #9aa3ad;
  margin-left: 10px;
  letter-spacing: 0.01em;
}

.nav-links a {
  color: #9aa3ad;
  margin-left: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: #e6e8eb;
  text-decoration: none;
}

.nav-links a.active {
  color: #e6e8eb;
  border-bottom-color: #8b1e1e;
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 1.8rem;
  margin-bottom: 14px;
  color: #e6e8eb;
}

.hero p {
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto 24px;
  color: #9aa3ad;
}

.cta {
  display: inline-block;
  background: #8b1e1e;
  color: white;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.15s ease;
}

.cta:hover {
  background: #a52222;
  text-decoration: none;
}

.section {
  background: rgba(5, 8, 12, 0.8);
  padding: 80px 20px;
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

#pricing {
  max-width: 1300px;
}

.section-subtitle {
  color: #9aa3ad;
  font-size: 1.1rem;
  margin-top: -10px;
  margin-bottom: 10px;
}

.dark {
  background: rgba(18, 25, 35, 0.85);
}

h2 {
  margin-bottom: 30px;
  font-size: 2rem;
  color: #e6e8eb;
}

.grid, .pricing-grid {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.grid {
  grid-template-columns: repeat(5, 1fr);
}

.card, .pricing-card {
  background: #121923;
  padding: 30px;
  border-radius: 6px;
  border: 1px solid #1f2937;
}

.card h3, .pricing-card h3 {
  color: #e6e8eb;
  margin-bottom: 10px;
}

.card p, .pricing-card p {
  color: #9aa3ad;
}

/* Billing toggle */
.billing-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 24px;
}

.toggle-btn {
  background: #121923;
  color: #9aa3ad;
  border: 1px solid #1f2937;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.toggle-btn:first-child {
  border-radius: 6px 0 0 6px;
}

.toggle-btn:last-child {
  border-radius: 0 6px 6px 0;
  border-left: none;
}

.toggle-btn.active {
  background: #8b1e1e;
  color: #fff;
  border-color: #8b1e1e;
}

.save-badge {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}

.hidden {
  display: none;
}

/* Pricing grid — 5 columns on large desktop */
.pricing-grid {
  grid-template-columns: repeat(5, 1fr);
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card ul {
  flex: 1;
}

.pricing-card.highlight {
  border: 2px solid #8b1e1e;
  padding-top: 30px;
}

.badge {
  position: absolute;
  top: -1px;
  left: -1px;
  background: #8b1e1e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 6px 0 6px 0;
}

.price {
  font-size: 2rem;
  margin: 10px 0 4px;
  color: #e6e8eb;
  font-weight: 700;
}

.price-period {
  font-size: 1rem;
  font-weight: 400;
  color: #9aa3ad;
}

.annual-note {
  font-size: 0.8rem;
  color: #9aa3ad;
  margin-bottom: 16px;
}

.savings {
  color: #4ade80;
  font-style: italic;
}

/* Add-ons section */
.addons-heading {
  color: #e6e8eb;
  font-size: 1.3rem;
  margin-top: 60px;
  margin-bottom: 8px;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.addon-card {
  background: #121923;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 20px;
  text-align: left;
}


.addon-card h4 {
  color: #e6e8eb;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.addon-price {
  color: #e6e8eb;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.addon-card p {
  color: #9aa3ad;
  font-size: 0.85rem;
  line-height: 1.5;
}

.pricing-footnote {
  color: #9aa3ad;
  font-size: 0.85rem;
  margin-top: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

ul {
  list-style: none;
  text-align: left;
}

ul li {
  color: #9aa3ad;
  padding: 6px 0;
  border-bottom: 1px solid #1a2332;
  font-size: 0.95rem;
}

ul li:last-child {
  border-bottom: none;
}

.pricing-cta {
  display: inline-block;
  margin-top: auto;
  padding: 10px 20px;
  background: #8b1e1e;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: background 0.15s ease;
  margin-top: 24px;
}

.pricing-cta:hover {
  background: #a52222;
  text-decoration: none;
}

.pricing-cta.cta-outline {
  background: transparent;
  border: 1px solid #8b1e1e;
  color: #e6e8eb;
}

.pricing-cta.cta-outline:hover {
  background: rgba(139, 30, 30, 0.15);
}

.footer {
  padding: 2rem 2rem 1rem;
  text-align: center;
  font-size: 0.8rem;
  color: #9aa3ad;
  border-top: 1px solid #1f2937;
  background: rgba(5, 8, 12, 0.9);
}

.footer p {
  margin-top: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 4px;
}

.footer-links a {
  color: #9aa3ad;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #e6e8eb;
  text-decoration: none;
}

/* About section — multiple paragraphs */
#about p {
  color: #9aa3ad;
  max-width: 750px;
  margin: 0 auto 16px;
  font-size: 1.05rem;
}

#about p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Subpage content layout
   ======================================== */

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  background: rgba(5, 8, 12, 0.85);
  min-height: 100vh;
}

.page-content h1 {
  font-size: 2rem;
  color: #e6e8eb;
  margin-bottom: 32px;
  border-bottom: 1px solid #1f2937;
  padding-bottom: 16px;
}

.page-content h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 20px;
  text-align: left;
}

.page-content h3 {
  font-size: 1.1rem;
  color: #e6e8eb;
  margin-top: 32px;
  margin-bottom: 8px;
}

.page-content p {
  color: #9aa3ad;
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-content ul {
  margin-bottom: 20px;
  padding-left: 0;
}

.page-content ul li {
  border-bottom: none;
  padding: 4px 0 4px 16px;
  position: relative;
}

.page-content ul li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: #8b1e1e;
}

/* FAQ items */
.faq-item {
  border-bottom: 1px solid #1f2937;
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  margin-top: 0;
}

/* Comparison tables */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0 40px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border: 1px solid #1f2937;
  color: #9aa3ad;
}

th {
  background: #121923;
  color: #e6e8eb;
  font-weight: 600;
}

td:first-child {
  color: #e6e8eb;
  font-weight: 500;
  white-space: nowrap;
}

.comparison-summary {
  margin-top: 20px;
  padding: 20px;
  background: #121923;
  border-radius: 6px;
  border: 1px solid #1f2937;
}

/* Responsive — large tablet / small desktop */
@media (max-width: 1200px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .addons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive — tablet */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}

/* Responsive — mobile */
@media (max-width: 600px) {
  .nav {
    padding: 16px 20px;
  }

  .nav-brand {
    display: none;
  }

  .nav-links a {
    margin-left: 12px;
    font-size: 0.8rem;
  }

  .logo {
    height: 48px;
  }

  .hero {
    height: auto;
    min-height: 80vh;
    padding-top: 100px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .addons-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 16px;
  }

  h2 {
    font-size: 1.6rem;
  }
}

/* ── Pre-checkout modal ─────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 2rem;
  max-width: 460px;
  width: 100%;
  position: relative;
}

.modal h3 {
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.modal-subtitle {
  color: #777;
  font-size: 0.875rem;
  margin: 0 0 1.75rem;
}

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: none;
  color: #555;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.modal-close:hover {
  color: #ccc;
}

.modal-field {
  margin-bottom: 1.25rem;
}

.modal-field > label {
  display: block;
  font-size: 0.875rem;
  color: #bbb;
  margin-bottom: 0.4rem;
  cursor: default;
}

.modal-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #ccc;
  cursor: pointer;
}

.modal-checkbox-label input[type="checkbox"] {
  accent-color: #8b1e1e;
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.modal-field-note {
  color: #555;
  font-size: 0.8rem;
}

.modal-addon-price {
  color: #666;
  font-size: 0.8rem;
  margin-left: auto;
}

.modal-field input[type="text"],
.modal-field input[type="email"] {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.55rem 0.75rem;
  background: #0d0d0d;
  border: 1px solid #2e2e2e;
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 0.9rem;
  font-family: inherit;
  box-sizing: border-box;
}

.modal-field input[type="text"]:focus,
.modal-field input[type="email"]:focus {
  outline: none;
  border-color: #8b1e1e;
}

.modal-field input[type="text"].invalid,
.modal-field input[type="email"].invalid {
  border-color: #c0392b;
}

.modal-field-error {
  color: #c0392b;
  font-size: 0.8rem;
  margin: 0.3rem 0 0;
}

.modal-sub-field {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  border-left: 2px solid #222;
}

.modal-sub-label {
  color: #777;
  font-size: 0.825rem;
  margin: 0 0 0.5rem;
}

.modal-radios {
  display: flex;
  gap: 0.6rem;
}

.modal-radio {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  color: #bbb;
}

.modal-radio input[type="radio"] {
  accent-color: #8b1e1e;
  cursor: pointer;
}

.modal-radio:has(input:checked) {
  border-color: #8b1e1e;
  color: #fff;
}

.modal-actions {
  margin-top: 1.75rem;
}

.modal-actions .pricing-cta {
  display: block;
  text-align: center;
  margin-top: 0;
}

.modal-qty-input {
  width: 5rem;
  margin-top: 0.4rem;
  padding: 0.45rem 0.6rem;
  background: #0d0d0d;
  border: 1px solid #2e2e2e;
  border-radius: 4px;
  color: #e0e0e0;
  font-size: 0.9rem;
  font-family: inherit;
}

.modal-qty-input:focus {
  outline: none;
  border-color: #8b1e1e;
}

#modal-confirm p {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.modal-confirm-fallback {
  color: #666 !important;
  font-size: 0.825rem !important;
}

.modal-confirm-fallback a {
  color: #8b1e1e;
}

.modal-confirm-fallback a:hover {
  color: #c0392b;
}

#modal-confirm .pricing-cta {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
}

/* ── Payment footer ─────────────────────────────────────────── */

.footer-payment {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.card-logo {
  height: 20px;
  width: auto;
  vertical-align: middle;
  border-radius: 3px;
}

/* ── Modal billing disclosure ───────────────────────────────── */

.modal-disclosure {
  font-size: 0.75rem;
  color: #666;
  margin-top: 1rem;
  line-height: 1.5;
}

.modal-disclosure a {
  color: #8b1e1e;
}

/* ── Light mode ─────────────────────────────────────────────── */
@media (prefers-color-scheme: light) {

  body {
    /* Drop the dark background image; use a clean light surface */
    background: #f0f4f8 url("background_light.png") right center / cover no-repeat fixed;
    color: #1a202c;
  }

  a {
    color: #1d4ed8;
  }

  /* Nav */
  .nav {
    background: rgba(248, 250, 252, 0.92);
    border-bottom-color: #cbd5e0;
  }

  .nav-brand {
    color: #374151;
  }

  .nav-links a {
    color: #4a5568;
  }

  .nav-links a:hover {
    color: #1a202c;
  }

  .nav-links a.active {
    color: #1a202c;
  }

  /* Hero — remove dark scrim; body color shows through */
  .hero {
    /*background: transparent;*/
    background: rgba(203, 213, 224, 0.8);
  }

  .hero h1 {
    color: #1a202c;
  }

  .hero p {
    color: #4a5568;
  }

  /* Sections */
  .section {
    background: transparent;
  }

  .dark {
    background: rgba(203, 213, 224, 0.8);
  }

  .section-subtitle {
    color: #4a5568;
  }

  h2 {
    color: #1a202c;
  }

  /* Cards */
  .card,
  .pricing-card {
    background: #ffffff;
    border-color: #cbd5e0;
  }

  .card h3,
  .pricing-card h3 {
    color: #1a202c;
  }

  .card p,
  .pricing-card p {
    color: #4a5568;
  }

  /* Billing toggle */
  .toggle-btn {
    background: #ffffff;
    color: #4a5568;
    border-color: #cbd5e0;
  }

  .save-badge {
    background: rgba(0, 0, 0, 0.1);
  }

  /* Pricing */
  .price {
    color: #1a202c;
  }

  .price-period {
    color: #4a5568;
  }

  .annual-note {
    color: #4a5568;
  }

  .savings {
    color: #16a34a;
  }

  .pricing-cta.cta-outline {
    color: #1a202c;
  }

  /* Add-ons */
  .addons-heading {
    color: #1a202c;
  }

  .addons-grid .addon-card {
    background: #ffffff;
    border-color: #cbd5e0;
  }

  .addon-card h4 {
    color: #1a202c;
  }

  .addon-price {
    color: #1a202c;
  }

  .addon-card p {
    color: #4a5568;
  }

  .pricing-footnote {
    color: #4a5568;
  }

  /* Lists */
  ul li {
    color: #4a5568;
    border-bottom-color: #e2e8f0;
  }

  /* Footer */
  .footer {
    background: rgba(226, 232, 240, 0.85);
    border-top-color: #cbd5e0;
    color: #4a5568;
  }

  .footer-links a {
    color: #4a5568;
  }

  .footer-links a:hover {
    color: #1a202c;
  }

  /* About section */
  #about p {
    color: #374151;
  }

  /* Subpage content */
  .page-content {
    background: rgba(255, 255, 255, 0.85);
  }

  .page-content h1 {
    color: #1a202c;
    border-bottom-color: #cbd5e0;
  }

  .page-content h2 {
    color: #1a202c;
  }

  .page-content h3 {
    color: #1a202c;
  }

  .page-content p {
    color: #374151;
  }

  /* FAQ */
  .faq-item {
    border-bottom-color: #cbd5e0;
  }

  /* Tables */
  th, td {
    border-color: #cbd5e0;
    color: #4a5568;
  }

  th {
    background: #f1f5f9;
    color: #1a202c;
  }

  td:first-child {
    color: #1a202c;
  }

  .comparison-summary {
    background: #f8fafc;
    border-color: #cbd5e0;
  }

  /* Modal */
  .modal-overlay {
    background: rgba(71, 85, 105, 0.55);
  }

  .modal {
    background: #ffffff;
    border-color: #d1d9e0;
  }

  .modal h3 {
    color: #1a202c;
  }

  .modal-subtitle {
    color: #6b7280;
  }

  .modal-close {
    color: #9ca3af;
  }

  .modal-close:hover {
    color: #1a202c;
  }

  .modal-field > label {
    color: #374151;
  }

  .modal-checkbox-label {
    color: #374151;
  }

  .modal-field-note {
    color: #9ca3af;
  }

  .modal-addon-price {
    color: #9ca3af;
  }

  .modal-field input[type="text"],
  .modal-field input[type="email"] {
    background: #f9fafb;
    border-color: #d1d9e0;
    color: #1a202c;
  }

  .modal-sub-field {
    border-left-color: #e5e7eb;
  }

  .modal-sub-label {
    color: #6b7280;
  }

  .modal-radio {
    border-color: #d1d9e0;
    color: #374151;
  }

  .modal-radio:has(input:checked) {
    color: #1a202c;
  }

  .modal-qty-input {
    background: #f9fafb;
    border-color: #d1d9e0;
    color: #1a202c;
  }

  #modal-confirm p {
    color: #374151;
  }

  .modal-confirm-fallback {
    color: #6b7280 !important;
  }

  .modal-disclosure {
    color: #6b7280;
  }
}
