/* The public website (checker/site.py). Built on the app's tokens (app.css); adds a blue-to-green accent. */

:root {
  --accent-a: #1d5fd1;
  --accent-b: #18794e;
  --accent: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  --accent-deep: linear-gradient(135deg, #123e8c 0%, #0e5a3d 100%);
  --site-width: 1180px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(15, 23, 42, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root { --accent-a: #6ea8ff; --accent-b: #3ccf8e; --accent-deep: linear-gradient(135deg, #10306b 0%, #0b4430 100%);
    --shadow-card: 0 0 0 1px rgba(255, 255, 255, 0.04); }
}

body.site { background: var(--surface); }
.site main { overflow-x: clip; }
.site section { padding: 88px 24px; }
.site section > * { max-width: var(--site-width); margin-left: auto; margin-right: auto; }
.site h1, .site h2, .site h3 { letter-spacing: -0.02em; }
.site .lede { font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 720px; }
.site a { color: inherit; }

/* header */
.site-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; height: 64px;
  padding: 0 24px; background: var(--topbar); backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.site-top .brand { font-size: 15px; }
.site-nav { display: flex; gap: 22px; font-size: 14px; margin-right: auto; }
.site-nav a, .site-menu nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-actions { display: flex; gap: 8px; }
.site-menu { display: none; margin-left: auto; }
.site-menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-content: center;
  gap: 4px; border-radius: 10px; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
.site-menu nav { position: absolute; left: 0; right: 0; top: 64px; display: grid; gap: 4px; padding: 12px 24px 20px;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card); }
.site-menu nav a { padding: 10px 0; font-size: 16px; }
.site-menu nav .btn { margin-top: 8px; height: 44px; }

/* shared pieces */
.btn-xl { height: 48px; padding: 0 22px; border-radius: 12px; font-size: 15px; font-weight: 600; }
.site .btn-primary { background: var(--accent); border-color: transparent; color: #fff;
  box-shadow: 0 6px 22px rgba(29, 95, 209, 0.22); }
.site .btn-primary:hover { opacity: 0.92; }
.btn-quiet { background: var(--surface); border-color: var(--line); color: var(--ink); }
.s-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.s-eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--accent); }
.grad { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head-lg { margin-bottom: 40px; }
.section-head-lg h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 12px; font-weight: 750; }
.section-kicker { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: 0 0 24px; }
.source { margin-top: 18px; font-size: 13px; color: var(--muted); }
.source a, .s-calc-field small a, .doc-body a, .faq-list a, .link-arrow { color: var(--blue-ink); }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.s-stat b { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 750; letter-spacing: -0.03em; line-height: 1.1;
  font-variant-numeric: tabular-nums; }
.s-stat > span { display: block; margin-top: 6px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.ticks .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--green); stroke-width: 2.4; }

/* hero */
.hero { text-align: center; padding-top: 76px !important; padding-bottom: 64px !important; }
.hero-text { max-width: 900px !important; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.05; font-weight: 800; margin: 0 0 22px; letter-spacing: -0.035em; }
.hero h1 .grad { display: inline-block; }
.hero-lede { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 0 auto 30px; max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-facts { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 26px; font-size: 14px; color: var(--muted); }
.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts .icon { width: 17px; height: 17px; color: var(--accent-a); }
.hero-shot { position: relative; max-width: var(--site-width) !important; margin-top: 56px !important; }
.hero-shot img, .s-step img, .case-shot img { display: block; width: 100%; height: auto; border-radius: 14px;
  border: 1px solid var(--line); box-shadow: var(--page-shadow); background: var(--surface); }
.hero-shot figcaption { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.hero-shot::before { content: ""; position: absolute; inset: -60px 10% auto 10%; height: 60%; z-index: -1;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(29, 95, 209, 0.13), transparent); filter: blur(12px); }

/* cost band */
.cost { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-top: 56px !important; padding-bottom: 56px !important; }
.cost-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.cost-grid .s-stat { padding: 4px 28px; border-left: 1px solid var(--line); }
.cost-grid .s-stat:first-child { border-left: 0; padding-left: 0; }

/* how it works */
.s-steps { list-style: none; padding: 0; display: grid; gap: 64px; }
.s-step { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.s-step:nth-child(even) .s-step-text { order: 2; }
.s-step-n { display: inline-grid; place-content: center; width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; }
.s-step h3 { font-size: 24px; margin: 0 0 10px; }
.s-step p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0; }
.s-step img { max-height: 520px; object-fit: cover; object-position: top left; }

/* real cases */
.cases { background: var(--bg); }
.case-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.case-tab { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.case-tab[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.case { max-width: 860px !important; margin-left: 0 !important; padding: 26px 28px; border: 1px solid var(--line);
  border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); }
.case[hidden] { display: none; }
.case h3 { font-size: 22px; margin: 0 0 10px; }
.case-values { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.case-value { min-width: 120px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.case-value small { display: block; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.case-value b { font-family: var(--mono); font-size: 16px; }
.case-value.bad { border-color: var(--red-line); background: var(--red-bg); }
.case-value.bad b, .case-value.bad small { color: var(--red-ink); }
.case-finding { padding: 12px 14px; border-radius: 10px; background: var(--red-bg); border: 1px solid var(--red-line);
  color: var(--red-ink); font-size: 14.5px; }
.case-finding.warn { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber-ink); }

/* checks */
.check-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.check-grid li { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-card); }
.check-grid h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 6px; }
.check-grid h3 .icon { width: 18px; height: 18px; color: var(--green); stroke-width: 2.4; }
.check-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* proof */
.proof { background: var(--bg); }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.proof-grid .s-stat { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }

/* calculator */
.s-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.s-calc-inputs { display: grid; gap: 16px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  box-shadow: var(--shadow-card); }
.s-calc-field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.s-calc-field small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.s-calc-field .input { height: 44px; font-size: 16px; }
.s-calc-results { padding: 26px; border-radius: 16px; background: var(--accent-deep); color: #fff; display: grid; gap: 4px; align-content: start; }
.s-calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14); font-size: 15px; }
.s-calc-row b { font-family: var(--mono); font-size: 17px; white-space: nowrap; }
.s-calc-total { border-bottom: 0; font-size: 17px; }
.s-calc-total b { font-size: 26px; }
.s-calc-results .muted { color: rgba(255, 255, 255, 0.72); margin-top: 10px; line-height: 1.55; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow-card); }
.plan h3 { font-size: 18px; margin: 0; }
.plan-featured { border: 2px solid var(--accent-a); }
.price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 38px; letter-spacing: -0.03em; }
.price span, .plan-limit { color: var(--muted); font-size: 14.5px; margin: 0; }
.plan .btn { margin-top: auto; }

/* trust */
.trust-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 24px; }
.trust-grid li { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.trust-grid .icon { width: 22px; height: 22px; color: var(--accent-a); }
.trust-grid h3 { font-size: 16px; margin: 10px 0 6px; }
.trust-grid p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* faq */
.faq { background: var(--bg); }
.faq-group { margin: 26px 0 10px; font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; color: var(--muted); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 18px; color: var(--muted); line-height: 1.65; max-width: 820px; }

/* final call */
.start { margin: 0 24px 72px; border-radius: 24px; background: var(--accent-deep); color: #fff; text-align: center; }
.start h2 { font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 12px; }
.start p { color: rgba(255, 255, 255, 0.82); font-size: 17px; margin: 0 auto 26px; max-width: 640px; }
.start-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.site .btn-invert { background: #fff; color: #0b2a5c; border-color: #fff; }
.site .btn-outline-invert { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); }
.btn-outline-invert:hover, .btn-invert:hover { opacity: 0.9; }
.start .small a { color: #fff; }

/* floating WhatsApp (desktop) and the bottom bar (phones) */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 25; display: grid; place-content: center; width: 54px; height: 54px;
  border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.wa-float .icon { width: 26px; height: 26px; stroke: #fff; }
.mobile-bar { display: none; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--bg); padding: 56px 24px 32px; }
.foot-grid { max-width: var(--site-width); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 32px; }
.foot-grid h2 { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.foot-grid a:not(.brand) { display: block; padding: 4px 0; color: var(--ink); text-decoration: none; font-size: 14px; }
.foot-grid a:not(.brand):hover { text-decoration: underline; }
.foot-grid p { font-size: 14px; line-height: 1.6; max-width: 340px; }
.foot-note { max-width: var(--site-width); margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted); }

/* security, privacy, terms */
.doc { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 48px; max-width: var(--site-width); margin: 0 auto;
  padding: 56px 24px 88px; }
.doc-head { grid-column: 1 / -1; }
.doc-head h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; }
.doc-toc { position: sticky; top: 88px; align-self: start; font-size: 14px; }
.doc-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); }
.doc-toc a { color: var(--muted); text-decoration: none; }
.doc-toc a:hover { color: var(--ink); }
.doc-body section { padding: 0 0 28px; }
.doc-body h2 { font-size: 21px; margin: 0 0 10px; scroll-margin-top: 88px; }
.doc-body p, .doc-body li { line-height: 1.7; color: var(--ink); font-size: 15.5px; }
.doc-body ul { padding-left: 20px; }
.doc-table th, .doc-table td { vertical-align: top; font-size: 14px; }

/* free tools */
.tool { max-width: 760px; margin: 0 auto; padding: 56px 24px 72px; }
.tool h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; }
.tool-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 12px; }
.tool-form .input { flex: 1 1 260px; height: 48px; font-size: 18px; font-family: var(--mono); text-transform: uppercase; }
.tool-answer { min-height: 28px; font-size: 16px; font-weight: 600; }
.tool-answer.ok { color: var(--green-ink); }
.tool-answer.bad { color: var(--red-ink); }
.tool-body h2 { font-size: 20px; margin: 34px 0 8px; }
.tool-body p, .tool-body li { line-height: 1.7; color: var(--ink); }
.tool-cta { margin-top: 36px; padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }

/* reveal and count-up: only when the visitor allows motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.shown { opacity: 1; transform: none; }
}

/* tablets and phones */
@media (max-width: 960px) {
  .site-nav, .site-actions { display: none; }
  .site-menu { display: block; }
  .s-step, .s-calc { grid-template-columns: 1fr; }
  .hero { padding-top: 44px !important; }
  .hero-shot { margin-top: 36px !important; }
  .s-step:nth-child(even) .s-step-text { order: 0; }
  .doc { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site section { padding: 60px 18px; }
  .cost-grid .s-stat { border-left: 0; padding: 12px 0; border-top: 1px solid var(--line); }
  .cost-grid .s-stat:first-child { border-top: 0; }
  .start { margin: 0 12px 88px; }
  .foot-grid { grid-template-columns: 1fr; }
  .wa-float { display: none; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: 1fr 1fr;
    height: 54px; border-top: 1px solid var(--line); background: var(--surface); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 15px;
    text-decoration: none; color: var(--ink); }
  .mobile-bar a + a { background: var(--accent); color: #fff; }
  .mobile-bar .icon { width: 18px; height: 18px; }
  .site-foot { padding-bottom: 80px; }
}

.site section[id] { scroll-margin-top: 64px; }

.cases-more { margin-top: 22px; }

.limits { margin-top: 22px; padding: 18px 22px; border: 1px solid var(--amber-line); border-radius: 14px; background: var(--amber-bg); }
.limits h3 { margin: 0 0 8px; font-size: 15px; color: var(--amber-ink); }
.limits ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.limits li { font-size: 14px; line-height: 1.55; color: var(--ink); }

.proof-grid .s-stat b { font-size: clamp(28px, 3vw, 38px); }
