:root {
  color-scheme: light;
  --ink: #17212b;
  --muted: #566474;
  --brand: #126b61;
  --brand-dark: #0b4c45;
  --brand-soft: #eaf6f3;
  --surface: #ffffff;
  --page: #f5f8f7;
  --line: #dbe4e2;
  --danger: #9f2f2f;
  --danger-soft: #fff2f2;
  --focus: #f3b33d;
  --shadow: 0 14px 38px rgba(23, 33, 43, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a { color: var(--brand-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--brand); }
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--brand-dark);
  border-radius: 0.4rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.page-shell,
.footer-inner {
  width: min(100% - 2rem, 70rem);
  margin-inline: auto;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-block: 1rem;
}

.brand {
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  min-height: 2.75rem;
  padding-block: 0.55rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a[aria-current="page"] { color: var(--brand); text-decoration: underline; }

.page-shell { padding-block: 2rem 3.5rem; }

.hero {
  padding: clamp(2rem, 7vw, 5rem) 0;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--brand-dark);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 { margin: 0 0 1rem; font-size: clamp(2rem, 8vw, 4rem); letter-spacing: -0.035em; }
h2 { margin: 2.2rem 0 0.8rem; font-size: clamp(1.35rem, 4vw, 1.85rem); }
h3 { margin: 1.7rem 0 0.65rem; font-size: 1.15rem; }

.lead { max-width: 48rem; font-size: clamp(1.08rem, 3vw, 1.3rem); color: var(--muted); }
.measure { max-width: 48rem; }

.workflow {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.workflow li {
  position: relative;
  padding: 1rem 1rem 1rem 3.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.workflow li::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  left: 1rem;
  top: 0.8rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
}

.card,
.legal-document,
.deletion-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.card { padding: clamp(1.25rem, 4vw, 2rem); }

.legal-header { margin-bottom: 1.5rem; }
.legal-header h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
.document-meta { margin: 0.25rem 0; color: var(--muted); font-weight: 700; }

.legal-document { padding: clamp(1.2rem, 5vw, 3.5rem); }
.legal-document > :first-child { margin-top: 0; }
.legal-document li + li { margin-top: 0.3rem; }
.legal-document strong { color: #101820; }

.notice,
.warning {
  margin-block: 1.3rem;
  padding: 1rem 1.1rem;
  border-left: 0.3rem solid var(--brand);
  background: var(--brand-soft);
}
.warning { border-color: var(--danger); background: var(--danger-soft); }

.deletion-panel { margin-top: 2rem; padding: clamp(1.2rem, 4vw, 2rem); }
.deletion-panel[hidden] { display: none; }

.form-row { margin-bottom: 1rem; }
label { display: block; margin-bottom: 0.35rem; font-weight: 750; }
input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #8b9997;
  border-radius: 0.55rem;
  font: inherit;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.1rem;
  color: #fff;
  background: var(--brand-dark);
  border: 0;
  border-radius: 0.55rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .button-link:hover { color: #fff; background: var(--brand); }
button:disabled { cursor: not-allowed; opacity: 0.6; }
.button-danger { background: var(--danger); }

.status-message { min-height: 1.65rem; font-weight: 700; }
.status-message[data-state="error"] { color: var(--danger); }

.site-footer {
  padding-block: 2rem;
  color: #e8f2f0;
  background: #102d2a;
}
.footer-inner { display: grid; gap: 0.35rem; }
.footer-inner p { margin: 0; }
.footer-inner a { color: #fff; }

@media (min-width: 42rem) {
  .header-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .workflow { grid-template-columns: repeat(4, 1fr); }
  .workflow li:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -0.75rem;
    top: 1.15rem;
    z-index: 2;
    color: var(--brand);
  }
}

@media print {
  .skip-link, .site-header, .site-footer, .button-link { display: none; }
  body { background: #fff; }
  .page-shell { width: 100%; padding: 0; }
  .legal-document { border: 0; box-shadow: none; padding: 0; }
}

