/* DC WebApps — one stylesheet for every page. Mobile first; no external fonts or libraries. */
:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --soft: #f1f5f9;
  --bg: #ffffff;
  --navy: #0b2545;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --amber-ink: #92400e;
  --amber-bg: #fef3c7;
  --red-ink: #b91c1c;
  --red-bg: #fee2e2;
  --green-ink: #166534;
  --green-bg: #dcfce7;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 8px 24px rgb(15 23 42 / 6%);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; /* Inter is self-hosted on dcwebapp.com; the app falls back to system fonts */
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
section { padding: 3.5rem 0; }
section[id], [id='check'] { scroll-margin-top: 5rem; } /* keep anchored headings clear of the sticky header */
.section-soft { background: var(--soft); }
.note { color: var(--muted); font-size: 0.95rem; }
.eyebrow { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; margin-bottom: 0.75rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
[hidden] { display: none !important; }

/* Top bars */
.maintenance { background: var(--amber-bg); color: var(--amber-ink); text-align: center; padding: 0.6rem 1rem; font-weight: 600; }
.alert-bar { background: var(--navy); color: #fff; font-size: 0.92rem; padding: 0.6rem 0; }
.alert-bar a { color: #fcd34d; font-weight: 600; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--brand); }
.logo-svg { height: 1.55em; width: auto; vertical-align: -0.42em; margin-right: 0.4rem; color: var(--navy); }
.logo .logo-svg { height: 30px; width: 43px; vertical-align: -8px; } /* whole pixels keep the mark's straight edges sharp */
.nav nav { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 640px) { .nav nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  background: var(--brand); color: #fff; border: 0; border-radius: 10px;
  padding: 0.8rem 1.2rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  min-height: 44px; transition: background 0.15s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn-ghost:hover { background: var(--brand); color: #fff; }
.btn-small { padding: 0.5rem 0.9rem; min-height: 38px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.5rem 0; }

/* Hero */
.hero { padding-top: 3rem; }
.hero-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; } }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; color: var(--muted); }
.trust li::before { content: '✓'; color: var(--brand); font-weight: 800; margin-right: 0.5rem; }

/* Cards and grids */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); min-width: 0; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact .big { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin-bottom: 0.25rem; }
.feature h3 { margin-bottom: 0.3rem; }
.feature p { color: var(--muted); margin: 0; }

/* Forms */
label { display: block; font-weight: 600; margin: 0.9rem 0 0.35rem; }
input[type='text'], input[type='email'], input[type='tel'], input[type='url'], select, textarea {
  width: 100%; font: inherit; padding: 0.7rem 0.8rem; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink); min-height: 44px;
}
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid rgb(15 118 110 / 35%); outline-offset: 2px; }
textarea { min-height: 7rem; resize: vertical; }
.input-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.input-row input { flex: 1 1 12rem; min-width: 0; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; margin: 0.9rem 0 0; }
.check input { margin-top: 0.3rem; flex: none; width: 1.1rem; height: 1.1rem; }
.form-msg { margin: 0.75rem 0 0; min-height: 1.2em; font-weight: 600; }
.form-msg.error { color: var(--red-ink); }
.form-msg.ok { color: var(--green-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 0.88rem; color: var(--muted); margin-top: 0.75rem; }

/* Scan result */
.scan-result { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.rows { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.45rem; }
.rows li { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px dashed var(--line); padding-bottom: 0.4rem; }
.rows li span:first-child { color: var(--muted); }
.rows li span:last-child { font-weight: 600; text-align: right; }
.verdict { border-radius: 10px; padding: 0.75rem 0.9rem; margin: 0 0 1rem; font-weight: 600; }
.verdict.patched { background: var(--green-bg); color: var(--green-ink); }
.verdict.vulnerable, .verdict.eol { background: var(--red-bg); color: var(--red-ink); }
.verdict.unknown { background: var(--amber-bg); color: var(--amber-ink); }
.fit { background: var(--soft); border-radius: 10px; padding: 1rem; }
.fit p { margin-bottom: 0.6rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 0.6rem; }
.steps p { color: var(--muted); margin: 0; }

/* Pricing */
.offer { display: inline-block; background: var(--amber-bg); color: var(--amber-ink); font-weight: 700; padding: 0.4rem 0.8rem; border-radius: 999px; margin: 0.5rem 0 1.5rem; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--brand); }
.plan .tag { position: absolute; top: -0.8rem; left: 1.25rem; background: var(--brand); color: #fff; font-size: 0.78rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; }
.plan .kind { color: var(--brand); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; }
.price { font-size: 2rem; font-weight: 800; margin: 0.4rem 0 0; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.setup { color: var(--muted); margin-bottom: 0.6rem; }
.setup s { margin-right: 0.3rem; }
.plan ul, .card ul.ticks { padding: 0; margin: 0.6rem 0 1.25rem; list-style: none; display: grid; gap: 0.45rem; }
.plan ul li, .card ul.ticks li { padding-left: 1.5rem; position: relative; }
.plan ul li::before, .card ul.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.plan .btn { margin-top: auto; }
.for { color: var(--muted); margin-bottom: 0.2rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 0.6rem 0 0; color: var(--muted); }

/* Verify page */
.copy-box { display: flex; gap: 0.5rem; align-items: stretch; flex-wrap: wrap; margin: 0.3rem 0 0.8rem; }
.copy-box code { flex: 1 1 14rem; min-width: 0; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.7rem; font-size: 0.9rem; word-break: break-all; }
.status-pill { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; }
.status-pill.yes { background: var(--green-bg); color: var(--green-ink); }
.status-pill.no { background: var(--amber-bg); color: var(--amber-ink); }

/* Footer */
.site-footer { background: var(--navy); color: #cbd5e1; padding: 2rem 0; font-size: 0.92rem; }
/* Keep footer content clear of the fixed back-to-top button (44px at 1.25rem from the bottom) */
.site-footer { padding-bottom: calc(44px + 2.75rem); }
.site-footer a { color: #fff; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-row nav { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Legal pages */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }

/* Narrow single-column pages (start, verify, 404) */
.narrow { max-width: 46rem; }
.form-step { margin-top: 1.75rem; }
.safe-move { margin: 1.5rem 0; }
.safe-move h2 { margin-top: 0; }
.support-form { margin-top: 2rem; scroll-margin-top: 5rem; }
/* 2026-11-01 F-038: "Contact support now" row on /verify */
.support-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 1.75rem; }
.support-cta p { margin: 0; }
/* 2026-11-01 F-039: provider guides on /verify */
.guide { margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.guide select { margin: 0.3rem 0 0.6rem; }
.guide h3 { margin: 1rem 0 0.4rem; font-size: 1rem; }
.guide-steps { padding-left: 1.4rem; margin: 0.4rem 0 0.6rem; }
.guide-steps li { margin: 0.35rem 0; overflow-wrap: anywhere; }
.guide-steps code { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 0.05rem 0.35rem; font-size: 0.9em; }

/* Live launch tests (/launch): each step's mark shows waiting, running, done or problem; real progress from the server. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { display: flex; gap: 0.75rem; align-items: flex-start; }
.steps li > div { flex: 1; min-width: 0; }
.steps strong { display: block; }
.steps .sub { display: block; color: var(--muted); font-size: 0.92rem; overflow-wrap: anywhere; }
.steps .mark, .feed .mark { flex: none; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; transition: background 0.3s, border-color 0.3s; }
.steps [data-state='running'] .mark { border-color: var(--brand); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.steps [data-state='done'] .mark, .feed .ok .mark { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps [data-state='done'] .mark::after, .feed .ok .mark::after { content: '✓'; }
.steps [data-state='problem'] .mark, .feed .bad .mark { background: var(--amber-bg); border-color: var(--amber-ink); color: var(--amber-ink); }
.steps [data-state='problem'] .mark::after, .feed .bad .mark::after { content: '!'; }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--line); margin-top: 0.4rem; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.6s ease; }
.feed-title { font-size: 1rem; margin: 1.5rem 0 0.5rem; }
.feed { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.35rem; min-height: 2rem; }
.feed li { display: flex; gap: 0.5rem; align-items: flex-start; min-width: 0; animation: feed-in 0.35s ease both; }
.feed .mark { width: 1.15rem; height: 1.15rem; font-size: 0.7rem; }
.feed code { overflow-wrap: anywhere; min-width: 0; }
#launch-broken code { overflow-wrap: anywhere; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes feed-in { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .steps [data-state='running'] .mark { animation: none; border-top-color: var(--brand); }
  .feed li { animation: none; }
  .bar > span { transition: none; }
}

/* Feedback (/feedback): 1 to 5 score as big tap targets. */
.rating { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rating legend { font-weight: 600; margin-bottom: 0.5rem; }
.rating label { position: relative; }
.rating input { position: absolute; opacity: 0; }
.rating span { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; cursor: pointer; }
.rating input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.rating input:focus-visible + span { outline: 3px solid rgb(15 118 110 / 35%); outline-offset: 2px; }
.rating .note { flex-basis: 100%; margin: 0; }
.plan-option { border: 1px solid var(--line); border-radius: 10px; padding: 0.75rem; }
.addons-title { margin-top: 2.5rem; }
.contact-card { max-width: 52rem; margin-inline: auto; }

/* Security icons and badges (PHP page) */
.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.feature .icon { width: 2rem; height: 2rem; color: var(--brand); margin-bottom: 0.6rem; display: block; }
.badges { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.badges li { display: inline-flex; align-items: center; gap: 0.45rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.85rem; font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.badges .icon { width: 1.1rem; height: 1.1rem; color: var(--brand); }
.platforms { color: var(--muted); font-size: 0.95rem; margin: 1rem 0 0; }
.platforms span { font-weight: 700; color: var(--ink); margin-right: 0.35rem; }
.newsletter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.newsletter input { flex: 1 1 14rem; min-width: 0; }

/* Back-to-top button (added by app.js on every page) */
.to-top-sentinel { position: absolute; top: 600px; left: 0; width: 1px; height: 1px; pointer-events: none; }
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 10px;
  background: var(--brand); color: #fff; box-shadow: var(--shadow); cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
.to-top:hover { background: var(--brand-dark); transform: translateY(-2px); }
.to-top svg { width: 1.25rem; height: 1.25rem; }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top:hover { transition: none; transform: none; } }
