:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f3f1ed;
  --text: #1c1b19;
  --muted: #5f5c57;
  --border: #e4e0d9;
  --accent: #d9481c;
  --accent-text: #ffffff;
  --accent-soft: #fbe6de;
  --radius: 14px;
  --max: 1080px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131211;
    --surface: #1c1b19;
    --surface-2: #252320;
    --text: #f2efe9;
    --muted: #a8a39b;
    --border: #34312d;
    --accent: #ff6b3d;
    --accent-text: #1a0d07;
    --accent-soft: #3a1d12;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img, svg { max-width: 100%; }

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
}
.nav { display: flex; gap: 20px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 72px 0 56px; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
h3 { font-size: 1.1rem; margin: 0 0 6px; }
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 28px;
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }

/* Sections */
section { padding: 48px 0; }
.section-head { margin-bottom: 28px; max-width: 680px; }
.section-head p { color: var(--muted); margin: 0; }

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card p { margin: 0; color: var(--muted); }

.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}
@media (min-width: 760px) {
  .product { grid-template-columns: 1.3fr 1fr; padding: 32px; }
}
.product .tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 10px;
}
.demo {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 18px;
  font-size: 15px;
}
.demo .msg { margin-bottom: 12px; }
.demo .who { font-weight: 600; font-size: 14px; }
.demo .who small { font-weight: 400; color: var(--muted); }
.demo .bubble { margin-top: 2px; }
.demo .translated {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  color: var(--text);
}
.demo .chip {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

/* Pricing */
.price-group { margin-bottom: 36px; }
.price-group > h3 { margin-bottom: 14px; color: var(--muted); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; }
.price-card { display: flex; flex-direction: column; gap: 6px; }
.price-card .amount { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.price-card .amount span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card .chars { font-weight: 600; color: var(--text); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.note {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--muted);
  font-size: 15px;
}
.note ul { margin: 6px 0 0; padding-left: 20px; }

/* Legal / prose */
.prose { max-width: 760px; padding: 48px 0 64px; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.prose h2 { font-size: 1.3rem; margin-top: 36px; }
.prose p, .prose li { color: var(--text); }
.prose .meta { color: var(--muted); margin-bottom: 28px; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }
