/* Unipesa ID landing. Plain CSS, no build step. Brand colours follow unipesa.com. */

@font-face { font-family: Metropolis; src: url("fonts/Metropolis-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Metropolis; src: url("fonts/Metropolis-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Metropolis; src: url("fonts/Metropolis-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Metropolis; src: url("fonts/Metropolis-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #05146f;
  --navy-2: #3142aa;
  --navy-deep: #030c47;
  --orange: #ff6e01;
  --orange-soft: #fe7241;
  --ink: #131313;
  --muted: #5a5a5a;
  --line: #e3e7f3;
  --tint: #e9f0ff;
  --tint-2: #f4f7ff;
  --white: #fff;
  --green: #0f8a4b;
  --red: #c8102e;
  --amber: #b35c00;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(5, 20, 111, 0.12);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: Metropolis, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: #e86200; }
.btn-ghost { background: rgba(255, 255, 255, 0.12); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }

/* Header: a floating white bar, as on unipesa.com */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 0; }
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--white); border-radius: 16px; padding: 12px 14px 12px 22px;
  box-shadow: 0 6px 30px rgba(5, 20, 111, 0.14);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 118px; height: auto; }
.brand-id {
  font-weight: 700; font-size: 15px; letter-spacing: 0.04em; color: var(--white);
  background: var(--navy); border-radius: 7px; padding: 5px 8px 3px; line-height: 1.2;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--navy); }
.nav .btn { padding: 11px 20px; font-size: 15px; color: var(--white); }
.nav .signin { color: var(--navy); }
.menu { display: none; }
.lang-switch { display: flex; gap: 6px; font-size: 14px; }
.lang-switch a { color: var(--muted); text-decoration: none; padding: 2px 6px; border-radius: 6px; }
.lang-switch a[aria-current="true"] { color: var(--navy); font-weight: 600; background: var(--tint); }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary {
    list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px;
    display: grid; place-items: center; background: var(--tint);
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span, .menu summary span::before, .menu summary span::after {
    display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; content: "";
  }
  .menu summary span::before { position: absolute; top: -6px; }
  .menu summary span::after { position: absolute; top: 6px; }
  .menu[open] .menu-panel {
    position: absolute; right: 0; top: 54px; width: min(300px, calc(100vw - 48px));
    background: var(--white); border-radius: 16px; box-shadow: var(--shadow); padding: 14px;
    display: grid; gap: 4px;
  }
  .menu-panel a { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
  .menu-panel a:hover { background: var(--tint-2); }
  .menu-panel .btn { margin-top: 6px; color: var(--white); }
}
.menu:not([open]) .menu-panel { display: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%);
  margin-top: -90px; padding: 170px 0 110px;
}
.hero::before {
  content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  font-size: 14px; font-weight: 500;
}
.pill-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--orange-soft); display: grid; place-items: center; }
.pill-dot svg { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(40px, 5vw, 62px); font-weight: 500; margin: 22px 0 22px; }
.hero h1 em { font-style: normal; color: #ffb27a; }
.hero .lead { font-size: 19px; color: rgba(255, 255, 255, 0.88); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Hero visual: a case card, drawn in HTML */
.case-card {
  background: var(--white); color: var(--ink); border-radius: 24px; padding: 26px;
  box-shadow: 0 30px 80px rgba(3, 12, 71, 0.45);
}
.case-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.case-who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--tint); display: grid; place-items: center;
  color: var(--navy); font-weight: 700; font-size: 15px;
}
.case-who b { display: block; font-weight: 600; font-size: 16px; }
.case-who small { color: var(--muted); font-size: 13px; }
.status { font-size: 12px; font-weight: 600; letter-spacing: 0.03em; padding: 6px 10px 4px; border-radius: 999px; text-transform: uppercase; }
.status-review { background: #fff1e6; color: var(--amber); }
.status-ok { background: #e4f6ec; color: var(--green); }
.checks { display: grid; gap: 4px; padding: 14px 0; }
.check { display: flex; align-items: center; gap: 12px; padding: 9px 4px; font-size: 15px; }
.tick { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e4f6ec; }
.tick svg { width: 12px; height: 12px; }
.tick.wait { background: var(--tint); }
.check span:last-child { margin-left: auto; color: var(--muted); font-size: 13px; }
.case-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.case-actions span { text-align: center; font-size: 14px; font-weight: 600; padding: 11px 6px 9px; border-radius: 10px; }
.a-approve { background: var(--green); color: var(--white); }
.a-return { background: var(--tint); color: var(--navy); }
.a-reject { background: #fdecef; color: var(--red); }

/* Sections */
section { scroll-margin-top: 100px; }
.section { padding: 110px 0; }
.section-tint { background: var(--tint-2); }
.eyebrow {
  display: inline-block; font-size: 14px; font-weight: 600; color: var(--navy); background: var(--tint);
  padding: 7px 14px 5px; border-radius: 999px; margin-bottom: 20px;
}
.section-tint .eyebrow { background: var(--white); }
.section h2 { font-size: clamp(32px, 4vw, 46px); color: var(--navy); max-width: 18em; }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section-intro p { color: var(--muted); font-size: 18px; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 28px; counter-increment: step;
}
.section-tint .step { border-color: transparent; }
.step::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 26px; right: 28px;
  font-weight: 600; font-size: 14px; color: #b8bccf;
}
.icon { width: 52px; height: 52px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; margin-bottom: 22px; }
.icon svg { width: 26px; height: 26px; }
.step h3, .feature h3 { font-size: 21px; color: var(--navy); margin-bottom: 10px; }
.step p, .feature p { color: var(--muted); font-size: 16px; }
.step-final { background: var(--navy); border-color: var(--navy); }
.step-final h3 { color: var(--white); }
.step-final p { color: rgba(255, 255, 255, 0.8); }
.step-final .icon { background: rgba(255, 255, 255, 0.12); }
.step-final::before { color: rgba(255, 255, 255, 0.45); }
.also { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 7px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--navy); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-top: -2px; }

/* Partners */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 28px; }
.feature .icon { margin-bottom: 16px; }
.code-card {
  background: var(--navy-deep); color: #dfe4ff; border-radius: var(--radius); padding: 26px 26px 28px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.7;
  box-shadow: var(--shadow); overflow-x: auto;
}
.code-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-family: Metropolis, system-ui, sans-serif; }
.code-top b { font-weight: 600; color: var(--white); font-size: 15px; }
.code-top span { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: #ffb27a; text-transform: uppercase; }
.code-card pre { margin: 0; white-space: pre; }
.c-k { color: #9fb0ff; }
.c-s { color: #ffc89e; }
.c-m { color: #7d86b8; }
.code-note { margin-top: 18px; font-family: Metropolis, system-ui, sans-serif; color: #aab3e6; font-size: 14px; }

/* Cabinet */
.cabinet { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.queue { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: 22px; }
/* Cabinet screens as tabs: radio buttons and labels, no scripts. */
.tabs { position: relative; margin-top: 64px; }
.tabs > input { position: absolute; top: 0; left: 0; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tab-list { display: flex; gap: 6px; padding: 6px; margin: 0 auto 22px; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list label { flex: none; cursor: pointer; padding: 10px 18px 8px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--navy); white-space: nowrap; transition: background .15s ease, color .15s ease; }
.tab-list label:hover { background: #eef1fb; }
.tabs #shot-1:checked ~ .tab-list label[for="shot-1"],
.tabs #shot-2:checked ~ .tab-list label[for="shot-2"],
.tabs #shot-3:checked ~ .tab-list label[for="shot-3"],
.tabs #shot-4:checked ~ .tab-list label[for="shot-4"],
.tabs #shot-5:checked ~ .tab-list label[for="shot-5"],
.tabs #shot-6:checked ~ .tab-list label[for="shot-6"] { background: var(--navy); color: var(--white); }
.tabs #shot-1:focus-visible ~ .tab-list label[for="shot-1"],
.tabs #shot-2:focus-visible ~ .tab-list label[for="shot-2"],
.tabs #shot-3:focus-visible ~ .tab-list label[for="shot-3"],
.tabs #shot-4:focus-visible ~ .tab-list label[for="shot-4"],
.tabs #shot-5:focus-visible ~ .tab-list label[for="shot-5"],
.tabs #shot-6:focus-visible ~ .tab-list label[for="shot-6"] { outline: 3px solid var(--orange); outline-offset: 2px; }
.tab-panel { display: none; margin: 0; }
.tabs #shot-1:checked ~ .tab-panels .tab-panel:nth-child(1),
.tabs #shot-2:checked ~ .tab-panels .tab-panel:nth-child(2),
.tabs #shot-3:checked ~ .tab-panels .tab-panel:nth-child(3),
.tabs #shot-4:checked ~ .tab-panels .tab-panel:nth-child(4),
.tabs #shot-5:checked ~ .tab-panels .tab-panel:nth-child(5),
.tabs #shot-6:checked ~ .tab-panels .tab-panel:nth-child(6) { display: block; }
.tab-shot { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.tab-shot img { display: block; width: 100%; height: auto; border-radius: 12px; }
.tab-panel:nth-child(4) .tab-shot img { max-width: 980px; margin: 0 auto; }
.tab-panel figcaption { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin: 18px auto 0; max-width: 52em; text-align: center; font-size: 16px; color: var(--ink); }
.tab-arrow { cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); color: var(--navy); font-size: 26px; line-height: 1; padding-bottom: 3px; transition: background .15s ease; }
.tab-arrow:hover { background: #eef1fb; }
.tab-note { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.queue-top { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter { font-size: 13px; font-weight: 600; padding: 7px 12px 5px; border-radius: 999px; background: var(--tint-2); color: var(--muted); }
.filter.on { background: var(--navy); color: var(--white); }
.row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 13px 8px; border-top: 1px solid var(--line); }
.row b { display: block; font-size: 15px; font-weight: 600; }
.row small { color: var(--muted); font-size: 13px; }
.signal { font-size: 12px; font-weight: 600; padding: 5px 9px 3px; border-radius: 8px; white-space: nowrap; }
.sig-face { background: #fff1e6; color: var(--amber); }
.sig-list { background: #fdecef; color: var(--red); }
.sig-clear { background: #e4f6ec; color: var(--green); }
.ticks { display: grid; gap: 16px; margin-top: 30px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; color: var(--muted); }
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks .tick { margin-top: 1px; }
.roles { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.demo-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 30px; }
.demo-cta p { margin: 0; font-size: 15px; color: var(--muted); }

/* Security */
.security { background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); }
.security h2 { color: var(--white); }
.security .eyebrow { background: rgba(255, 255, 255, 0.12); color: var(--white); }
.security .section-intro p { color: rgba(255, 255, 255, 0.8); }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sec { background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); border-radius: var(--radius); padding: 28px; }
.sec .icon { background: rgba(255, 255, 255, 0.12); }
.sec h3 { font-size: 20px; margin-bottom: 10px; }
.sec p { color: rgba(255, 255, 255, 0.78); font-size: 16px; }

/* Contact */
.contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.contact-aside p { color: var(--muted); font-size: 18px; margin-top: 20px; }
.contact-aside .ticks { margin-top: 30px; }
.form { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%;
  border: 1px solid #d5dbec; border-radius: var(--radius-sm); padding: 13px 14px; background: var(--white);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: url("chevron.svg"); background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(5, 20, 111, 0.12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.form-foot p { color: var(--muted); font-size: 14px; max-width: 26em; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.72); padding: 56px 0 40px; font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; }
.foot .brand img { width: 118px; }
.foot .brand-id { background: var(--white); color: var(--navy); }
.foot-text { margin-top: 16px; max-width: 26em; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-links { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 48px; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Simple pages (thanks, error, 404) */
.simple { min-height: 100vh; display: grid; place-items: center; padding: 40px 24px; background: linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%); }
.simple-card { background: var(--white); border-radius: 24px; box-shadow: 0 30px 80px rgba(3, 12, 71, 0.45); padding: 44px 40px; max-width: 520px; width: 100%; text-align: center; }
.simple-card .brand { justify-content: center; margin-bottom: 30px; }
.simple-card h1 { font-size: 32px; color: var(--navy); margin-bottom: 14px; }
.simple-card p { color: var(--muted); margin-bottom: 28px; }

/* Responsive */
@media (max-width: 1060px) {
  .steps, .sec-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .hero { padding: 116px 0 64px; }
  .hero-grid, .split, .cabinet, .contact, .section-intro { grid-template-columns: 1fr; }
  .section-intro { gap: 18px; margin-bottom: 40px; }
  .section { padding: 80px 0; }
  .case-card { max-width: 480px; }
  .cabinet .queue { order: 2; }
  .tabs { margin-top: 40px; }
  .tab-list { width: auto; max-width: none; margin-left: -24px; margin-right: -24px; padding: 6px 24px; border-radius: 0; border-left: 0; border-right: 0; }
  .tab-shot { padding: 6px; border-radius: 14px; }
  .tab-shot img { border-radius: 9px; }
  .tab-panel figcaption { gap: 10px; font-size: 14px; }
  .tab-arrow { width: 38px; height: 38px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .steps, .sec-grid, .features, .form { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
  .brand img { width: 100px; }
  .hero h1 { font-size: 38px; }
  .case-card { padding: 20px; }
  .foot-links { grid-template-columns: repeat(2, auto); gap: 10px 32px; justify-content: start; }
  .row { grid-template-columns: auto 1fr; }
  .row .signal { grid-column: 2; justify-self: start; }
}

/* Email card shown in place of the form until the API accepts it */
.mail-card h3 { font-size: 24px; color: var(--navy); margin-bottom: 10px; }
.mail-card p { color: var(--muted); }
.mail-list { margin-top: 16px; display: grid; gap: 10px; }
.mail-list li { display: flex; gap: 12px; align-items: baseline; }
.mail-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); transform: translateY(-2px); }
.mail-address { font-weight: 600; font-size: 18px; text-decoration: none; }

/* Illustrations: what the person sees in the app */
.showcase {
  margin-top: 64px; padding: 48px 40px 36px; border-radius: 28px;
  background: linear-gradient(155deg, var(--tint) 0%, var(--tint-2) 100%);
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: center; justify-items: center;
}
.shot { margin: 0; display: grid; gap: 16px; justify-items: center; text-align: center; }
.shot img { width: 100%; height: auto; }
.shot-phone img { max-width: 240px; }
.shot-case { width: 100%; max-width: 460px; }
.shot-case .case-card { width: 100%; text-align: left; box-shadow: var(--shadow); }
.shot figcaption { font-size: 14px; font-weight: 500; color: var(--navy); max-width: 22em; }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr 1fr; padding: 32px 20px; }
  .showcase { grid-template-columns: 1fr; }
  .shot-case { order: -1; }
}
@media (max-width: 520px) {
  .showcase { gap: 24px 12px; }
  .shot figcaption { font-size: 12px; }
}

/* Hero visual: specimen documents with the liveness phone in front */
.hero-visual { position: relative; padding-bottom: 40px; margin-right: -56px; }
.hero-visual .hero-docs { margin-left: 14%; width: 86%; }
.hero-docs { width: 100%; height: auto; }
.hero-phone {
  position: absolute; left: 0; bottom: -36px; width: 29%; max-width: 190px; height: auto;
}
@media (max-width: 900px) {
  /* width: 100% matters: Safari shrinks a grid item with auto margins to its content. */
  .hero-visual { width: 100%; max-width: 520px; margin: 0 auto; justify-self: center; order: -1; padding-bottom: 24px; }
  .hero-visual .hero-docs { margin-left: 16%; width: 84%; }
  .hero-phone { left: 0; bottom: -8px; width: 27%; }
  .hero-grid { gap: 28px; }
}
@media (min-width: 901px) and (max-width: 1240px) { .hero-visual { margin-right: 0; } }

/* The status badge stays on one line; the title wraps instead. */
.status { white-space: nowrap; flex: none; }
.case-who { min-width: 0; }
.avatar { flex: none; }

/* Phones: tighter sections and cards */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .section h2 { font-size: 30px; }
  .section-intro p { font-size: 16px; }
  .steps { gap: 12px; }
  .step { padding: 20px 20px 18px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
  .step .icon { width: 44px; height: 44px; border-radius: 12px; margin: 0; grid-row: span 2; }
  .step .icon svg { width: 22px; height: 22px; }
  .step h3 { font-size: 18px; margin: 2px 0 6px; padding-right: 28px; }
  .step p { font-size: 15px; }
  .step::before { top: 20px; right: 20px; }
  .also { gap: 8px; }
  .chip { font-size: 13px; padding: 7px 12px 5px; }
  .showcase { margin-top: 40px; }
  .features { gap: 26px; }
  .sec { padding: 22px; }
  .code-card { padding: 20px; font-size: 12.5px; }
  .queue { padding: 16px; }
  .hero .lead { font-size: 17px; }
}
@media (max-width: 640px) {
  .case-head { flex-wrap: wrap; row-gap: 10px; }
  .showcase { padding: 20px 14px; border-radius: 22px; }
  .shot-case .case-card { padding: 18px; }
}
@media (max-width: 640px) {
  .feature, .sec { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
  .feature .icon, .sec .icon { width: 44px; height: 44px; border-radius: 12px; margin: 0; grid-row: span 2; }
  .feature .icon svg, .sec .icon svg { width: 22px; height: 22px; }
  .feature h3, .sec h3 { font-size: 18px; margin: 2px 0 6px; }
  .feature p, .sec p { font-size: 15px; }
  .features { gap: 22px; }
  .sec-grid { gap: 12px; }
}
@media (max-width: 640px) {
  .tab-list { margin-left: -16px; margin-right: -16px; padding: 6px 16px; }
}
