:root {
  --bg: #fbf7f1;
  --surface: #ffffff;
  --ink: #1f1b16;
  --muted: #6b6259;
  --line: #e8dfd3;
  --accent: #7a2e3a;
  --accent-ink: #ffffff;
  --accent-soft: #f3e6e3;
  --gold: #b88a3b;
  --ok: #2f6b45;
  --err: #a12b2b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 27, 22, 0.05), 0 8px 28px rgba(31, 27, 22, 0.06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img, svg { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-top: 1.6em; }
h3 { font-size: 1.25rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(251, 247, 241, 0.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo svg { width: 26px; height: 26px; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }
.nav .btn { white-space: nowrap; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .logo { font-size: 1.1rem; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 14px 26px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(122, 46, 58, 0.25); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.small { padding: 9px 18px; font-size: 0.92rem; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }

.hero { padding: 72px 0 56px; }
.hero .eyebrow { color: var(--gold); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 620px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 28px; }
.hero .cta-note { color: var(--muted); font-size: 0.92rem; }

.section { padding: 56px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.section.alt .card { background: var(--bg); box-shadow: none; }
.card h3 { margin-top: 0; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.role-links { display: flex; flex-wrap: wrap; gap: 10px; }
.role-links a { border: 1px solid var(--line); background: var(--surface); padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 0.95rem; }
.role-links a:hover { border-color: var(--accent); color: var(--accent); }

.sample { font-family: var(--serif); font-size: 1.12rem; line-height: 1.7; background: var(--surface); border-left: 3px solid var(--gold); padding: 24px 28px; border-radius: 0 var(--radius) var(--radius) 0; }
.sample p:last-child { margin-bottom: 0; }

.price-card { max-width: 440px; margin: 0 auto; text-align: center; }
.price { font-family: var(--serif); font-size: 3.4rem; font-weight: 600; line-height: 1; margin: 8px 0; }
.checks { list-style: none; padding: 0; margin: 20px 0 24px; text-align: left; }
.checks li { padding: 6px 0 6px 30px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

details.faq { border-bottom: 1px solid var(--line); padding: 16px 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--muted); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 10px 0 0; color: var(--muted); }

.site-footer { padding: 40px 0; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Article */
.article { padding: 48px 0; }
.article .crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: 0.45em; }
.cta-box { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: 28px; margin: 36px 0; }
.cta-box h2, .cta-box h3 { margin-top: 0; color: #fff; }
.cta-box .btn { background: #fff; color: var(--accent); }

/* Forms */
.form-shell { padding: 40px 0 64px; }
.progress { display: flex; gap: 8px; margin: 0 0 28px; }
.progress span { flex: 1; height: 5px; border-radius: 4px; background: var(--line); }
.progress span.on { background: var(--accent); }
fieldset { border: 0; padding: 0; margin: 0; }
.field { margin-bottom: 22px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: 0.9rem; margin: -2px 0 8px; }
input[type="text"], input[type="email"], textarea, select { width: 100%; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
textarea { min-height: 110px; resize: vertical; }
textarea.tall { min-height: 190px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: block; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 12px 14px; cursor: pointer; text-align: center; }
.choice span small { display: block; color: var(--muted); font-size: 0.82rem; }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.notice { border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.notice.err { background: #fbeaea; color: var(--err); }
.notice.info { background: var(--accent-soft); color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.summary-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px; }

/* Speech page */
.speech-shell { padding: 40px 0 64px; }
.speech-paper { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 52px); font-family: var(--serif); font-size: 1.18rem; line-height: 1.75; white-space: pre-wrap; min-height: 240px; }
.speech-paper.writing::after { content: "▍"; color: var(--gold); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; align-items: center; }
.versions { display: flex; gap: 6px; flex-wrap: wrap; }
.versions button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 0.88rem; cursor: pointer; }
.versions button.on { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.status { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 0 0 18px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.meta { color: var(--muted); font-size: 0.92rem; }
.tips li { margin-bottom: 0.5em; }

@media print {
  .site-header, .site-footer, .toolbar, .no-print, .revise, .tips-section { display: none !important; }
  body { background: #fff; }
  .speech-paper { border: 0; box-shadow: none; padding: 0; font-size: 14pt; }
}
