:root {
  --page: #f7f8f5;
  --surface: #ffffff;
  --surface-muted: #eef2ee;
  --text: #161a18;
  --muted: #59625d;
  --line: #d8ddd7;
  --accent: #0f766e;
  --accent-dark: #134e4a;
  --accent-warm: #9a5b13;
  --danger: #9f3a38;
  --code: #111827;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--page);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px max(20px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 245, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.nav a,
.status-pill {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
}

.status-pill {
  color: var(--accent-dark);
  font-weight: 700;
}

main {
  width: min(1160px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.product-header {
  display: grid;
  gap: 24px;
  padding: 32px 0 26px;
  border-bottom: 1px solid var(--line);
}

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

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

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

h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.lede {
  max-width: 820px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.cover {
  width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metrics,
.demo-layout,
.surface-grid {
  display: grid;
  gap: 14px;
}

.metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 22px 0;
}

.metrics div,
.panel,
.surface-card,
.timeline-item,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.metrics div {
  padding: 16px;
}

.metrics span,
label {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.metrics strong {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.35;
}

.demo-layout {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: stretch;
  margin: 28px 0;
}

.panel {
  padding: 22px;
}

.section {
  margin-top: 34px;
}

.section-title {
  margin-bottom: 16px;
}

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

select,
button {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

select {
  padding: 0 12px;
  color: var(--text);
  background: var(--surface);
}

button {
  margin-top: 2px;
  padding: 0 16px;
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

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

button:focus-visible,
select:focus-visible,
a:focus-visible,
pre:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
}

.policy {
  min-height: 76px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.output-panel {
  min-width: 0;
}

pre {
  min-height: 304px;
  max-height: 420px;
  margin: 0;
  overflow: auto;
  border-radius: 8px;
  padding: 16px;
  background: var(--code);
  color: #eef6f0;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

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

.surface-card,
.timeline-item {
  padding: 18px;
}

.surface-card p,
.timeline-item p,
.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.62;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.period {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 4px 9px;
  background: var(--surface-muted);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

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

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

td {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

tbody tr:last-child td {
  border-bottom: 0;
}

code {
  border-radius: 6px;
  padding: 2px 5px;
  background: var(--surface-muted);
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.notice {
  margin-top: 34px;
  padding: 22px;
  border-color: rgba(159, 58, 56, 0.28);
}

.notice h2 {
  margin-bottom: 10px;
  color: var(--danger);
}

@media (max-width: 900px) {
  .topbar {
    position: static;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .nav {
    justify-content: start;
  }

  .status-pill {
    white-space: normal;
  }

  h1 {
    font-size: 3rem;
  }

  .metrics,
  .demo-layout,
  .surface-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .cover {
    aspect-ratio: 2.4 / 1;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100vw - 24px, 1160px);
    padding-top: 18px;
  }

  .topbar {
    padding: 12px;
  }

  .nav a {
    flex: 1 1 auto;
    justify-content: center;
  }

  h1 {
    font-size: 2.45rem;
  }

  .lede {
    font-size: 1rem;
  }

  .panel,
  .notice {
    padding: 18px;
  }
}
