@font-face {
  font-family: "Be Vietnam Pro";
  src: url("assets/fonts/BeVietnamPro-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Be Vietnam Pro";
  src: url("assets/fonts/BeVietnamPro-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page-bg: #ffffff;
  --card-bg: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --faint: #94a3b8;
  --line: #e2e8f0;
  /* Text/decorative accent — adapts per theme for contrast against the
     page/card background it sits on (eyebrow label, price, checkmarks). */
  --accent: #4338ca;
  --bg-soft: #eef2ff;
  /* Solid-fill accent — fixed across themes. Filled buttons/badges always
     pair this with white text, so it doesn't need to shift with the page. */
  --accent-solid: #4338ca;
  --accent-solid-hover: #4f46e5;
}

/* Manual toggle (data-theme) always wins; otherwise fall back to the
   visitor's OS preference, unless they've explicitly picked "light". */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page-bg: #0b1120;
    --card-bg: #111827;
    --ink: #e5e7eb;
    --muted: #9aa5b8;
    --faint: #64748b;
    --line: #1f2937;
    --accent: #a5b4fc;
    --bg-soft: #1e1b4b;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #0b1120;
  --card-bg: #111827;
  --ink: #e5e7eb;
  --muted: #9aa5b8;
  --faint: #64748b;
  --line: #1f2937;
  --accent: #a5b4fc;
  --bg-soft: #1e1b4b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.5;
  transition: background-color 0.15s ease, color 0.15s ease;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  /* Longhand, not shorthand `padding` — a shorthand here would win over
     `section`'s own `padding: 4rem 0` on class-vs-element specificity
     alone and silently zero out every section's vertical padding. */
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.brand {
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.link {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
}

.link:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-solid);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-solid-hover);
}

.btn-secondary {
  background: var(--card-bg);
  border-color: var(--line);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--faint);
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--card-bg);
  color: var(--ink);
  border-radius: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}

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

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 5rem;
}

.eyebrow {
  display: inline-flex;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
}

.hero h1 {
  margin: 1.5rem auto 0;
  max-width: 44rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero p.lede {
  margin: 1.5rem auto 0;
  max-width: 38rem;
  font-size: 1.1rem;
  color: var(--muted);
}

.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--faint);
}

/* Section headings */
section {
  padding: 4rem 0;
}

.section-head {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.section-head h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

/* Features */
.feature-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem;
  background: var(--card-bg);
}

.feature-card .num {
  font-size: 0.75rem;
  font-weight: 700;
  color: #a5b4fc;
}

.feature-card h3 {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Plans */
.plans-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.plan-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: var(--card-bg);
}

.plan-card.popular {
  border-color: var(--accent-solid);
  box-shadow: 0 1px 3px rgba(67, 56, 202, 0.12);
}

.badge-popular {
  align-self: flex-start;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: var(--accent-solid);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
}

.plan-card h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.plan-price {
  margin: 0.5rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

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

.plan-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  flex: 1;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.plan-list li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.plan-card .btn {
  margin-top: 1.5rem;
}

.trial-note {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--faint);
}

/* FAQ */
.faq-list {
  max-width: 44rem;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--card-bg);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--faint);
  font-weight: 400;
}

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

.faq-item p {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Contact */
.contact-form {
  max-width: 32rem;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
}

.form-row input,
.form-row textarea {
  font: inherit;
  color: var(--ink);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.6rem 0.75rem;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--accent-solid);
  outline-offset: 1px;
}

.contact-form .btn {
  align-self: flex-start;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

/* Final CTA */
.cta-band {
  text-align: center;
  background: var(--bg-soft);
  border-radius: 1rem;
  padding: 3rem 1.5rem;
}

.cta-band h2 {
  font-size: 1.5rem;
  margin: 0;
}

.cta-band p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.cta-band .hero-ctas {
  margin-top: 1.5rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 0;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  padding-bottom: 2rem;
}

.footer-row .tagline {
  max-width: 28rem;
  margin: 0.35rem auto 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.copyright {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--faint);
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }

  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-row .tagline {
    margin: 0.35rem 0 0;
  }
}
