/* ==========================================================================
   Lunedi Systems — site styles
   Palette sampled directly from the logo.
   ========================================================================== */

:root {
  --ink: #071834;          /* wordmark navy */
  --midnight: #0b2552;
  --deep: #040e22;         /* darkest band */
  --electric: #017cfd;     /* the E-bar blue */
  --action: #0463e3;       /* accessible blue for text and buttons on white */
  --cyan: #19c8ff;         /* highlight from the mark's top edge */
  --mist: #edf3fd;
  --mist-2: #f6f9ff;
  --line: #d5e0f2;
  --muted: #4a5b78;
  --white: #ffffff;

  --on-dark: #eaf1ff;
  --on-dark-muted: #a9bad8;
  --line-dark: rgba(169, 186, 216, 0.22);

  --font-display: "Unbounded", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 6px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--action); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; color: var(--ink); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; border-radius: 3px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--mist { background: var(--mist-2); }
.section--dark { background: var(--deep); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: var(--on-dark-muted); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* The E-bar: the blue bar from the logo, used as the one structural marker */
.bar { display: block; width: 52px; height: 9px; background: var(--electric); border-radius: 2px; margin-bottom: 22px; }
.bar--long { width: 96px; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); }
.section-head p { margin-top: 20px; font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.section--dark .section-head p { color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-body); font-weight: 600; font-size: 1.0625rem; line-height: 1;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn--primary { background: var(--action); color: var(--white); }
.btn--primary:hover { background: var(--ink); color: var(--white); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--cyan); color: var(--ink); }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -16px rgba(7,24,52,.35); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 40px; height: auto; }
.brand__text { display: flex; flex-direction: column; gap: 5px; width: 118px; }
.brand__text img { width: 100%; height: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); }
.nav__links a:not(.btn) {
  position: relative; color: var(--ink); font-weight: 500; text-decoration: none; padding: 8px 0;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: var(--electric); border-radius: 2px; transition: width .25s;
}
.nav__links a:not(.btn):hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links .btn { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.nav__toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent; cursor: pointer;
  align-items: center; justify-content: center; border-radius: var(--radius);
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 24px; height: 3px; background: var(--ink); border-radius: 2px; position: relative;
  transition: transform .25s, background-color .25s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -8px; }
.nav__toggle span::after { top: 8px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px; display: none;
    box-shadow: 0 24px 40px -24px rgba(7,24,52,.4);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 16px 0; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.btn)::after { display: none; }
  .nav__links a[aria-current="page"] { color: var(--action); }
  .nav__links .btn { margin-top: 18px; min-height: 52px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 82% 40%, rgba(1,124,253,.14), transparent 70%),
    linear-gradient(180deg, var(--mist-2), var(--white) 70%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 { font-size: clamp(1.9rem, 3.9vw, 3.05rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 18ch; }
.hero .lede { margin-top: 28px; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); max-width: 54ch; color: var(--muted); }
.hero .actions { margin-top: 36px; }
.hero__note { margin: 28px 0 0; font-size: .975rem; color: var(--muted); }
.hero__art { display: flex; justify-content: center; }
.mark { position: relative; width: min(430px, 78vw); aspect-ratio: 445 / 424; --px: 0; --py: 0; }
.mark__piece { position: absolute; inset: 0; transition: transform .35s cubic-bezier(.2,.7,.2,1); will-change: transform; }
.mark::before { content: ""; position: absolute; left: 10%; right: -4%; bottom: -10%; height: 34%; z-index: 0; pointer-events: none; background: radial-gradient(closest-side, rgba(1,60,160,.22), transparent); filter: blur(14px); }
.mark__piece { z-index: 1; }
.mark__piece img { width: 100%; height: 100%; }
.mark__piece--stem { transform: translate(calc(var(--px) * -12px), calc(var(--py) * -12px)); }
.mark__piece--foot { transform: translate(calc(var(--px) * 16px), calc(var(--py) * 12px)); }
/* the one orchestrated moment: the two shards close into the L */
.mark__piece--stem img { animation: stem-in 1.1s cubic-bezier(.2,.8,.2,1) both; }
.mark__piece--foot img { animation: foot-in 1.1s .15s cubic-bezier(.2,.8,.2,1) both; }
@keyframes stem-in { from { transform: translate(-10%, 14%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes foot-in { from { transform: translate(24%, -26%); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; justify-content: flex-start; }
  .mark { width: min(112px, 30vw); }
  .hero { padding-block: 28px 48px; }
  .hero h1 { max-width: 16ch; }
  .hero .lede { margin-top: 20px; }
  .hero .actions { margin-top: 26px; }
}

/* ---------- Built-for strip ---------- */
.builtfor { border-block: 1px solid var(--line); background: var(--white); }
.builtfor__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; padding-block: 26px; }
.builtfor p { margin: 0; font-weight: 600; }
.builtfor ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.builtfor li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.builtfor li::before { content: ""; width: 14px; height: 5px; background: var(--electric); border-radius: 1px; }

/* ---------- System flow (dark) ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; counter-reset: flow; }
.flow__item { position: relative; padding: 36px 20px 0 0; }
.flow__item::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line-dark);
}
.flow__item::after {
  content: ""; position: absolute; top: -4px; left: 0; width: 34px; height: 10px; background: var(--electric); border-radius: 2px;
}
.flow__item:nth-child(5)::before { right: 20px; }
.flow__item h3 { font-size: 1.0625rem; line-height: 1.25; margin-bottom: 12px; }
.flow__item p { font-size: .975rem; margin: 0; }
.flow__item strong { color: var(--cyan); font-weight: 600; }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; }
  .flow__item { padding: 0 0 36px 44px; }
  .flow__item::before { top: 0; bottom: 0; left: 8px; right: auto; width: 2px; height: auto; }
  .flow__item::after { top: 4px; left: 0; width: 18px; height: 18px; border-radius: 50%; }
  .flow__item:nth-child(5)::before { right: auto; bottom: auto; height: 22px; }
  .flow__item:last-child { padding-bottom: 0; }
}

/* ---------- Service rows ---------- */
.rows { border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto; gap: 16px 48px; align-items: start;
  padding: 36px 0; border-top: 1px solid var(--line); position: relative; text-decoration: none; color: inherit;
  transition: background-color .25s, padding .25s;
}
.row::before {
  content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--electric); transition: width .35s;
}
.row:hover::before, .row:focus-visible::before { width: 100%; }
.row h3 { font-size: clamp(1.25rem, 2.1vw, 1.65rem); }
.row p { margin: 0; color: var(--muted); max-width: 52ch; }
.row__go { font-weight: 600; color: var(--action); white-space: nowrap; padding-top: 4px; }
.row:hover .row__go { color: var(--ink); }
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; padding: 28px 0; }
}

/* ---------- Principles (why us) ---------- */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__head { position: sticky; top: calc(var(--header-h) + 32px); }
.split__head h2 { font-size: clamp(1.7rem, 3.6vw, 2.75rem); }
.split__head p { margin-top: 20px; color: var(--muted); max-width: 40ch; }
.principle { padding: 0 0 44px; }
.principle + .principle { padding-top: 44px; border-top: 1px solid var(--line); }
.principle:last-child { padding-bottom: 0; }
.principle h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: 14px; }
.principle p { color: var(--muted); max-width: 56ch; margin: 0; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__head { position: static; }
}

/* ---------- Steps (process) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { border-top: 3px solid var(--ink); padding-top: 20px; }
.step__n { font-family: var(--font-display); font-weight: 600; font-size: 2.25rem; letter-spacing: -0.04em; color: var(--electric); line-height: 1; margin-bottom: 18px; }
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); font-size: 1rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.more-link { display: inline-block; margin-top: 40px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.35; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 18px; height: 3px; background: var(--electric); border-radius: 2px; transition: transform .25s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin: 0 0 28px; color: var(--muted); max-width: 62ch; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; color: var(--on-dark);
  background: linear-gradient(120deg, var(--deep) 0%, var(--midnight) 60%, #0a3a8a 100%);
}
.cta::after {
  content: ""; position: absolute; right: -4%; top: 50%; width: min(420px, 50vw); aspect-ratio: 445 / 424; transform: translateY(-50%);
  background: url("../assets/mark-light.png") center / contain no-repeat; opacity: .16; pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; padding-block: clamp(64px, 9vw, 112px); }
.cta__inner > * { max-width: 720px; }
.cta__inner > .bar { max-width: none; }
.cta h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 3rem); }
.cta p { margin: 22px 0 36px; font-size: 1.125rem; color: var(--on-dark-muted); max-width: 52ch; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); background: linear-gradient(180deg, var(--mist-2), var(--white)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 20ch; letter-spacing: -0.03em; }
.page-hero p { margin: 24px 0 0; font-size: 1.1875rem; color: var(--muted); max-width: 58ch; }

/* ---------- Service detail blocks ---------- */
.detail { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); scroll-margin-top: var(--header-h); }
.detail:first-of-type { border-top: 0; }
.detail__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.detail h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.detail__lede { margin-top: 20px; font-size: 1.125rem; color: var(--muted); max-width: 44ch; }
.detail__who { margin-top: 28px; padding-left: 18px; border-left: 3px solid var(--electric); color: var(--ink); font-size: 1rem; max-width: 44ch; }
.detail__who strong { display: block; margin-bottom: 4px; }
.checks { display: grid; gap: 0; }
.checks li { position: relative; padding: 18px 0 18px 40px; border-top: 1px solid var(--line); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 0; top: 29px; width: 22px; height: 7px; background: var(--electric); border-radius: 1.5px; }
.checks b { display: block; font-weight: 600; }
.checks span { color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) { .detail__grid { grid-template-columns: 1fr; } }

/* ---------- Timeline (process page) ---------- */
.timeline { position: relative; display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 clamp(16px, 4vw, 56px); padding-bottom: clamp(44px, 6vw, 72px); position: relative; }
.tl:last-child { padding-bottom: 0; }
.tl__n { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 6vw, 4.75rem); letter-spacing: -0.05em; line-height: .9; color: var(--electric); position: relative; }
.tl::before { content: ""; position: absolute; left: 20px; top: 84px; bottom: 12px; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 14px; }
.tl__intro { color: var(--muted); max-width: 58ch; margin-bottom: 28px; }
.tl__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; max-width: 760px; }
.tl__cols h3 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: 0; margin-bottom: 8px; color: var(--ink); }
.tl__cols p { margin: 0; color: var(--muted); font-size: 1rem; }
.tl__cols > div { padding-top: 14px; border-top: 3px solid var(--ink); }
.tl__cols > div:last-child { border-top-color: var(--electric); }
@media (max-width: 700px) {
  .tl { grid-template-columns: 1fr; }
  .tl__n { margin-bottom: 14px; }
  .tl::before { display: none; }
  .tl__cols { grid-template-columns: 1fr; }
}

.needs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; max-width: 900px; }
.needs li { position: relative; padding: 16px 0 16px 36px; border-top: 1px solid var(--line-dark); color: var(--on-dark); }
.needs li::before { content: ""; position: absolute; left: 0; top: 27px; width: 20px; height: 7px; background: var(--electric); border-radius: 1.5px; }
@media (max-width: 700px) { .needs { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.prose { max-width: 62ch; }
.prose p { font-size: 1.1875rem; color: var(--ink); }
.prose p + p { color: var(--muted); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.value { padding: 32px 32px 0 0; }
.value + .value { padding-left: 32px; border-left: 1px solid var(--line-dark); }
.value h3 { font-size: 1.25rem; margin-bottom: 14px; }
.value p { margin: 0; }
@media (max-width: 860px) {
  .values { grid-template-columns: 1fr; border-top: 0; }
  .value, .value + .value { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line-dark); }
}
.region { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.region h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.region ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.region li { padding: 16px 0 16px 34px; border-top: 1px solid var(--line); position: relative; }
.region li::before { content: ""; position: absolute; left: 0; top: 27px; width: 20px; height: 7px; background: var(--electric); border-radius: 1.5px; }
@media (max-width: 860px) { .region { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.form { display: grid; gap: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 600; font-size: 1rem; padding: 0; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white);
  border: 1.5px solid #9fb2d3; border-radius: var(--radius); padding: 14px 16px; min-height: 52px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--action); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--electric); box-shadow: 0 0 0 4px rgba(1,124,253,.2); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 1.5px solid #9fb2d3; border-radius: var(--radius);
  font-weight: 500; transition: background-color .2s, border-color .2s, color .2s;
}
.choice input:hover + span { border-color: var(--action); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--electric); outline-offset: 3px; }
.form__status { min-height: 1.5em; margin: 0; font-weight: 600; }
.form__status[data-state="ok"] { color: #0a6b3d; }
.form__status[data-state="error"] { color: #b3261e; }
.aside { background: var(--deep); color: var(--on-dark); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); position: sticky; top: calc(var(--header-h) + 28px); }
.aside h2 { color: var(--white); font-size: 1.35rem; margin-bottom: 24px; }
.aside dl { margin: 0; display: grid; gap: 22px; }
.aside dt { font-weight: 600; color: var(--cyan); margin-bottom: 2px; }
.aside dd { margin: 0; color: var(--on-dark); }
.aside a { color: var(--white); }
.aside a:hover { color: var(--cyan); }
.aside .bar { margin-bottom: 20px; }
@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; }
  .aside { position: static; }
}
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-dark-muted); padding-block: clamp(56px, 7vw, 88px) 36px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand img { width: 210px; height: auto; margin-bottom: 20px; }
.footer__brand p { max-width: 34ch; margin: 0; }
.site-footer h2 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; letter-spacing: 0; color: var(--white); margin-bottom: 16px; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer__base { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .925rem; }
.footer__base p { margin: 0; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

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

/* ---------- Plans (home) and comparison table (pricing) ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; }
.plan { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.plan--alt { border-top-color: var(--electric); }
.plan h3 { font-size: 1.15rem; margin-bottom: 18px; }
.plan p:last-child { margin: 0; color: var(--muted); }
.plan__price, .compare .plan__price { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -0.04em; line-height: 1; margin: 0 0 16px; color: var(--ink); }
.plan__price small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }

.compare { width: 100%; border-collapse: collapse; background: var(--white); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 20px 24px; border-top: 1px solid var(--line); }
.compare thead th, .compare thead td { border-top: 0; padding-top: 0; padding-bottom: 28px; }
.compare thead th { border-top: 4px solid var(--ink); padding-top: 24px; width: 33%; }
.compare thead th.compare__alt { border-top-color: var(--electric); }
.compare .plan__name { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.01em; margin-bottom: 16px; }
.compare .plan__sub { display: block; font-weight: 400; color: var(--muted); }
.compare tbody th { font-weight: 600; width: 34%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.compare .yes::before { content: ""; display: inline-block; width: 16px; height: 6px; background: var(--electric); border-radius: 1px; margin-right: 10px; vertical-align: middle; }
.compare .no { color: var(--muted); }
.compare .no::before { content: ""; display: inline-block; width: 16px; height: 3px; background: var(--line); margin-right: 10px; vertical-align: middle; }
@media (max-width: 720px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare thead tr { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .compare thead td { display: none; }
  .compare thead th { width: auto; padding: 18px 14px; }
  .compare .plan__price { font-size: 1.75rem; }
  .compare .plan__sub { font-size: .9rem; }
  .compare tbody tr { padding: 18px 0; border-top: 1px solid var(--line); }
  .compare tbody th, .compare tbody td { border: 0 !important; padding: 4px 0; width: auto; }
  .compare tbody td::before { content: attr(data-label) ": "; display: inline-block; min-width: 12.5em; color: var(--muted); }
}

.form__note { margin: -6px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- Photos ---------- */
.photo { margin: 0; }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--mist); }
.photo figcaption { margin-top: 12px; font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.split__head .photo { margin-top: 36px; max-width: 420px; }
.detail__grid .photo { margin-top: 32px; max-width: 460px; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { gap: 14px; } .strip { grid-template-columns: 1fr; } }
.section--flush { padding-top: 0; }

/* ---------- Legal pages ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: 2.2em 0 .6em; }
.prose h2:first-of-type { margin-top: 1.2em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .6em; }
.prose__meta { color: var(--muted); font-size: .95rem; }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin-inline: auto; background: var(--ink); color: var(--on-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 20px 22px; box-shadow: 0 12px 40px rgba(4,14,34,.35); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1 1 320px; font-size: .975rem; line-height: 1.5; }
.cookie a { color: var(--cyan); }
.cookie__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { min-height: 44px; padding: 0 20px; font-size: 1rem; cursor: pointer; }

.err-code { font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 9vw, 6rem); color: var(--electric); margin: 0 0 8px !important; letter-spacing: -0.04em; line-height: 1; }

/* ---------- Call to action extras ---------- */
.hero__reassure { margin: 14px 0 0; font-size: .975rem; font-weight: 600; color: var(--ink); }
.hero__reassure::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--electric); margin-right: 10px; }
.section-cta { margin-top: 36px; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(7,24,52,.96); border-top: 1px solid var(--line-dark); transform: translateY(110%); transition: transform .3s ease; }
.sticky-cta.is-on { transform: none; }
.sticky-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 860px) { .sticky-cta { display: block; } body.has-sticky .site-footer { padding-bottom: 110px; } }

/* ---------- Scroll reveal (only when JS is running and motion is allowed) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
.row, .plan, .photo { transition: transform .25s ease, box-shadow .25s ease; }
@media (hover: hover) { .row:hover, .plan:hover { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
  .row:hover, .plan:hover { transform: none; }
}

@media (max-width: 560px) {
  .cookie { left: 10px; right: 10px; bottom: 10px; padding: 14px 16px; gap: 10px 14px; }
  .cookie p { font-size: .875rem; flex-basis: 100%; }
  .cookie .btn { min-height: 40px; padding: 0 16px; font-size: .925rem; }
}
