:root {
  color-scheme: light;
  --bg: #f7f8f7;
  --surface: #ffffff;
  --surface-strong: #eef3ef;
  --text: #16221b;
  --muted: #536158;
  --line: #d6dfd8;
  --brand: #1d6b46;
  --brand-dark: #145134;
  --accent: #0f3d27;
  --danger: #9b2c2c;
  --shadow: 0 18px 44px rgba(19, 45, 30, 0.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
.topbar { display:flex; justify-content:space-between; align-items:center; padding:20px 32px; border-bottom:1px solid var(--line); background:rgba(255,255,255,.92); position:sticky; top:0; backdrop-filter: blur(12px); }
.topbar nav { display:flex; gap:18px; align-items:center; color:var(--muted); }
.brand { font-weight:800; letter-spacing:-0.02em; }
.nav-user { font-size:.95rem; color: var(--accent); }
main { padding: 32px; max-width: 1180px; margin: 0 auto; }
.hero { display:grid; grid-template-columns: 1.35fr .9fr; gap: 28px; padding: 34px 0 24px; align-items:start; }
.hero-card,.panel,.form-card,.price-card,.support-card { background: var(--surface); border:1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.hero-card { padding: 26px; }
.hero-card h2 { margin-top:0; }
.metric { padding:14px 0; border-top:1px solid var(--line); }
.metric:first-of-type { border-top:0; }
.metric span { display:block; color:var(--muted); font-size:.9rem; margin-bottom:6px; }
.metric strong { font-size:1.02rem; }
.eyebrow { text-transform:uppercase; letter-spacing:.14em; font-size:.75rem; color:var(--brand); font-weight:700; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height:1.02; letter-spacing:-0.04em; margin:.2em 0; max-width: 12ch; }
.lede { max-width: 58ch; font-size:1.12rem; color:var(--muted); line-height:1.6; }
.hero-actions,.pricing-grid { display:flex; gap:14px; flex-wrap:wrap; }
.button { display:inline-flex; align-items:center; justify-content:center; border-radius:14px; padding:14px 18px; font-weight:700; border:1px solid transparent; cursor:pointer; }
.button.primary { background:var(--brand); color:white; }
.button.primary:hover { background:var(--brand-dark); }
.button.secondary { background:var(--surface-strong); color:var(--accent); border-color:var(--line); }
.bullet-list { padding-left: 18px; color: var(--muted); line-height:1.7; }
.section-grid,.dashboard-grid,.pricing-grid { display:grid; gap:18px; }
.section-grid { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.section-grid article { background: var(--surface); border:1px solid var(--line); border-radius:20px; padding:22px; }
.form-page,.pricing-page,.support-page { max-width: 880px; }
.form-card,.support-card { max-width: 620px; margin: 18px auto; padding: 28px; }
label { display:block; font-weight:600; margin: 14px 0; }
input, textarea { width:100%; margin-top:8px; border:1px solid var(--line); border-radius:14px; padding:14px 15px; font: inherit; background:white; color:var(--text); }
textarea { min-height: 140px; resize: vertical; }
.error { color:var(--danger); font-weight:600; }
.pricing-grid { grid-template-columns: repeat(2, minmax(0,1fr)); align-items:stretch; }
.price-card { padding: 26px; }
.price-card.highlight { border-color: var(--brand); }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; }
.price span { font-size: 1rem; color: var(--muted); }
.dashboard { max-width: 1220px; }
.dashboard-header { margin-bottom: 18px; }
.dashboard-grid { grid-template-columns: 1.2fr .8fr; }
.panel { padding: 24px; }
.analysis-status { margin-top: 12px; color: var(--muted); min-height: 24px; }
.analysis-output pre, .history-item pre { white-space: pre-wrap; background:#102017; color:#eff8f1; border-radius:18px; padding:16px; overflow:auto; font-size:.92rem; }
.history-item { border-top:1px solid var(--line); padding-top:16px; margin-top:16px; }
.empty { color: var(--muted); }
.feedback-form { margin-top: 20px; }
@media (max-width: 900px) {
  .hero,.section-grid,.dashboard-grid,.pricing-grid { grid-template-columns: 1fr; }
  .topbar { padding: 16px 20px; }
  main { padding: 22px; }
  h1 { max-width: unset; }
}
