:root {
  --ink: #111412;
  --muted: #59625a;
  --paper: #f6f8f5;
  --surface: #ffffff;
  --line: #d9e0d6;
  --green: #2f7d5a;
  --teal: #16858a;
  --coral: #d96b57;
  --amber: #d59b2d;
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

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

.sample-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 6vw;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 245, 0.92);
  backdrop-filter: blur(16px);
}

.sample-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.sample-brand span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  color: #ffffff;
  background: var(--ink);
  font-size: 0.75rem;
}

.sample-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sample-nav a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.sample-main {
  width: min(1120px, calc(100% - 12vw));
  margin: 0 auto;
}

.sample-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: end;
  padding: 76px 0 54px;
}

.sample-kicker,
.label {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sample-hero h1 {
  margin: 0;
  font-size: 4rem;
  line-height: 1;
}

.sample-hero p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(17, 20, 18, 0.08);
}

.hero-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.hero-card a {
  color: var(--green);
  font-weight: 900;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.sample-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  font-weight: 900;
}

.sample-button.primary {
  color: #ffffff;
  border-color: var(--ink);
  background: var(--ink);
}

.section-block {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.section-block h2 {
  margin: 0 0 20px;
  font-size: 2rem;
  line-height: 1.1;
}

.grid-2,
.grid-3,
.metric-grid {
  display: grid;
  gap: 18px;
}

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

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

.card,
.metric,
.doc-table,
.prototype-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card,
.metric {
  padding: 22px;
}

.metric strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

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

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

.insight-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.insight-list li {
  padding: 16px 18px;
  border-left: 4px solid var(--green);
  background: var(--surface);
}

.doc-table {
  width: 100%;
  overflow: hidden;
  border-collapse: collapse;
}

.doc-table th,
.doc-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  background: #edf4ea;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.doc-table tr:last-child td {
  border-bottom: 0;
}

.bar-chart {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 44px;
  gap: 12px;
  align-items: center;
}

.bar-track {
  height: 14px;
  border-radius: 999px;
  background: #e5ebe2;
  overflow: hidden;
}

.bar-track span {
  display: block;
  width: var(--bar);
  height: 100%;
  background: var(--green);
}

.status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.status.warning {
  background: var(--amber);
}

.prototype-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
}

.prototype-panel {
  padding: 20px;
}

.prototype-controls {
  display: grid;
  gap: 10px;
}

.prototype-controls button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 900;
  cursor: pointer;
}

.prototype-controls button.active {
  color: #ffffff;
  border-color: var(--green);
  background: var(--green);
}

.prototype-list {
  display: grid;
  gap: 12px;
}

.prototype-item {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
}

.prototype-item strong {
  display: block;
  font-size: 1.05rem;
}

.prototype-item span {
  color: var(--muted);
}

.prototype-item.active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 125, 90, 0.12);
}

.detail-panel {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfa;
}

.detail-panel h3 {
  margin-top: 0;
}

.sample-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 6vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}

@media (max-width: 860px) {
  .sample-header,
  .sample-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .sample-main {
    width: calc(100% - 40px);
  }

  .sample-hero,
  .grid-2,
  .grid-3,
  .metric-grid,
  .prototype-shell {
    grid-template-columns: 1fr;
  }

  .sample-hero {
    padding-top: 56px;
  }

  .sample-hero h1 {
    font-size: 2.7rem;
  }

  .bar-row {
    grid-template-columns: 92px 1fr 36px;
  }

  .doc-table {
    display: block;
    overflow-x: auto;
  }
}
