/* EGRE Labs site styles.
   One file, no build step. Sections:
     1. Typeface and colours      7. Tiles (feature grids)
     2. Base                      8. Rows, dark band, plans table
     3. Type sizes                9. Plain Label pieces
     4. Buttons and links        10. Text pages (support, privacy)
     5. Navigation               11. Footer
     6. Heroes and product panels 12. Small screens and motion              */

/* ---------- 1. Typeface and colours ---------- */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --bg: #ffffff;
  --tile: #f4f5f8;
  --ink: #1a1f36;
  --ink-2: #555c74;
  --ink-3: #6b7186;
  --hair: rgba(26, 31, 54, 0.14);
  --nav-bg: rgba(255, 255, 255, 0.8);
  --btn-bg: #1a1f36;
  --btn-ink: #ffffff;
  --band: #1a1f36;
  --band-ink: #ffffff;
  --band-soft: #c5c9d8;
  --focus: #4f4bd6;
  --shadow: 0 0 0 1px rgba(26, 31, 54, 0.08), 0 28px 60px -28px rgba(26, 31, 54, 0.45);

  /* Company mark */
  --mark: #f6c445;

  /* BriefLayer's colours, from its icon. To add a product, add its colours here
     and a class like .bl or .pl in section 4. */
  --bl-top: #4f4bd6;
  --bl-mid: #36329a;
  --bl-bottom: #26236e;
  --bl-text: #4541c9;

  /* Plain Label's colours, from its own style sheet. */
  --pl-bg: #ffffff;
  --pl-panel: #f4f6f8;
  --pl-ink: #0f1720;
  --pl-rule-strong: #c9d0d8;
  --pl-accent: #0b6b5a;
  --pl-accent-ink: #ffffff;
  --pl-accent-soft: #e7f3f0;
  --pl-marker: #ffd84a;
  --pl-box: #000000;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --pad: clamp(1.5rem, 3.4vw, 3rem);
  --step: clamp(4.5rem, 9vw, 8rem);
  --r-xl: clamp(1.5rem, 2.6vw, 2.25rem);
  --r-lg: clamp(1.25rem, 2vw, 1.75rem);
  --gap: 0.75rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #000000;
    --tile: #16181f;
    --ink: #f3f4f8;
    --ink-2: #a9aebf;
    --ink-3: #8d93a6;
    --hair: rgba(255, 255, 255, 0.16);
    --nav-bg: rgba(0, 0, 0, 0.72);
    --btn-bg: #f3f4f8;
    --btn-ink: #1a1f36;
    --band: #16181f;
    --focus: #f6c445;
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 28px 60px -28px rgba(0, 0, 0, 0.9);

    --bl-text: #a9a7f8;

    --pl-bg: #0d1116;
    --pl-panel: #16181f;
    --pl-ink: #e8ecf1;
    --pl-rule-strong: #34404d;
    --pl-accent: #56d1b6;
    --pl-accent-ink: #05211b;
    --pl-accent-soft: #11302a;
    --pl-marker: #e9c53c;
    --pl-box: #ffffff;
  }
}

/* ---------- 2. Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
strong { font-weight: 650; }

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

[id] { scroll-margin-top: 5rem; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2 * var(--gutter), 70rem);
  margin-inline: auto;
}
.wrap--wide {
  width: min(100% - 1.5rem, 87.5rem);
  margin-inline: auto;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sec { padding-block: var(--step); }
.sec--flush { padding-top: 0; }

/* ---------- 3. Type sizes ---------- */

.t-hero {
  font-size: clamp(2.75rem, 1.5rem + 5.8vw, 6rem);
  line-height: 1.04;
  letter-spacing: -0.026em;
  font-weight: 700;
  text-wrap: balance;
}
.t-hero--long { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem); line-height: 1.05; }
.t-head {
  font-size: clamp(2rem, 1.25rem + 3.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 680;
  text-wrap: balance;
}
.t-tile {
  font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.125rem);
  line-height: 1.14;
  letter-spacing: -0.017em;
  font-weight: 660;
  text-wrap: balance;
}
.t-sub {
  font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.36;
  letter-spacing: -0.012em;
  font-weight: 450;
  color: var(--ink-2);
  text-wrap: pretty;
}
.line { display: inline-block; }
.fine {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.center { text-align: center; }
.center > .t-sub,
.center > .fine { max-width: 44rem; margin-inline: auto; }
.t-head + .t-sub { margin-top: 1rem; }
.head { margin-bottom: clamp(2.25rem, 5vw, 3.75rem); }

/* ---------- 4. Buttons and links ---------- */

.bl { --accent: var(--bl-top); --accent-ink: #ffffff; --accent-text: var(--bl-text); }
.pl { --accent: var(--pl-accent); --accent-ink: var(--pl-accent-ink); --accent-text: var(--pl-accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--accent, var(--btn-bg));
  color: var(--accent-ink, var(--btn-ink));
  font-size: 1.0625rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); }
.btn--quiet {
  background: transparent;
  color: var(--accent-text, var(--ink));
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--quiet:hover { filter: none; background: var(--tile); }
.btn--small {
  min-height: 2rem;
  padding: 0 0.95rem;
  font-size: 0.8125rem;
}

.more {
  color: var(--accent-text, var(--ink));
  font-weight: 520;
  text-decoration: none;
  white-space: nowrap;
}
.more::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.4em;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
  transform: translateY(-0.08em) rotate(45deg);
}
.more:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
}
.actions + .fine { margin-top: 1rem; }

.product {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.product img { width: 2.25rem; height: 2.25rem; }

.badge {
  display: inline-block;
  vertical-align: 0.28em;
  margin-left: 0.3em;
  padding: 0.18em 0.6em;
  border-radius: 999px;
  background: var(--accent, var(--btn-bg));
  color: var(--accent-ink, var(--btn-ink));
  font-size: 0.75rem;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: 0;
}

/* ---------- 5. Navigation ---------- */

.nav,
.local {
  z-index: 20;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.nav { position: sticky; top: 0; }
.nav--static { position: static; border-bottom-color: transparent; }

.nav__row,
.local__row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__row { min-height: 3rem; }
.nav__brand { display: block; margin-right: auto; padding-block: 0.5rem; }
.nav__brand img { height: 1.25rem; width: auto; }

.nav ul,
.local ul {
  display: flex;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.8125rem;
}
.nav ul a,
.local ul a {
  display: block;
  padding-block: 0.5rem;
  color: var(--ink-2);
  text-decoration: none;
}
.nav ul a:hover,
.local ul a:hover,
.nav ul a[aria-current="page"] { color: var(--ink); }

.local { position: sticky; top: 0; }
.local__row { min-height: 3.25rem; }
.local__name {
  margin-right: auto;
  font-size: 1.25rem;
  font-weight: 660;
  letter-spacing: -0.022em;
  text-decoration: none;
}

/* ---------- 6. Heroes and product panels ---------- */

.hero {
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3rem, 6vw, 5rem);
  text-align: center;
}
.hero .t-sub { max-width: 40rem; margin: 1.25rem auto 0; }
.hero__icon { width: 4rem; height: 4rem; margin: 0 auto 1.75rem; }

.panels { display: grid; gap: var(--gap); }

.panel,
.stage {
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--tile);
}
.panel {
  display: grid;
  justify-items: center;
  padding: clamp(3.25rem, 7vw, 6rem) var(--pad) 0;
  text-align: center;
}
.panel--closed { padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.panel__text { max-width: 47rem; }
.panel__text .t-sub { margin-top: 1.1rem; }
.panel__art { width: min(100%, 61rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.panel__art--small { width: min(100%, 38rem); margin-top: clamp(1rem, 3vw, 2rem); }

/* A panel or stage in BriefLayer's indigo. Text on it is white in both colour schemes. */
.on-indigo {
  background: linear-gradient(180deg, var(--bl-top), var(--bl-mid) 58%, var(--bl-bottom));
  color: #ffffff;
  --accent: #ffffff;
  --accent-ink: var(--bl-bottom);
  --accent-text: #ffffff;
  --focus: #ffffff;
}
.on-indigo .t-sub { color: rgba(255, 255, 255, 0.84); }
.on-indigo .fine { color: rgba(255, 255, 255, 0.72); }
.on-indigo .btn:hover { filter: none; background: #e9e8fb; }

.window {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}
.window--rise {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.on-indigo .window { box-shadow: 0 30px 70px -20px rgba(12, 10, 60, 0.7); }

.stage {
  display: grid;
  justify-items: center;
  padding: clamp(2rem, 5vw, 4.5rem) var(--pad) 0;
}
.stage__art { width: min(100%, 64.875rem); }
.stage--art { padding-block: clamp(0.5rem, 2vw, 1.5rem); }
.stage--art .stage__art { width: min(100%, 42rem); }

.statement {
  padding-block: var(--step);
  text-align: center;
}
.statement .t-sub { max-width: 38rem; margin: 1.25rem auto 0; }

.next {
  margin-top: 2rem;
  text-align: center;
}

/* ---------- 7. Tiles ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--tile);
}
.tile__text { padding: var(--pad) var(--pad) 0; }
.tile__text > * + * { margin-top: 0.8rem; }
.tile__text p { color: var(--ink-2); max-width: 34rem; }
.tile__text .fine { color: var(--ink-3); }
.tile__text:last-child { flex: 1; display: flex; flex-direction: column; padding-bottom: var(--pad); }
.tile__art { margin-top: auto; padding: clamp(1.75rem, 3vw, 2.5rem) var(--pad) 0; }
.tile .actions { justify-content: flex-start; margin-top: auto; padding-top: 1.75rem; }

.tile--wide { grid-column: 1 / -1; }
.tile--ink {
  background: #1a1f36;
  color: #ffffff;
}
.tile--ink .tile__text p { color: #c5c9d8; }
.tile--ink .window { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); }

@media (min-width: 56rem) {
  .tile--split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: end;
  }
  .tile--split .tile__text { align-self: center; padding-bottom: var(--pad); }
  .tile--split .tile__art { padding: var(--pad) 0 0; }
  .tile--split .window { border-top-right-radius: 0; }
}

/* ---------- 8. Rows, dark band, plans table ---------- */

.rows > div {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 0.75rem clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--hair);
}
.rows > div:last-child { border-bottom: 1px solid var(--hair); }
.rows dd { color: var(--ink-2); font-size: 1.125rem; line-height: 1.5; max-width: 38rem; }
.rows dd > * + * { margin-top: 0.75rem; }

.band {
  background: var(--band);
  color: var(--band-ink);
  --focus: #f6c445;
}
.band .t-sub { color: var(--band-soft); }
.quad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 2.5rem);
}
.quad > div { padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.quad dt { font-size: 1.3125rem; line-height: 1.2; letter-spacing: -0.018em; font-weight: 650; }
.quad dd { margin-top: 0.6rem; color: var(--band-soft); }
.band .after { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }
.band .more { color: #ffffff; }

.duo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem clamp(1.5rem, 5vw, 4rem);
}
.duo__body > * + * { margin-top: 1rem; }
.duo__body { color: var(--ink-2); font-size: 1.1875rem; line-height: 1.5; max-width: 38rem; }
.duo__body a { color: var(--accent-text, var(--ink)); text-underline-offset: 0.2em; }

.contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.contacts > div {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--r-lg);
  background: var(--tile);
}
.contacts dt { font-size: 0.8125rem; color: var(--ink-3); }
.contacts dd { margin-top: 0.3rem; font-weight: 600; letter-spacing: -0.012em; overflow-wrap: anywhere; }
.contacts a { text-decoration: none; }
.contacts a:hover { text-decoration: underline; text-underline-offset: 0.2em; }

.plans {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.plans th,
.plans td {
  padding: 1.1rem 1.25rem 1.1rem 0;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
.plans thead th {
  padding-bottom: 0.9rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-weight: 660;
}
.plans thead th:first-child { font-size: 0.8125rem; font-weight: 450; letter-spacing: 0; color: var(--ink-3); vertical-align: bottom; }
.plans tbody th { width: 34%; font-weight: 600; }
.plans td { width: 33%; color: var(--ink-2); }
.plans .is-price th,
.plans .is-price td { color: var(--ink); font-weight: 600; }
.plans + .fine { margin-top: 1.25rem; }

.closing { text-align: center; }
.closing .hero__icon { margin-bottom: 1.5rem; }
.closing .help { max-width: 34rem; margin: 1.5rem auto 0; color: var(--ink-2); }
.closing .help + .help { margin-top: 0.6rem; }
.closing .help a { color: var(--accent-text, var(--ink)); text-underline-offset: 0.2em; }

/* ---------- 9. Plain Label pieces ---------- */

.note {
  max-width: 50rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background: var(--pl-accent-soft);
  color: var(--ink);
  text-align: center;
  text-wrap: pretty;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  padding: var(--pad);
  border-radius: var(--r-lg);
  background: var(--tile);
}
.steps h3 { margin-top: 1.25rem; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 660; }
.steps h3::before { content: counter(step) ". "; color: var(--pl-accent); }
.steps p { margin-top: 0.6rem; color: var(--ink-2); }

.art { width: 100%; }
.art--step { width: 6.5rem; }
.art .a-bg { fill: var(--pl-bg); }
.art .a-panel { fill: transparent; }
.art .a-label { fill: var(--pl-panel); }
.art--step .a-panel { fill: var(--pl-accent-soft); }
.art .a-ink { fill: var(--pl-ink); }
.art .a-neck, .art .a-fine { fill: var(--pl-rule-strong); }
.art .a-text { fill: var(--pl-ink); opacity: 0.55; }
.art .a-accent { fill: var(--pl-accent); }
.art .a-chip { fill: var(--pl-accent-soft); }
.art .a-hl { fill: var(--pl-marker); }
.art .a-on-marker { fill: #0f1720; }
.art [class^="s-"], .art [class*=" s-"] { stroke-linecap: round; stroke-linejoin: round; }
.art .s-line { stroke: var(--pl-rule-strong); stroke-width: 1.5; }
.art .s-ink { stroke: var(--pl-ink); stroke-width: 2.25; }
.art path.s-ink, .art path.s-rule, .art .s-thread, .art .s-trace, .art .s-check { fill: none; }
.art .s-ink--heavy { stroke-width: 4.5; }
.art .s-rule { stroke: var(--pl-rule-strong); stroke-width: 1.75; }
.art .s-box { fill: none; stroke: var(--pl-box); stroke-width: 4; stroke-linejoin: miter; }
.art .s-box--small { stroke-width: 2.5; }
.art .s-thread { stroke: var(--pl-rule-strong); stroke-width: 1.5; stroke-dasharray: 2 6; }
.art .s-trace { stroke: var(--pl-accent); stroke-width: 2.5; }
.art .s-check { stroke: var(--pl-accent-ink); stroke-width: 3.2; }
.art .s-check--small { stroke-width: 2; }
.art .t-chip { font-size: 12px; font-weight: 700; fill: var(--pl-accent); font-variant-numeric: tabular-nums; }
.art .t-chip--on { fill: var(--pl-accent-ink); }

/* ---------- 10. Text pages ---------- */

.doc { padding-block: clamp(3.5rem, 8vw, 6.5rem) var(--step); }
.prose { max-width: 43rem; margin-inline: auto; }
.prose .page-title {
  font-size: clamp(2.5rem, 1.5rem + 4.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.026em;
  font-weight: 700;
  text-align: center;
}
.prose .updated { margin-top: 1rem; text-align: center; font-size: 0.8125rem; color: var(--ink-3); }
.prose .lede {
  margin-top: 1.25rem;
  text-align: center;
  font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.4375rem);
  line-height: 1.38;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  text-wrap: pretty;
}
.prose .jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}
.prose .jump li { margin: 0; }
.prose .jump a {
  display: block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--tile);
  font-size: 0.9375rem;
  font-weight: 520;
  text-decoration: none;
}
.prose .jump a:hover { background: var(--hair); }
.prose h2 {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--hair);
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.375rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 680;
}
.prose h3 {
  margin-top: 2.25rem;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.016em;
  font-weight: 650;
}
.prose h2 + p, .prose h2 + ul, .prose h3 + p, .prose h3 + ul, .prose h3 + table { margin-top: 0.9rem; }
.prose h2 + h3 { margin-top: 1.75rem; }
.prose p + p, .prose ul + p, .prose p + ul, .prose table + p { margin-top: 1rem; }
.prose ul:not(.jump) { padding-left: 1.2rem; list-style: disc; }
.prose ul:not(.jump) li + li { margin-top: 0.55rem; }
.prose li::marker { color: var(--ink-3); }
.prose a { text-underline-offset: 0.2em; }

kbd {
  display: inline-block;
  padding: 0.1em 0.5em;
  border-radius: 0.4rem;
  background: var(--tile);
  box-shadow: inset 0 0 0 1px var(--hair);
  font-family: inherit;
  font-size: 0.875em;
  font-weight: 550;
}
.keys { width: 100%; border-collapse: collapse; text-align: left; }
.keys th, .keys td { padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--hair); font-weight: 400; }
.keys th { white-space: nowrap; }
.keys td { color: var(--ink-2); }

.lost { padding-block: clamp(6rem, 16vw, 12rem); text-align: center; }
.lost .t-sub { margin-top: 1.25rem; }

/* ---------- 11. Footer ---------- */

.foot {
  background: var(--tile);
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.foot__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-block: 2.75rem 2.25rem;
}
.foot h2 { margin-bottom: 0.7rem; font-size: 0.8125rem; font-weight: 650; color: var(--ink); }
.foot li + li { margin-top: 0.5rem; }
.foot a { text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.foot__legal { padding-block: 1.25rem 2rem; border-top: 1px solid var(--hair); color: var(--ink-3); }

/* ---------- 12. Small screens and motion ---------- */

@media (max-width: 55.99rem) {
  .quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1.25rem; align-items: start; }
  .steps .art--step { grid-row: 1 / span 2; width: 5rem; }
  .steps h3 { margin-top: 0; }
}

@media (max-width: 47.99rem) {
  .bento { grid-template-columns: 1fr; }
  .rows > div, .duo { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .local ul { display: none; }

  /* The plans table becomes one block per row. */
  .plans thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .plans, .plans tbody, .plans tr, .plans th, .plans td { display: block; width: auto; }
  .plans tr { padding-block: 1rem; border-bottom: 1px solid var(--hair); }
  .plans tbody th, .plans td { width: auto; padding: 0; border: 0; }
  .plans td { margin-top: 0.35rem; }
  .plans td::before { content: attr(data-label) ": "; color: var(--ink); font-weight: 600; }
}

@media (max-width: 35.99rem) {
  .quad { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .actions .btn { min-width: 12rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
