:root {
  --bg: #F7F7F4;
  --paper: #FFFFFF;
  --ink: #16181D;
  --muted: #545A66;
  --accent: #1E3A8A;
  --accent-hover: #172E6E;
  --rule: #DEDED7;
  --rule-strong: #A9ABA4;
  --grid: rgba(22, 24, 29, 0.05);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1120px;
  --pad: clamp(16px, 4vw, 32px);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: var(--pad); top: -100px; z-index: 10;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; color: #fff; }
.skip:hover { color: #fff; background: var(--accent-hover); }

.top { border-bottom: 1px solid var(--rule); background: var(--bg); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--mono); font-size: 14px; color: var(--muted); text-decoration: none;
}
.nav a:hover { color: var(--ink); text-decoration: underline; }

.hero { position: relative; padding-block: clamp(56px, 9vw, 120px); isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: end; }

.kicker, dt, .step-n, .foot { font-family: var(--mono); }
.kicker { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.04; letter-spacing: -0.025em; font-weight: 600; max-width: 16ch; }
.tagline { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--muted); margin-top: 24px; max-width: 56ch; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px;
  border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--paper);
  color: var(--ink); font-weight: 500; text-decoration: none; text-align: center;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }

.sheet { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 24px; }
.sheet dl > div { padding-block: 14px; }
.sheet dl > div + div { border-top: 1px solid var(--rule); }
dt { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
dd { font-weight: 500; margin-top: 2px; }

.section { border-top: 1px solid var(--rule); padding-block: clamp(64px, 8vw, 112px); }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 600; margin-bottom: clamp(28px, 4vw, 48px); max-width: 24ch; }
h3 { font-size: 20px; line-height: 1.3; font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 28px;
}
.card p { color: var(--muted); margin-top: 12px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; border-top: 1px solid var(--rule-strong); }
.steps li { counter-increment: step; padding: 24px 24px 8px 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 14px;
  font-family: var(--mono); font-size: 14px; color: var(--accent);
}
.steps p { color: var(--muted); margin-top: 10px; }

.note {
  margin-top: clamp(32px, 4vw, 48px); padding: 24px 28px; background: var(--paper);
  border: 1px solid var(--rule-strong); border-radius: var(--radius); max-width: 760px;
}
.note p + p { margin-top: 8px; color: var(--muted); }
.note strong { font-weight: 600; }

.about { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 64px); }
.about h2 { margin-bottom: 0; }
.about-text { font-size: 19px; line-height: 1.55; max-width: 60ch; }
.about-text p + p { margin-top: 12px; }

.contact-line { font-size: clamp(22px, 3vw, 32px); line-height: 1.35; font-weight: 500; max-width: 34ch; }
.contact-sub { color: var(--muted); margin-top: 12px; font-size: 18px; }
.mail { overflow-wrap: anywhere; }

.foot { border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 16px; }

@media (max-width: 960px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

@media (max-width: 900px) {
  .hero-grid, .about { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { align-items: start; }
  .sheet { max-width: 480px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .top-row { gap: 0 16px; padding-block: 4px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li + li { padding: 20px 0 8px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--rule); }
  .actions li { flex: 1 1 100%; }
  .actions .btn { width: 100%; }
  .card { padding: 22px; }
  .note { padding: 20px; }
  .about-text { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

.nw { white-space: nowrap; }
.tagline-terms { margin-top: 10px; color: var(--ink); font-weight: 500; }
h1 { text-wrap: balance; }
.about-name { font-weight: 600; }
.proof { margin-top: 16px; display: grid; gap: 10px; }
.proof li { position: relative; padding-left: 22px; color: var(--muted); }
.proof li::before { content: ""; position: absolute; left: 2px; top: 0.68em; width: 7px; height: 7px; background: var(--accent); }
