/* Verify-result modal,v10 (driven by /js/landing-app.js). Plain-English, four
   verdicts, no SMTP transcript. Tokens are scoped to .m-stage so they never
   clobber the landing page's own :root palette. */

.m-stage {
  /* modal-local palette (scoped, not global) */
  --paper: #f6f3ec;
  --paper-2: #efeae0;
  --panel: #fffefb;
  --panel-2: #faf7f1;
  --ink: #14120e;
  --ink-soft: #2a2620;
  --muted: #6f6a60;
  --muted-2: #908a7e;
  --line: #ddd8cd;
  --line-2: #c7c1b4;
  --accent: #ff5600;
  --accent-dk: #cc4400;
  --accent-lt: #ff8a4d;
  --good: #067647;
  --warn: #b54708;
  --danger: #c41c1c;
  --m-mono: "IBM Plex Mono", "Courier New", ui-monospace, monospace;
  --m-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  position: fixed; inset: 0; z-index: 90;
  background: rgba(20, 18, 12, 0.55);
  display: none;
}
.m-stage[data-open="true"] { display: block; }
.m-stage, .m-stage *, .m-stage *::before, .m-stage *::after { box-sizing: border-box; }
.m-stage a { color: inherit; text-decoration: none; }
.m-stage button { font: inherit; cursor: pointer; }
body.m-open { overflow: hidden; }

.m-fit { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.m-fit > .tick { position: absolute; width: 8px; height: 8px; background: var(--accent); z-index: 4; }
.m-fit > .tick.tl { top: -4px; left: -4px; } .m-fit > .tick.tr { top: -4px; right: -4px; }
.m-fit > .tick.bl { bottom: -4px; left: -4px; } .m-fit > .tick.br { bottom: -4px; right: -4px; }
@media (prefers-reduced-motion: no-preference) {
  .m-stage[data-open="true"] .m-fit { animation: m-fade 0.12s ease; }
  @keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* ── Modal plate ── */
.m-modal {
  position: relative; width: 940px;
  font-family: var(--m-sans);
  font-size: 15.5px; line-height: 1.55; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 40px 90px -30px rgba(20, 18, 12, 0.5);
  overflow: hidden; display: grid; grid-template-rows: auto 1fr;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

.m-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.m-head-left { display: flex; align-items: center; gap: 12px; font-family: var(--m-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.m-brand { position: relative; width: 28px; height: 28px; border-radius: 6px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--m-sans); font-size: 11px; font-weight: 600; }
.m-brand::after { content: ""; position: absolute; top: 4px; right: 4px; width: 3px; height: 3px; background: var(--accent); border-radius: 1px; }
.m-head-left .timing { color: var(--muted); }
.m-head-left .sep { color: var(--line-2); }
.m-close { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--muted); }
.m-close:hover { color: var(--ink); border-color: var(--ink); }
.m-close svg { width: 12px; height: 12px; }

/* ── Body: 6/5 split ── */
.m-body { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: stretch; }
.m-left { display: flex; flex-direction: column; min-width: 0; }

.m-addr { display: flex; align-items: baseline; gap: 14px; padding: 16px 26px; border-bottom: 1px dashed var(--line-2); }
.m-addr .label { font-family: var(--m-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.m-addr .m-value { padding: 0; border: 0; font-family: var(--m-mono); font-size: 16px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.m-addr .meta { margin-left: auto; font-family: var(--m-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.m-verdict { padding: 24px 26px 20px; }
.m-stage .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1px solid; white-space: nowrap; }
.m-stage .chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.m-stage .chip-good { color: var(--good); border-color: rgba(6,118,71,0.28); background: rgba(6,118,71,0.08); }
.m-stage .chip-warn { color: var(--warn); border-color: rgba(181,71,8,0.28); background: rgba(181,71,8,0.08); }
.m-stage .chip-danger { color: var(--danger); border-color: rgba(196,28,28,0.28); background: rgba(196,28,28,0.07); }
.m-stage .chip-muted { color: var(--muted); border-color: var(--line-2); background: var(--paper-2); }
.m-headline { margin: 16px 0 0; font-size: clamp(28px, 2.6vw, 40px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.06; color: var(--ink); text-wrap: balance; }
.m-headline em { font-style: normal; font-weight: 500; color: var(--accent); }
.m-sub { margin-top: 14px; font-size: 15.5px; line-height: 1.58; color: var(--muted); max-width: 50ch; text-wrap: pretty; }
.m-sub strong { color: var(--ink); font-weight: 500; }

/* plain-English checks */
.m-checks { padding: 4px 26px 22px; margin-top: auto; }
.m-checks-head { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.m-checks-head .mono-label { font-family: var(--m-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.m-check { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.m-check:last-child { border-bottom: 0; }
.m-check .icon { display: grid; place-items: center; }
.m-check .icon svg { width: 16px; height: 16px; }
.m-check .label { font-size: 15px; font-weight: 450; color: var(--ink); }
.m-check[data-v="good"] .icon { color: var(--good); }
.m-check[data-v="warn"] .icon { color: var(--warn); }
.m-check[data-v="warn"] .label { color: var(--ink); font-weight: 500; }
.m-check[data-v="bad"] .icon { color: var(--danger); }
.m-check[data-v="bad"] .label { color: var(--ink); font-weight: 500; }

/* ── Right column: plain summary + signup ── */
.m-side { position: relative; background: radial-gradient(560px 420px at 80% 0%, #221c13, #14120e 64%); color: #f4efe7; border-left: 1px solid var(--line-2); padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; overflow: hidden; }
.m-dots { position: absolute; inset: 0; z-index: 0; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 12%, #000 26%, transparent 78%); mask-image: radial-gradient(ellipse 80% 70% at 75% 12%, #000 26%, transparent 78%); }
.m-dots i { position: absolute; width: 2px; height: 2px; background: rgba(245,241,233,0.3); }
.m-side > *:not(.m-dots) { position: relative; z-index: 1; }
.m-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.m-side-head .mono-label { font-family: var(--m-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #8a847b; }
.m-side-head .mono-label.accent { color: var(--accent-lt); }

.m-sum { display: grid; }
.m-sum > div { display: grid; gap: 5px; padding: 16px 0; border-top: 1px solid #2d2a24; }
.m-sum > div:first-child { border-top: 0; padding-top: 2px; }
.m-sum dt { font-family: var(--m-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8a847b; }
.m-sum dd { font-size: 16px; line-height: 1.4; color: #f4efe7; font-weight: 450; }
.m-sum dd .acc { color: var(--accent-lt); font-weight: 500; }

.m-signup { margin-top: auto; display: grid; gap: 12px; }
.m-signup-points { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 16px; border-top: 1px solid #2d2a24; }
.m-signup-points span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--m-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8a847b; white-space: nowrap; }
.m-signup-points span::before { content: ""; width: 5px; height: 5px; background: var(--accent); flex: none; }
.m-signup .m-cta { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 15.5px; font-weight: 500; transition: background 0.14s ease, transform 0.14s ease; }
.m-signup .m-cta:hover { background: var(--accent-dk); transform: translateY(-1px); }
.m-signup .alt { text-align: center; font-family: var(--m-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #8a847b; }
.m-signup .alt a { color: #d8d3c9; border-bottom: 1px solid #3a352e; padding-bottom: 1px; }
.m-signup .alt a:hover { color: var(--accent-lt); border-color: var(--accent-lt); }

@media (max-width: 700px) {
  .m-modal { width: 94vw; }
  .m-body { grid-template-columns: 1fr; }
  .m-side { border-left: 0; border-top: 1px solid var(--line-2); }
}
