:root {
  --bg: #f3efe6;
  --panel: #fcfaf4;
  --panel-strong: #f6f1e7;
  --ink: #1f2a23;
  --muted: #576257;
  --line: #c8c2b3;
  --accent: #1f7a53;
  --accent-strong: #15573b;
  --warm: #b96a2f;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  background-color: var(--bg);
  background:
    radial-gradient(circle at top left, rgba(185, 106, 47, 0.12), transparent 30%),
    linear-gradient(180deg, #f4f0e7 0%, #efe8db 100%);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

.site-header,
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.eyebrow {
  color: var(--accent-strong);
  font-size: 0.92rem;
  margin: 0 0 10px;
}

.hero,
.section-grid,
.app-grid,
.pricing-grid {
  display: grid;
  gap: 28px;
}

.hero {
  grid-template-columns: 1.1fr 0.9fr;
  padding: 28px 0 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  margin: 0 0 16px;
  max-width: 10ch;
}

.lede,
.copy,
label,
input,
textarea,
select,
button {
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.lede,
.copy {
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
}

.hero-actions,
.stack,
.metrics,
.card-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button,
button,
.button-secondary {
  min-height: 46px;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 1rem;
}

.button,
button {
  border: 0;
  background: var(--accent);
  color: #f7f5ef;
  cursor: pointer;
}

.button:hover,
button:hover {
  background: var(--accent-strong);
}

.button-secondary {
  padding-left: 0;
  color: var(--accent-strong);
}

.hero-visual,
.panel,
.recap-panel,
.pricing-panel {
  background: rgba(252, 250, 244, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(31, 42, 35, 0.08);
}

.hero-visual {
  padding: 18px;
}

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

.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 12px;
}

.section-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.pricing-panel {
  padding: 20px;
}

.panel h3,
.pricing-panel h3,
.recap-panel h3 {
  margin-top: 0;
}

.metric {
  min-width: 140px;
  padding: 14px 16px;
  background: rgba(31, 122, 83, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(31, 122, 83, 0.16);
}

.metric strong {
  display: block;
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-step {
  padding: 18px;
  background: rgba(31, 122, 83, 0.06);
  border: 1px solid rgba(31, 122, 83, 0.16);
}

.quote {
  border-top: 2px solid var(--warm);
  padding-top: 18px;
  color: var(--muted);
}

.auth-layout,
.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  padding: 24px 0 48px;
}

form {
  display: grid;
  gap: 14px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fffdf7;
  color: var(--ink);
  font-size: 1rem;
}

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

.hint,
.small {
  color: var(--muted);
  font-size: 0.94rem;
}

.app-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.recap-panel,
.history-item {
  padding: 20px;
  margin-bottom: 16px;
}

.history-item {
  border: 1px solid var(--line);
  background: rgba(252, 250, 244, 0.82);
}

.list {
  padding-left: 18px;
  margin: 8px 0 0;
}

.flash {
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  background: rgba(31, 122, 83, 0.09);
  border: 1px solid rgba(31, 122, 83, 0.2);
}

.footer-note {
  color: var(--muted);
  max-width: 42ch;
}

@media (max-width: 960px) {
  .hero,
  .auth-layout,
  .app-layout,
  .section-grid,
  .process,
  .app-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}
