:root {
  --bg: #faf7f2;
  --bg-alt: #f3ede4;
  --text: #201a15;
  --text-muted: #6b5d52;
  --border: #e6ddd0;
  --accent: #b8450f;
  --accent-text: #fff8f2;
  --card-bg: #fffaf5;
  --highlight-bg: #fdeee1;
  --glow: rgba(184, 69, 15, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1815;
    --bg-alt: #241f1a;
    --text: #f5ede4;
    --text-muted: #b8a99a;
    --border: #3a2f28;
    --accent: #f4813a;
    --accent-text: #1c1815;
    --card-bg: #241f1a;
    --highlight-bg: #2e2019;
    --glow: rgba(244, 129, 58, 0.28);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a { color: var(--accent); }

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
}

.nav-cta {
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--accent-text);
}

/* Sections */
section {
  padding: 64px 0;
}

section h2 {
  font-size: 1.75rem;
  text-align: center;
}

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

/* Hero */
.hero {
  text-align: center;
  padding-top: 72px;
  padding-bottom: 72px;
  background: radial-gradient(ellipse 900px 480px at 50% 0%, var(--glow), transparent 65%);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-subnote {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 12px;
}

/* Hero recolor strip */
.recolor-strip {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.recolor-tile {
  border-radius: 14px;
  box-shadow: 0 0 24px var(--glow), 0 1px 2px rgba(0, 0, 0, 0.15);
}

.recolor-caption {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 12px;
}

/* Signup form */
.signup-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 460px;
  margin: 0 auto;
}

.signup-form input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 1rem;
}

.signup-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.signup-form button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.signup-form button:hover {
  opacity: 0.9;
}

.signup-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  min-height: 1.4em;
  text-align: center;
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.form-status.success { color: #1a8f4c; }
.form-status.error { color: #d1435b; }

/* Audience + presets grids */
.audience { background: var(--bg-alt); }

.audience-grid,
.preset-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.audience-grid li,
.preset-grid li {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.audience-grid h3,
.preset-grid h3 {
  font-size: 1.05rem;
}

.audience-grid p,
.preset-grid p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.92rem;
}

.preset-grid code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 0.88em;
}

/* Preset visual mockups */
.preset-visual {
  min-height: 52px;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.mock-browser {
  width: 100%;
}

.mock-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px 8px 0 0;
}

.mock-tab-label {
  display: block;
  width: 56px;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}

.mock-scale,
.mock-shapes {
  gap: 12px;
  align-items: flex-end;
}

.mock-og {
  width: 100%;
  gap: 12px;
  padding: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.mock-og-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.mock-og-lines span {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}

.mock-og-lines span:first-child { width: 80%; }
.mock-og-lines span:last-child { width: 50%; }

.mock-custom {
  gap: 8px;
}

.mock-resize-icon {
  color: var(--text-muted);
}

/* Pricing */
.pricing-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.tier {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.tier-highlight {
  background: var(--highlight-bg);
  border-color: var(--accent);
}

.tier h3 {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tier .price {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 20px;
}

.tier .price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.tier-features {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tier-features li {
  padding: 6px 0;
  border-top: 1px solid var(--border);
}

.tier-features li:first-child {
  border-top: none;
}

/* Footer signup section */
.signup-repeat {
  background: var(--bg-alt);
  text-align: center;
}

/* Site footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.site-footer p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

@media (max-width: 480px) {
  section { padding: 48px 0; }
  .signup-form { flex-direction: column; }
  .signup-form button { width: 100%; }
}
