@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #F5F0E8;
  --bg-alt:       #EDE8DC;
  --gold:         #C8A96E;
  --gold-dim:     #8A7040;
  --text:         #161210;
  --text-muted:   #6B5D50;
  --text-faint:   #A09080;
  --border:       #D5CCBC;
  --dark:         #0F0D0B;
  --dark-surface: #1C1712;
  --dark-text:    #F0EBE0;
  --dark-muted:   #A09070;
  --max:          760px;
  --serif:        'Playfair Display', Georgia, 'Times New Roman', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ─────────────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 240, 232, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--serif); font-size: 1rem; font-weight: 500;
  letter-spacing: 0.1em; color: var(--text); text-decoration: none;
}
.nav-logo img { height: 28px; width: auto; display: block; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; }
.nav-links a {
  font-size: 0.82rem; color: var(--text-muted); text-decoration: none;
  letter-spacing: 0.02em; transition: color 0.15s;
}
.nav-links a:hover { color: var(--gold); }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 2rem 1.5rem; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-size: 0.78rem; color: var(--text-faint); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a {
  font-size: 0.78rem; color: var(--text-muted);
  text-decoration: none; transition: color 0.15s;
}
.footer-links a:hover { color: var(--gold); }

/* ── Prose layout (privacy · terms · support) ────────────────────────── */
.prose { max-width: var(--max); margin: 0 auto; padding: 3rem 1.5rem 6rem; }
.prose-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: block; font-size: 0.68rem; letter-spacing: 0.22em;
  color: var(--gold); text-transform: uppercase; font-weight: 600; margin-bottom: 0.85rem;
}
.prose-header h1 {
  font-family: var(--serif); font-size: 2rem; font-weight: 300;
  letter-spacing: 0.01em; color: var(--text); margin-bottom: 0.5rem; line-height: 1.25;
}
.updated { font-size: 0.8rem; color: var(--text-faint); }
.prose h2 {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
  color: var(--text); margin: 2.75rem 0 0.75rem;
  padding-bottom: 0.5rem; border-bottom: 1px solid var(--border);
}
.prose h3 {
  font-size: 0.88rem; font-weight: 600; color: var(--text);
  letter-spacing: 0.03em; margin: 1.5rem 0 0.4rem;
}
.prose p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.85rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin-bottom: 0.85rem; }
.prose li { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.prose strong { color: var(--text); }
.prose a { color: var(--gold-dim); }

.notice {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: 8px;
  padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.notice p { margin: 0; font-size: 0.83rem; }

/* Pricing table */
.price-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.85rem; }
.price-table th {
  text-align: left; padding: 0.6rem 0.9rem;
  background: var(--bg-alt); color: var(--text);
  font-weight: 600; font-size: 0.78rem; letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border);
}
.price-table td {
  padding: 0.65rem 0.9rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.price-table tr:last-child td { border-bottom: none; }
.gold-text { color: var(--gold-dim); font-weight: 600; }

/* Third-party table */
.tp-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.83rem; }
.tp-table th {
  text-align: left; padding: 0.55rem 0.85rem;
  background: var(--bg-alt); color: var(--text);
  font-weight: 600; font-size: 0.75rem; letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border);
}
.tp-table td {
  padding: 0.6rem 0.85rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border); vertical-align: top;
}
.tp-table tr:last-child td { border-bottom: none; }
.tp-table a { color: var(--gold-dim); font-size: 0.78rem; }

/* ── Index page ──────────────────────────────────────────────────────── */
.hero {
  background: var(--dark); color: var(--dark-text);
  padding: 5.5rem 1.5rem 5rem; text-align: center;
}
.hero-inner { max-width: var(--max); margin: 0 auto; }
.hero-eyebrow {
  font-size: 0.65rem; letter-spacing: 0.28em;
  color: var(--gold); text-transform: uppercase;
  font-weight: 600; margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(2.8rem, 7vw, 4rem);
  font-weight: 300; letter-spacing: 0.06em;
  color: var(--dark-text); margin-bottom: 0.25rem; line-height: 1.1;
}
.hero-tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--gold); margin-bottom: 1.5rem; font-weight: 300;
}
.hero-sub {
  font-size: 0.93rem; color: var(--dark-muted);
  max-width: 440px; margin: 0 auto 2.5rem; line-height: 1.75;
}
.btn-store {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--gold); color: var(--dark);
  font-size: 0.83rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 0.8rem 1.75rem; border-radius: 50px;
  text-decoration: none; transition: opacity 0.15s;
}
.btn-store:hover { opacity: 0.85; }
.hero-note {
  font-size: 0.73rem; color: var(--dark-muted);
  margin-top: 1rem; opacity: 0.65;
}

/* Features */
.features { max-width: var(--max); margin: 0 auto; padding: 4.5rem 1.5rem; }
.section-label {
  font-size: 0.66rem; letter-spacing: 0.24em;
  color: var(--gold); text-transform: uppercase;
  font-weight: 600; margin-bottom: 2.5rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.5rem;
}
.feature-icon { font-size: 1.4rem; margin-bottom: 0.85rem; }
.feature-card h3 {
  font-family: var(--serif); font-size: 0.98rem; font-weight: 500;
  color: var(--text); margin-bottom: 0.4rem;
}
.feature-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin: 0; }

/* Pricing section (dark) */
.pricing { background: var(--dark); padding: 4.5rem 1.5rem; }
.pricing-inner { max-width: var(--max); margin: 0 auto; }
.pricing .section-label { color: var(--gold); margin-bottom: 0.75rem; }
.pricing h2 {
  font-family: var(--serif); font-size: 1.85rem; font-weight: 300;
  color: var(--dark-text); margin-bottom: 2.25rem; line-height: 1.3;
}
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.plan-card {
  background: var(--dark-surface);
  border: 1px solid rgba(200,169,110,0.18);
  border-radius: 14px; padding: 1.5rem;
}
.plan-card.featured { border-color: rgba(200,169,110,0.55); }
.plan-name {
  font-size: 0.65rem; letter-spacing: 0.2em;
  color: var(--gold); text-transform: uppercase;
  font-weight: 600; margin-bottom: 0.9rem;
}
.plan-price {
  font-family: var(--serif); font-size: 1.85rem;
  font-weight: 400; color: var(--dark-text); margin-bottom: 0.15rem;
}
.plan-period { font-size: 0.77rem; color: var(--dark-muted); margin-bottom: 1.25rem; }
.plan-features { list-style: none; }
.plan-features li {
  font-size: 0.78rem; color: var(--dark-muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; gap: 0.5rem; align-items: flex-start;
}
.plan-features li::before { content: '—'; color: var(--gold); opacity: 0.5; flex-shrink: 0; }
.plan-features li:last-child { border-bottom: none; }
.plan-badge {
  display: inline-block;
  font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; color: var(--gold);
  background: rgba(200,169,110,0.12);
  border: 1px solid rgba(200,169,110,0.35);
  border-radius: 50px;
  padding: 0.22rem 0.65rem;
  margin-bottom: 0.65rem;
}
.plan-annual {
  font-size: 0.72rem; color: var(--gold); opacity: 0.65;
  margin-top: -0.85rem; margin-bottom: 1.25rem;
}
.plan-free {
  border: 1px dashed rgba(200,169,110,0.22);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 2.5rem; align-items: flex-start;
}
.plan-free-label {
  font-size: 0.63rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--dark-muted); width: 100%; margin-bottom: 0.25rem;
}
.plan-free-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 2rem;
}
.plan-free-list li {
  font-size: 0.76rem; color: var(--dark-muted);
  display: flex; align-items: center; gap: 0.4rem;
}
.plan-free-list li::before { content: '·'; color: rgba(200,169,110,0.5); }
.pricing-note { font-size: 0.73rem; color: var(--dark-muted); opacity: 0.65; line-height: 1.7; }

/* Support */
.support-contact {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 14px; padding: 2.5rem 2rem;
  margin: 2rem 0; text-align: center;
}
.contact-label {
  font-size: 0.66rem; letter-spacing: 0.22em;
  color: var(--gold); text-transform: uppercase;
  font-weight: 600; margin-bottom: 0.85rem;
}
.contact-email {
  font-family: var(--serif); font-size: 1.3rem;
  color: var(--text); text-decoration: none;
  font-weight: 400; display: block; margin-bottom: 0.5rem;
}
.contact-email:hover { color: var(--gold-dim); }
.support-contact p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

.faq { margin-top: 0.5rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { font-weight: 600; font-size: 0.875rem; color: var(--text); margin-bottom: 0.45rem; }
.faq-a { font-size: 0.845rem; color: var(--text-muted); }
.faq-a a { color: var(--gold-dim); }

/* Responsive */
@media (max-width: 580px) {
  .nav-links { display: none; }
  .hero { padding: 4rem 1.25rem 3.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
