@font-face {
  font-family: "ED Sans";
  src: url("./assets/fonts/ed-sans-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ED Sans";
  src: url("./assets/fonts/ed-sans-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ED Sans";
  src: url("./assets/fonts/ed-sans-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #eef4fb;
  --bg-strong: #dfe9f7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #fffdf9;
  --ink: #111111;
  --muted: #4a4a4a;
  --line: rgba(17, 17, 17, 0.1);
  --accent: #19b8c8;
  --accent-deep: #0f8e9a;
  --accent-soft: rgba(25, 184, 200, 0.14);
  --success: #16795a;
  --warning: #bd7c10;
  --danger: #b53b42;
  --shadow: 0 24px 50px rgba(15, 32, 36, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "ED Sans", "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(25, 184, 200, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(25, 184, 200, 0.08), transparent 22%),
    linear-gradient(180deg, #f9fcfd 0%, var(--bg) 100%);
}

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

.brand-bar {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.brand-logo {
  display: block;
  width: 360px;
  max-width: 100%;
  height: auto;
}

.brand-copy {
  display: none;
}

.brand-name,
.brand-site {
  margin: 0;
}

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

.hero h1,
.section-heading h2,
.section-heading h3,
.analysis-card h3,
.history-header h2 {
  font-family: "ED Sans", "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.45rem, 5vw, 4.2rem);
  line-height: 0.96;
  text-transform: uppercase;
}

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

.hero-copy {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.6;
}

.hero-card,
.panel,
.analysis-card,
.jump-card {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.hero-card {
  border-radius: 28px;
  padding: 24px;
  background:
    linear-gradient(140deg, rgba(25, 184, 200, 0.14), rgba(255, 255, 255, 0.92)),
    var(--surface-strong);
}

.hero-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

.panel {
  border-radius: 24px;
  padding: 24px;
}

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

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

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

label {
  display: grid;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 700;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(22, 36, 61, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  transition: border-color 140ms ease, transform 140ms ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  transform: translateY(-1px);
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.section-heading h3,
.history-header h2 {
  margin: 0;
}

.section-heading.compact {
  margin-bottom: 8px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

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

.jump-card {
  border-radius: 20px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.card-title {
  margin-bottom: 12px;
}

.card-title h4,
.card-title p {
  margin: 0;
}

.card-title h4 {
  font-size: 1.15rem;
}

.card-title p {
  color: var(--muted);
  font-size: 0.92rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

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

.primary {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: white;
  box-shadow: 0 16px 34px rgba(25, 184, 200, 0.22);
}

.ghost {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border: 1px solid var(--line);
}

.ghost.danger {
  color: var(--danger);
}

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

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

.summary-card.summary-green {
  background: linear-gradient(180deg, rgba(22, 121, 90, 0.08), rgba(255, 255, 255, 0.96));
}

.summary-card.summary-yellow {
  background: linear-gradient(180deg, rgba(189, 124, 16, 0.08), rgba(255, 255, 255, 0.96));
}

.summary-card.summary-red {
  background: linear-gradient(180deg, rgba(181, 59, 66, 0.08), rgba(255, 255, 255, 0.96));
}

.summary-card p {
  margin: 0;
}

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

.summary-value {
  margin-top: 8px;
  font-size: 1.9rem;
  font-weight: 800;
}

.summary-detail {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.analysis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.analysis-card {
  border-radius: 20px;
  padding: 20px;
}

.narrative {
  line-height: 1.7;
}

.narrative p {
  margin: 0 0 10px;
}

.empty {
  color: var(--muted);
}

.metrics-table,
.history-table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.93rem;
}

th {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 800;
}

.chip.green {
  background: rgba(22, 121, 90, 0.12);
  color: var(--success);
}

.chip.yellow {
  background: rgba(189, 124, 16, 0.12);
  color: var(--warning);
}

.chip.red {
  background: rgba(181, 59, 66, 0.12);
  color: var(--danger);
}

.history-panel {
  margin-top: 24px;
}

.history-header {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.footnote {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 16px;
  }

  .grid.two,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 18px;
    border-radius: 18px;
  }

  .brand-logo {
    width: 240px;
  }

  .history-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
