/* XRS Technologies static site. Hand-written CSS, no build step. */

:root {
  --bg: #ffffff;
  --bg-soft: #fdfdfc;
  --bg-warm: #f9f7f6;
  --cream: #fffbf5;
  --ink: #171717;
  --ink-2: #262626;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --line-soft: #f0f0f0;
  --line-warm: #f0e3de;
  --dots: #e6dfd9;
  --orange: #ff5e1f;
  --orange-2: #ff7038;
  --orange-hero: #f2540f;
  --orange-ink: #b83a0b;
  --orange-wash: #fff1e8;
  --glow: #ffdd99;
  --night: #151414;
  --night-2: #1f1e1d;
  --night-line: #2e2c2a;
  --night-text: #f0e3de;
  --night-muted: #a8a29e;

  --font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Fragment Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --frame: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --sec: clamp(72px, 9vw, 112px);
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg-soft);
  background-image: radial-gradient(circle, var(--dots) 1px, transparent 1.4px);
  background-size: 14px 14px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--orange);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #d6cfc9 transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d6cfc9; border-radius: 10px; border: 2px solid var(--bg-soft); }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: 0; }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #3a3a3a; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--cream); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-glass { color: #fff; background: rgba(23, 23, 23, 0.22); border-color: rgba(255, 255, 255, 0.35); }
.btn-glass:hover { background: rgba(23, 23, 23, 0.34); border-color: rgba(255, 255, 255, 0.7); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--orange-ink); font-weight: 500; text-decoration: none; }
.text-link .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.text-link:hover { text-decoration: underline; }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { max-width: 1440px; margin: 0 auto; height: 68px; padding: 0 clamp(16px, 2.5vw, 28px); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 8px; border: 0; background: none;
  font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; cursor: pointer;
}
.nav > a:hover, .nav-drop > button:hover, .nav-drop.open > button { background: var(--bg-warm); }
.nav a[aria-current="page"], .nav-drop.is-current > button { color: var(--orange-ink); }
.nav-drop { position: relative; }
.nav-drop .icon { width: 14px; height: 14px; transition: transform 0.2s; }
.nav-drop.open .icon { transform: rotate(180deg); }
.drop {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  width: 560px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(23, 23, 23, 0.18), 0 2px 6px rgba(23, 23, 23, 0.05);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.25s var(--ease), visibility 0.18s;
}
.nav-drop.open .drop { opacity: 1; visibility: visible; transform: none; }
.drop a { display: grid; grid-template-columns: 24px 1fr; gap: 2px 12px; padding: 12px; border-radius: 10px; text-decoration: none; }
.drop a:hover { background: var(--cream); }
.drop a .icon { grid-row: span 2; color: var(--orange); margin-top: 1px; }
.drop strong { font-size: 15px; font-weight: 500; }
.drop span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.drop .drop-all { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 4px; padding: 12px 14px; background: var(--bg-warm); font-size: 14px; font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.finder-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 15px; font-weight: 500; color: var(--orange-ink); text-decoration: none; border-radius: 8px; }
.finder-link:hover { background: var(--orange-wash); }
.finder-link .icon { width: 16px; height: 16px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .i-close { display: none; }
.menu-open .menu-btn .i-open { display: none; }
.menu-open .menu-btn .i-close { display: block; }
.mobile-nav { display: none; }

@media (max-width: 1020px) {
  .nav, .finder-link { display: none; }
  .header-actions { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .mobile-nav {
    position: fixed; inset: 68px 0 0; z-index: 49; overflow-y: auto;
    background: #fff; padding: 12px 20px 40px;
  }
  .menu-open .mobile-nav { display: block; }
  .menu-open { overflow: hidden; }
  .mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line-soft); font-size: 18px; font-weight: 500; text-decoration: none; }
  .mobile-nav .sub a { padding: 12px 4px 12px 16px; font-size: 16px; color: var(--ink-2); }
  .mobile-nav .btn { width: 100%; justify-content: center; margin-top: 20px; }
}
@media (max-width: 480px) {
  .header-actions .btn { display: none; }
  .brand img { height: 36px; }
}

/* ---------- Frame ---------- */
.frame {
  position: relative;
  max-width: calc(var(--frame) + 2px); margin: 0 auto;
  background: var(--bg);
  border-inline: 1px dashed var(--line);
}
@media (max-width: 1240px) { .frame { overflow-x: clip; } }
.sec { position: relative; padding: var(--sec) var(--pad); }
.sec + .sec { border-top: 1px dashed var(--line); }
.sec + .sec::before, .sec + .sec::after {
  content: ""; position: absolute; top: -4px; width: 7px; height: 7px;
  background: #fff; border: 1px solid #cfcac6;
}
.sec + .sec::before { left: -4px; }
.sec + .sec::after { right: -4px; }
.sec-warm { background: var(--bg-warm); }
.sec-flush { padding: 0 var(--pad); }
.sec-flush .cells { border-top: 0; border-bottom: 0; }
.sec:not(.sec-flush) > .cells.bleed:last-child { margin-bottom: calc(var(--sec) * -1); border-bottom: 0; }
.sec-tight { padding-block: clamp(48px, 6vw, 72px); }
.head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
.head p { margin-top: 18px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--muted); }
.head.left { margin-inline: 0; text-align: left; }
.bleed { margin-inline: calc(var(--pad) * -1); }
.flush-bottom { margin-top: clamp(56px, 7vw, 96px); margin-bottom: calc(var(--sec) * -1); border-bottom: 0; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 8px; border-radius: var(--radius);
  min-height: clamp(560px, calc(100svh - 84px), 820px);
  display: grid; place-items: center;
  padding: clamp(96px, 12vw, 140px) var(--pad) clamp(140px, 16vw, 200px);
  background: radial-gradient(120% 90% at 50% 0%, #f65a14 0%, var(--orange-hero) 55%, #ea4c0a 100%);
  color: #fff; text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, rgba(255, 236, 214, 0.32) 1px, transparent 1.5px);
  background-size: 7px 7px;
  -webkit-mask-image: radial-gradient(90% 75% at 50% 45%, transparent 30%, #000 100%);
          mask-image: radial-gradient(90% 75% at 50% 45%, transparent 30%, #000 100%);
}
.hero-glow {
  position: absolute; z-index: -1; left: 50%; bottom: -38%;
  width: min(1100px, 130vw); aspect-ratio: 1.6; translate: -50% 0;
  background: radial-gradient(closest-side, #fff6df 0%, var(--glow) 22%, rgba(255, 153, 16, 0.75) 48%, rgba(255, 110, 30, 0) 100%);
  filter: blur(6px);
  animation: rise 2.4s var(--ease) both;
}
@keyframes rise { from { transform: translateY(18%) scale(0.92); opacity: 0.35; } }
.hero-inner { max-width: 980px; }
.hero h1 { font-size: clamp(2.75rem, 1.4rem + 5.2vw, 5.25rem); line-height: 1; letter-spacing: -0.04em; }
.hero p { max-width: 720px; margin: 26px auto 0; font-size: 1.5rem; line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.hero .btns { justify-content: center; margin-top: 40px; }
.hero :focus-visible { outline-color: #fff; }
.hero-codes { position: absolute; left: 0; right: 0; bottom: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; padding: 0 20px; font-family: var(--mono); font-size: 13px; color: #2a0f02; }
.hero-codes span { display: inline-flex; align-items: center; gap: 8px; }
.hero-codes span::before { content: ""; width: 5px; height: 5px; background: currentColor; }
@media (max-width: 640px) {
  .hero, .cta { background: radial-gradient(120% 90% at 50% 0%, #d24607 0%, #c94205 60%, #c03e04 100%); }
  .hero p, .cta p { font-size: 1.25rem; }
  .hero { text-align: left; place-items: end start; }
  .hero p { margin-left: 0; }
  .hero .btns { justify-content: flex-start; }
  .hero-codes { justify-content: flex-start; padding: 0 var(--pad); }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; }
.page-hero::before { /* faint orange dot field top-right */
  content: ""; position: absolute; inset: 0 0 auto auto; width: 55%; height: 100%;
  background-image: radial-gradient(circle, rgba(255, 94, 31, 0.28) 1px, transparent 1.5px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(80% 90% at 100% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(80% 90% at 100% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--orange-ink); }
.crumbs span[aria-hidden] { color: #b9b2ac; }
.page-hero h1 { font-size: clamp(2.5rem, 1.5rem + 3.8vw, 4.25rem); letter-spacing: -0.04em; line-height: 1.02; }
.page-hero .lead { margin-top: 22px; max-width: 640px; font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem); color: #4a4a4a; }
.page-hero .btns { margin-top: 32px; }
@media (max-width: 860px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* ---------- Callout (dashed box with corner brackets) ---------- */
.callout { position: relative; padding: 22px 24px; border: 1px dashed rgba(255, 94, 31, 0.55); background: rgba(255, 255, 255, 0.92); }
.callout::before, .callout::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--orange); }
.callout::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.callout::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }
.callout strong { display: block; font-size: 17px; font-weight: 500; }
.callout p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.facts { display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 0; border-top: 1px dashed var(--line-warm); font-size: 15px; line-height: 1.45; }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts div:last-child { padding-bottom: 0; }
.facts dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--orange-ink); padding-top: 2px; }
.facts dd { margin: 0; }

/* ---------- Coverage map ---------- */
.map-wrap { position: relative; max-width: 1000px; margin: 0 auto; }
.map-wrap img { width: 100%; height: auto; }
.map-wrap .callout { position: absolute; width: 240px; }
.map-wrap .c1 { left: 27%; top: 0; }
.map-wrap .c2 { right: 0; top: 66%; width: 228px; }
.map-wrap .c3 { left: 27%; bottom: 0; }
@media (max-width: 860px) {
  .map-wrap { display: grid; gap: 14px; }
  .map-wrap .callout { position: static; width: auto; }
}

/* ---------- Bordered cells ---------- */
.cells { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.cells > * { padding: clamp(24px, 3vw, 36px); border-left: 1px solid var(--line-soft); }
.cell .icon { color: var(--ink); margin-bottom: 22px; }
.cell h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.25; }
.cell p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.cells.c4 { --cols: 4; }
.cells.c3 > *:nth-child(3n + 1), .cells.c4 > *:nth-child(4n + 1) { border-left: 0; }
.cells.c3 > *:nth-child(n + 4), .cells.c4 > *:nth-child(n + 5) { border-top: 1px solid var(--line-soft); }
@media (max-width: 900px) {
  .cells, .cells.c4 { --cols: 2; }
  .cells > * { border-left: 1px solid var(--line-soft) !important; border-top: 1px solid var(--line-soft); }
  .cells > *:nth-child(2n + 1) { border-left: 0 !important; }
  .cells > *:nth-child(-n + 2) { border-top: 0; }
}
@media (max-width: 600px) {
  .cells, .cells.c4 { --cols: 1; }
  .cells > * { border-left: 0 !important; border-top: 1px solid var(--line-soft) !important; }
  .cells > *:first-child { border-top: 0 !important; }
}

/* Service cells (linked) */
.svc { position: relative; display: flex; flex-direction: column; text-decoration: none; transition: background-color 0.25s; }
.svc:hover { background: var(--cream); }
.svc .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 5px; background: var(--orange-wash); color: var(--orange-ink); font-family: var(--mono); font-size: 12px; line-height: 1.5; }
.svc h3 { font-size: 21px; letter-spacing: -0.025em; }
.svc p { margin-top: 10px; font-size: 15.5px; color: var(--muted); flex: 1; }
.svc .more { margin-top: 24px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--orange-ink); }
.svc .more .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.svc:hover .more .icon { transform: translateX(4px); }

/* ---------- Licence finder (tabs) ---------- */
.finder { border: 1px solid var(--line-soft); border-radius: 14px; background: #fff; overflow: hidden; }
.finder-tabs { display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line-soft); background: var(--bg-soft); }
.finder-tabs::-webkit-scrollbar { display: none; }
.finder-tab {
  position: relative; flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 20px; border: 0; background: none; cursor: pointer;
  font-size: 15px; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.finder-tab .icon { width: 20px; height: 20px; }
@media (min-width: 1021px) {
  .finder-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; }
  .finder-tab { padding: 18px 12px; white-space: normal; text-align: left; line-height: 1.25; justify-content: center; }
}
.finder-tab:hover { color: var(--ink); background: #fff; }
.finder-tab[aria-selected="true"] { color: var(--ink); background: #fff; }
.finder-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--orange); }
.finder-tab[aria-selected="true"] .icon { color: var(--orange); }
.finder-panel { padding: clamp(24px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.finder-panel[hidden] { display: none; }
.no-js .finder-panel + .finder-panel { border-top: 1px solid var(--line-soft); }
.finder-panel h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); letter-spacing: -0.03em; line-height: 1.15; }
.finder-panel .who { margin-top: 18px; font-size: 17px; color: #4a4a4a; max-width: 62ch; }
.needs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.need { display: inline-flex; flex-direction: column; gap: 2px; padding: 12px 16px 13px; border: 1px dashed rgba(255, 94, 31, 0.6); background: var(--cream); }
.need b { font-family: var(--mono); font-weight: 400; font-size: 17px; color: var(--orange-ink); letter-spacing: 0; }
.need small { font-size: 13px; color: var(--muted); }
.finder-side { border-left: 1px dashed var(--line); padding-left: clamp(24px, 3vw, 40px); }
.finder-side h4 { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.finder-side ul { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
.finder-side li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 10px; text-decoration: none; font-weight: 500; transition: border-color 0.2s, background-color 0.2s; }
.finder-side li a:hover { border-color: var(--ink); }
.finder-side li .icon { width: 16px; height: 16px; color: var(--orange-ink); }
.finder-note { margin-top: 18px; font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1020px) {
  .finder-tabs { scroll-snap-type: x mandatory; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .finder-tab { scroll-snap-align: start; }
}
@media (max-width: 820px) {
  .finder-panel { grid-template-columns: 1fr; }
  .finder-side { border-left: 0; padding-left: 0; border-top: 1px dashed var(--line); padding-top: 24px; }
  .finder-tab { flex: 0 0 auto; }
}

/* ---------- Process steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { position: relative; padding: 0 clamp(16px, 2vw, 28px) 0 0; }
.step-top { display: flex; align-items: center; gap: 0; margin-bottom: 26px; }
.step-node { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 1px solid var(--orange); background: #fff; font-family: var(--mono); font-size: 13px; color: var(--orange-ink); transition: background-color 0.5s, color 0.5s; }
.step-line { flex: 1; height: 1px; background-image: linear-gradient(90deg, var(--orange) 50%, transparent 50%); background-size: 8px 1px; opacity: 0.6; }
.step:last-child .step-line { display: none; }
.step.lit .step-node { background: var(--orange); color: #fff; }
.step h3 { font-size: 20px; letter-spacing: -0.02em; }
.step p { margin-top: 8px; font-size: 15.5px; color: var(--muted); max-width: 32ch; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 40px 1fr; gap: 0 20px; padding: 0 0 32px; }
  .step-top { flex-direction: column; margin: 0; grid-row: span 2; align-self: stretch; }
  .step-line { width: 1px; height: auto; flex: 1; background-image: linear-gradient(180deg, var(--orange) 50%, transparent 50%); background-size: 1px 8px; }
  .step:last-child { padding-bottom: 0; }
  .step h3 { padding-top: 8px; }
}

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.split h2 { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); }
.prose > * + * { margin-top: 18px; }
.prose p { color: #404040; max-width: 66ch; }
.prose .lead-p { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); color: var(--ink); line-height: 1.55; }
.prose h3, .prose h2.sub { margin-top: 40px; font-size: 22px; letter-spacing: -0.02em; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: #333; }
.ticks .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--orange); stroke-width: 2; }
.ticks.cols { grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.aside { position: sticky; top: 100px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line-warm); border-radius: 14px; background: var(--cream); }
.aside h3 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 18px; }
.aside .ticks li { font-size: 15.5px; }
.aside .text-link { margin-top: 24px; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .aside { position: static; }
  .ticks.cols { grid-template-columns: 1fr; }
}

.pairs { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.pairs li { padding: 22px 0; border-top: 1px solid var(--line); }
.pairs h3 { font-size: 19px; letter-spacing: -0.02em; }
.pairs p { margin-top: 6px; font-size: 15.5px; color: var(--muted); }
@media (max-width: 600px) { .pairs { grid-template-columns: 1fr; } }

/* ---------- Dark band ---------- */
.sec-night { background: var(--night); color: var(--night-text); }
.sec-night .head p { color: var(--night-muted); }
.sec-night .cells { border-color: var(--night-line); }
.sec-night .cells > * { border-color: var(--night-line) !important; }
.sec-night .cell .icon { color: var(--orange-2); }
.sec-night .cell p { color: var(--night-muted); }
.sec-night + .sec::before, .sec-night + .sec::after { background: #fff; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; color: var(--orange-ink); transition: transform 0.3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq summary:hover { color: var(--orange-ink); }
.faq .answer { padding: 0 48px 24px 0; color: #4a4a4a; max-width: 70ch; }

/* ---------- CTA panel ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  background: radial-gradient(120% 120% at 0% 0%, #f65a14 0%, var(--orange-hero) 50%, #ea4c0a 100%);
  color: #fff;
  display: grid; grid-template-columns: minmax(0, 1.6fr) auto; gap: 32px 56px; align-items: end;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, rgba(255, 236, 214, 0.3) 1px, transparent 1.5px);
  background-size: 7px 7px;
  -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
          mask-image: linear-gradient(100deg, transparent 35%, #000 100%);
}
.cta::after {
  content: ""; position: absolute; z-index: -1; right: -14%; top: -85%; width: 62%; aspect-ratio: 1.4;
  background: radial-gradient(closest-side, #fff6df 0%, var(--glow) 25%, rgba(255, 153, 16, 0.6) 55%, transparent 100%);
}
.cta h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); letter-spacing: -0.035em; line-height: 1.08; }
.cta p { margin-top: 18px; font-size: 1.5rem; line-height: 1.45; font-weight: 500; max-width: 46ch; }
.cta :focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Licence reference table ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.table-wrap { border: 1px solid var(--line-soft); border-radius: 14px; overflow: hidden; background: #fff; }
table.ref { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.ref th { text-align: left; padding: 14px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line-soft); font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.ref td { padding: 18px; border-top: 1px solid var(--line-soft); vertical-align: top; }
.ref tr:first-child td { border-top: 0; }
.ref tbody tr:hover td { background: var(--cream); }
.ref .code { font-family: var(--mono); font-weight: 400; color: var(--orange-ink); white-space: nowrap; }
.ref .name { font-weight: 500; }
.ref .desc { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.ref .kind { display: inline-block; padding: 2px 8px; border-radius: 5px; background: var(--bg-warm); font-size: 13px; white-space: nowrap; }
.ref a { color: var(--orange-ink); font-weight: 500; text-decoration: none; white-space: nowrap; }
.ref a:hover { text-decoration: underline; }
.ref tr[hidden] { display: none; }
.table-note { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 80ch; }
@media (max-width: 860px) {
  .ref thead { display: none; }
  .ref, .ref tbody, .ref tr, .ref td { display: block; }
  .ref tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 6px 12px; align-items: baseline; padding: 16px 18px; border-top: 1px solid var(--line-soft); }
  .ref tr[hidden] { display: none; }
  .ref tr:first-child { border-top: 0; }
  .ref td { padding: 0; border: 0; font-size: 14px; }
  .ref td:nth-child(1) { grid-column: 1; }
  .ref td:nth-child(2) { grid-column: 2 / -1; }
  .ref td:nth-child(3) { grid-column: 1 / 3; }
  .ref td:nth-child(4) { grid-column: 3; color: var(--muted); }
  .ref td:nth-child(5) { grid-column: 1 / -1; }
  .ref .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
.contact-card { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line-soft); border-radius: 16px; background: #fff; }
.contact-card.primary { background: var(--cream); border-color: var(--line-warm); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.contact-card.primary .copy-status:empty { display: none; }
.contact-card .label { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.contact-card .label .icon { width: 18px; height: 18px; color: var(--orange); }
.email-big { display: inline-block; margin-top: 18px; font-size: clamp(1.5rem, 1rem + 2.2vw, 2.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; text-decoration: none; word-break: break-word; }
.email-big:hover { color: var(--orange-ink); }
.contact-card .btns { margin-top: 28px; }
.contact-card p.note { margin-top: 20px; font-size: 15px; color: var(--muted); }
.copy-status { font-size: 14px; color: var(--orange-ink); min-height: 1.5em; }
.contact-card h3 { font-size: 20px; letter-spacing: -0.02em; margin: 14px 0 18px; }
.contact-card .card-h { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 18px; }
.contact-card .email-big { margin-top: 0; }
.contact-strip { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: center; padding: clamp(22px, 3vw, 32px) clamp(28px, 4vw, 48px); border: 1px dashed var(--line); border-radius: 16px; }
.contact-strip .card-h { font-size: 18px; margin-bottom: 4px; }
.contact-strip p { font-size: 15px; color: var(--muted); }
.contact-strip .copy-status { grid-column: 1 / -1; min-height: 0; }
.contact-strip .copy-status:empty { display: none; }
.foot-note { font-size: 13px; color: var(--night-muted); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .contact-strip { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-text); margin-top: 8px; }
.footer-inner { max-width: calc(var(--frame) + 2px); margin: 0 auto; padding: clamp(56px, 7vw, 88px) var(--pad) 32px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { height: 48px; width: auto; }
.footer-brand p { margin-top: 18px; font-size: 15px; color: var(--night-muted); max-width: 34ch; }
.site-footer h2 { font-family: var(--mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: var(--night-muted); margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer li a { font-size: 15px; text-decoration: none; color: var(--night-text); }
.site-footer li a:hover { color: var(--orange-2); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 13.5px; color: var(--night-muted); }
.footer-bottom p { max-width: 70ch; }
.site-footer :focus-visible { outline-color: var(--orange-2); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(96px, 14vw, 180px); }
.notfound h1 { margin-top: 0; font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); letter-spacing: -0.04em; }
.notfound p { margin: 18px auto 0; max-width: 46ch; color: var(--muted); font-size: 18px; }
.notfound .btns { justify-content: center; margin-top: 32px; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
