:root {
  color-scheme: dark;
  --ink: #090908;
  --soil: #16130f;
  --panel: #201c16;
  --panel-strong: #2a251d;
  --cream: #f6efe1;
  --muted: #b9ad99;
  --line: rgba(246, 239, 225, 0.16);
  --line-strong: rgba(246, 239, 225, 0.28);
  --acid: #cbff5b;
  --gold: #f6bd4f;
  --coral: #ff6f52;
  --blue: #78c5ff;
  --green: #78d28b;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

html,
body,
#app {
  width: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(255, 111, 82, 0.06), transparent 34rem),
    linear-gradient(180deg, rgba(120, 197, 255, 0.08), transparent 24rem),
    var(--ink);
  color: var(--cream);
  font-family: "Aptos", "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(246, 239, 225, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 239, 225, 0.032) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

a {
  color: inherit;
  text-decoration: none;
}

.contact-email {
  color: var(--cream);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

p,
h1,
h2,
h3 {
  margin: 0;
  overflow-wrap: anywhere;
}

button,
output,
input {
  font: inherit;
}

textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 12px;
  resize: vertical;
  outline: none;
  color: var(--cream);
  background: rgba(9, 9, 8, 0.7);
  font: 0.82rem/1.45 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0 12px;
  outline: none;
  color: var(--cream);
  background: rgba(9, 9, 8, 0.7);
}

input:focus {
  border-color: var(--acid);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-logo,
.brand {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.site-logo {
  font-size: 1.08rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.language-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  border: 1px solid var(--line);
  padding: 4px;
  background: rgba(9, 9, 8, 0.58);
}

.language-trigger,
.language-menu a {
  min-height: 34px;
  border-color: transparent;
  padding: 0 10px;
  gap: 5px;
  color: var(--muted);
  background: transparent;
  font-size: 0.76rem;
  font-weight: 900;
}

.language-trigger {
  min-width: 58px;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(2, minmax(136px, 1fr));
  gap: 4px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 92px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  padding: 8px;
  background: rgba(17, 15, 12, 0.98);
  box-shadow: var(--shadow);
}

.language-menu a {
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  justify-content: flex-start;
  min-height: 38px;
  width: 100%;
  color: var(--cream);
  text-align: left;
}

.language-trigger:hover,
.language-menu a:hover,
.language-menu a.is-active {
  border-color: rgba(203, 255, 91, 0.42);
  color: var(--cream);
  background: rgba(203, 255, 91, 0.08);
}

.site-nav a {
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.site-nav a:hover {
  color: var(--cream);
}

.nav-cta {
  min-height: 38px;
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  color: var(--cream);
  background: rgba(246, 239, 225, 0.06);
}

.hero,
.section,
.camera-section,
.trust-strip,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: flex;
  align-items: center;
  min-height: min(760px, calc(100vh - 72px));
  padding: 62px 0 82px;
}

.hero-copy {
  display: grid;
  gap: 24px;
  max-width: 880px;
}

.eyebrow {
  width: fit-content;
  border: 1px solid rgba(203, 255, 91, 0.34);
  padding: 7px 10px;
  color: var(--acid);
  background: rgba(203, 255, 91, 0.07);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

h1,
h2 {
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.94;
}

h1 {
  font-size: clamp(4rem, 11vw, 8.8rem);
}

h2 {
  font-size: clamp(2.45rem, 5.8vw, 5.4rem);
}

h3 {
  color: var(--cream);
  font-size: 1rem;
  line-height: 1.2;
}

.hero-lede,
.section-heading p,
.value-copy p,
.paywall-section p,
.result-copy p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-proof span {
  border: 1px solid var(--line);
  padding: 7px 10px;
  color: var(--cream);
  background: rgba(246, 239, 225, 0.055);
  font-size: 0.78rem;
  font-weight: 800;
}

.email-only-note {
  display: grid;
  gap: 4px;
  max-width: 520px;
  border-left: 3px solid var(--acid);
  background: rgba(201, 255, 93, 0.08);
  padding: 14px 16px;
}

.email-only-note strong {
  color: var(--cream);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.email-only-note span {
  color: var(--muted);
  line-height: 1.45;
}

.site-counter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
}

.site-counter div {
  display: grid;
  gap: 2px;
  min-width: 144px;
  border: 1px solid var(--line);
  background: rgba(246, 239, 225, 0.045);
  padding: 12px 14px;
}

.site-counter strong {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  line-height: 1;
}

.site-counter span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  padding: 0 18px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover,
button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button-primary,
.primary {
  border-color: var(--acid);
  background: var(--acid);
  color: #11160d;
  font-weight: 900;
}

.button-secondary,
.ghost {
  color: var(--cream);
  background: rgba(246, 239, 225, 0.06);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

button.is-loading {
  position: relative;
  gap: 9px;
  border-color: var(--gold);
  background: var(--gold);
}

button.is-loading::before {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(17, 22, 13, 0.35);
  border-top-color: #11160d;
  border-radius: 50%;
  content: "";
  animation: spin 780ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: rgba(246, 239, 225, 0.035);
}

.trust-strip div {
  display: grid;
  gap: 4px;
  min-height: 108px;
  padding: 22px;
}

.trust-strip div + div {
  border-left: 1px solid var(--line);
}

.trust-strip span {
  color: var(--muted);
}

.section,
.camera-section {
  padding: 112px 0;
}

.split-section,
.value-section,
.paywall-section,
.result-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 48px;
  align-items: start;
}

.flow-grid,
.value-grid,
.criteria-grid,
.assurance-grid,
.legal-grid,
.faq-grid {
  display: grid;
  gap: 14px;
}

.flow-grid article,
.value-grid article,
.criteria-grid article,
.assurance-grid article,
.legal-grid article,
.faq-grid article,
.price-card {
  border: 1px solid var(--line);
  background: rgba(246, 239, 225, 0.045);
}

.flow-grid article {
  display: grid;
  grid-template-columns: 54px minmax(0, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
}

.flow-grid span {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.flow-grid p,
.value-grid p,
.criteria-grid p,
.assurance-grid p,
.legal-grid p,
.price-card p {
  color: var(--muted);
}

.value-section {
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.value-copy {
  display: grid;
  gap: 20px;
}

.value-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.value-grid article {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 24px;
}

.value-grid span {
  width: fit-content;
  border: 1px solid rgba(246, 189, 79, 0.42);
  padding: 5px 8px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 34px;
}

.camera-section {
  width: 100%;
  padding-inline: max(20px, calc((100% - 1160px) / 2));
  background:
    linear-gradient(180deg, rgba(246, 239, 225, 0.05), transparent 42%),
    #0d0d0b;
}

.camera-section .section-heading {
  width: min(1160px, 100%);
  margin-inline: auto;
}

#app {
  width: min(1160px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  background: #070806;
  box-shadow: var(--shadow);
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  min-height: 720px;
}

.stage {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(120, 197, 255, 0.12), transparent 42%),
    #050604;
}

.stage::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 42%, transparent 0 22%, rgba(0, 0, 0, 0.2) 48%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 28%, rgba(0, 0, 0, 0.56));
}

.camera,
.overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}

.camera {
  filter: contrast(1.08) saturate(0.86);
}

.overlay {
  z-index: 2;
}

.scanline {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 7px,
      rgba(255, 255, 255, 0.026) 8px
    );
  mix-blend-mode: screen;
}

.face-guide {
  position: absolute;
  inset: 18% 22%;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(203, 255, 91, 0.38);
}

.face-guide::before,
.face-guide::after,
.face-guide span::before,
.face-guide span::after {
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: var(--acid);
  content: "";
}

.face-guide::before {
  top: -1px;
  left: -1px;
  border-top: 3px solid;
  border-left: 3px solid;
}

.face-guide::after {
  top: -1px;
  right: -1px;
  border-top: 3px solid;
  border-right: 3px solid;
}

.face-guide span::before {
  bottom: -1px;
  left: -1px;
  border-bottom: 3px solid;
  border-left: 3px solid;
}

.face-guide span::after {
  right: -1px;
  bottom: -1px;
  border-right: 3px solid;
  border-bottom: 3px solid;
}

.topbar,
.controls,
.diagnostic {
  position: absolute;
  z-index: 4;
  left: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar {
  top: 22px;
}

.brand {
  font-size: 0;
}

.brand::after {
  content: "Nota de Rosto";
  font-size: 1.18rem;
}

.status,
.note {
  color: var(--muted);
}

.status {
  border: 1px solid var(--line);
  background: rgba(9, 9, 8, 0.76);
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.controls {
  bottom: 24px;
  justify-content: flex-start;
}

.diagnostic {
  bottom: 86px;
  display: none;
  max-width: 720px;
  margin: 0;
  border: 1px solid rgba(255, 111, 82, 0.62);
  background: rgba(15, 12, 10, 0.88);
  color: #ffd7cc;
  padding: 12px 14px;
  line-height: 1.45;
}

.diagnostic:not(:empty) {
  display: block;
}

.panel {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-height: 720px;
  padding: 34px 28px;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(246, 189, 79, 0.1), transparent 34%),
    var(--panel);
}

.score-block {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.score-label {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.score-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}

.score {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.8rem, 12vw, 7.4rem);
  line-height: 0.9;
}

.score-range {
  color: var(--muted);
  font-size: 1.2rem;
}

.tier {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  border: 1px solid rgba(120, 197, 255, 0.5);
  padding: 8px 11px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tier-paid {
  border-color: rgba(203, 255, 91, 0.58);
  color: var(--acid);
}

.scan-card,
.payment-card,
.result-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 18px;
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.panel-heading strong {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  line-height: 1;
}

.mini-label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.progress-track {
  height: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #10110e;
}

.progress-track span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease-out;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--acid));
}

.pose-message,
.payment-card p,
.payment-status,
.result-panel p {
  color: var(--muted);
}

.pose-message,
.payment-status {
  min-height: 2.9em;
  font-size: 0.92rem;
}

.meter {
  position: relative;
  height: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #10110e;
}

.meter-fill {
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease-out;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--acid));
}

.metrics {
  display: grid;
  gap: 10px;
}

.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 50px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  padding: 0 14px;
}

.metric span {
  color: var(--muted);
}

.metric output {
  color: var(--cream);
  font-weight: 900;
  text-align: right;
}

.note {
  margin: auto 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.locked-metrics output {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.payment-card h3,
.result-panel h3 {
  max-width: 100%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.payment-form {
  display: grid;
  gap: 12px;
}

.payment-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.field-help {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.payment-form button,
.payment-card > button {
  width: 100%;
}

.pix-panel {
  display: grid;
  gap: 12px;
}

.pix-qr-wrap {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  padding: 14px;
  background: #f6efe1;
}

.pix-qr-wrap img {
  width: min(220px, 100%);
  aspect-ratio: 1;
  object-fit: contain;
}

.pix-copy-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.pix-panel p {
  color: var(--muted);
  font-size: 0.84rem;
}

.payment-status:empty {
  display: none;
}

.email-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(9, 9, 8, 0.74);
  backdrop-filter: blur(10px);
}

.email-modal__panel {
  display: grid;
  gap: 14px;
  width: min(430px, 100%);
  border: 1px solid rgba(203, 255, 91, 0.36);
  background:
    linear-gradient(135deg, rgba(203, 255, 91, 0.1), transparent 58%),
    var(--panel-strong);
  padding: 24px;
  box-shadow: var(--shadow);
}

.email-modal__panel h3 {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.08;
}

.email-modal__panel p {
  color: var(--muted);
}

.email-modal__panel .primary {
  width: 100%;
}

.result-panel {
  border-color: rgba(203, 255, 91, 0.34);
  background:
    linear-gradient(135deg, rgba(203, 255, 91, 0.08), transparent 52%),
    var(--panel-strong);
}

.curve-callout {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(203, 255, 91, 0.38);
  padding: 14px;
  background: rgba(203, 255, 91, 0.08);
}

.curve-callout strong {
  color: var(--acid);
  font-size: 1rem;
}

.curve-callout span {
  color: var(--cream);
  font-weight: 800;
}

.curve-callout small {
  color: var(--muted);
  line-height: 1.4;
}

.report-block {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(9, 9, 8, 0.32);
}

.report-block strong {
  color: var(--cream);
}

.report-block ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.report-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.report-block a {
  color: var(--acid);
}

.report-block li b {
  display: block;
  color: var(--cream);
}

.report-block li span {
  display: block;
  margin-top: 3px;
}

.method-note {
  font-size: 0.82rem;
  line-height: 1.45;
}

.result-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.result-columns div {
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(9, 9, 8, 0.32);
}

.result-columns strong {
  display: block;
  margin-bottom: 10px;
  color: var(--cream);
}

.result-columns ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.paywall-section {
  align-items: center;
}

.paywall-section > div:first-child {
  display: grid;
  gap: 20px;
}

.price-card {
  display: grid;
  gap: 18px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(203, 255, 91, 0.11), transparent 54%),
    rgba(246, 239, 225, 0.045);
}

.price-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price-card strong {
  color: var(--acid);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5.5rem, 13vw, 9rem);
  line-height: 0.82;
}

.assurance-grid {
  grid-template-columns: repeat(3, 1fr);
}

.legal-section {
  border-top: 1px solid var(--line);
}

.legal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.legal-grid article {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 24px;
}

.criteria-section {
  border-top: 1px solid var(--line);
}

.criteria-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.criteria-grid article {
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 22px;
}

.assurance-grid article,
.source-grid article,
.faq-grid article {
  display: grid;
  gap: 10px;
  min-height: 190px;
  padding: 24px;
}

.faq-section {
  border-top: 1px solid var(--line);
}

.faq-grid {
  grid-template-columns: repeat(3, 1fr);
}

.faq-grid p {
  color: var(--muted);
}

.result-section {
  border-top: 1px solid var(--line);
}

.result-copy {
  display: grid;
  gap: 18px;
}

.source-section {
  border-top: 1px solid var(--line);
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-grid article,
.source-grid article {
  border: 1px solid var(--line);
  background: rgba(246, 239, 225, 0.045);
}

.seo-grid article {
  display: grid;
  gap: 10px;
  min-height: 160px;
  padding: 24px;
}

.seo-grid p,
.source-grid p,
.source-links {
  color: var(--muted);
}

.source-links {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding-left: 18px;
}

.source-links:not(ul) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 0;
}

.source-links a {
  color: var(--cream);
}

.source-links:not(ul) a {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
}

.topic-page .topic-hero {
  min-height: 620px;
}

.topic-page .value-section .hero-actions {
  align-self: end;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 96px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span:first-child {
  color: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.language-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
  max-width: 720px;
  color: var(--muted);
  font-size: 0.78rem;
}

.language-footer-links a {
  color: var(--muted);
}

.language-footer-links a:hover {
  color: var(--cream);
}

@media (max-width: 960px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .split-section,
  .value-section,
  .paywall-section,
  .result-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .trust-strip,
  .value-grid,
  .criteria-grid,
  .assurance-grid,
  .legal-grid,
  .seo-grid,
  .source-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .flow-grid article {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .flow-grid article p {
    grid-column: 2;
  }

  .shell {
    grid-template-columns: 1fr;
  }

  .stage {
    min-height: 62vh;
  }

  .panel {
    min-height: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .result-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    overflow-x: hidden;
  }

  .site-header,
  .hero,
  .section,
  .trust-strip,
  .site-footer {
    width: calc(100% - 32px);
    max-width: 1160px;
  }

  .site-header {
    min-height: 66px;
    gap: 10px;
  }

  .site-logo {
    font-size: 1rem;
  }

  .site-nav {
    display: none;
  }

  .language-switcher {
    margin-left: auto;
    width: auto;
    max-width: calc(100vw - 150px);
    overflow: visible;
  }

  .language-trigger,
  .language-menu a {
    min-height: 32px;
    padding-inline: 7px;
  }

  .language-menu {
    grid-template-columns: 1fr;
    right: 0;
    width: min(280px, calc(100vw - 32px));
  }

  h1 {
    font-size: clamp(2.7rem, 12vw, 3.35rem);
  }

  h2 {
    font-size: clamp(2.25rem, 12vw, 3.35rem);
  }

  .section {
    padding-block: 72px;
  }

  .hero {
    padding-block: 42px 52px;
  }

  .hero-copy {
    gap: 18px;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .camera-section {
    padding-block: 54px;
  }

  .camera-section .section-heading {
    margin-bottom: 24px;
  }

  .camera-section {
    padding-inline: 16px;
  }

  .hero {
    display: block;
  }

  .hero-copy,
  .hero-lede,
  .section-heading p,
  .paywall-section p,
  .result-copy p {
    max-width: 100%;
    min-width: 0;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .language-footer-links {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
    min-width: 0;
  }

  .shell,
  .stage,
  .panel {
    min-height: auto;
  }

  .stage {
    min-height: 520px;
  }

  .face-guide {
    inset: 20% 14%;
  }

  .topbar,
  .controls,
  .diagnostic {
    left: 16px;
    right: 16px;
  }

  .controls {
    flex-direction: column;
    align-items: stretch;
  }

  .controls button {
    width: 100%;
  }

  .diagnostic {
    bottom: 130px;
  }

  .score {
    font-size: 4.8rem;
  }
}
