:root {
  --bg: #f6f4ed;
  --surface: #fffdf7;
  --line: #d8d2c1;
  --text: #161a21;
  --muted: #5b6270;
  --accent: #0f766e;
  --radius: 16px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #eef6f5, #f6f4ed 36%, #f9f2e5);
}
.container { width: min(1180px, 94vw); margin: 0 auto; }
.access-gate { padding: 2.2rem 0; }
.gate-card { max-width: 620px; margin: 0 auto; }
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: rgba(246, 244, 237, 0.84);
  border-bottom: 1px solid rgba(22, 26, 33, 0.08);
}
.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.brand img { height: 24px; }
.hero { padding: 3rem 0 1.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.eyebrow {
  margin: 0 0 0.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent);
}
h1, h2, h3 { margin: 0; line-height: 1.1; }
h1 { font-size: clamp(2rem, 5.8vw, 3.4rem); max-width: 15ch; }
.lede { margin-top: 0.9rem; color: var(--muted); max-width: 62ch; }
.metrics { margin-top: 1rem; display: flex; gap: 0.55rem; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.34rem 0.64rem;
  font-size: 0.82rem;
  background: rgba(255, 253, 247, 0.85);
}
.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 247, 0.9);
  box-shadow: 0 10px 24px rgba(18, 22, 31, 0.08);
  padding: 1rem;
}
.section { padding: 1rem 0 2.6rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stack { display: grid; gap: 0.7rem; }
label { display: grid; gap: 0.34rem; color: #445160; font-size: 0.92rem; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.68rem;
  font: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6270' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}
.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #f5fffd;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s, box-shadow 0.15s;
}
.btn:hover { background: #0e6b63; box-shadow: 0 2px 8px rgba(15, 118, 110, 0.18); }
.btn:active { background: #0b5f58; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(22, 26, 33, 0.04); box-shadow: none; }
.btn-ghost:active { background: rgba(22, 26, 33, 0.08); }
.btn-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.list { margin: 0; padding-left: 1rem; color: var(--muted); }
.list li + li { margin-top: 0.3rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.table th, .table td {
  border-bottom: 1px solid rgba(22, 26, 33, 0.08);
  text-align: left;
  padding: 0.5rem;
  vertical-align: top;
  white-space: nowrap;
}
.table td:last-child { white-space: normal; word-break: break-word; max-width: 240px; }
.table th { color: #3f4b5a; font-weight: 600; background: rgba(246, 244, 237, 0.6); position: sticky; top: 0; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; }
.kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem;
  background: #fffef9;
}
.kpi strong { display: block; font-size: 1.2rem; }
.kpi span { color: var(--muted); font-size: 0.84rem; }
.footer { padding: 1.5rem 0 2.2rem; color: var(--muted); text-align: center; font-size: 0.9rem; }
@media (max-width: 980px) {
  .hero-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .panel { padding: 0.75rem; }
  h1 { font-size: 1.6rem; }
}
