:root {
  color-scheme: light;
  --ink: #13201c;
  --muted: #66736e;
  --line: #d8e0dc;
  --paper: #f7f7f2;
  --panel: #ffffff;
  --green: #1b7f62;
  --green-dark: #105d49;
  --blue: #2459a8;
  --amber: #c48820;
  --shadow: 0 18px 60px rgba(22, 35, 30, 0.12);
}

* {
  box-sizing: border-box;
}

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

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 242, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-link:hover {
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(34px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.hero-copy {
  max-width: 800px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 12px 0 8px;
  font-size: 21px;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.button.ghost {
  background: transparent;
}

.button.full {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.status-panel,
.panel,
.auth-card,
.steps-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.status-panel {
  padding: 18px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row strong {
  color: var(--ink);
}

.band {
  padding: clamp(42px, 7vw, 84px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.band.contrast {
  background: #e9f1ee;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.steps-grid article {
  padding: 22px;
}

.steps-grid span {
  color: var(--amber);
  font-weight: 900;
}

.steps-grid p,
.split p,
.panel-note {
  color: var(--muted);
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: start;
}

.auth-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 34px 18px;
}

.auth-card {
  width: min(100%, 430px);
  padding: 28px;
}

.auth-card h1 {
  font-size: 38px;
  line-height: 1.05;
  margin-bottom: 24px;
}

label {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}

input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(27, 127, 98, 0.14);
}

.form-error,
.notice {
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff2ea;
  color: #8b3f1f;
  font-weight: 700;
}

.muted-link {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

.dashboard {
  padding: clamp(28px, 5vw, 64px);
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.dashboard h1 {
  font-size: clamp(38px, 5vw, 62px);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  padding: 24px;
  box-shadow: none;
}

.panel.accent {
  border-color: rgba(27, 127, 98, 0.28);
  background: #f0f7f4;
}

.panel.wide {
  grid-column: 1 / -1;
}

.kv {
  margin: 0;
}

.kv div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

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

dt {
  color: var(--muted);
  font-weight: 750;
}

dd {
  margin: 0;
  font-weight: 800;
}

.status-pill,
.access-line {
  display: block;
  width: 100%;
  border-radius: 8px;
}

.status-pill {
  margin: 18px 0;
  padding: 10px 12px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 850;
}

.access-line {
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: #e9f1ee;
  color: var(--green-dark);
  font-weight: 850;
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .split,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .kv div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
