:root {
  --paper: #faf8f3;
  --paper-soft: #f1ece2;
  --ink: #26221c;
  --muted: #756c60;
  --rule: #ded7ca;
  --card: #fffdf8;
  --primary: #c4512f;
  --primary-dark: #96391f;
  --highlight: #f5dc87;
  --shadow: 0 24px 80px rgba(70, 55, 36, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; }
mark { background: color-mix(in srgb, var(--highlight) 80%, transparent); border-radius: 3px; padding: 0 0.14em; color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
button, input, textarea { font: inherit; }
.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; }
.section-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.section-block { padding: 96px 0; border-top: 1px solid var(--rule); }
.section-heading { max-width: 680px; }
.section-heading.narrow { max-width: 760px; margin: 0 auto; }
.eyebrow, .label { color: var(--primary); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.label { color: var(--muted); margin-bottom: 10px; }
.label-primary { color: var(--primary); }
.caption { color: var(--muted); font-size: 0.88rem; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250,248,243,0.78); backdrop-filter: blur(16px); transition: border-color .2s, background .2s; }
.site-header.is-scrolled { border-bottom: 1px solid var(--rule); background: rgba(250,248,243,0.94); }
.nav-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -0.02em; }
.wordmark.small { font-size: 0.95rem; }
.wordmark-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: var(--paper); font-family: 'Instrument Serif', Georgia, serif; font-size: 1.3rem; }
.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav a, .site-footer nav a { color: var(--muted); text-decoration: none; font-size: 0.94rem; transition: color .18s; }
.desktop-nav a:hover, .site-footer nav a:hover { color: var(--ink); }
.nav-cta, .mobile-cta { background: var(--ink); color: var(--paper); text-decoration: none; border-radius: 999px; padding: 10px 16px; font-size: 0.92rem; font-weight: 600; }
.menu-toggle { display: none; background: transparent; border: 0; padding: 9px; border-radius: 10px; color: var(--ink); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 99px; transition: transform .2s, opacity .2s; }
.menu-icon::before, .menu-icon::after { content: ''; position: relative; }
.menu-icon::before { top: -7px; }
.menu-icon::after { top: 5px; }
.menu-toggle[aria-expanded="true"] .menu-icon { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(90deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { opacity: 0; }
.mobile-nav { border-top: 1px solid var(--rule); padding: 10px 20px 18px; background: var(--paper); }
.mobile-nav a { display: block; max-width: 1120px; margin: 0 auto; padding: 12px 0; text-decoration: none; color: var(--ink); border-bottom: 1px solid color-mix(in srgb, var(--rule) 70%, transparent); }
.mobile-nav .mobile-cta { margin-top: 8px; text-align: center; border: 0; color: var(--paper); }

.hero { position: relative; padding: 72px 0 96px; overflow: hidden; }
.hero-glow { position: absolute; inset: -30% -20% auto; height: 430px; background: radial-gradient(circle at 50% 0%, rgba(196,81,47,.16), transparent 60%); pointer-events: none; }
.hero-copy { max-width: 780px; margin: 0 auto; text-align: center; position: relative; }
.pill { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 999px; background: var(--card); padding: 7px 12px; color: var(--muted); font-size: 0.82rem; margin-bottom: 24px; }
h1 { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(4rem, 10vw, 7.5rem); line-height: 0.92; letter-spacing: -0.045em; margin-bottom: 26px; }
h1 em { color: var(--primary); font-style: normal; }
.hero-lede { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 13px 18px; font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .18s, opacity .18s, background .18s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--ink); color: var(--paper); }
.button-secondary { background: var(--card); color: var(--ink); border-color: var(--rule); }
.browser-card { position: relative; margin: 64px auto 0; max-width: 900px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--rule); background: var(--paper-soft); color: var(--muted); font-size: 0.82rem; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d9cdbb; }
.browser-bar p { margin: 0 0 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rewrite-grid, .example-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; padding: 24px; }
.rewrite-card, .example-card, .privacy-grid article, .steps-grid li, .check-card, .public-page-preview, .form-card { border: 1px solid var(--rule); border-radius: 20px; background: var(--card); padding: 24px; }
.original-card, .muted-card { background: var(--paper-soft); }
.rewrite-card h2, .example-card h3, .public-page-preview h3 { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.08; letter-spacing: -0.02em; }
.rewrite-card p, .example-card p, .public-page-preview p { color: var(--muted); }
.browser-footer { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--rule); padding: 14px 24px; color: var(--muted); font-size: 0.84rem; }
.browser-footer span:last-child { border: 1px solid var(--rule); border-radius: 8px; padding: 4px 8px; }

.section-heading h2, .split-section h2, .support-section h2 { font-family: 'Instrument Serif', Georgia, serif; font-size: clamp(2.7rem, 5vw, 4.6rem); line-height: 0.96; letter-spacing: -0.035em; margin-bottom: 18px; }
.section-heading p, .split-section p, .support-section p { color: var(--muted); font-size: 1.02rem; }
.steps-grid { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.steps-grid span { display: block; text-align: right; font-family: 'Instrument Serif', Georgia, serif; color: var(--muted); font-size: 2rem; }
.steps-grid h3, .privacy-grid h3 { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.55rem; margin-bottom: 10px; }
.steps-grid p, .privacy-grid p { color: var(--muted); font-size: 0.94rem; }
.note-card, .privacy-callout { margin-top: 28px; border: 1px dashed var(--rule); border-radius: 18px; background: var(--paper-soft); color: var(--muted); padding: 18px 20px; }
.split-section { display: grid; grid-template-columns: minmax(0,1fr) minmax(320px,1fr); gap: 64px; align-items: center; padding: 96px 0; border-top: 1px solid var(--rule); }
.check-card p { margin-bottom: 16px; color: var(--ink); }
.check-card hr { border: 0; border-top: 1px solid var(--rule); margin: 20px 0; }
.privacy-section, .support-section { background: var(--paper-soft); }
.privacy-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.privacy-callout { background: var(--ink); color: var(--paper); border-color: var(--ink); font-family: 'Instrument Serif', Georgia, serif; font-size: 1.55rem; }
.example-card p { line-height: 1.7; }
.bullet-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.bullet-list li { display: grid; gap: 4px; color: var(--muted); }
.bullet-list strong { color: var(--ink); }
.bullet-list strong::before { content: '•'; color: var(--primary); margin-right: 10px; }
.public-page-preview { box-shadow: var(--shadow); }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.preview-top > span:last-child { border: 1px solid var(--rule); color: var(--muted); border-radius: 999px; padding: 4px 10px; font-size: 0.76rem; text-transform: uppercase; letter-spacing: .08em; }
.source-line, .link-line { font-size: 0.9rem; color: var(--muted); }
.link-line { border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 18px; }
.faq-list { max-width: 780px; margin: 40px auto 0; border-top: 1px solid var(--rule); }
details { border-bottom: 1px solid var(--rule); padding: 20px 0; }
summary { cursor: pointer; font-family: 'Instrument Serif', Georgia, serif; font-size: 1.5rem; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; color: var(--muted); font-family: 'DM Sans', sans-serif; }
details[open] summary::after { content: '−'; }
details p { color: var(--muted); margin: 12px 32px 0 0; }
.support-section .split-section { border-top: 0; }
.form-card { background: var(--card); }
.support-form { display: grid; gap: 12px; }
.support-form label { font-weight: 700; font-size: 0.92rem; }
.support-form input, .support-form textarea { width: 100%; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); color: var(--ink); padding: 13px 14px; outline: none; }
.support-form input:focus, .support-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(196,81,47,.12); }
.honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; }
.form-error { color: #9d2d20; background: #fff0ec; border: 1px solid #f0b9aa; padding: 10px 12px; border-radius: 10px; margin: 4px 0; }
.form-success h3 { font-family: 'Instrument Serif', Georgia, serif; font-size: 2rem; margin-bottom: 8px; }
.form-success p { color: var(--muted); }
.site-footer { padding: 48px 0 36px; border-top: 1px solid var(--rule); }
.site-footer { display: grid; gap: 28px; }
.site-footer p { color: var(--muted); max-width: 420px; margin: 12px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px 26px; }
.footer-bottom { border-top: 1px solid var(--rule); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 0.84rem; }

@media (max-width: 900px) {
  .desktop-nav, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { padding-top: 56px; }
  .rewrite-grid, .example-grid, .split-section, .privacy-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 560px) {
  .section-shell, .nav-shell { width: min(100% - 28px, 1120px); }
  .section-block, .split-section { padding: 72px 0; }
  h1 { font-size: clamp(3.4rem, 18vw, 4.7rem); }
  .hero-actions, .browser-footer, .footer-bottom { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .rewrite-grid, .example-grid { padding: 14px; gap: 14px; }
  .rewrite-card, .example-card, .privacy-grid article, .steps-grid li, .check-card, .public-page-preview, .form-card { padding: 18px; }
  .steps-grid { grid-template-columns: 1fr; }
  .preview-top { align-items: flex-start; flex-direction: column; }
}
