/* =========================================================
   Frekvenčna in svetlobna terapija — skupni design system
   Fonti: Fraunces (naslovi) · Figtree (telo) · IBM Plex Mono (oznake/cene)
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; margin: 0; }
table { border-collapse: collapse; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Tokens ---------- */
:root {
  --paper: #F5F2F8;
  --paper-deep: #EFEAF4;
  --surface: #FFFFFF;
  --surface-2: #FBF9FC;
  --ink: #211B32;
  --ink-soft: #57506E;
  --ink-faint: #8B84A3;
  --line: #E1DCEA;
  --line-soft: #EDE9F3;

  --violet: #5B3FB0;
  --violet-deep: #3C2778;
  --violet-tint: #EEE8FB;

  --amber: #CB8B2A;
  --amber-deep: #9C6A1B;
  --amber-tint: #FAF0DC;

  --teal: #237567;
  --teal-deep: #17564A;
  --teal-tint: #E1F1EC;

  --on-violet: #FFFFFF;
  --on-amber: #2B1C04;
  --on-teal: #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(33,27,50,.07), 0 4px 12px -4px rgba(33,27,50,.12);
  --shadow-md: 0 4px 10px rgba(33,27,50,.06), 0 22px 44px -20px rgba(33,27,50,.28);
  --shadow-lg: 0 12px 24px rgba(33,27,50,.10), 0 40px 80px -28px rgba(33,27,50,.32);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 100px;

  --container: 1180px;
  --container-narrow: 760px;

  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2.25rem; --sp-7: 3.5rem; --sp-8: 5rem; --sp-9: 7rem;
}

/* ---------- Base type ---------- */
html { font-size: 100%; }
body {
  font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', ui-serif, Georgia, serif;
  color: var(--ink);
  line-height: 1.14;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 1.2rem + 4.2vw, 3.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { color: var(--ink-soft); max-width: 62ch; }
p.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }
strong { color: var(--ink); font-weight: 700; }
a { text-decoration: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: .1em;
  font-size: .78rem; font-weight: 500; color: var(--violet);
}
.eyebrow.amber { color: var(--amber-deep); }
.eyebrow.teal { color: var(--teal-deep); }
.eyebrow.muted { color: var(--ink-faint); }

.tabular { font-variant-numeric: tabular-nums; }

::selection { background: var(--violet-tint); color: var(--ink); }

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

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.75rem); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.75rem); }

section { padding-block: var(--sp-9); }
.section-tight { padding-block: var(--sp-7); }
.section-head { max-width: 46rem; margin-bottom: var(--sp-6); }
.section-head p { margin-top: .85rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }

.bg-surface { background: var(--surface); }
.bg-deep { background: var(--paper-deep); }
.bg-violet { background: var(--violet); color: #fff; }
.bg-violet h2, .bg-violet h3 { color: #fff; }
.bg-violet p { color: rgba(255,255,255,.82); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink p { color: rgba(255,255,255,.72); }

.divider {
  border: none; height: 1px; background: var(--line);
  margin-block: 0;
}

.wave-divider { display: block; width: 100%; height: auto; color: var(--line); margin-block: 0; }

/* ---------- Header / Nav ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--violet); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .85rem; }

.brand { display: flex; align-items: center; }
.brand-mark {
  height: 64px; width: 64px; border-radius: 14px; flex: none; object-fit: cover;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
}

.primary-nav { display: flex; align-items: center; gap: 1.9rem; }
.primary-nav > ul { display: flex; align-items: center; gap: 1.9rem; }
.primary-nav a.nav-link {
  font-size: .95rem; font-weight: 500; color: var(--ink-soft);
  padding: .5rem 0; position: relative; display: inline-block;
  transition: color .16s ease;
}
.primary-nav a.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--violet); transition: right .18s ease;
}
.primary-nav a.nav-link:hover, .primary-nav a.nav-link:focus-visible, .primary-nav a.nav-link.active { color: var(--violet); }
.primary-nav a.nav-link:hover::after, .primary-nav a.nav-link:focus-visible::after, .primary-nav a.nav-link.active::after { right: 0; }

.has-dropdown { position: relative; }
.has-dropdown > .nav-link { display: inline-flex; align-items: center; gap: .3rem; }
.has-dropdown > .nav-link svg { width: 13px; height: 13px; transition: transform .18s ease; }
.has-dropdown:hover > .nav-link svg, .has-dropdown:focus-within > .nav-link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + .6rem); left: 50%; translate: -50% 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); padding: .55rem; min-width: 250px;
  display: grid; gap: .1rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s ease, translate .16s ease, visibility .16s;
  z-index: 30;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.js-open .dropdown {
  opacity: 1; visibility: visible; translate: -50% 0; pointer-events: auto;
}
.dropdown a {
  display: flex; flex-direction: column; gap: .1rem;
  padding: .6rem .75rem; border-radius: 9px; color: var(--ink);
  font-size: .92rem; font-weight: 600;
}
.dropdown a span.sub { font-family: 'Figtree', sans-serif; font-weight: 400; font-size: .8rem; color: var(--ink-faint); }
.dropdown a:hover, .dropdown a:focus-visible { background: var(--violet-tint); color: var(--violet-deep); }

.nav-actions { display: flex; align-items: center; gap: .9rem; }
.nav-actions-mobile { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; place-items: center; border-radius: 10px;
}
.nav-toggle:hover { background: var(--paper-deep); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .primary-nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); height: 100vh;
    background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 5.5rem 1.5rem 2rem; flex-direction: column; align-items: stretch; gap: 0;
    translate: 100% 0; transition: translate .24s ease; overflow-y: auto;
  }
  .primary-nav.open { translate: 0 0; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .primary-nav a.nav-link { padding: .9rem .2rem; border-bottom: 1px solid var(--line-soft); }
  .primary-nav a.nav-link::after { display: none; }
  .has-dropdown .dropdown,
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown,
  .has-dropdown.js-open .dropdown {
    position: static; left: auto; top: auto; translate: 0 0; min-width: 0; width: 100%;
    opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; border: none; padding: 0 0 .5rem .8rem; display: none;
  }
  .has-dropdown.expanded .dropdown,
  .has-dropdown.expanded:hover .dropdown,
  .has-dropdown.expanded:focus-within .dropdown,
  .has-dropdown.expanded.js-open .dropdown { display: grid; }
  .has-dropdown > .nav-link svg { display: none; }
  .nav-toggle { display: grid; }
  .nav-scrim {
    position: fixed; inset: 0; background: rgba(33,27,50,.35); opacity: 0; pointer-events: none;
    transition: opacity .2s ease; z-index: 90;
  }
  .nav-scrim.open { opacity: 1; pointer-events: auto; }
  .nav-actions .btn-primary { display: none; }
  .primary-nav .nav-actions-mobile { display: block; margin-top: 1.25rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: 0 1.6rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: .95rem; cursor: pointer; border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, translate .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--violet-deep); box-shadow: var(--shadow-md); translate: 0 -1px; }
.btn-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: var(--violet); color: var(--violet); }
.btn-amber { background: var(--amber); color: var(--on-amber); box-shadow: var(--shadow-sm); }
.btn-amber:hover { background: var(--amber-deep); color: #fff; translate: 0 -1px; }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
@media (max-width: 920px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
@media (min-width: 640px) and (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }

.elements-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.elements-row > * { flex: 0 0 calc(25% - 1.125rem); }
@media (max-width: 920px) { .elements-row > * { flex: 0 0 100%; } }
@media (min-width: 640px) and (max-width: 920px) { .elements-row > * { flex: 0 0 calc(50% - .75rem); } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.85rem; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, translate .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; gap: .65rem;
}
a.card:hover, .card.hoverable:hover { box-shadow: var(--shadow-md); translate: 0 -3px; border-color: var(--line-soft); }
.card h3 { font-size: 1.2rem; }
.card p { font-size: .96rem; margin: 0; }
.card .card-link { margin-top: .4rem; font-family: 'IBM Plex Mono', monospace; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--violet); display: inline-flex; align-items: center; gap: .3rem; }
.card .card-link svg { width: 14px; height: 14px; transition: translate .18s ease; }
a.card:hover .card-link svg { translate: 3px 0; }

.card.device { border-color: var(--teal); border-width: 1px; }
.card.device .card-link { color: var(--teal-deep); }

/* Icon badges */
.icon-badge {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  background: var(--violet-tint); color: var(--violet); flex: none;
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.amber { background: var(--amber-tint); color: var(--amber-deep); }
.icon-badge.teal { background: var(--teal-tint); color: var(--teal-deep); }
.icon-badge.sm { width: 40px; height: 40px; border-radius: 12px; }
.icon-badge.sm svg { width: 20px; height: 20px; }

/* ---------- Tags / pills ---------- */
.tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: 'IBM Plex Mono', monospace; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .06em; padding: .3rem .65rem; border-radius: var(--radius-pill);
  background: var(--violet-tint); color: var(--violet-deep); width: fit-content;
}
.tag.amber { background: var(--amber-tint); color: var(--amber-deep); }
.tag.teal { background: var(--teal-tint); color: var(--teal-deep); }

/* ---------- Feature / benefit lists ---------- */
.check-list { display: grid; gap: .75rem; }
.check-list li { display: flex; align-items: flex-start; gap: .7rem; color: var(--ink-soft); }
.check-list li svg { width: 20px; height: 20px; flex: none; margin-top: .15rem; color: var(--teal); }

.spark-list { display: grid; gap: .65rem; }
.spark-list li { display: flex; align-items: flex-start; gap: .65rem; color: var(--ink-soft); }
.spark-list li svg { width: 18px; height: 18px; flex: none; margin-top: .2rem; color: var(--amber); }

.plain-list { display: grid; gap: .55rem; padding-left: 1.2rem; }
.plain-list li { color: var(--ink-soft); list-style: disc; }

/* ---------- Process steps ---------- */
.process { display: grid; gap: 0; counter-reset: step; }
.process-step {
  display: grid; grid-template-columns: 3rem 1fr; gap: 1.25rem;
  padding-block: 1.35rem; position: relative;
}
.process-step:not(:last-child)::before {
  content: ""; position: absolute; left: 1.5rem; top: 3.6rem; bottom: -1rem; width: 1px;
  background: var(--line);
}
.process-num {
  width: 3rem; height: 3rem; border-radius: 50%; background: var(--violet-tint); color: var(--violet-deep);
  display: grid; place-items: center; font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.15rem;
  z-index: 1;
}
.process-body h4 { margin-bottom: .3rem; }
.process-body p { font-size: .96rem; margin: 0; }
.process-body .note {
  margin-top: .6rem; background: var(--amber-tint); border-radius: 10px; padding: .75rem .95rem;
  font-size: .87rem; color: var(--amber-deep);
}

.flow-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 0; }
.flow-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .55rem 1.1rem; font-weight: 600; font-size: .9rem; color: var(--ink);
}
.flow-arrow { color: var(--ink-faint); width: 20px; height: 20px; margin-inline: .35rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.25rem, 6vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.hero-logo-banner { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #fbf6f0; padding: 2rem 1rem; }
.hero-logo-img { max-width: min(660px, 92vw); max-height: 86vh; width: auto; height: auto; margin-top: -6.5rem; }
@media (max-width: 640px) {
  .hero-logo-banner { min-height: 0; padding: 3rem 1rem; }
  .hero-logo-img { margin-top: 0; }
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-wave-bg { position: absolute; left: 0; right: 0; bottom: -6%; z-index: 0; opacity: .5; }
.hero-eyebrow { margin-bottom: 1.1rem; }
.hero h1 { margin-bottom: 1.1rem; }
.hero p.lead { margin-bottom: 1.75rem; }
.hero-visual {
  aspect-ratio: 4/5; border-radius: var(--radius-lg); border: 1px dashed var(--line);
  background: var(--surface-2); display: grid; place-items: center; text-align: center; padding: 2rem;
  position: relative; z-index: 1;
}
.hero-visual.wide { aspect-ratio: 16/10; }
.hero-visual .ph-label {
  font-family: 'IBM Plex Mono', monospace; font-size: .78rem; color: var(--ink-faint); line-height: 1.6;
}

/* Generic image placeholder (designer swaps for real photo) */
.img-placeholder {
  border: 1px dashed var(--line); border-radius: var(--radius-md); background: var(--surface-2);
  display: grid; place-items: center; text-align: center; padding: 1.75rem; min-height: 220px;
}
.img-placeholder .ph-label { font-family: 'IBM Plex Mono', monospace; font-size: .76rem; color: var(--ink-faint); line-height: 1.6; }
.img-placeholder.square { aspect-ratio: 1/1; }
.img-placeholder.wide { aspect-ratio: 16/9; }
.img-placeholder.portrait { aspect-ratio: 3/4; }

/* Real content photos (replace .img-placeholder once real images are available) */
.content-photo { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow-md); }
.content-photo.square { aspect-ratio: 1/1; }
.content-photo.wide { aspect-ratio: 16/9; }
.content-photo.portrait { aspect-ratio: 3/4; }

/* Responsive video embed (YouTube/Vimeo) */
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--ink); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.content-photo.match-height { height: 100%; }

/* ---------- Callouts / disclaimer ---------- */
.callout {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.35rem 1.6rem; display: flex; gap: 1rem; align-items: flex-start;
}
.callout svg { width: 22px; height: 22px; flex: none; color: var(--violet); margin-top: .1rem; }
.callout p { font-size: .92rem; margin: 0; color: var(--ink-soft); }

.inline-cta-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; padding: 1.75rem 2rem; }
@media (max-width: 640px) {
  .inline-cta-card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: .85rem; }
  .inline-cta-card .btn { width: 100%; }
}

.disclaimer {
  background: var(--surface-2); border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 1.1rem 1.4rem;
  font-size: .87rem; color: var(--ink-faint); line-height: 1.65;
}

/* ---------- Pricing table ---------- */
.price-table { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table .price-group-label {
  font-family: 'IBM Plex Mono', monospace; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--ink-faint); background: var(--surface-2); padding: .8rem 1.5rem; border-top: 1px solid var(--line);
}
.price-table .price-group-label:first-child { border-top: none; }
.price-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1rem 1.5rem; border-top: 1px solid var(--line-soft);
}
.price-row:first-of-type { border-top: none; }
.price-row .name { color: var(--ink); font-weight: 500; }
.price-row .price { font-family: 'IBM Plex Mono', monospace; font-weight: 500; color: var(--ink); white-space: nowrap; }
.price-row .price.quote { color: var(--violet); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.price-table-wrap { overflow-x: auto; }

/* ---------- Forms ---------- */
.field { display: grid; gap: .45rem; margin-bottom: 1.25rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .8rem; color: var(--ink-faint); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: 10px; padding: .85rem 1rem; font-size: 1rem;
  background: var(--surface); color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-tint);
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
@media (max-width: 640px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ---------- Contact info blocks ---------- */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.75rem; box-shadow: var(--shadow-sm); color: var(--ink); }
.contact-line { display: flex; align-items: flex-start; gap: .85rem; padding-block: .55rem; border-top: 1px solid var(--line-soft); }
.contact-line:first-child { border-top: none; padding-top: 0; }
.contact-line svg { width: 20px; height: 20px; color: var(--violet); flex: none; margin-top: .15rem; }
.contact-line a { color: var(--ink); font-weight: 600; }
.contact-line a:hover { color: var(--violet); }
.contact-line .label { display: block; font-size: .78rem; color: var(--ink-faint); margin-bottom: .1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding-block: var(--sp-8) var(--sp-6); }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-family: 'IBM Plex Mono', monospace; font-weight: 500; margin-bottom: 1rem; }
.footer-grid ul { display: grid; gap: .6rem; font-size: .92rem; }
.footer-brand .footer-mark {
  width: 100px; height: 100px; object-fit: cover; border-radius: 16px;
  background: #fff; padding: 6px; box-shadow: var(--shadow-md); margin-bottom: 1rem;
}
.footer-brand p { color: rgba(255,255,255,.6); font-size: .92rem; margin-top: .75rem; max-width: 32ch; }
.footer-bottom {
  margin-top: var(--sp-7); padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .8rem; color: rgba(255,255,255,.5);
}
.footer-disclaimer { font-size: .8rem; color: rgba(255,255,255,.5); max-width: 70ch; margin-top: 1.25rem; line-height: 1.6; }

/* ---------- Breadcrumb / back link ---------- */
.back-link { display: flex; width: fit-content; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 1.5rem; }
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { color: var(--violet); }

/* ---------- In-page quick nav (long pages) ---------- */
.quicknav { position: sticky; top: 70px; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.quicknav-scroll { display: flex; gap: .5rem; overflow-x: auto; padding-block: .75rem; }
.quicknav-scroll a {
  flex: none; font-family: 'IBM Plex Mono', monospace; font-size: .74rem; letter-spacing: .02em;
  padding: .5rem .9rem; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft);
}
.quicknav-scroll a:hover, .quicknav-scroll a:focus-visible { color: var(--violet); border-color: var(--violet); }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius-lg); padding: clamp(2.25rem, 5vw, 3.75rem); position: relative; overflow: hidden; }
.cta-band h2 { margin-bottom: .75rem; }
.cta-band p { margin-bottom: 1.75rem; }
.cta-band-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; position: relative; z-index: 1; }
@media (max-width: 860px) { .cta-band-grid { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0 !important; }
.center-text { text-align: center; }
.center-text p { margin-inline: auto; }
.max-narrow { max-width: 46rem; }
.max-narrow.center { margin-inline: auto; }
