:root {
  --bg: #eef2e4;
  --surface: rgba(252, 255, 248, 0.9);
  --surface-strong: #fdfdf8;
  --ink: #1d2b1f;
  --muted: #67736a;
  --line: rgba(53, 76, 58, 0.12);
  --accent: #2a6b45;
  --accent-strong: #194630;
  --warm: #b56a2b;
  --soft: #edf4ea;
  --shadow: 0 20px 60px rgba(32, 54, 37, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(181, 106, 43, 0.14), transparent 25%),
    radial-gradient(circle at top right, rgba(42, 107, 69, 0.16), transparent 24%),
    linear-gradient(160deg, #f5f7ef 0%, #e6ecdc 100%);
  min-height: 100vh;
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 10px;
}

h1, h2, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.98;
  margin-bottom: 12px;
}

.subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.hero-card,
.panel {
  backdrop-filter: blur(10px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-card {
  padding: 22px;
  display: grid;
  gap: 16px;
  align-content: center;
  background: linear-gradient(160deg, rgba(42, 107, 69, 0.98), rgba(24, 70, 48, 0.92));
  color: #f7fbf4;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.hero-stat strong {
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.layout {
  display: grid;
  gap: 20px;
}

.panel {
  padding: 24px;
}

.panel-title {
  margin-bottom: 18px;
}

.panel-title h2 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.panel-title p {
  margin-bottom: 0;
  color: var(--muted);
}

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

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

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
}

input,
textarea,
button,
select {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--ink);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(42, 107, 69, 0.55);
  background: #fff;
  transform: translateY(-1px);
}

.summary-panel {
  background: linear-gradient(180deg, rgba(252, 255, 248, 0.96), rgba(244, 248, 239, 0.92));
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.summary-card {
  padding: 18px;
  background: var(--surface-strong);
  border-radius: 18px;
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.summary-card span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.summary-card strong {
  font-size: 1.7rem;
  line-height: 1;
}

.summary-card small {
  color: var(--muted);
  line-height: 1.45;
}

.summary-card.accent {
  background: linear-gradient(160deg, rgba(42, 107, 69, 0.1), rgba(42, 107, 69, 0.02));
}

.summary-card.warm {
  background: linear-gradient(160deg, rgba(181, 106, 43, 0.12), rgba(181, 106, 43, 0.02));
}

.breakdown {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  align-items: start;
}

.breakdown-table,
.benchmark-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.breakdown-table {
  overflow: hidden;
}

.breakdown-table div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.breakdown-table div:last-child {
  border-bottom: 0;
}

.breakdown-table span,
.benchmark-card p {
  color: var(--muted);
}

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

.benchmark-card {
  padding: 18px;
}

.benchmark-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.benchmark-card strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.notes-field textarea {
  min-height: 180px;
  resize: vertical;
}

.action-row {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent);
  color: white;
  box-shadow: 0 10px 28px rgba(42, 107, 69, 0.2);
}

button.ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--line);
}

button:hover {
  transform: translateY(-1px);
}

@media (max-width: 1080px) {
  .hero,
  .breakdown,
  .summary-grid,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .summary-card strong {
    font-size: 1.45rem;
  }
}

@media print {
  body {
    background: #fff;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .hero-card,
  .panel {
    box-shadow: none;
    backdrop-filter: none;
  }

  .action-row {
    display: none;
  }
}

/* === Asteric Branding === */
.brand-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 80px;
  height: auto;
  object-fit: contain;
}
