:root {
  --paper: #f6f7fb;
  --surface: #ffffff;
  --ink: #0d1117;
  --muted: #58607a;
  --line: #e3e6f0;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-text: #4338ca;
  --accent-soft: #eef0fe;
  --glow: rgba(79, 70, 229, .10);
  --shadow: 0 1px 2px rgba(13, 17, 23, .04), 0 8px 24px rgba(13, 17, 23, .05);
  --radius: 14px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a0c12;
    --surface: #12151f;
    --ink: #e9ecf5;
    --muted: #949cb8;
    --line: #1e2231;
    --accent: #7c7cf5;
    --accent-hover: #9090ff;
    --accent-text: #a5a6ff;
    --accent-soft: #141733;
    --glow: rgba(124, 124, 245, .16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 clamp(15px, .45vw + 14px, 16.5px)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 10;
  background: var(--accent); color: #fff;
  padding: .6rem 1rem; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- header ---------- */

.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; flex-wrap: wrap;
  padding: .95rem clamp(1.1rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  position: sticky; top: 0; z-index: 5;
}

.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }

.mark {
  width: 30px; height: 30px; flex: none; padding: 4px;
  border-radius: 9px; background: var(--accent);
  fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round;
}

.wordmark { font-size: 1.22rem; font-weight: 650; letter-spacing: -.025em; line-height: 1; }
.wordmark b { font-weight: 650; color: var(--accent-text); }

nav { display: flex; gap: .35rem; flex-wrap: wrap; }
nav a {
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: .4rem .7rem; border-radius: 8px;
}
nav a:hover { color: var(--ink); background: var(--accent-soft); }
nav a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); }

/* ---------- layout ---------- */

main { max-width: 71rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.1rem, 5vw, 2.5rem) 5rem; }
main:focus { outline: none; }

section + section { margin-top: clamp(3.5rem, 7vw, 5.5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 1rem;
}
.eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 2px;
  background: var(--accent); opacity: .8;
}

h1, h2, h3 { font-weight: 640; letter-spacing: -.032em; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.35rem); line-height: 1.06; margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); line-height: 1.15; margin: 0 0 1.6rem; letter-spacing: -.028em; }
h3 { font-size: 1.03rem; font-weight: 620; line-height: 1.35; margin: 0 0 .5rem; letter-spacing: -.018em; }
p { margin: 0 0 1rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  top: -35%; left: -12%; width: min(46rem, 90%); aspect-ratio: 1;
  background: radial-gradient(circle, var(--glow) 0%, transparent 68%);
  pointer-events: none;
}
.hero h1 { max-width: 17ch; }
.hero .sub { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); max-width: 48ch; }

.btn {
  display: inline-block; margin-top: 1.6rem;
  padding: .8rem 1.55rem;
  background: var(--accent); color: #fff;
  border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .95rem;
  box-shadow: 0 1px 2px rgba(13, 17, 23, .1), 0 6px 18px var(--glow);
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- cards ---------- */

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.card h3 { color: var(--ink); }
.card p { color: var(--muted); margin: 0; font-size: .93rem; line-height: 1.62; }

/* ---------- steps ---------- */

.steps {
  list-style: none; counter-reset: step; margin: 0; padding: 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.steps li {
  counter-increment: step;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: .9rem;
  font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  color: var(--accent-text);
}
.steps p { color: var(--muted); margin: 0; font-size: .93rem; line-height: 1.62; }

/* ---------- prose ---------- */

.prose { max-width: 44rem; }
.prose p { color: var(--muted); }
.prose p:first-of-type { color: var(--ink); font-size: 1.06rem; }

/* ---------- faq ---------- */

.faq { max-width: 48rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; margin-bottom: .6rem; padding: 0 1.2rem;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2rem 1.05rem 0;
  font-weight: 590; font-size: .99rem; letter-spacing: -.012em; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: .9rem;
  font-size: 1.35rem; font-weight: 400; color: var(--accent-text); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 0 0 1.1rem; max-width: 62ch; font-size: .94rem; }

/* ---------- call to action band ---------- */

.band {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: 18px;
  padding: clamp(1.9rem, 4vw, 3.2rem);
}
.band h2 { margin-bottom: .6rem; }
.band p { color: var(--muted); max-width: 50ch; margin-bottom: 0; }

/* ---------- contact ---------- */

.contact .lead { font-size: 1.06rem; max-width: 48ch; color: var(--muted); }
.contact .email {
  display: inline-block; margin-top: .9rem;
  padding: .85rem 1.4rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; letter-spacing: -.02em;
  color: var(--accent-text); text-decoration: none;
}
.contact .email:hover { border-color: var(--accent); }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(1.1rem, 5vw, 3.5rem) 2rem;
  color: var(--muted); font-size: .9rem;
}
.foot-grid {
  max-width: 71rem; margin: 0 auto;
  display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.foot-mark { font-size: 1.15rem; color: var(--ink); }
.foot-note { margin-top: .7rem; max-width: 30ch; }
.foot-h { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin: 0 0 .9rem; }
#foot-nav { flex-direction: column; gap: .15rem; align-items: flex-start; }
#foot-nav a { padding: .25rem 0; }
#foot-nav a:hover { background: none; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--accent-text); }
.foot-legal { max-width: 71rem; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .84rem; }

/* ---------- small screens ---------- */

@media (max-width: 40rem) {
  .bar { padding: .8rem 1rem; }
  nav { gap: .15rem; }
  nav a { font-size: .85rem; padding: .35rem .5rem; }
  .wordmark { font-size: 1.12rem; }
  .mark { width: 27px; height: 27px; }
}
