/* Vidastra — Version A. "Verification engine" */
:root {
  --ink: #060A18;
  --ink-2: #0B1228;
  --panel: #0F1833;
  --line: #1D2A52;
  --line-soft: rgba(120, 150, 255, 0.10);
  --text: #E8ECF8;
  --muted: #8F9AC0;
  --accent: #46D9FF;
  --accent-deep: #0FA9D6;
  --reject: #FF6B86;
  --radius-s: 6px;
  --radius-m: 14px;
  --wrap: 1180px;
  --display: "Schibsted Grotesk", system-ui, sans-serif;
  --body: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Background grid, used on hero + page heads */
.grid-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.grid-bg::before {
  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: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.grid-bg::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 620px; height: 620px;
  right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(70, 217, 255, 0.16), transparent 65%);
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 10, 24, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--muted);
  font-size: 15px; padding: 8px 12px; border-radius: var(--radius-s);
  transition: color .15s;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 10px; }
.nav .btn { margin-left: 10px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  width: 42px; height: 42px; border-radius: var(--radius-s); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .2s, opacity .2s; }
@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { text-decoration: none; color: var(--accent); }
  .nav .btn { margin: 14px 0 0; text-align: center; border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--body);
  padding: 14px 22px; border-radius: var(--radius-s);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: #7BE5FF; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }
.nav .btn-primary { padding: 10px 16px; color: var(--ink); }
.nav .btn-primary:hover { color: var(--ink); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: clamp(40px, 6.2vw, 78px); line-height: 1.02; letter-spacing: -0.04em; }
h2 { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.08; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
.kicker { color: var(--accent); font-weight: 600; font-size: 15px; margin-bottom: 14px; display: block; }

section { padding: 110px 0; }
@media (max-width: 700px) { section { padding: 72px 0; } }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 + p { margin-top: 18px; }
.rule-top { border-top: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { padding: 88px 0 100px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 .line { display: block; }
.hero h1 .line-3 { color: var(--muted); }
.hero .lede { margin-top: 28px; }
.hero .tagline { margin-top: 14px; color: var(--text); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; } }

/* The live verification log — the one loud element */
.engine {
  background: linear-gradient(180deg, rgba(15, 24, 51, 0.92), rgba(9, 15, 34, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 0 0 1px rgba(70, 217, 255, 0.05), 0 30px 80px -30px rgba(70, 217, 255, 0.25);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 13px;
  min-width: 0;
}
.engine-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--body); font-size: 14px; color: var(--muted);
}
.engine-head strong { color: var(--text); font-weight: 600; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.live-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(70, 217, 255, .6); animation: pulse 2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(70,217,255,.55);} 70% { box-shadow: 0 0 0 10px rgba(70,217,255,0);} 100% { box-shadow: 0 0 0 0 rgba(70,217,255,0);} }
.engine-current { padding: 18px; border-bottom: 1px solid var(--line); }
.engine-current .row1 { display: flex; justify-content: space-between; gap: 12px; color: var(--text); }
.engine-current .row1 span:last-child { color: var(--muted); }
.checks { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; margin: 14px 0 10px; }
.checks i { height: 18px; border-radius: 2px; background: var(--line); transition: background .12s; }
.checks i.ok { background: var(--accent); }
.checks i.bad { background: var(--reject); }
.engine-current .status { color: var(--muted); min-height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.engine-current .status.ok { color: var(--accent); }
.engine-current .status.bad { color: var(--reject); }
.log { list-style: none; margin: 0; padding: 8px 0; height: 214px; overflow: hidden; }
.log li {
  display: grid; grid-template-columns: 74px 1fr auto; gap: 12px;
  padding: 6px 18px; color: var(--muted); white-space: nowrap;
  animation: slidein .35s ease-out;
}
.log li span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; }
.log li .res-ok { color: var(--accent); }
.log li .res-bad { color: var(--reject); }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px);} to { opacity: 1; transform: none; } }
.engine-foot {
  display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line);
  font-family: var(--body);
}
.engine-foot div { padding: 14px 18px; }
.engine-foot div + div { border-left: 1px solid var(--line); }
.engine-foot b { display: block; font-size: 22px; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.engine-foot small { color: var(--muted); font-size: 13px; }
@media (max-width: 520px) {
  .log li { grid-template-columns: 1fr auto; }
  .log li span:first-child { display: none; }
  .checks { gap: 2px; }
}

/* ---------- Intro ---------- */
.intro .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.intro h2 { max-width: 14ch; }
.capabilities { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.capabilities div { padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); }
.capabilities div:nth-child(odd) { border-right: 1px solid var(--line); }
.capabilities div:nth-child(even) { padding-left: 20px; }
.capabilities h3 { font-size: 17px; margin-bottom: 6px; }
.capabilities p { color: var(--muted); font-size: 15px; }
.intro .closing { margin-top: 26px; font-size: 20px; font-weight: 600; }
@media (max-width: 880px) { .intro .wrap { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 520px) {
  .capabilities { grid-template-columns: 1fr; }
  .capabilities div:nth-child(odd) { border-right: 0; }
  .capabilities div:nth-child(even) { padding-left: 0; }
}

/* ---------- Pipeline (how it works, a real sequence) ---------- */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.pipeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--line) 85%);
}
.step { padding-right: 28px; position: relative; }
.step .node {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); border: 1px solid var(--accent); color: var(--accent);
  font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 24px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; }
@media (max-width: 880px) {
  .pipeline { grid-template-columns: 1fr; gap: 36px; }
  .pipeline::before { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), var(--line)); }
  .step { padding: 0 0 0 72px; }
  .step .node { position: absolute; left: 0; top: -4px; }
}

/* ---------- Verticals ---------- */
.verticals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vertical {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-m);
  overflow: hidden; display: flex; flex-direction: column;
  text-decoration: none; color: var(--text); transition: border-color .2s;
}
a.vertical:hover { border-color: rgba(70,217,255,.5); }
.vertical .photo { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.vertical .photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.05); }
.vertical .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, var(--ink-2)); }
.vertical .body { padding: 6px 24px 26px; flex: 1; }
.vertical h3 { font-size: 24px; margin-bottom: 8px; }
.vertical .body > p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li {
  font-size: 13px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text);
}
.tags li.soon { color: var(--muted); border-style: dashed; }
.tags li.live { border-color: rgba(70,217,255,.5); color: var(--accent); }
@media (max-width: 980px) { .verticals { grid-template-columns: 1fr; max-width: 620px; } }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.badge-live { background: rgba(70,217,255,.12); color: var(--accent); }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.badge-soon { background: rgba(143,154,192,.12); color: var(--muted); }

/* ---------- Brands ---------- */
.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brand {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px 28px 28px; min-height: 380px;
  border: 1px solid var(--line); border-radius: var(--radius-m);
  background: radial-gradient(120% 80% at 100% 0%, rgba(70,217,255,.08), transparent 60%), var(--ink-2);
  text-decoration: none; color: var(--text);
  transition: border-color .2s, transform .2s;
}
.brand:hover { border-color: var(--accent); transform: translateY(-3px); }
.brand .brand-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 40px; }
.brand .brand-name { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.brand .brand-name em { font-style: normal; color: var(--muted); font-weight: 500; }
.brand blockquote { margin: 0 0 24px; font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; }
.brand .tags { margin-top: auto; }
.brand .brand-url { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; }
.brand:hover .brand-url { color: var(--accent); }
@media (max-width: 980px) { .brands { grid-template-columns: 1fr; max-width: 620px; } .brand { min-height: 0; } }

/* ---------- Numbers ---------- */
.numbers { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.stat { padding: 34px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat .num {
  font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.045em; line-height: 1;
  white-space: nowrap;
}
.stat:first-child .num { color: var(--accent); }
.stat p { margin-top: 12px; color: var(--muted); font-size: 15px; max-width: 28ch; }
@media (max-width: 880px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } .stat { padding: 26px 20px; } }

/* ---------- Audience split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-card { padding: 40px 36px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--ink-2); display: flex; flex-direction: column; }
.split-card h3 { font-size: 28px; margin-bottom: 14px; }
.split-card p { color: var(--muted); margin-bottom: 20px; }
.split-card ul { margin: 0 0 30px; padding: 0; list-style: none; }
.split-card li { padding: 10px 0 10px 26px; border-top: 1px solid var(--line); position: relative; font-size: 16px; }
.split-card li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.split-card .btn { margin-top: auto; align-self: flex-start; }
.split-card.featured { border-color: rgba(70,217,255,.45); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split-card { padding: 30px 22px; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: left; }
.cta-band .inner {
  border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 56px 48px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  background: radial-gradient(80% 140% at 0% 100%, rgba(70,217,255,.12), transparent 60%), var(--ink-2);
}
.cta-band h2 { max-width: 18ch; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 600px) { .cta-band .inner { padding: 36px 22px; } }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding: 96px 0 72px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(38px, 5.4vw, 66px); max-width: 16ch; }
.page-head .lede { margin-top: 22px; }

/* ---------- Detail lists (services page) ---------- */
.service-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-row .photo { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.service-row .photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.service-row h2 { margin: 12px 0 14px; }
.service-row .lede { margin-bottom: 26px; }
.service-row .brand-link { display: inline-block; margin-top: 24px; color: var(--accent); text-decoration: none; font-weight: 600; }
.service-row .brand-link:hover { text-decoration: underline; }
.vlist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; list-style: none; margin: 0; padding: 0; }
.vlist li { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 16px; }
.vlist li small { color: var(--muted); font-size: 13px; }
.vlist li.on small { color: var(--accent); }
@media (max-width: 880px) { .service-row { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; } }
@media (max-width: 460px) { .vlist { grid-template-columns: 1fr; } }

/* Checks explainer (about page) */
.check-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.check-groups > div { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.check-groups > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.check-groups h3 { margin-bottom: 10px; }
.check-groups ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.check-groups li { margin: 4px 0; }
@media (max-width: 880px) {
  .check-groups { grid-template-columns: 1fr; }
  .check-groups > div, .check-groups > div + div { padding: 24px 0; border-left: 0; }
}
.reject-sample {
  margin-top: 48px; font-family: var(--mono); font-size: 13px;
  border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--ink-2); overflow-x: auto;
}
.reject-sample table { width: 100%; border-collapse: collapse; min-width: 520px; }
.reject-sample th, .reject-sample td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.reject-sample th { font-family: var(--body); font-weight: 600; color: var(--muted); font-size: 14px; }
.reject-sample tr:last-child td { border-bottom: 0; }
.reject-sample .bad { color: var(--reject); }
.reject-sample .ok { color: var(--accent); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.two-col p + p { margin-top: 16px; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 36px; }
@media (max-width: 600px) { .form { padding: 24px 18px; } }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label, .field legend { font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select {
  font: 16px/1.4 var(--body); color: var(--text);
  background: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 13px 14px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(70,217,255,.15); }
.field .err { color: var(--reject); font-size: 13px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--reject); }
.field.invalid .err { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 7px; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seg span {
  display: block; text-align: center; padding: 12px 8px; border: 1px solid var(--line); border-radius: var(--radius-s);
  font-size: 15px; font-weight: 500; color: var(--muted);
}
.seg input:checked + span { border-color: var(--accent); color: var(--accent); background: rgba(70,217,255,.07); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 420px) { .seg { grid-template-columns: 1fr; } }
.form .btn { width: 100%; margin-top: 6px; }
.form .fine { font-size: 13px; color: var(--muted); margin-top: 14px; }
.thanks { display: none; text-align: left; padding: 20px 0; }
.thanks .tick {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--accent); display: grid; place-items: center; margin-bottom: 22px;
}
.thanks .tick::before { content: ""; width: 18px; height: 10px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-3px) rotate(-45deg); }
.thanks h2 { font-size: 32px; margin-bottom: 10px; }
.form.sent form { display: none; }
.form.sent .thanks { display: block; animation: slidein .4s ease-out; }

.side-block { padding: 26px 0; border-top: 1px solid var(--line); }
.side-block:first-child { border-top: 0; padding-top: 0; }
.side-block h3 { font-size: 18px; margin-bottom: 8px; }
.side-block p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.side-block a.plain { color: var(--accent); text-decoration: none; font-weight: 600; word-break: break-all; }
.side-block a.plain:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { color: var(--text); font-size: 15px; margin: 0 0 14px; font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 8px 0; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.foot-grid .about p { margin-top: 14px; max-width: 32ch; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.foot-bottom a { text-decoration: none; margin-left: 18px; }
.foot-bottom a:first-child { margin-left: 0; }
.foot-bottom a:hover { color: var(--accent); }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* Legal pages */
.legal { max-width: 70ch; }
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal p { color: var(--muted); margin-bottom: 14px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Contact form: meeting fields, honeypot, states */
.field .opt { font-weight: 400; color: var(--muted); }
fieldset.meeting-fields { border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px 18px 0; margin: 0 0 18px; }
fieldset.meeting-fields[hidden] { display: none; }
fieldset.meeting-fields legend { font-size: 14px; font-weight: 600; padding: 0 6px; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form form { position: relative; }
.form .btn[disabled] { opacity: .65; cursor: progress; }
.form .form-error { color: var(--reject); font-size: 14px; margin-top: 12px; }
.form .form-error[hidden] { display: none; }
