/* LanceTek design system
   Structure adapted from the HashiCorp DESIGN.md reference (per-offer identity colours,
   tight display / relaxed body line-heights, 8px CTA corners, surface lift instead of shadows)
   and the Claude DESIGN.md reference (serif + sans editorial pairing, dark "code window" cards).
   Palette, type and components are original to LanceTek. */

:root {
  /* colour */
  --paper: #eceee9;        /* drafting-board grey-green */
  --paper-2: #e2e5df;      /* one step of lift */
  --sheet: #f7f8f5;        /* inputs, raised sheets */
  --ink: #16202a;          /* deep slate: headings + dark panels */
  --ink-2: #222f3b;        /* raised dark surface */
  --graphite: #45505b;     /* body text */
  --muted: #69737c;        /* meta text */
  --rule: #c6ccc4;         /* hairlines on paper */
  --rule-dark: #34424f;    /* hairlines on slate */
  --on-ink: #e9ede8;
  --on-ink-soft: #9aa7b2;

  /* per-service identity (the HashiCorp idea, re-coloured) */
  --cobalt: #2440b5;       /* custom software + primary action */
  --cobalt-deep: #1a3190;
  --moss: #2d7550;         /* agentic automation */
  --ochre: #a8760f;        /* infrastructure */
  --cobalt-tint: #dfe4f5;
  --moss-tint: #dcebe2;
  --ochre-tint: #f1e7cf;

  /* type */
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  /* scale (perfect fourth-ish, 16px base) */
  --t-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.6rem);
  --t-h1: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  --t-h2: clamp(1.65rem, 1.3rem + 1.4vw, 2.4rem);
  --t-h3: 1.375rem;
  --t-lead: clamp(1.18rem, 1.05rem + .5vw, 1.4rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-cap: .8125rem;

  /* space */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);

  /* radius hierarchy: controls < panels; chips are pills */
  --r-control: 7px;
  --r-panel: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 3px; }
.panel-dark :focus-visible, .site-footer :focus-visible { outline-color: #9fb3ff; }

h1, h2, h3, h4 { color: var(--ink); font-family: var(--sans); font-weight: 700; margin: 0; }
h1 { font-size: var(--t-h1); line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-size: var(--t-h2); line-height: 1.14; letter-spacing: -0.02em; }
h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0 0 var(--s4); max-width: 68ch; }
.lead { font-family: var(--serif); font-size: var(--t-lead); line-height: 1.55; color: var(--ink); max-width: 36em; }
.small { font-size: var(--t-small); }
.meta { font-size: var(--t-cap); color: var(--muted); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--on-ink); padding: 8px 14px; z-index: 50; border-radius: var(--r-control); }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { display: block; padding: 8px 12px; color: var(--graphite); text-decoration: none; font-size: var(--t-small); font-weight: 500; border-radius: var(--r-control); }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 0; }
.nav a.nav-cta { background: var(--ink); color: var(--on-ink); margin-left: 8px; border-radius: var(--r-control); }
.nav a.nav-cta:hover { background: var(--ink-2); }
.nav a.nav-cta[aria-current="page"] { box-shadow: none; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--rule); color: var(--ink); font: 600 var(--t-small)/1 var(--sans); padding: 10px 14px; border-radius: var(--r-control); cursor: pointer; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; gap: 0; }
  .nav a { padding: 14px 4px; font-size: 1.0625rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ink); padding-left: 14px; }
  .nav a.nav-cta { margin: 16px 0 0; text-align: center; border: 0; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 1rem/1.2 var(--sans); padding: 14px 22px; border-radius: var(--r-control); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-deep); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-quiet:hover { background: var(--paper-2); color: var(--ink); }
.panel-dark .btn-quiet { color: var(--on-ink); border-color: var(--rule-dark); }
.panel-dark .btn-quiet:hover { background: var(--ink-2); color: var(--on-ink); }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

/* ---------- sections ---------- */
.section { padding: var(--s9) 0; }
.section-tight { padding: var(--s8) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s7); align-items: end; margin-bottom: var(--s7); }
.section-head p { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: var(--s4); } }

/* ---------- page intro (inner pages) ---------- */
.page-intro { padding: var(--s8) 0 var(--s7); }
.page-intro h1 { max-width: 16em; margin-bottom: var(--s5); }

/* ---------- hero ---------- */
.hero { padding: var(--s8) 0 var(--s9); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: var(--s5); }
.hero .lead { margin-bottom: 0; }
.hero-note { margin-top: var(--s5); font-size: var(--t-small); color: var(--muted); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- dark panels: diagrams + screens ---------- */
.panel-dark {
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(154,167,178,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154,167,178,.07) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--on-ink);
  border-radius: var(--r-panel);
  position: relative;
  overflow: hidden;
}
.panel-dark h2, .panel-dark h3 { color: #fff; }
.figure { margin: 0; }
.figure figcaption { font-size: var(--t-cap); color: var(--muted); margin-top: var(--s3); max-width: 60ch; }

.flow { padding: clamp(18px, 3vw, 32px); }
.flow svg { width: 100%; height: auto; }
.flow text { font-family: var(--mono); }
.flow .node rect { fill: var(--ink-2); stroke: var(--rule-dark); }
.flow .node.human rect { fill: #2b2a1f; stroke: #6b5a26; }
.flow .t-title { fill: #fff; font-size: 13px; font-family: var(--sans); font-weight: 600; }
.flow .t-sub { fill: var(--on-ink-soft); font-size: 10.5px; }
.flow .wire { fill: none; stroke: #4c5d6d; stroke-width: 1.5; }
.flow .wire-live { fill: none; stroke: #8fb59f; stroke-width: 2; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.flow .pulse { fill: #c8e3d2; opacity: 0; }
.flow.run .wire-live { animation: draw 2.4s .4s cubic-bezier(.6,.05,.3,1) forwards; }
.flow.run .node { animation: lift .5s ease-out both; }
.flow.run .node:nth-of-type(1) { animation-delay: .2s; }
.flow.run .node:nth-of-type(2) { animation-delay: .8s; }
.flow.run .node:nth-of-type(3) { animation-delay: 1.4s; }
.flow.run .node:nth-of-type(4) { animation-delay: 2.0s; }
.flow.run .node:nth-of-type(5) { animation-delay: 2.5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes lift { from { opacity: .25; } to { opacity: 1; } }
.flow-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: var(--t-cap); color: var(--on-ink-soft); }
.flow-legend span { display: inline-flex; align-items: center; gap: 8px; }
.flow-legend i { width: 18px; height: 0; border-top: 2px solid #8fb59f; display: inline-block; }
.flow-legend i.h { border: 1px solid #6b5a26; background: #2b2a1f; height: 10px; width: 14px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  .flow .wire-live { stroke-dashoffset: 0; }
  .flow.run .wire-live, .flow.run .node { animation: none; }
}

/* ---------- services: identity rows ---------- */
.svc-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.svc-row { display: grid; grid-template-columns: 56px minmax(0, 4fr) minmax(0, 5fr) minmax(0, 2.4fr); gap: var(--s6); padding: var(--s6) 0; border-bottom: 1px solid var(--rule); align-items: start; }
.svc-key { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.svc-key svg { width: 22px; height: 22px; }
.svc-row h3 { margin-bottom: 6px; }
.svc-row p { margin: 0; }
.svc-price { font-size: var(--t-small); color: var(--muted); }
.svc-price strong { display: block; color: var(--ink); font-size: 1.0625rem; font-weight: 600; }
.k-soft { --c: var(--cobalt); --tint: var(--cobalt-tint); }
.k-auto { --c: var(--moss); --tint: var(--moss-tint); }
.k-infra { --c: var(--ochre); --tint: var(--ochre-tint); }
.svc-key { background: var(--tint); color: var(--c); }
@media (max-width: 860px) {
  .svc-row { grid-template-columns: 48px minmax(0, 1fr); gap: var(--s3) var(--s4); }
  .svc-row > :nth-child(n+3) { grid-column: 2; }
}

/* ---------- process (a real sequence, so numbered) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); counter-reset: step; }
.steps li { counter-increment: step; padding-top: var(--s5); border-top: 2px solid var(--ink); position: relative; }
.steps li::before { content: counter(step); font: 700 2.6rem/1 var(--sans); color: var(--rule); letter-spacing: -0.04em; display: block; margin-bottom: var(--s4); }
.steps h3 { font-size: 1.15rem; margin-bottom: var(--s2); }
.steps p { font-size: var(--t-small); margin: 0; }
.steps .when { display: block; margin-top: var(--s3); font-size: var(--t-cap); color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li::before { font-size: 2rem; } }

/* ---------- proof / screen mock ---------- */
.proof-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s7); align-items: center; }
@media (max-width: 960px) { .proof-grid { grid-template-columns: 1fr; } }
.screen { padding: 0; font-size: 14px; }
.screen-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule-dark); background: rgba(34,47,59,.8); font-size: 12.5px; color: var(--on-ink-soft); }
.screen-bar b { color: #fff; font-weight: 600; }
.screen-bar .dots { display: flex; gap: 6px; }
.screen-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #3b4a58; display: block; }
.queue { list-style: none; margin: 0; padding: 8px; }
.queue li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 14px 12px; border-bottom: 1px solid var(--rule-dark); }
.queue li:last-child { border-bottom: 0; }
.queue .q-title { color: #fff; font-weight: 600; }
.queue .q-why { grid-column: 1 / -1; font-family: var(--mono); font-size: 12px; color: var(--on-ink-soft); line-height: 1.5; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; align-self: start; }
.chip-ok { background: #1f3b2d; color: #a9d8bb; }
.chip-check { background: #3a3218; color: #e6cd84; }
.chip-new { background: #1e2a52; color: #b6c4ff; }
.queue-actions { display: flex; gap: 8px; grid-column: 1 / -1; }
.queue-actions span { font-size: 12px; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--rule-dark); color: var(--on-ink); }
.queue-actions span.go { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }

/* ---------- journal list ---------- */
.j-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.j-item { display: grid; grid-template-columns: 130px minmax(0, 1fr) 150px; gap: var(--s5); padding: var(--s5) 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.j-item time { font-size: var(--t-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.j-item h3 { font-size: 1.25rem; margin-bottom: 6px; }
.j-item h3 a { color: var(--ink); text-decoration: none; }
.j-item h3 a:hover { text-decoration: underline; }
.j-item p { margin: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.55; }
.j-tag { font-size: var(--t-cap); font-weight: 600; justify-self: end; color: var(--c, var(--graphite)); }
@media (max-width: 760px) {
  .j-item { grid-template-columns: 1fr; gap: 6px; }
  .j-tag { justify-self: start; order: -1; }
}

/* journal page: expandable entries */
.article { border-bottom: 1px solid var(--rule); }
.article summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 130px minmax(0, 1fr) 32px; gap: var(--s5); padding: var(--s6) 0; align-items: baseline; }
.article summary::-webkit-details-marker { display: none; }
.article summary h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); line-height: 1.2; margin-bottom: 8px; }
.article summary p { margin: 0; font-family: var(--serif); font-size: 1.12rem; }
.article summary .plus { width: 32px; height: 32px; border: 1px solid var(--rule); border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: transform .2s ease; align-self: start; }
.article[open] summary .plus { transform: rotate(45deg); background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.article summary:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.article .body { padding: 0 0 var(--s7) calc(130px + var(--s5)); }
.article .body p, .article .body li { font-family: var(--serif); font-size: 1.15rem; line-height: 1.7; color: #2c3640; max-width: 38em; }
.article .body h3 { font-size: 1.1rem; margin: var(--s5) 0 var(--s2); }
.article .body ul { padding-left: 1.2em; margin: 0 0 var(--s4); }
.verdict { border-left: 3px solid var(--c, var(--ink)); background: var(--sheet); padding: var(--s4) var(--s5); margin: var(--s5) 0; max-width: 38em; border-radius: 0 var(--r-control) var(--r-control) 0; }
.verdict p { font-family: var(--sans) !important; font-size: 1rem !important; margin: 0; }
.verdict strong { color: var(--ink); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s6); }
.filter button { font: 600 var(--t-small)/1 var(--sans); padding: 10px 16px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--graphite); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
@media (max-width: 760px) {
  .article summary { grid-template-columns: minmax(0, 1fr) 32px; gap: 6px var(--s4); }
  .article summary .j-date { grid-column: 1 / -1; }
  .article .body { padding-left: 0; }
}

/* ---------- services page detail ---------- */
.svc-detail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s7); padding: var(--s8) 0; border-top: 1px solid var(--rule); }
.svc-detail .side { position: sticky; top: 24px; align-self: start; }
.svc-detail .side .svc-key { width: 52px; height: 52px; border-radius: 12px; margin-bottom: var(--s5); }
.svc-detail .side .svc-key svg { width: 28px; height: 28px; }
.svc-detail h2 { margin-bottom: var(--s4); }
.svc-detail .side .lead { font-size: 1.15rem; }
.svc-detail h3 { font-size: 1.05rem; margin: 0 0 var(--s3); }
.block { margin-bottom: var(--s6); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; max-width: 62ch; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--c); border-bottom: 2px solid var(--c); transform: rotate(-45deg); }
.shape { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--r-panel); overflow: hidden; background: var(--sheet); }
.shape > div { padding: var(--s4) var(--s5); border-right: 1px solid var(--rule); }
.shape > div:last-child { border-right: 0; }
.shape b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.shape span { font-size: var(--t-small); display: block; line-height: 1.5; }
.shape .bar { height: 4px; background: var(--c); border-radius: 2px; margin-bottom: 12px; opacity: .85; }
@media (max-width: 640px) { .shape { grid-template-columns: 1fr; } .shape > div { border-right: 0; border-bottom: 1px solid var(--rule); } .shape > div:last-child { border-bottom: 0; } }
.price { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s7); padding: var(--s5); background: var(--tint); border-radius: var(--r-panel); }
.price div { min-width: 0; }
.price .amt { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; display: block; }
.price .what { font-size: var(--t-small); color: var(--graphite); }
.price-note { font-size: var(--t-cap); color: var(--muted); margin-top: var(--s3); }
@media (max-width: 860px) { .svc-detail { grid-template-columns: 1fr; gap: var(--s5); } .svc-detail .side { position: static; } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s8); }
.about-grid .prose p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.7; color: #2c3640; }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { padding: var(--s4) 0; border-bottom: 1px solid var(--rule); }
.principles li:first-child { border-top: 1px solid var(--rule); }
.principles b { display: block; color: var(--ink); }
.principles span { font-size: var(--t-small); }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; gap: var(--s7); } }
.stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.stack h3 { font-size: 1.05rem; margin-bottom: var(--s3); padding-bottom: var(--s3); border-bottom: 2px solid var(--c); }
.stack dl { margin: 0; }
.stack dt { color: var(--ink); font-weight: 600; margin-top: var(--s3); }
.stack dd { margin: 2px 0 0; font-size: var(--t-small); }
@media (max-width: 860px) { .stack { grid-template-columns: 1fr; } }
.lab { padding: clamp(18px, 3vw, 36px); }
.lab svg text { font-family: var(--mono); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s8); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; gap: var(--s7); } }
form { display: grid; gap: var(--s5); }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; color: var(--ink); font-size: 1rem; }
.field .hint { font-size: var(--t-cap); color: var(--muted); margin: -4px 0 0; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; font: 400 1.0625rem/1.4 var(--sans); color: var(--ink);
  background: var(--sheet); border: 1px solid #b4bbb2; border-radius: var(--r-control); padding: 13px 14px;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); }
fieldset { border: 0; padding: 0; margin: 0; }
.options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.options label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: var(--t-small); padding: 10px 14px; border: 1px solid #b4bbb2; border-radius: 999px; cursor: pointer; background: var(--sheet); color: var(--graphite); }
.options input { accent-color: var(--cobalt); margin: 0; }
.options label:has(input:checked) { border-color: var(--ink); color: var(--ink); background: #fff; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.error { color: #a3261b; font-size: var(--t-small); font-weight: 500; }
.sent { padding: var(--s6); border-radius: var(--r-panel); background: var(--moss-tint); color: var(--ink); }
.sent h2 { font-size: 1.5rem; margin-bottom: var(--s3); }
.next { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.next li { counter-increment: n; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--rule-dark); }
.next li:last-child { border-bottom: 0; }
.next li::before { content: counter(n); width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--on-ink-soft); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--on-ink); }
.next b { color: #fff; display: block; }
.next span { font-size: var(--t-small); color: var(--on-ink-soft); }
.aside-panel { padding: var(--s6); }
.aside-panel h2 { font-size: 1.4rem; margin-bottom: var(--s4); }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--s6); align-items: end; }
.cta-band h2 { font-size: var(--t-h2); max-width: 18em; margin-bottom: var(--s4); }
.cta-band p { color: var(--on-ink-soft); margin: 0; }
.cta-band .btn-primary { background: #fff; color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--on-ink); color: var(--ink); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { margin-top: var(--s9); background: var(--ink); color: var(--on-ink-soft); padding: var(--s8) 0 var(--s6); font-size: var(--t-small); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: var(--s6); }
.site-footer .brand { color: #fff; margin-bottom: var(--s3); }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer h2 { font-size: var(--t-small); color: #fff; margin-bottom: var(--s3); font-weight: 600; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--rule-dark); padding-top: var(--s5); margin-top: var(--s5); font-size: var(--t-cap); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } .site-footer .wrap > :first-child { grid-column: 1 / -1; } }

.sample { display: inline-block; font-size: var(--t-cap); font-weight: 600; color: var(--ochre); }
.article .j-tag { display: block; margin-top: 6px; }
.flow .flow-v { display: none; }
@media (max-width: 600px) {
  .flow .flow-h { display: none; }
  .flow .flow-v { display: block; max-width: 340px; }
}
.article .j-tag { text-align: left; }
.site-footer .legal { max-width: none; }
