:root {
  color-scheme: light;
  --bg: #ede8de;
  --surface: #f8f4ec;
  --surface-strong: #fffdf8;
  --surface-dark: #1f1812;
  --ink: #19130e;
  --muted: #625548;
  --line: #cfbda7;
  --accent: #b35224;
  --accent-dark: #7c3617;
  --ok: #215f40;
  --danger: #852b2b;
  --shadow: 0 28px 64px rgba(49, 33, 20, 0.12);
  font-family: "Manrope", ui-sans-serif, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: #ede8de;
  background:
    radial-gradient(circle at top left, rgba(179, 82, 36, 0.12), transparent 34%),
    linear-gradient(180deg, #f5f0e8 0%, #ede8de 100%);
  color: var(--ink);
}

body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.page {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0 14px;
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
}

.cta-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  border: 1px solid transparent;
  background: var(--accent);
  color: #fffdf9;
  font-weight: 800;
  cursor: pointer;
}

.button.secondary,
.cta-link.secondary {
  background: transparent;
  color: var(--ink);
  border-color: rgba(25, 19, 14, 0.14);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: start;
  padding: 24px 0 44px;
}

.serif,
h1,
h2,
h3 {
  font-family: "Libre Baskerville", serif;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.9rem, 5.8vw, 5.2rem);
  line-height: 0.96;
  margin: 0 0 18px;
  max-width: 10ch;
}

.lead {
  max-width: 58ch;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 800;
}

.panel,
.card,
.report-box,
.stat,
.kpi {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(113, 89, 67, 0.16);
  box-shadow: var(--shadow);
}

.panel,
.card,
.report-box {
  border-radius: 24px;
}

.panel,
.card,
.report-box {
  padding: 22px;
}

.stack {
  display: grid;
  gap: 14px;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.row-between {
  justify-content: space-between;
  align-items: start;
}

.label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.input,
.textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #a58e77;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 14px 15px;
}

.textarea {
  min-height: 160px;
  resize: vertical;
}

.input:focus,
.textarea:focus {
  outline: 3px solid rgba(179, 82, 36, 0.18);
  border-color: var(--accent);
}

.stats,
.section-grid,
.dashboard-grid,
.kpis,
.pricing-grid {
  display: grid;
  gap: 16px;
}

.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
.section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-grid { grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); }
.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.stat,
.kpi {
  padding: 18px;
  border-radius: 18px;
}

.stat strong,
.kpi strong {
  display: block;
  font-size: 1.45rem;
}

.kpi span,
.muted {
  color: var(--muted);
}

.hero-proof {
  display: grid;
  gap: 16px;
}

.audit-preview ul,
.sidebar ul,
.history-list {
  margin: 0;
  padding-left: 18px;
}

.audit-preview li,
.sidebar li {
  margin: 8px 0;
  line-height: 1.55;
}

.banner {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(113, 89, 67, 0.18);
  background: #fff2e4;
}

.banner.ok {
  color: var(--ok);
  background: #eef7f2;
  border-color: rgba(33, 95, 64, 0.2);
}

.banner.err {
  color: var(--danger);
  background: #fff0ee;
  border-color: rgba(133, 43, 43, 0.2);
}

.section { padding: 34px 0 40px; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
}

.sidebar {
  padding: 30px 24px;
  background-color: #1f1812;
  background:
    linear-gradient(180deg, rgba(18, 13, 9, 0.96), rgba(32, 24, 18, 0.98)),
    radial-gradient(circle at top left, rgba(179, 82, 36, 0.24), transparent 35%);
  color: #f7f1ea;
}

.sidebar p,
.sidebar li { color: #e2d4c5; }

.sidebar h2 {
  margin: 6px 0 14px;
  font-size: 2rem;
  line-height: 1.15;
}

.sidebar-button {
  margin-top: 12px;
  color: #f7f1ea;
  border-color: rgba(247, 241, 234, 0.25);
}

.main {
  padding: 28px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-panel,
.feedback-panel {
  max-width: 580px;
}

.score-pill {
  min-width: 84px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--surface);
  text-align: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.findings-wrap {
  margin-top: 18px;
}

.finding {
  padding: 16px 0;
  border-top: 1px solid rgba(113, 89, 67, 0.14);
}

.finding:first-child {
  border-top: none;
  padding-top: 0;
}

.finding h3 {
  margin: 10px 0 8px;
  font-size: 1.18rem;
}

.finding-priority {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: #f4e4d4;
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.history-list li {
  margin-bottom: 12px;
}

.history-list a {
  display: grid;
  gap: 4px;
}

.standout {
  background-color: #f9efe2;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(244, 232, 216, 0.96));
}

.small { font-size: 0.92rem; }

footer {
  padding: 20px 0 44px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .dashboard-grid,
  .auth-shell,
  .pricing-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 720px) {
  .page { width: min(100% - 24px, 1140px); }
  .stats,
  .kpis { grid-template-columns: 1fr; }
  .main { padding: 18px; }
  .hero-copy h1 { max-width: 12ch; }
  .nav { align-items: start; }
}
