/* emigro.co, in the same visual language as the app (apps/emigro/src/index.css): Warm Signal
 * palette, Fraunces for the big question-style headings, Plus Jakarta Sans for everything else,
 * Poppins only for small brand labels. Rounded white cards as tap targets, like the intake.
 * Light only, like the app. Mobile first: the phone layout is the default, wider screens add
 * columns. Nothing waits for a scroll animation; everything is visible on load. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #fffaf8;
  --panel: #ffffff;
  --sunken: #fff3f0;
  --line: #eadbd8;
  --soft: #ffe8e2;
  --muted: #f3b2a7;
  --ink: #101f2d;
  --ink-2: #101f2da6;
  --ink-3: #101f2d8c;
  --on-ink: #fffaf8;
  --on-ink-2: #b9c4cd;
  --vivid: #ff033d;
  --accent: #c91f3a;
  --deep: #9f1830;
  --success: #166534;
  --warning: #a1440a;

  --serif: "Fraunces", ui-serif, Georgia, serif;
  --text: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --brand: "Poppins", var(--text);

  --m: max(20px, env(safe-area-inset-left));
  --max: 1120px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: var(--ink);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px / 1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.06;
}
h2 {
  font-size: clamp(27px, 3.4vw, 40px);
  line-height: 1.12;
}
p {
  text-wrap: pretty;
}
::selection {
  background: var(--vivid);
  color: #fff;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: var(--m);
  top: -80px;
  z-index: 10;
  background: var(--ink);
  color: var(--canvas);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
}
.skip:focus {
  top: 12px;
}

/* ---------- shared pieces ---------- */
.eyebrow {
  font: 700 13px/1.3 var(--brand);
  color: var(--deep);
  margin-bottom: 8px;
}
.lede {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 52ch;
}
.fine {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 64ch;
}
.example {
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--soft);
  color: var(--deep);
}
.ic-svg {
  width: 24px;
  height: 24px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 600 16px/1.2 var(--text);
  text-decoration: none;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 140ms var(--ease-out),
    background-color 180ms ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.btn-light {
  background: var(--canvas);
  color: var(--ink);
}
.btn-soft {
  background: var(--soft);
  color: var(--deep);
}
.btn-block {
  width: 100%;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--deep);
  }
  .btn-light:hover,
  .btn-soft:hover {
    background: var(--muted);
    color: var(--ink);
  }
}
.start {
  margin-top: 24px;
  max-width: 420px;
}
.start-note {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- bar ---------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) 12px var(--m);
  background: #fffaf8e8;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.bar-mark {
  color: var(--vivid);
  margin-right: auto;
  border-radius: 8px;
}
.bar-mark .wordmark {
  height: 38px;
  width: auto;
}
.bar .btn-small {
  white-space: nowrap;
}
.bar .short {
  display: none;
}
@media (max-width: 520px) {
  .bar .long {
    position: absolute;
    width: 1px;
    height: 1px; /* visually hidden full label, still read by screen readers */
    overflow: hidden;
    clip-path: inset(50%);
  }
  .bar .short {
    display: inline;
  }
}
.bar-links {
  display: none;
  gap: 24px;
  margin-right: 12px;
  font-size: 15px;
  font-weight: 500;
}
.bar-links a,
.foot a,
.route-list a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 0.08em;
  transition: text-decoration-color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .bar-links a:hover,
  .foot a:hover,
  .route-list a:hover {
    text-decoration-color: currentColor;
  }
}
.lang {
  position: relative;
  font-size: 13px;
  font-weight: 600;
}
.lang summary {
  list-style: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}
.lang summary::-webkit-details-marker {
  display: none;
}
.lang[open] summary {
  background: var(--soft);
}
.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--ink);
  color: var(--on-ink);
  --focus: var(--on-ink);
  border-radius: 16px;
  padding: 8px;
  min-width: 168px;
  font-size: 15px;
}
.lang a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
}
.lang a[aria-current] {
  background: #2a3b4c;
}
@media (hover: hover) and (pointer: fine) {
  .lang a:hover {
    background: #22374b;
  }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  gap: 0;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-photo {
  position: relative;
  margin: 4px 12px 0;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--muted);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo figcaption,
.strip figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffffffeb;
  font-size: 11.5px;
  font-weight: 600;
}
.hero-copy {
  padding: 24px var(--m) 0;
}
.hero-copy .lede {
  font-size: 16px;
}

/* The app's question screen, drawn in markup: progress, "Your case", one question, tap answers. */
.qs {
  margin: 32px var(--m) 0;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 44px -26px #9f183066;
  max-width: 420px;
}
.qs-progress {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  color: var(--ink-2);
}
.qs-bar {
  height: 4px;
  margin: 8px 0 12px;
  border-radius: 9px;
  background: var(--line);
  overflow: hidden;
}
.qs-bar i {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: 9px;
  background: var(--accent);
}
.qs-case {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 11.5px;
}
.qs-case b {
  width: 100%;
  color: var(--deep);
  font-weight: 600;
}
.qs-case span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sunken);
}
.qs-q {
  margin: 18px 0 12px;
  font: 500 22px/1.2 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.qs-choices {
  display: grid;
  gap: 7px;
}
.qs-choices li {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 500;
}
.qs-choices .on {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

/* ---------- sections ---------- */
.sec {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--m) 0;
}

.steps {
  margin-top: 8px;
}
.step {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 12px 0;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 48px;
  bottom: -6px;
  width: 2px;
  background: var(--line);
}
.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--deep);
  font: 700 14px/1 var(--brand);
}
.step h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}
.step p {
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* Result: the verdict card the intake ends on. */
.res {
  margin-top: 20px;
  padding: 18px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #1665341a;
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
}
.badge svg {
  width: 14px;
  height: 14px;
}
.res-verdict {
  margin-top: 10px;
  font: 500 21px/1.2 var(--serif);
  letter-spacing: -0.01em;
}
.res-need {
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.res-docs li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}
.res-docs li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 9px;
  background: var(--accent);
}
.res-src {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--sunken);
  color: var(--deep);
  font-size: 12px;
}

/* Routes: the app picker's group cards, each opening onto its routes and their sources. */
.groups {
  display: grid;
  gap: 10px;
  margin: 20px 0 12px;
}
.group {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: border-color 180ms ease;
}
.group[open] {
  border-color: var(--muted);
}
.group summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
}
.group summary::-webkit-details-marker {
  display: none;
}
.group-text {
  flex: 1;
  min-width: 0;
}
.group-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.group-hint {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.group-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.group[open] .group-more {
  display: none;
}
.chev {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 15px;
  color: var(--ink-3);
  transition: transform 200ms var(--ease-out);
}
.group[open] .chev {
  transform: rotate(90deg);
}
@media (hover: hover) and (pointer: fine) {
  .group:hover {
    border-color: var(--muted);
  }
}
.route-list {
  margin: 0 16px 6px;
  border-top: 1px solid var(--line);
}
.route-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.route-list li:last-child {
  border-bottom: 0;
}
.route-list strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.route-list span {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.45;
}
.route-list a {
  flex: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* Photo strip: swipe on phones, a row of three on wide screens. */
.strip {
  display: flex;
  gap: 10px;
  max-width: var(--max);
  margin: 56px auto 0;
  padding: 0 var(--m);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.strip::-webkit-scrollbar {
  display: none;
}
.strip figure {
  position: relative;
  flex: none;
  width: min(66vw, 320px);
  aspect-ratio: 3 / 2;
  border-radius: 20px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--muted);
}
.strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Document check: pick a document, see what the automatic check reports. */
.check-ui {
  margin-top: 20px;
}
.seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--sunken);
}
.seg-opt {
  flex: 1;
  min-height: 40px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.seg-opt[aria-pressed="true"] {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 3px #101f2d1f;
}
.dc {
  margin-top: 10px;
  padding: 6px 16px 12px;
}
.dc-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.dc-label {
  color: var(--ink-2);
}
.dc-val {
  display: flex;
  gap: 6px;
  color: var(--success);
  font-weight: 500;
}
.dc-mark {
  flex: none;
}
.dc-mark svg {
  width: 14px;
  height: 14px;
  margin-top: 3px;
}
.dc-row.warn .dc-val {
  color: var(--warning);
}
.dc-row.warn .dc-mark {
  visibility: hidden;
}
.dc-text.swap {
  animation: swap 260ms var(--ease-out);
}
@keyframes swap {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* ---------- firms ---------- */
.firms {
  margin-top: 64px;
  padding: 44px var(--m);
  border-radius: 28px 28px 0 0;
  background: var(--ink);
  color: var(--on-ink);
  --focus: var(--on-ink);
}
.firms .eyebrow {
  color: var(--muted);
}
.firms .lede,
.firms-alt {
  color: var(--on-ink-2);
}
.firms-alt {
  margin-top: 12px;
  font-size: 14px;
}
.firms .btn {
  margin-top: 22px;
}
.hosted {
  margin-top: 28px;
  padding: 16px;
  border-radius: 20px;
  background: var(--panel);
  color: var(--ink);
  max-width: 420px;
}
.hosted-url {
  font-size: 11.5px;
  color: var(--ink-3);
}
.hosted-q {
  margin: 10px 0 12px;
  font: 500 20px/1.2 var(--serif);
}
.hosted-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 600;
}
.hosted .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.hosted .ic-svg {
  width: 20px;
  height: 20px;
}

/* "tamo junto": tap or hover shows what it means. */
.tj {
  position: relative;
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  letter-spacing: inherit;
  color: var(--accent);
  text-decoration: underline dotted;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.14em;
  cursor: help;
}
.tj-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 3;
  width: max-content;
  max-width: 240px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--on-ink);
  font: 500 14px/1.35 var(--text);
  letter-spacing: 0;
  white-space: normal;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition:
    opacity 160ms ease,
    transform 160ms var(--ease-out),
    visibility 0s linear 160ms;
  pointer-events: none;
}
.tj-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--ink);
}
.tj[aria-expanded="true"] .tj-tip,
.tj:focus-visible .tj-tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
@media (hover: hover) and (pointer: fine) {
  .tj:hover .tj-tip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition-delay: 0s;
  }
}

/* Firms: the attorney portal's pipeline, drawn in markup. */
.pm {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid #ffffff1f;
}
.pm h3 {
  font: 500 22px/1.2 var(--serif);
}
.pm p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--on-ink-2);
  max-width: 52ch;
}
.portal {
  margin-top: 20px;
  padding: 16px;
  border-radius: 20px;
  background: var(--panel);
  color: var(--ink);
  max-width: 420px;
}
.portal-head {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.portal-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}
.portal-cols div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border-radius: 12px;
  background: var(--sunken);
  font-size: 11.5px;
  color: var(--ink-2);
  min-width: 0;
}
.portal-cols span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-cols b {
  font: 600 20px/1.1 var(--text);
  color: var(--ink);
}
.portal-cols .on {
  background: var(--soft);
  box-shadow: inset 0 0 0 1px var(--muted);
}
.portal-case {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.ini {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font: 700 12px/1 var(--brand);
}
.portal-case-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
}
.portal-case-text small {
  font-size: 12px;
  color: var(--warning);
}
.portal-paid {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #1665341a;
  color: var(--success);
  font-size: 11px;
  font-weight: 600;
}
.portal-paid svg {
  width: 12px;
  height: 12px;
}

/* ---------- faq ---------- */
.faq-list {
  margin-top: 12px;
  max-width: 760px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  padding: 0 0 16px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 64ch;
}

/* ---------- final call to action ---------- */
.final {
  margin-top: 56px;
  padding: 44px var(--m) 52px;
  background: linear-gradient(180deg, var(--soft), var(--canvas));
}
.final > * {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.final .lede {
  margin-top: 8px;
}
.final .btn {
  margin-top: 22px;
  display: flex;
}

/* ---------- footer ---------- */
.foot {
  position: relative;
  overflow: hidden;
  padding: 56px max(20px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) var(--m);
  background: var(--ink);
  color: var(--on-ink);
  --focus: var(--on-ink);
}
.foot-mark {
  position: absolute;
  right: -90px;
  top: -70px;
  width: 260px;
  aspect-ratio: 1;
  color: var(--vivid);
  opacity: 0.9;
}
.foot-mark .roundel {
  width: 100%;
  height: 100%;
}
.foot-tag {
  position: relative;
  max-width: 16ch;
  font: 500 26px/1.15 var(--serif);
}
.foot-cols,
.foot-fine,
.foot-last {
  position: relative;
}
.foot-cols {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}
.foot-cols h2 {
  font: 600 13px/1.3 var(--text);
  letter-spacing: 0;
  color: var(--on-ink-2);
}
.foot-cols ul {
  margin-top: 10px;
  display: grid;
  gap: 2px;
  font-size: 15px;
}
.foot-cols a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  overflow-wrap: anywhere;
}
.social svg {
  width: 16px;
  height: 16px;
}
.foot-fine {
  margin-top: 36px;
  max-width: 72ch;
  font-size: 12.5px;
  color: var(--on-ink-2);
}
.foot-fine + .foot-fine {
  margin-top: 12px;
}
.foot-last {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  font-size: 13px;
}
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-right: auto;
}
.foot-legal a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--on-ink-2);
}
.foot-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.foot-langs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.foot-langs a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* ---------- terms / privacy ---------- */
.legal {
  min-height: 55svh;
  padding-bottom: 72px;
}
.legal > * + * {
  margin-top: 16px;
}
.legal .btn {
  margin-top: 8px;
}

/* ---------- 404 ---------- */
.nf-main {
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: 20px;
  padding: var(--m);
}
.nf-main .bar-mark {
  margin: 0 0 16px;
  color: var(--vivid);
}
.nf-main .wordmark {
  height: 32px;
  width: auto;
}
.nf-main .btn {
  justify-self: start;
}

/* ---------- wider screens ---------- */
@media (min-width: 640px) {
  .foot-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 760px;
  }
}
@media (min-width: 900px) {
  :root {
    --m: max(40px, env(safe-area-inset-left));
  }
  .bar-links {
    display: flex;
  }
  .bar-mark .wordmark {
    height: 48px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "copy photo"
      "copy qs";
    column-gap: 48px;
    padding: 24px var(--m) 0;
  }
  .hero-copy {
    grid-area: copy;
    align-self: center;
    padding: 0;
  }
  .hero-photo {
    grid-area: photo;
    margin: 0;
    aspect-ratio: 4 / 3;
  }
  .qs {
    grid-area: qs;
    margin: -72px 0 0 -40px;
    position: relative;
    width: 340px;
  }
  .sec {
    padding-top: 96px;
  }
  .result,
  .routes,
  .check {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: 64px;
    align-items: start;
  }
  .result .sec-copy,
  .routes .sec-copy,
  .check .sec-copy {
    position: sticky;
    top: 96px;
  }
  .routes .sec-copy {
    grid-row: span 3;
  }
  .result .res,
  .routes .groups,
  .check .check-ui {
    margin-top: 0;
  }
  .routes .btn-block,
  .routes .fine {
    grid-column: 2;
  }
  .steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 20px;
  }
  .step {
    flex-direction: column;
    padding: 0;
  }
  .step:not(:last-child)::after {
    display: none;
  }
  .strip {
    margin-top: 96px;
    overflow: visible;
  }
  .strip figure {
    flex: 1;
    width: auto;
  }
  .firms {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
    max-width: calc(var(--max) + 80px);
    margin: 96px auto 0;
    padding: 64px;
    border-radius: 32px;
  }
  .hosted,
  .portal {
    margin: 0;
    justify-self: end;
    width: 100%;
  }
  .pm {
    margin-top: 0;
  }
  .final {
    margin-top: 96px;
    padding: 80px var(--m);
    text-align: center;
  }
  .final .btn {
    display: inline-flex;
    width: auto;
  }
  .foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    column-gap: 64px;
  }
  .foot > :not(.foot-mark, .foot-credits, .foot-last) {
    grid-column: 1;
  }
  .foot-credits {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: end;
    margin-top: 0;
    font-size: 11.5px;
    line-height: 1.6;
  }
  .foot-last {
    grid-column: 1 / -1;
  }
  /* Whole mark in view, top right, above the photo credits. */
  .foot-mark {
    width: 168px;
    right: var(--m);
    top: 56px;
  }
  .foot-tag {
    font-size: 34px;
  }
}

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