/* =====================================================================
   /check/ — free Website & Email Security Check.
   >= 1024px: layout B (form left, terminal right, report card under it).
   <  1024px: layout C (the terminal is the page: prompt inside it, report as its bottom sheet).
   ===================================================================== */
[data-theme="light"] {
  --ck-c-ok-bg: rgba(62,207,142,.15); --ck-c-ok: #00744a;
  --ck-c-fix-bg: #fdf1d8; --ck-c-fix: #8a5300;
  --ck-c-urg-bg: #fde4e2; --ck-c-urg: #b42318;
  --ck-c-note-bg: #e0f2fe; --ck-c-note: #075985;
  --ck-shadow-term: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -20px rgba(15,23,42,.35), 0 0 0 1px rgba(15,23,42,.08);
  --ck-sheet: #ffffff;
  --ck-brand: #175ddc;
  --ck-offer-bg: #0f0f0f; --ck-offer-border: #0f0f0f;
}
[data-theme="dark"] {
  --ck-c-ok-bg: rgba(62,207,142,.14); --ck-c-ok: #5fe0a6;
  --ck-c-fix-bg: rgba(245,184,74,.14); --ck-c-fix: #f5c56a;
  --ck-c-urg-bg: rgba(255,123,114,.14); --ck-c-urg: #ff9a92;
  --ck-c-note-bg: rgba(56,189,248,.14); --ck-c-note: #7dd3fc;
  --ck-shadow-term: 0 0 0 1px #2e2e2e, 0 24px 60px -20px rgba(0,0,0,.6);
  --ck-sheet: #141414;
  --ck-brand: #5b9bff;
  --ck-offer-bg: #0a0a0a; --ck-offer-border: #2e2e2e;
}
.ck {
  --t-bg: #0b0f17; --t-bar: #151a24; --t-line: #1f2633; --t-text: #c9d1d9; --t-dim: #7d8590; --t-cmd: #e6edf3;
  --t-ok: #3ecf8e; --t-warn: #f5b84a; --t-fail: #ff7b72; --t-info: #58c4f5;
  position: relative; z-index: 2;
  max-width: 760px; margin: 0 auto; padding: 72px 24px 96px;
  display: flex; flex-direction: column;
}
.ck [hidden] { display: none !important; }
.ck .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; }

/* ---- intro ---- */
.ck-left { display: contents; }
.ck-intro { order: 1; padding-bottom: 32px; }
.ck-right { order: 2; min-width: 0; }
.ck-checks { order: 3; }
.ck-pill { margin-bottom: 20px; }
.ck-intro h1 {
  font-family: var(--font-display); color: var(--text-heading);
  font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em;
  margin-bottom: 12px; text-wrap: balance;
}
.ck-lead { font-size: 17px; max-width: 56ch; color: var(--text-body); }

/* ---- fields (layout B form) ---- */
.ck-form-b { display: none; }
.ck-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-heading); margin-bottom: 6px; }
.ck input[type=text], .ck input[type=email] {
  width: 100%; height: 48px; line-height: 1.2; font: inherit; font-size: 15px; padding: 12px 14px;
  border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-card); color: var(--text-heading);
}
.ck input[type=text] { font-family: var(--font-mono); font-size: 14px; }
.ck input::placeholder { color: var(--text-muted); opacity: .8; }
.ck-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--text-body); cursor: pointer; }
.ck-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: #2eb878; flex: none; }
.ck .btn:focus-visible, .ck input:focus-visible, .ck a:focus-visible, .ck button:focus-visible, .ck .term-body:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ck .btn[disabled], .ck .runbtn[disabled] { opacity: .6; cursor: progress; transform: none; }
.ck-alert {
  font-size: 13.5px; line-height: 1.5; padding: 10px 12px; border-radius: 10px;
  background: var(--ck-c-urg-bg); color: var(--ck-c-urg); border: 1px solid color-mix(in srgb, var(--ck-c-urg) 30%, transparent);
}
.fine { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.ck-rc { margin: 10px 0 0; font-size: 11px; line-height: 1.4; color: var(--text-muted); opacity: .8; }

/* ---- what we check ---- */
.ck-checks { list-style: none; margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.ck-checks li { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-body); }
.ck-checks svg { width: 16px; height: 16px; color: var(--accent-link); flex: none; }

/* ---- window: terminal + report sheet (layout C) ---- */
.ck-window { border-radius: 14px; overflow: hidden; box-shadow: var(--ck-shadow-term); }
.term { background: var(--t-bg); font-family: var(--font-mono); color: var(--t-text); text-align: left; }
.term-bar {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 14px; background: var(--t-bar); border-bottom: 1px solid var(--t-line);
}
.dots { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25); }
.dots i:nth-child(2) { background: #febc2e; } .dots i:nth-child(3) { background: #28c840; }
.term-title {
  font-family: var(--font-sans); font-size: 12.5px; font-weight: 500; color: #9aa4b2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 190px);
}
.replay {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-sans); font-size: 12px; font-weight: 500; color: #9aa4b2;
  padding: 4px 10px; border-radius: 6px; border: 1px solid var(--t-line);
}
.replay:hover { color: #e6edf3; border-color: #3a4456; }

/* prompt (the run form inside the terminal) */
.prompt { padding: 18px 18px 6px; border-bottom: 1px solid var(--t-line); font-size: 13.5px; }
.pf { display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; }
.pf label { color: var(--t-dim); font-size: 12.5px; }
.pf label b { color: var(--t-ok); font-weight: 600; margin-right: 6px; }
.ck .pf input {
  font-family: var(--font-mono); font-size: 13.5px; height: auto; background: transparent;
  border: 0; border-bottom: 1px solid var(--t-line); border-radius: 0; padding: 6px 2px; color: #e6edf3; width: 100%;
}
.ck .pf { --field-bg: var(--t-bg); --field-text: #e6edf3; }   /* autofill keeps the terminal dark (site.css) */
.ck .pf input::placeholder { color: #4d5666; opacity: 1; }
.ck .pf input:focus { outline: none; border-bottom-color: var(--t-ok); }
.pf-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 14px 0 12px; }
.pf-foot .ck-consent { color: #a8b1bd; font-family: var(--font-sans); font-size: 13px; }
.pf-foot .ck-consent input { accent-color: #3ecf8e; }
.pf-foot .ck-rc { flex: 1 1 100%; margin: 0; color: #8b949e; font-family: var(--font-sans); }
.pf-foot .ck-alert { flex: 1 1 100%; font-family: var(--font-sans); background: rgba(255,123,114,.12); color: #ffc1bb; border-color: rgba(255,123,114,.3); }
.runbtn { font-family: var(--font-mono); font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 8px; background: var(--t-ok); color: #052b14; }
.runbtn:hover { background: #4adfa0; }
.runbtn kbd { font-family: inherit; opacity: .7; margin-left: 8px; font-weight: 500; }

/* log */
.term-body {
  padding: 16px 18px 18px; font-size: 13px; line-height: 1.75;
  max-height: max(320px, 62vh); overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #2a3242 transparent;
}
.ln { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: baseline; }
.ts { color: #4d5666; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.lb { min-width: 0; overflow-wrap: anywhere; }
.ln-ok .lb, .ln-warn .lb, .ln-fail .lb, .ln-info .lb { display: flex; }
.ln-cmd .lb { padding-left: 2ch; text-indent: -2ch; }
.ln-cmd { margin-top: 4px; }
.pr { color: var(--t-ok); font-weight: 600; }
.cm { color: var(--t-cmd); }
.sc { display: inline-block; margin-top: 10px; color: var(--t-dim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.ln-sec .ts { visibility: hidden; }
.nt { color: var(--t-dim); }
.tg { display: inline-block; flex: none; width: 42px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.tg-ok { color: var(--t-ok); } .tg-warn { color: var(--t-warn); } .tg-fail { color: var(--t-fail); } .tg-info { color: var(--t-info); }
.tx-warn { color: #f3d9a4; } .tx-fail { color: #ffc1bb; }
.dn { color: #e6edf3; font-weight: 500; }
.ln-done { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--t-line); }
.cur { display: inline-block; width: 8px; height: 15px; margin-left: 6px; vertical-align: -2px; background: var(--t-ok); animation: ck-blink 1.1s steps(1) infinite; }
@keyframes ck-blink { 50% { opacity: 0; } }
/* Phones: the idle cursor sits in the empty domain field (where typing starts) instead of the log. */
.pf-in { position: relative; display: block; min-width: 0; }
.pf-in > .cur { display: none; position: absolute; left: 0; top: 50%; margin: -8px 0 0; pointer-events: none; }
@media (max-width: 1023px) {
  .pf-in > input:placeholder-shown:not(:focus) { text-indent: 14px; }
  .pf-in > input:placeholder-shown:not(:focus) + .cur { display: inline-block; }
  [data-idle] .cur { display: none; }
}
.ln.in { animation: ck-lnin .28s ease-out both; }
.report.in { animation: ck-rvin .5s ease-out both; }
@keyframes ck-lnin { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes ck-rvin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ln.in, .report.in { animation: none; } .cur { animation: none; } }

/* ---- report (layout C: bottom sheet of the window) ---- */
.report { background: var(--ck-sheet); padding: 6px 26px 26px; border-top: 1px solid var(--border); color: var(--text-body); }
.report-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 0 14px; border-bottom: 1px solid var(--border); }
.report-top .meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.summary { display: flex; align-items: center; gap: 16px; }
.summary-num {
  font-size: 48px; font-weight: 800; letter-spacing: -.04em; line-height: 1;
  background: linear-gradient(120deg, #3ecf8e, #38bdf8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.summary strong { display: block; font-size: 18px; color: var(--text-heading); letter-spacing: -.01em; }
.summary span { font-size: 13px; color: var(--text-muted); }
.rows { list-style: none; display: flex; flex-direction: column; margin-bottom: 8px; }
.row { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); align-items: start; }
.row:first-child { border-top: 0; }
.row h4 { font-size: 15px; font-weight: 600; color: var(--text-heading); letter-spacing: -.02em; margin-bottom: 2px; }
.row p { font-size: 14.5px; line-height: 1.55; }
.chip { display: inline-flex; justify-content: center; padding: 3px 0; width: 68px; border-radius: 999px; font-size: 12px; font-weight: 600; margin-top: 1px; }
.chip-ok { background: var(--ck-c-ok-bg); color: var(--ck-c-ok); }
.chip-fix { background: var(--ck-c-fix-bg); color: var(--ck-c-fix); }
.chip-urgent { background: var(--ck-c-urg-bg); color: var(--ck-c-urg); }
.chip-note { background: var(--ck-c-note-bg); color: var(--ck-c-note); }
/* One-time fix offers (OPS-0290): a dark card in both themes plus compact rows, last in the findings list; on
   phones the block sits right under the finding it fixes (--ck-o, set by check.js). */
.rows > .row { order: var(--ck-o, 0); }
.rows > .offers { order: 999; margin: 4px 0 16px; }
.offer {
  padding: 24px; border-radius: 16px; border: 1px solid var(--ck-offer-border);
  background: var(--ck-offer-bg); color: #d4d4d4;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.offer-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(62,207,142,.14); color: #3ecf8e; font-size: 12px; font-weight: 600; }
.offer h3 { margin: 12px 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: #fafafa; overflow-wrap: anywhere; }
.offer-list { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.offer-buy { display: flex; flex-direction: column; align-items: stretch; gap: 10px; min-width: 220px; }
.offer-price { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #fafafa; }
.offer-fine { font-size: 13px; color: #898989; }
.ck .offer-btn {
  display: inline-flex; justify-content: center; align-items: center; padding: 12px 18px; border-radius: 12px;
  background: #3ecf8e; border: 1px solid #3ecf8e; color: #052b14; font-weight: 700; font-size: 15px; text-decoration: none;
}
.ck .offer-btn:hover, .ck .offer-btn:focus-visible { background: transparent; color: #3ecf8e; }   /* RULES.md 1: flip to outline */
.ck .offer-btn:focus-visible { outline-color: #3ecf8e; }
.offer .m { display: none; }
.offer-text { font-size: 14.5px; line-height: 1.55; }
.offer-more { list-style: none; margin-top: 6px; }
.offer-more li { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border); }
.offer-more li:first-child { border-top: 0; }
.offer-more strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--text-heading); }
.offer-more span { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.offer-more .offer-more-price { font-size: 15px; font-weight: 700; color: var(--text-heading); }
.offer-more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--accent-link); white-space: nowrap; }
.offer-more-link svg { width: 15px; height: 15px; }

.report-foot { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--border); }
.report-form { display: flex; flex-direction: column; gap: 10px; }
.report-form > label:first-child { display: block; font-size: 13px; font-weight: 600; color: var(--text-heading); margin-bottom: -4px; }
.report-form .inline { display: flex; gap: 10px; flex-wrap: wrap; }
.report-form .inline input { flex: 1 1 220px; }
.ck-consent-sm { font-size: 13px; }
.report-sent strong { display: block; font-size: 16px; color: var(--text-heading); margin-bottom: 4px; }
.report-sent p { font-size: 14.5px; }
.product + .product { border-top: 1px solid var(--border); padding-top: 18px; margin-top: 18px; }
.product-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.product-icon { width: 38px; height: 38px; color: var(--ck-brand); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.product-icon svg { width: 26px; height: 26px; }
.product-icon svg.mark > path, .product-icon svg.mark > rect { fill: currentColor; }
.product-icon svg.mark-hx { width: 34px; height: 34px; }   /* detailed mark: reads small at 26px */
.product-kicker { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.product h4 { font-size: 16px; color: var(--text-heading); letter-spacing: -.02em; }
.product > p { font-size: 14.5px; margin-bottom: 12px; }
.product-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--accent-link); }
.product-link svg { width: 15px; height: 15px; }
.products > .fine { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 16px; }

@media (max-width: 600px) {
  .ck { padding: 40px 12px 64px; }
  .ck-intro { padding: 0 4px 22px; }
  .ck-lead { font-size: 16px; }
  .ck-checks { grid-template-columns: 1fr; padding: 0 4px; }
  .prompt { padding: 14px 14px 4px; }
  .pf { grid-template-columns: 1fr; gap: 4px; }
  .pf label { margin-top: 8px; }
  .runbtn { width: 100%; }
  .term-body { padding: 14px 12px 16px; font-size: 12px; }
  .ln { grid-template-columns: 1fr; gap: 0; }
  .ts { display: none; }
  .term-title { font-size: 11px; max-width: calc(100% - 170px); }
  .tt-host { display: none; }
  .report { padding: 4px 16px 20px; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .rows > .offers { order: var(--ck-o, 999); margin: 0 0 18px; }
  .offer { padding: 20px 18px; grid-template-columns: 1fr; gap: 12px; }
  .offer-more li { grid-template-columns: 1fr auto; }
  .offer-more li > div { grid-column: 1 / -1; }
  .offer .d { display: none; } .offer .m { display: inline; }
  .offer h3 { margin: 12px 0 8px; font-size: 20px; }
  .offer-buy { min-width: 0; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 8px; }
  .offer-price { font-size: 34px; }
  .ck .offer-btn { flex: 1 1 100%; min-height: 48px; font-size: 16px; margin-top: 4px; }
  .report-form .btn { width: 100%; }
}

/* ---- layout B: desktop and landscape tablet ---- */
@media (min-width: 1024px) {
  .ck {
    max-width: var(--container); padding: 64px 24px 96px;
    display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: start;
  }
  .ck-left { display: block; }
  .ck-intro { padding: 0; }
  .ck-intro h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.08; margin: 0 0 14px; }
  .ck-lead { font-size: 16.5px; margin-bottom: 26px; }
  .ck-form-b { display: flex; flex-direction: column; gap: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
  .ck-form-b .btn { width: 100%; }
  .ck-form-c { display: none; }
  .ck-checks { margin-top: 26px; }
  .ck-window { display: flex; flex-direction: column; gap: 24px; border-radius: 0; overflow: visible; box-shadow: none; }
  .term { border-radius: 12px; overflow: hidden; box-shadow: var(--ck-shadow-term); }
  .term-body { max-height: 640px; }
  .report { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; padding: 0; }
  .report-top { padding: 22px 26px; gap: 20px; }
  .report-top .meta { text-align: right; }
  .rows { padding: 4px 26px 8px; margin: 0; }
  .report-foot { grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 0; }
  .report-foot > div { padding: 22px 26px; }
  .report-foot > div + div { border-left: 1px solid var(--border); }
}
@media (min-width: 1024px) and (max-width: 1100px) {
  .report-foot { grid-template-columns: 1fr; }
  .report-foot > div + div { border-left: 0; border-top: 1px solid var(--border); }
}
@media (min-width: 1024px) and (min-height: 860px) {
  .ck-left { position: sticky; top: 110px; }
}
