/* MailChannels exposure checker. Lema marketing palette (lema-design tokens/colors.css), inlined.
   Red = risk only. Green = CTA or locked. Shapes (square, triangle, L-corner) are markers only.
   Sizes are in rem off one root, so --scale (XL screens) scales type, spacing and the grid together. */

@font-face {
  font-family: "Rethink Sans";
  src: url("fonts/RethinkSans-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --scale: 1;
  --lema-black: #071517;
  --lema-white-grey: #F0EFEB;
  --lema-white: #FAFAF9;
  --lema-green: #67DEA5;
  --lema-green-hover: #8fe9bd;
  --lema-green-700: #1c5c3d;
  --lema-red: #F45B69;
  --lema-red-200: #f9ced3;
  --lema-red-700: #8f2530;
  --lema-ink-70: #9fb0b2;
  --lema-ink-50: #7f9092;
  --hairline-light: #dcdbd5;
  --muted: #5b6a6c;
  --body-ink: #2a393b;
  --field-border: #cdcbc3;

  --font-sans: "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius-sm: 0.5rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --gutter: 1rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  font-size: calc(100% * var(--scale));
  -webkit-text-size-adjust: 100%;
  background: var(--lema-white-grey); /* never a dark void below the footer */
}
html.page-embed { background: transparent; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--lema-black);
  background: var(--lema-white-grey);
  -webkit-font-smoothing: antialiased;
}
img { display: block; }
p { margin: 0; }
code, .mono { font-family: var(--font-mono); }
code { font-size: 0.9em; overflow-wrap: anywhere; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 0.1875rem solid var(--lema-black); outline-offset: 0.125rem; }
.hero :focus-visible, .footer :focus-visible, .record :focus-visible { outline-color: var(--lema-green); }

/* one grid: 960 px of content on desktop (1024 px with 32 px gutters) */
.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- highlight block (brand) ---------- */
.hl {
  color: var(--lema-black);
  padding: 0 0.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl-red { background: var(--lema-red); }
.hl-green { background: var(--lema-green); }
.hl-grey { background: var(--hairline-light); }
.hl-black { background: var(--lema-black); color: var(--lema-green); }

/* ---------- eyebrows ---------- */
.eyebrow { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
.eyebrow-green { color: var(--lema-green); }

/* ---------- buttons + fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0 1.25rem;
  border: 0; border-radius: var(--radius-md);
  font: 700 1rem/1.1 var(--font-sans);
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.btn-green { background: var(--lema-green); color: var(--lema-black); }
.btn-green:hover { background: var(--lema-green-hover); }
.btn-dark { background: var(--lema-black); color: var(--lema-white-grey); }
.btn-dark:hover { background: #1d2c2e; }

.field {
  width: 100%; min-width: 0;
  min-height: 3rem; padding: 0 0.875rem;
  border-radius: var(--radius-md);
  font: 400 1rem/1.2 var(--font-sans);
}
.field-dark { background: var(--lema-white); color: var(--lema-black); border: 0; }
.field-light { background: #fff; color: var(--lema-black); border: 1.5px solid var(--field-border); }
.field-light:focus { border-color: var(--lema-black); outline: none; box-shadow: 0 0 0 0.1875rem rgba(103, 222, 165, 0.45); }
.field-light[aria-invalid="true"] { border-color: var(--lema-red-700); }
.field::placeholder { color: #8a9698; }
.field.mono { font-family: var(--font-mono); font-size: 0.9375rem; }
.field.mono::placeholder { font-family: var(--font-sans); font-size: 1rem; }

.link-btn {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 0.9375rem/1.4 var(--font-sans); color: var(--lema-black);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.1875rem;
}
.link-btn:hover { text-decoration-color: var(--lema-green-700); }
.arrow-link {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; color: var(--lema-black);
  text-decoration: underline; text-decoration-color: var(--lema-green); text-decoration-thickness: 0.125rem; text-underline-offset: 0.25rem;
}
.arrow-link::after { content: ""; width: 0.5rem; height: 0.625rem; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ---------- hero ---------- */
.hero { background: var(--lema-black); color: var(--lema-white-grey); padding: 1.5rem 0 2rem; transition: padding 200ms ease-out; }
.hero-logo { width: 3.625rem; height: auto; margin-left: -8px; }
.hero-grid { display: grid; gap: 1.5rem; align-items: center; margin-top: 1rem; }
.hero-copy { min-width: 0; }
.hero-art { display: none; }
.hero-title { text-wrap: balance; margin: 0.5rem 0 1.125rem; font-size: 2.125rem; line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; }
.hero-title .hl { white-space: nowrap; }
.check-form { display: flex; gap: 0.5rem; }
.check-form .field { flex: 1; min-height: 3.25rem; font-size: 1.0625rem; }
.check-form .btn { min-height: 3.25rem; padding: 0 1.375rem; font-size: 1.0625rem; }

/* the privacy line's slot also carries the input error: fixed height, nothing moves */
.form-note { margin-top: 0.625rem; min-height: calc(2 * 1.45em); font-size: 0.875rem; line-height: 1.45; text-wrap: balance; }
.privacy { color: var(--lema-ink-70); }
.form-error { font-weight: 600; color: var(--lema-red); }

/* landing: the first screen is the hero; it grows to fill tall screens, content centered */
body:not(.has-result) .hero { flex: 1 0 auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body:not(.has-result) .hero-grid { flex: 1; align-content: center; padding-bottom: 8vh; } /* sits a little above centre */

/* result: the hero compacts so the verdict and the main action reach the fold */
.hero .eyebrow, .hero-art { max-height: 25rem; transition: max-height 200ms ease-out, opacity 200ms ease-out, margin 200ms ease-out; }
.hero-title { transition: font-size 200ms ease-out, margin 200ms ease-out; }
.hero.is-compact { padding: 1.25rem 0 1.5rem; }
.hero.is-compact .eyebrow, .hero.is-compact .hero-art { max-height: 0; opacity: 0; margin: 0; overflow: hidden; }
.hero.is-compact .hero-grid { margin-top: 0.75rem; }
.hero.is-compact .hero-title { font-size: 1.625rem; margin: 0 0 0.875rem; }
.hero.is-compact .hl { background: none; color: inherit; padding: 0; }

main { display: flex; flex-direction: column; }
.has-result main { flex: 1 0 auto; }

/* ---------- bands ---------- */
.band-result { flex: 1 0 auto; background: var(--lema-white-grey); padding: 1.5rem 0 3rem; }
.band-green { background: var(--lema-green); color: var(--lema-black); padding: 2rem 0; }
.cta-line { text-wrap: balance; max-width: none; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; }
.band-btn { margin-top: 1.125rem; }
.cta-blog { margin-top: 1rem; }
.band-green .arrow-link { text-decoration-color: var(--lema-black); }

.footer { background: var(--lema-black); color: var(--lema-white-grey); padding: 1.5rem 0; }
.lockup { display: flex; align-items: center; gap: 0.875rem; }
.lockup img { width: 4.5rem; height: auto; margin-left: -10px; }
.lockup span { font-size: 0.9375rem; font-weight: 600; color: var(--lema-ink-70); }

/* ---------- result card ---------- */
.result { margin: 0; }
.card {
  position: relative;
  background: var(--lema-white);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* a coloured top rule only where the colour means something: red = risk, green = locked */
.card-exposed::before, .card-open::before, .card-locked::before { content: ""; display: block; height: 0.375rem; }
.card-exposed::before, .card-open::before { background: var(--lema-red); }
.card-locked::before { background: var(--lema-green); }
.card-checking { background: transparent; }
.card-enter { animation: card-in 180ms ease-out both; }
@keyframes card-in { from { opacity: 0; transform: translateY(0.375rem); } to { opacity: 1; transform: none; } }

.layer { padding: 1.125rem 1.25rem 1.25rem; }
.layer + .layer { border-top: 1px solid var(--hairline-light); }

.eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.eyebrow-row .link-btn { font-size: 0.875rem; }
.state-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; }
.shape { width: 0.625rem; height: 0.625rem; flex: none; fill: currentColor; }
.tone-red { color: var(--lema-red-700); }
.tone-red .shape { fill: var(--lema-red); }
.tone-green { color: var(--lema-green-700); }
.tone-green .shape { fill: var(--lema-green-700); }
.tone-neutral { color: var(--muted); }

/* the verdict is always the largest type below the hero */
.verdict { margin: 0.5rem 0 0; font-size: 1.625rem; line-height: 1.16; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
.verdict:focus, .verdict:focus-visible { outline: none; } /* focused only to move screen readers here */
.verdict .acct { font-weight: 600; }
.consequence { margin-top: 0.625rem; font-size: 1.0625rem; color: var(--body-ink); max-width: 62ch; }
.consequence strong { color: var(--lema-black); }

/* the two yes/no rows: neutral markers, only the answer carries colour */
.qa { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid var(--hairline-light); }
.qa-row { display: grid; grid-template-columns: 0.5rem 1fr; gap: 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--hairline-light); }
.qa-row:last-child { border-bottom: 0; padding-bottom: 0; }
.qa-mark { width: 0.5rem; height: 0.5rem; margin-top: 0.5rem; fill: var(--lema-ink-70); }
.qa-q { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; font-size: 1rem; font-weight: 500; line-height: 1.4; color: var(--body-ink); }
.qa-q > span:first-child { overflow-wrap: anywhere; }
.qa-a {
  flex: none; margin-top: 1px; padding: 0.125rem 0.5625rem; border-radius: 62.4375rem;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; line-height: 1.5;
  background: #e8e7e1; color: #364141;
}
.qa-risk .qa-a { background: var(--lema-red-200); color: var(--lema-red-700); }
.qa-sub { margin-top: 0.1875rem; font-size: 0.9375rem; color: var(--muted); line-height: 1.4; max-width: 62ch; }
.qa-sub code { color: var(--body-ink); }

/* ---------- fix: one step + "Do it yourself" ---------- */
.layer-fix .eyebrow { margin-bottom: 0.5rem; }
.fix-lead { font-size: 1.0625rem; color: var(--body-ink); max-width: 62ch; }
.fix-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem 1rem; margin-top: 0.875rem; }
.fix-actions .btn-green { flex: 1 1 100%; }
.or-link { font-size: 0.9375rem; color: var(--muted); }
.layer-actions .fix-actions { margin-top: 0; }
.card-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.125rem; }

.diy { margin-top: 1.125rem; }
.diy-body { margin-top: 0.875rem; }
.fix-label { display: block; font-size: 0.9375rem; font-weight: 700; }
.fix-hint { margin: 0.125rem 0 0.5rem; font-size: 0.875rem; color: var(--muted); max-width: 62ch; }
.fix-sublead { margin-top: 0.875rem; font-size: 0.9375rem; font-weight: 700; }
.record {
  margin-top: 0.75rem;
  display: grid; gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--lema-black); color: var(--lema-white-grey);
  border-radius: 0.75rem;
}
.fix-sublead + .record { margin-top: 0.5rem; }
.rec-grid { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.75rem; margin: 0; font-size: 0.875rem; line-height: 1.55; }
.rec-grid dt { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lema-ink-70); line-height: 1.9; }
.rec-grid dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rec-id { color: var(--lema-green); font-weight: 700; }
.rec-id.is-placeholder { color: var(--lema-ink-50); font-weight: 400; font-style: italic; }
.btn-copy { width: 100%; min-height: 2.5rem; padding: 0 0.875rem; border-radius: var(--radius-sm); font-size: 0.875rem; background: var(--lema-green); color: var(--lema-black); }
.btn-copy:hover { background: var(--lema-green-hover); }
.btn-copy:disabled { background: transparent; color: var(--lema-ink-70); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); cursor: not-allowed; font-weight: 500; }
.fix-warn { margin-top: 0.75rem; font-size: 0.9375rem; color: var(--body-ink); max-width: 62ch; }
.fix-warn strong { color: var(--lema-black); }
.fix-alt { margin-top: 0.25rem; font-size: 0.9375rem; color: var(--muted); max-width: 62ch; }
.note { margin-top: 0.625rem; font-size: 0.875rem; color: var(--muted); max-width: 62ch; }

/* ---------- not-affected: check the next name ---------- */
.another-label { font-size: 1rem; color: var(--body-ink); max-width: 62ch; }
.another-go { margin-top: 0.625rem; }
.another-go .link-btn { font-size: 1rem; }

/* ---------- proof ---------- */
.proof summary, .diy summary {
  display: flex; align-items: center; gap: 0.625rem;
  list-style: none; cursor: pointer;
  font-size: 1rem; font-weight: 700;
  min-height: 1.75rem;
}
.proof summary::-webkit-details-marker, .diy summary::-webkit-details-marker { display: none; }
.proof-mark { width: 0.625rem; height: 0.625rem; fill: var(--lema-black); transition: transform 0.15s ease; }
.proof[open] > summary .proof-mark, .diy[open] > summary .proof-mark { transform: rotate(90deg); }
.diy summary { font-size: 0.9375rem; }
.proof-body { margin-top: 0.25rem; }
.proof h4 { margin: 1.125rem 0 0.375rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.proof h4:first-child { margin-top: 0.75rem; }
.chain, .raw {
  margin: 0;
  padding: 0.5rem 0.625rem;
  background: var(--lema-white-grey);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem; line-height: 1.5;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; /* break between tokens */
}
.raw + .raw { margin-top: 0.25rem; }
.bad { color: var(--lema-red-700); background: var(--lema-red-200); font-weight: 700; border-radius: 0.1875rem; padding: 0 0.125rem; }
/* the culprit never splits mid-token; a token wider than the box still wraps inside itself */
.proof .bad { display: inline-block; max-width: 100%; overflow-wrap: anywhere; vertical-align: bottom; }
.found-note { margin-top: 0.25rem; font-size: 0.8125rem; color: var(--muted); }
/* SPF chain: numbered steps on one rail, no indentation per level */
.spf-chain { list-style: none; margin: 0; padding: 0; }
.spf-step, .spf-skip { position: relative; padding: 0 0 0.875rem 1.875rem; }
.spf-step::before, .spf-skip::before { /* the rail to the next step */
  content: ""; position: absolute; left: 0.6875rem; top: 1.5rem; bottom: 0.125rem;
  width: 0.125rem; background: var(--hairline-light); border-radius: 1px;
}
.spf-skip::before { background: none; border-left: 0.125rem dashed var(--hairline-light); width: 0; }
.spf-chain > li:last-child { padding-bottom: 0; }
.spf-chain > li:last-child::before { display: none; }
.spf-num {
  position: absolute; left: 0; top: 0;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--lema-black); color: var(--lema-white); font: 700 0.75rem/1 var(--font-sans);
}
.spf-skip .spf-num { background: var(--lema-white); color: var(--muted); border: 0.125rem dashed var(--field-border); }
.spf-head { display: flex; align-items: baseline; gap: 0.5rem; min-height: 1.5rem; padding-top: 0.125rem; }
.spf-name { flex: 1; min-width: 0; font: 700 0.8125rem/1.4 var(--font-mono); overflow-wrap: anywhere; }
.spf-copy { flex: none; font-size: 0.75rem; color: var(--muted); }
/* phone-sized hit areas (~42px) without moving anything */
.spf-skip .link-btn, .spf-copy { padding: 0.75rem 0.5rem; margin: -0.75rem -0.5rem; }
.fold, .tok-link { position: relative; }
.fold::after, .tok-link::after { content: ""; position: absolute; inset: -0.5rem 0; } /* taller, not wider: neighbours stay clickable */
.fold { z-index: 1; } /* a pill wrapped just above a link keeps its own taps */
.fold::after { inset: -0.5rem 0 0; }
.spf-skip-text { display: block; padding-top: 0.1875rem; font-size: 0.8125rem; color: var(--muted); }
.spf-skip .link-btn { font-size: 0.8125rem; }
.spf-step .raw { margin-top: 0.3125rem; }
.spf-step:focus { outline: none; }
.spf-ping > .spf-head .spf-name { animation: spf-ping 1.4s ease-out; }
@keyframes spf-ping { from { background: rgba(103, 222, 165, 0.55); } to { background: transparent; } }
/* tokens */
.hop-term { font-weight: 700; color: var(--lema-black); }
.tok-link {
  font: inherit; color: var(--lema-black); font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--lema-green); text-decoration-thickness: 0.125rem; text-underline-offset: 0.1875rem;
  overflow-wrap: anywhere; text-align: left;
}
.tok-link.bad { color: var(--lema-red-700); background: var(--lema-red-200); border-radius: 0.1875rem; padding: 0 0.125rem; text-decoration-color: var(--lema-red-700); }
.fold {
  font: 600 0.75rem/1.5 var(--font-sans); color: var(--body-ink); cursor: pointer;
  background: var(--lema-white); border: 1px solid var(--field-border); border-radius: 999px; padding: 0 0.5rem;
  vertical-align: baseline; white-space: nowrap;
}
.fold::before { content: "+ "; color: var(--muted); }
.fold[aria-expanded="true"]::before { content: "− "; }
.fold:hover { border-color: var(--lema-black); }
/* includes off the path: one line each, one click open; dimmed when a path exists */
.branches { list-style: none; margin: 0.375rem 0 0; padding: 0; font-size: 0.8125rem; }
.branches li { margin-top: 0.1875rem; overflow-wrap: anywhere; }
.branches .branches { margin-left: 0.25rem; padding-left: 0.75rem; border-left: 1px dashed var(--field-border); }
.proof .branch > summary { display: flex; align-items: baseline; gap: 0; min-height: 0; font-size: inherit; font-weight: 400; cursor: pointer; list-style: none; }
.branch > summary::-webkit-details-marker { display: none; }
.branch > summary::before { content: "▸"; flex: none; width: 0.875rem; color: var(--muted); transition: transform 0.15s ease; }
.branch[open] > summary::before { transform: rotate(90deg); }
@media (pointer: coarse) { .proof .branch > summary { min-height: 1.5rem; align-items: center; } }
.branch-flat { padding-left: 0.875rem; }
.branch-term { font-size: 0.8125rem; color: var(--body-ink); }
.branch-note { color: var(--muted); font-size: 0.75rem; overflow-wrap: normal; white-space: nowrap; }
/* an opened off-path record: lighter than a path step */
.branch > .raw { margin-top: 0.25rem; font-size: 0.75rem; padding: 0.375rem 0.5rem; background: transparent; border: 1px solid var(--hairline-light); }
.branches.dim .branch-term { color: var(--muted); }
.branches.dim .branch-missing .branch-term { color: var(--body-ink); }
.branch-missing .branch-note { color: var(--body-ink); }
.branches.dim .branch:not([open]) > summary:hover .branch-term { color: var(--body-ink); }
.branches.dim .branch[open] > summary .branch-term { color: var(--body-ink); }
.raw-empty { font-size: 0.8125rem; color: var(--muted); font-style: italic; }
/* a record outside the chain (the lock, or the domain's SPF when there is no path) */
.proof-rec .spf-name { margin: 0; }
.proof-rec .raw { margin-top: 0.3125rem; }

/* ---------- progress ---------- */
.steps { list-style: none; margin: 0.875rem 0 0.25rem; padding: 0; display: grid; gap: 0.75rem; }
.step { display: flex; align-items: center; gap: 0.75rem; font-size: 1.125rem; }
.step-mark { display: inline-flex; }
.step .shape { width: 0.75rem; height: 0.75rem; }
.step.is-pending { color: var(--lema-ink-50); }
.step.is-pending .shape path { fill: none; stroke: var(--lema-ink-70); stroke-width: 1.5; }
.step.is-active { font-weight: 700; }
.step.is-active .shape { fill: var(--lema-green-700); animation: pulse 1s ease-in-out infinite alternate; }
.step.is-done .shape { fill: var(--lema-black); }
@keyframes pulse { from { opacity: 1; } to { opacity: 0.3; } }

/* ---------- demo index ---------- */
.demo-list { margin: 0.75rem 0 0; padding-left: 1.125rem; columns: 2; font-family: var(--font-mono); font-size: 0.875rem; }
.demo-list a { color: var(--lema-black); }

/* ---------- wider screens ---------- */
@media (min-width: 520px) {
  .record { grid-template-columns: 1fr auto; align-items: start; }
  .btn-copy { width: auto; }
}
@media (min-width: 720px) {
  :root { --gutter: 2rem; }
  .hero { padding: 1.75rem 0 3rem; }
  .hero-logo { width: 5rem; margin-left: -11px; }
  .hero-grid { margin-top: 1.5rem; }
  .hero-title { font-size: 3.5rem; margin: 0.75rem 0 1.75rem; }
  .hero.is-compact .hero-title { font-size: 2rem; }
  .check-form { max-width: 37.5rem; }
  .check-form .field, .check-form .btn { min-height: 3.625rem; }
  .check-form .btn { padding: 0 2rem; }
  .form-note { min-height: 1.45em; }
  .band-result { padding: 2.5rem 0 4.5rem; }
  .layer { padding: 1.625rem 2.25rem 1.75rem; }
  .verdict { font-size: 2.375rem; line-height: 1.12; }
  .consequence { font-size: 1.1875rem; }
  .qa-row { padding: 0.875rem 0; }
  .qa-q { font-size: 1.0625rem; }
  .fix-actions .btn-green { flex: 0 0 auto; padding: 0 1.375rem; }
  .band-green { padding: 3rem 0; }
  .footer { padding: 2rem 0; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 37.5rem) 1fr; gap: 2.5rem; }
  .hero-art { display: block; width: 18.75rem; height: 18.75rem; justify-self: end; }
  .hero-title { font-size: 4rem; }
}
/* XL screens: scale type, spacing and the grid together */
@media (min-width: 2200px) {
  :root { --scale: 1.2; }
}

/* ---------- embed.html: one panel that reads as a tool ---------- */
.page-embed body { min-height: 0; display: block; background: transparent; }
.widget { background: #FAFAF8; border: 1px solid var(--hairline-light); border-radius: 1rem; padding: 1.25rem; }
.widget-title { margin: 0 0 0.875rem; font-size: 1.375rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
.widget .check-form { max-width: none; }
.widget .check-form .field, .widget .check-form .btn { min-height: 3.25rem; }
.widget .privacy { color: var(--muted); }
.widget .form-error { color: var(--lema-red-700); }
/* the result renders flat inside the panel: a hairline (or the red / green rule), no second card */
.widget .result { margin-top: 0.875rem; }
.widget .card { background: transparent; border: 0; border-radius: 0; overflow: visible; border-top: 1px solid var(--hairline-light); }
.widget .card-exposed, .widget .card-open, .widget .card-locked { border-top: 0; }
.widget .card::before { height: 0.25rem; }
.widget .layer { padding: 1.125rem 0; }
.widget .layer:last-child { padding-bottom: 0; }
.widget-foot { margin-top: 1rem; font-size: 0.8125rem; color: var(--muted); }
.widget-foot a { display: inline-flex; align-items: center; gap: 0.125rem; color: var(--muted); text-decoration: none; }
.widget-foot a:hover { color: var(--lema-black); }
.widget-foot img { width: 3.8125rem; height: auto; margin-left: -4px; }
@media (min-width: 640px) {
  .widget { padding: 1.5rem; }
  .widget-title { font-size: 1.75rem; }
  .widget .verdict { font-size: 1.875rem; }
  .widget .fix-actions .btn-green { flex: 0 0 auto; padding: 0 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
