:root {
  --bg: #f4efe7;
  --panel: #fffaf3;
  --ink: #1f1b17;
  --muted: #6d6256;
  --line: #d8c9b7;
  --accent: #8a4b24;
  --accent-2: #5f2f12;
  --success: #1f6b4a;
  --danger: #8a2d2d;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; }
body { min-height: 100vh; }
.shell { max-width: 1180px; margin: 0 auto; padding: 24px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 800; letter-spacing: -0.03em; font-size: 1.25rem; text-decoration: none; }
.nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.nav a.cta-link { color: var(--accent-2); }
.hero { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 28px; padding: 34px 0 20px; }
.hero-copy { background: var(--panel); border: 1px solid var(--line); padding: 28px; }
.kicker { color: var(--accent-2); font-size: 0.84rem; font-weight: 700; letter-spacing: 0.02em; text-transform: none; margin-bottom: 14px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.03em; margin: 0 0 14px; }
h1 { font-size: clamp(2.6rem, 6vw, 4.7rem); line-height: 0.93; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.02; }
h3 { font-size: 1.1rem; }
p { color: var(--muted); line-height: 1.6; }
.hero-points, .compact-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.hero-points li, .compact-list li { padding-left: 16px; position: relative; color: var(--ink); }
.hero-points li::before, .compact-list li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }
.hero-panel, .panel { background: var(--panel); border: 1px solid var(--line); padding: 22px; }
.grid-2, .grid-3 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.section { padding: 22px 0; }
.label { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
input, textarea, select { width: 100%; border-radius: 0; border: 1px solid var(--line); background: #fff; padding: 12px 14px; font: inherit; color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 1px solid var(--accent); background: var(--accent); color: #fff; padding: 0 18px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
button.secondary, .button.secondary { background: transparent; color: var(--accent-2); }
.inline-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.stat { padding: 14px; border: 1px solid var(--line); background: #fff; }
.stat strong { display: block; font-size: 1.4rem; }
.demo-output { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); padding: 16px; margin-top: 16px; color: var(--ink); }
.muted { color: var(--muted); }
.notice { padding: 12px 14px; border: 1px solid var(--line); background: #fff; margin-bottom: 16px; }
.notice.success { border-color: #a8cbb7; color: var(--success); }
.notice.error { border-color: #d5a4a4; color: var(--danger); }
.history-item { border-top: 1px solid var(--line); padding: 14px 0; }
.history-item:first-child { border-top: 0; padding-top: 0; }
.output-block { white-space: pre-wrap; background: #fff; border: 1px solid var(--line); padding: 14px; }
.footer { padding: 28px 0 40px; color: var(--muted); font-size: 0.95rem; }
.auth-shell { max-width: 640px; margin: 36px auto; }
@media (max-width: 880px) {
  .hero, .grid-2, .grid-3, .stat-strip { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .shell { padding: 18px; }
  h1 { font-size: 2.7rem; }
}
