:root {
  --background: #fff7e4;
  --ink: #262626;
  --text-secondary: #374151;
  --text-muted: #6b7280;
  --surface: #fffdf7;
  --surface-muted: #f9fafb;
  --border: #e5e7eb;
  --accent-gold: #b17932;
  --primary: #262626;
  --primary-text: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #1c1a17;
    --ink: #f5efe2;
    --text-secondary: #d6cfc0;
    --text-muted: #9c9584;
    --surface: #26231e;
    --surface-muted: #2c2820;
    --border: #3d382f;
    --accent-gold: #d9a35c;
    --primary: #f5efe2;
    --primary-text: #1c1a17;
  }
}

:root[data-theme="dark"] {
  --background: #1c1a17;
  --ink: #f5efe2;
  --text-secondary: #d6cfc0;
  --text-muted: #9c9584;
  --surface: #26231e;
  --surface-muted: #2c2820;
  --border: #3d382f;
  --accent-gold: #d9a35c;
  --primary: #f5efe2;
  --primary-text: #1c1a17;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

main, header, footer { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header { padding-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.brand { font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
nav a { color: var(--text-secondary); margin-left: 16px; text-decoration: none; font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

h1 { font-size: 32px; line-height: 1.2; margin: 40px 0 12px; }
h2 { font-size: 22px; margin: 40px 0 10px; }
h3 { font-size: 17px; margin: 24px 0 6px; }
p, li { color: var(--text-secondary); }
.lede { font-size: 18px; color: var(--ink); }
.muted { color: var(--text-muted); font-size: 14px; }
a { color: var(--accent-gold); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.views { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 16px 0; }
@media (min-width: 560px) { .views { grid-template-columns: 1fr 1fr; } }

.plans { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 16px 0; }
@media (min-width: 620px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.plan .price { font-size: 26px; font-weight: 700; color: var(--ink); margin: 6px 0; }

.badge-placeholder {
  display: inline-block;
  border: 2px dashed var(--accent-gold);
  border-radius: 10px;
  padding: 12px 22px;
  color: var(--text-muted);
  font-size: 14px;
  margin: 16px 0;
}

.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq details p { margin: 10px 0 0; }

footer { padding-top: 32px; padding-bottom: 48px; border-top: 1px solid var(--border); margin-top: 48px; }
footer a { color: var(--text-secondary); margin-right: 14px; text-decoration: none; }
footer a:hover { text-decoration: underline; }

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; border-bottom: 1px solid var(--border); padding: 10px 8px; vertical-align: top; color: var(--text-secondary); }
th { color: var(--ink); }
