:root {
  --bg: #0f172a;
  --bg-soft: #1e293b;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #1f2933;
  --text-muted: #647084;
  --text-invert: #f1f5f9;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #3b82f6;
  --border: #e2e6ea;
  --header-bg: rgba(255, 255, 255, 0.9);
  --hero-glow: rgba(37, 99, 235, 0.16);
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  --max-width: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

/* Dark theme — applied by setting data-theme="dark" on <html> (see
   theme-init.js and main.js). Mirrors the app's dark palette so the two feel
   like one product. */
[data-theme="dark"] {
  --bg: #0b0f14;
  --bg-soft: #0f141a;
  --surface: #1a212b;
  --surface-alt: #0f141a;
  --text: #e6eaef;
  --text-muted: #9aa5b1;
  --text-invert: #e6eaef;
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --accent: #60a5fa;
  --border: #2c3643;
  --header-bg: rgba(15, 20, 26, 0.85);
  --hero-glow: rgba(96, 165, 250, 0.14);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.4em;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 0.6em 1.1em;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  padding: 0.8em 1.5em;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

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

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

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

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

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

.nav-links > a:not(.btn) {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links > a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Light/dark theme toggle button in the nav. */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 0.4em 0.7em;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

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

/* Hero */
.hero {
  background: radial-gradient(
      1200px 400px at 50% -10%,
      var(--hero-glow),
      transparent
    ),
    linear-gradient(180deg, var(--surface-alt), var(--surface));
  padding: 96px 0 72px;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}

.lede {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 auto 28px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Sections */
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.02em;
}

/* price.js writes a lowercase "about" so it reads correctly mid-sentence. */
.section-title::first-letter {
  text-transform: uppercase;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

.features {
  padding: 80px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.feature-card h3 {
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--text-muted);
  margin: 0;
}

/* Pricing */
.pricing {
  padding: 80px 0;
  background: var(--surface-alt);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.currency-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 32px;
  color: var(--text-muted);
  font-weight: 500;
}

.currency-select select {
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

.currency-select select:hover {
  border-color: var(--primary);
}

.price-currency {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
  background: var(--surface-alt);
  border-radius: 999px;
  padding: 2px 8px;
  vertical-align: middle;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.price-card-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.price {
  margin: 8px 0 4px;
}

.price .amount {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.price .period {
  color: var(--text-muted);
  font-weight: 500;
}

.price-tag {
  color: var(--text-muted);
  margin: 0 0 20px;
}

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

.price-features li {
  padding-left: 26px;
  position: relative;
  color: var(--text-muted);
}

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.price-card .btn {
  margin-top: auto;
}

/* CTA */
.cta {
  padding: 80px 0;
  text-align: center;
}

.cta-inner {
  max-width: 620px;
}

.cta h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Footer */
.site-footer {
  background: var(--bg);
  color: var(--text-invert);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(248, 250, 252, 0.75);
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  color: rgba(248, 250, 252, 0.6);
  font-size: 0.9rem;
}

/* Responsive nav */
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px 20px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .btn {
    width: 100%;
  }
}

/* --- "Your own website" spotlight --- */
.spotlight {
  padding: 80px 0;
  background: var(--surface-alt);
}

.spotlight-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spotlight-copy h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 14px;
}

.spotlight-copy > p {
  color: var(--text-muted);
  margin: 0 0 18px;
}

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

.tick-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
}

.tick-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  line-height: 20px;
  text-align: center;
  font-weight: 700;
}

.spotlight-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Mock browser illustration. Decorative only. */
.browser-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

.browser-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.browser-url {
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-body {
  padding: 22px;
}

.mock-logo {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.mock-line {
  height: 10px;
  border-radius: 6px;
  background: var(--surface-alt);
  margin-bottom: 9px;
}

.mock-line-lg {
  height: 16px;
  width: 62%;
  background: var(--border);
}

.mock-line-md {
  width: 82%;
}

.mock-line-sm {
  width: 45%;
}

.mock-chips {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.mock-chips span {
  height: 22px;
  width: 68px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.mock-btn {
  margin-top: 14px;
  display: inline-block;
  padding: 9px 16px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- How it works --- */
.steps {
  padding: 80px 0;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.step-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-list h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
}

.step-list p {
  margin: 0;
  color: var(--text-muted);
}

/* --- FAQ --- */
.faq {
  padding: 80px 0;
  background: var(--surface-alt);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}

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

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

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

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

.faq-list details p {
  margin: 12px 0 0;
  color: var(--text-muted);
}

/* --- Legal pages (terms, privacy) --- */
.legal {
  padding: 64px 0 80px;
}

.legal-inner {
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 6px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0 0 32px;
}

.legal h2 {
  font-size: 1.2rem;
  margin: 32px 0 10px;
}

.legal h3 {
  font-size: 1.02rem;
  margin: 20px 0 8px;
}

.legal p,
.legal li {
  color: var(--text-muted);
}

.legal ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.legal a {
  color: var(--primary);
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 8px;
  font-size: 0.94rem;
  display: block;
  overflow-x: auto;
}

.policy-table th,
.policy-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.policy-table th {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .spotlight-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
