:root {
  --paper: #F4F1EA;
  --ink: #17161B;
  --brick: #B8321A;
  --bg: var(--paper);
  --fg: var(--ink);
  --muted: #5b5862;
  --card: #FBF9F4;
  --line: rgba(23, 22, 27, 0.12);
  --accent: var(--brick);
  --accent-soft: rgba(184, 50, 26, 0.09);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--ink);
    --fg: var(--paper);
    --muted: #a8a4ac;
    --card: #211F26;
    --line: rgba(244, 241, 234, 0.12);
    --accent: #E0583D;
    --accent-soft: rgba(224, 88, 61, 0.13);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }

main, .top, .foot { max-width: 1080px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { border-radius: 7px; box-shadow: 0 0 0 1px var(--line), 0 2px 6px rgba(23, 22, 27, 0.12); }
.top nav, .foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.top nav a, .foot nav a { color: var(--fg); text-decoration: none; font-size: 15px; opacity: 0.8; }
.top nav a:hover, .foot nav a:hover { opacity: 1; text-decoration: underline; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 56px 0 72px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); font-weight: 800; letter-spacing: -0.035em; }
.promise { font-size: clamp(21px, 2.3vw, 26px); font-weight: 600; margin: 20px 0 12px; }
.lede { color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.requires { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.badge { display: inline-block; line-height: 0; }
.badge img { height: 54px; width: auto; }

/* Demo card */
.demo { margin: 0; display: flex; justify-content: center; }
.demo-card {
  width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line);
  border-radius: 28px; padding: 24px; box-shadow: 0 24px 60px rgba(23, 22, 27, 0.10);
  transform: rotate(-1.5deg);
}
.demo-head { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.demo-head div { display: flex; flex-direction: column; }
.demo-label { color: var(--accent); font-size: 14px; font-weight: 600; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
.bubble { position: relative; margin: 0; }
.bubble .ghost {
  font-style: italic;
  display: block; color: var(--muted); opacity: 0.45; font-size: 15px; margin-bottom: 8px;
  text-decoration-color: var(--accent);
}
.bubble .revealed {
  display: inline-block; background: var(--accent); color: #fff; padding: 12px 16px;
  border-radius: 20px 20px 20px 6px; font-size: 19px; font-weight: 500;
}
.demo-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

/* Blocks */
.block { padding: 56px 0; border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 28px; }

.benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.benefits li { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.benefits h3 { font-size: 20px; margin-bottom: 8px; }
.benefits p { margin: 0; color: var(--muted); }

.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how li { display: flex; gap: 14px; }
.how h3 { font-size: 19px; margin-bottom: 6px; }
.how p { margin: 0; color: var(--muted); }
.step {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px;
}

.limits ul { margin: 0; padding-left: 20px; max-width: 46em; }
.limits li { margin-bottom: 8px; }

/* Pricing */
.tiers { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.tier.premium { border: 2px solid var(--accent); }
.tier h3 { font-size: 22px; margin-bottom: 10px; }
.tier-price { font-size: 34px; font-weight: 800; margin: 0 0 14px; }
.tier ul { margin: 0; padding-left: 20px; }
.tier li { margin-bottom: 6px; }
.plans { list-style: none; padding: 0 !important; margin: 0 0 18px !important; display: grid; gap: 10px; }
.plans li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); margin: 0; }
.plan { font-weight: 600; min-width: 5.5em; }
.price { font-weight: 800; font-size: 20px; }
.plan-note { color: var(--accent); font-size: 14px; font-weight: 600; }
.fine { color: var(--muted); font-size: 14px; margin: 18px 0 0; max-width: 52em; }

.cta { text-align: center; padding: 64px 0 80px; border-top: 1px solid var(--line); }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 24px; }

/* Prose pages */
.prose { max-width: 720px; padding: 32px 0 64px; }
.prose h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 12px; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.updated { color: var(--muted); margin-top: 0; }
.placeholder { background: #ffe066; color: #17161B; padding: 1px 6px; border-radius: 4px; font-weight: 700; font-family: ui-monospace, Menlo, monospace; font-size: 0.9em; }

.faq { margin-top: 24px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.answer { padding: 0 0 14px; }
.answer p:first-child, .answer ol:first-child, .answer ul:first-child { margin-top: 0; }
.support-cta { margin-top: 40px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-top: 28px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }
.foot p { margin: 14px 0 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 28px 0 48px; }
  .benefits, .how, .tiers { grid-template-columns: 1fr; }
  .block { padding: 44px 0; }
}

@media (max-width: 420px) {
  main, .top, .foot { padding-left: 16px; padding-right: 16px; }
  body { font-size: 16px; }
  .top nav { gap: 14px; }
  .demo-card { transform: none; }
}

/* Press */
.press { max-width: 820px; }
.facts { width: 100%; border-collapse: collapse; margin: 8px 0 0; font-size: 16px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.facts th { width: 32%; font-weight: 600; }
.press-icons, .press-shots { list-style: none; padding: 0 !important; margin: 16px 0; display: grid; gap: 16px; }
.press-icons { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.press-icons li { display: flex; align-items: center; gap: 14px; margin: 0; }
.press-icons img { border-radius: 22px; box-shadow: 0 0 0 1px var(--line); }
.press-shots { grid-template-columns: repeat(4, 1fr); }
.press-shots li { display: flex; flex-direction: column; gap: 8px; margin: 0; font-size: 14px; color: var(--muted); }
.press-shots img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); display: block; }

@media (max-width: 640px) {
  .press-shots { grid-template-columns: repeat(2, 1fr); }
  .facts th { width: 40%; }
}
