/* ==========================================================================
   Northline Studio — core stylesheet
   ========================================================================== */

:root {
  --bg:          #ffffff;
  --bg-soft:     #f7f8fa;
  --bg-deep:     #0a0e1a;
  --ink:         #0a0e1a;
  --ink-2:       #414b60;
  --ink-3:       #6b7688;
  --line:        #e5e8ef;
  --line-soft:   #eef1f6;
  --accent:      #2b55f5;
  --accent-2:    #1a3ecc;
  --accent-soft: #eef2ff;
  --white:       #ffffff;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(10,14,26,.06), 0 1px 3px rgba(10,14,26,.04);
  --shadow:    0 4px 12px rgba(10,14,26,.06), 0 12px 32px rgba(10,14,26,.06);
  --shadow-lg: 0 8px 24px rgba(10,14,26,.08), 0 24px 64px rgba(10,14,26,.10);

  --container: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.022em;
}

h1 { font-size: clamp(2.35rem, 5.2vw, 3.85rem); letter-spacing: -.032em; font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem);  letter-spacing: -.028em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--accent-2); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: .45em; }

strong { color: var(--ink); font-weight: 620; }

::selection { background: var(--accent); color: #fff; }

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

/* ---------- Layout ---------- */

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); color: rgba(255,255,255,.72); }
.section--deep h2, .section--deep h3, .section--deep h4 { color: #fff; }

.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.075rem; color: var(--ink-3); margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .755rem; font-weight: 650; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 20px; height: 1.5px;
  background: var(--accent); border-radius: 2px;
}
.section-head--center .eyebrow { justify-content: center; }
.section--deep .eyebrow { color: #7d97ff; }
.section--deep .eyebrow::before { background: #7d97ff; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  font-family: inherit; font-size: .935rem; font-weight: 580;
  line-height: 1; letter-spacing: -.005em;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease,
              transform .18s ease, box-shadow .18s ease;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(43,85,245,.2), 0 6px 18px rgba(43,85,245,.22); }
.btn--primary:hover { background: var(--accent-2); color: #fff; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(43,85,245,.24), 0 10px 26px rgba(43,85,245,.28); }

.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { color: var(--ink); border-color: #cdd4e2; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--ink); background: #f0f2f7; transform: translateY(-1px); }

.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.26); }
.btn--outline-light:hover { color: #fff; background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.45); }

.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 14px rgba(10,14,26,.05); }

.nav { display: flex; align-items: center; gap: 36px; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 680; font-size: 1.045rem; letter-spacing: -.024em; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; }

.nav__links { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav__links a { color: var(--ink-2); font-size: .925rem; font-weight: 510; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active { font-weight: 580; }

.nav__cta { display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none; width: 40px; height: 40px; margin-left: auto;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; color: var(--ink);
}
.nav__toggle svg { width: 19px; height: 19px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open  { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */

.hero { position: relative; padding: 92px 0 96px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(760px 420px at 78% -8%, rgba(43,85,245,.10), transparent 62%),
    radial-gradient(600px 380px at 8% 8%,  rgba(43,85,245,.055), transparent 60%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 62px 62px;
  -webkit-mask-image: radial-gradient(760px 480px at 50% 25%, #000 20%, transparent 78%);
          mask-image: radial-gradient(760px 480px at 50% 25%, #000 20%, transparent 78%);
  opacity: .75;
}

.hero__inner { max-width: 780px; }
.hero h1 { margin-bottom: 22px; }
.hero__lead { font-size: clamp(1.05rem, 1.9vw, 1.2rem); color: var(--ink-3); max-width: 610px; margin-bottom: 34px; }
.hero .btn-row { margin-bottom: 40px; }

.hero__note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: .875rem; color: var(--ink-3); }
.hero__note span { display: inline-flex; align-items: center; gap: 7px; }
.hero__note svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 8px; margin-bottom: 26px;
  background: var(--accent-soft); border: 1px solid rgba(43,85,245,.16);
  border-radius: 100px; font-size: .82rem; font-weight: 540; color: var(--accent-2);
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.16); }

/* ---------- Stat bar ---------- */

.statbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.statbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.statbar__item { padding: 34px 26px; text-align: center; border-right: 1px solid var(--line); }
.statbar__item:last-child { border-right: none; }
.statbar__num { display: block; font-size: 1.95rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.statbar__label { font-size: .845rem; color: var(--ink-3); }

/* ---------- Cards ---------- */

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-3px); border-color: #d6dce9; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .945rem; color: var(--ink-3); }

.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 20px;
  background: var(--accent-soft); border-radius: 11px; color: var(--accent);
}
.card__icon svg { width: 21px; height: 21px; }

.card__list { margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-soft); list-style: none; }
.card__list li { position: relative; padding-left: 21px; font-size: .885rem; color: var(--ink-3); margin-bottom: .38em; }
.card__list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .55;
}

/* ---------- Process ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 30px; border-top: 2px solid var(--line); counter-increment: step; }
.step::before {
  content: '0' counter(step);
  position: absolute; top: -2px; left: 0;
  padding-top: 30px;
  font-family: var(--mono); font-size: .78rem; font-weight: 600; color: var(--accent);
}
.step::after { content: ''; position: absolute; top: -2px; left: 0; width: 34px; height: 2px; background: var(--accent); }
.step h3 { margin: 26px 0 8px; font-size: 1.06rem; }
.step p { font-size: .91rem; color: var(--ink-3); }

/* ---------- Split feature ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__media {
  position: relative; padding: 26px;
  background: linear-gradient(158deg, #f2f5ff 0%, #eef1f8 100%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}

.checklist { list-style: none; padding: 0; margin: 26px 0 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .8em; color: var(--ink-2); font-size: .96rem; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: .18em;
  width: 19px; height: 19px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b55f5' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- Code / browser mock ---------- */

.mock {
  background: #0d1220; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08);
}
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; background: #151b2e; border-bottom: 1px solid rgba(255,255,255,.06); }
.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); }
.mock__url {
  margin-left: 10px; padding: 3px 12px; flex: 1;
  background: rgba(255,255,255,.06); border-radius: 5px;
  font-family: var(--mono); font-size: .69rem; color: rgba(255,255,255,.42);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock__body { padding: 22px; font-family: var(--mono); font-size: .765rem; line-height: 1.85; color: #9fb0d0; }
.mock__body .c-key { color: #7d97ff; }
.mock__body .c-str { color: #64d2a0; }
.mock__body .c-num { color: #f0a868; }
.mock__body .c-dim { color: #5a6b8c; }

/* ---------- Metric tiles (dark) ---------- */

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.09); border-radius: var(--radius); overflow: hidden; }
.metric { padding: 28px 24px; background: var(--bg-deep); }
.metric__num { font-size: 1.75rem; font-weight: 700; color: #fff; letter-spacing: -.03em; line-height: 1.15; }
.metric__label { font-size: .85rem; color: rgba(255,255,255,.5); margin-top: 4px; }

/* ---------- Tech stack ---------- */

.stack { display: flex; flex-wrap: wrap; gap: 9px; }
.stack span {
  padding: 7px 15px;
  background: var(--white); border: 1px solid var(--line); border-radius: 100px;
  font-size: .845rem; font-weight: 520; color: var(--ink-2);
}
.section--soft .stack span { background: var(--white); }

/* ---------- Pricing ---------- */

.plan { display: flex; flex-direction: column; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.plan--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); position: relative; }
.plan__tag { position: absolute; top: -11px; left: 32px; padding: 4px 12px; background: var(--accent); color: #fff; border-radius: 100px; font-size: .7rem; font-weight: 640; letter-spacing: .04em; text-transform: uppercase; }
.plan__name { font-size: 1.08rem; font-weight: 640; color: var(--ink); margin-bottom: 6px; }
.plan__desc { font-size: .89rem; color: var(--ink-3); margin-bottom: 22px; min-height: 40px; }
.plan__price { font-size: 2.05rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.plan__price small { font-size: .87rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.plan__meta { font-size: .82rem; color: var(--ink-3); margin: 6px 0 24px; }
.plan .checklist { margin-top: 0; margin-bottom: 26px; flex: 1; }
.plan .checklist li { font-size: .89rem; margin-bottom: .62em; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; padding: 22px 0;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: inherit; font-size: 1.02rem; font-weight: 570; color: var(--ink);
  letter-spacing: -.012em;
}
.faq__q svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-3); transition: transform .25s ease; }
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); color: var(--accent); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq__a > div { padding: 0 0 22px; font-size: .955rem; color: var(--ink-3); max-width: 800px; }

/* ---------- CTA band ---------- */

.cta-band { position: relative; padding: 78px 0; background: var(--bg-deep); overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(680px 340px at 50% 0%, rgba(43,85,245,.32), transparent 68%);
}
.cta-band .container { position: relative; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.6); font-size: 1.06rem; max-width: 520px; margin: 0 auto 32px; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: .875rem; font-weight: 560; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  font-family: inherit; font-size: .945rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(43,85,245,.13);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field__hint { font-size: .8rem; color: var(--ink-3); margin-top: 14px; }

.form-note { padding: 13px 16px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 18px; display: none; }
.form-note.is-ok   { display: block; background: #e9f7ef; color: #14663c; border: 1px solid #bfe6d0; }
.form-note.is-err  { display: block; background: #fdecec; color: #8f2222; border: 1px solid #f3c9c9; }

.info-card { padding: 28px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.info-card + .info-card { margin-top: 18px; }
.info-card h3 { font-size: 1.02rem; margin-bottom: 16px; }

.info-row { display: flex; gap: 13px; padding: 13px 0; border-top: 1px solid var(--line); }
.info-row:first-of-type { border-top: none; padding-top: 0; }
.info-row svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.info-row__label { font-size: .775rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.info-row__value { font-size: .945rem; color: var(--ink); }
.info-row__value a { color: var(--ink); }
.info-row__value a:hover { color: var(--accent); }

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

.page-head { padding: 60px 0 44px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.85rem); margin-bottom: 12px; }
.page-head p { color: var(--ink-3); max-width: 620px; margin-bottom: 0; }
.page-head__meta { font-size: .85rem; color: var(--ink-3); margin-top: 16px; }

.prose { padding: 60px 0 88px; }
.prose h2 { font-size: 1.42rem; margin: 44px 0 14px; padding-top: 4px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.06rem; margin: 28px 0 10px; }
.prose p, .prose li { font-size: .97rem; }
.prose ul { padding-left: 1.15em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose__box { padding: 20px 24px; background: var(--bg-soft); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); margin: 26px 0; }
.prose__box p { margin-bottom: .5em; font-size: .93rem; }
.prose__box p:last-child { margin-bottom: 0; }

.toc { padding: 22px 26px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 44px; }
.toc h4 { font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.1em; columns: 2; column-gap: 34px; }
.toc li { font-size: .9rem; margin-bottom: .35em; break-inside: avoid; }

/* ---------- Footer ---------- */

.site-footer { padding: 68px 0 0; background: var(--bg-deep); color: rgba(255,255,255,.56); font-size: .915rem; }
.site-footer a { color: rgba(255,255,255,.56); }
.site-footer a:hover { color: #fff; }

.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.25fr; gap: 44px; padding-bottom: 52px; }
.footer__brand .brand { color: #fff; margin-bottom: 16px; }
.footer__brand .brand:hover { color: #fff; }
.footer__blurb { font-size: .915rem; color: rgba(255,255,255,.5); max-width: 300px; }

.footer__col h4 { font-size: .775rem; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.42); font-weight: 600; margin-bottom: 16px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: .58em; }

.footer__entity { font-style: normal; line-height: 1.75; }
.footer__entity strong { color: #fff; font-weight: 600; display: block; margin-bottom: 4px; }
.footer__entity .reg { display: block; margin-top: 10px; font-size: .82rem; color: rgba(255,255,255,.42); }

.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  padding: 24px 0 30px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .855rem; color: rgba(255,255,255,.42);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 22px; }

/* ---------- Obfuscated email ---------- */

.mail i { font-style: normal; }
.mail-link { word-break: break-word; }

/* ---------- Reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .split { grid-template-columns: 1fr; gap: 44px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 38px; }
}

@media (max-width: 860px) {
  .section { padding: 72px 0; }
  .hero { padding: 68px 0 72px; }

  .nav__toggle { display: inline-flex; }
  .nav__links, .nav__cta { display: none; }

  .nav.is-open { height: auto; flex-wrap: wrap; padding-bottom: 20px; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    width: 100%; order: 3; margin: 8px 0 0; padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .nav.is-open .nav__links a { padding: 13px 2px; font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
  .nav.is-open .nav__cta { display: flex; width: 100%; order: 4; margin-top: 16px; }
  .nav.is-open .nav__cta .btn { width: 100%; }

  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .statbar__grid { grid-template-columns: repeat(2, 1fr); }
  .statbar__item:nth-child(2) { border-right: none; }
  .statbar__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .metrics { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .grid--4, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .btn-row .btn { width: 100%; }
  .section { padding: 60px 0; }
}

/* ---------- Print ---------- */

@media print {
  .site-header, .site-footer, .cta-band, .btn { display: none !important; }
  body { color: #000; }
}
