/* Crowns Website Checkup styles.
   Brand: 2026 theme, royal blue #0D47D9.
   Everything is namespaced under .ck- so it cannot collide with the site theme.
   Good/improve/attention stay their own semantic colors on purpose, they mean
   something (pass/warn/fail) and shouldn't be forced into the brand palette. */

:root {
  --ck-navy: #0d47d9;
  --ck-orange: #0d47d9;
  --ck-orange-hover: #0a36a8;
  --ck-ink: #0b1b3a;
  --ck-muted: #3e4c66;
  --ck-line: #d9e2ef;
  --ck-paper: #ffffff;
  --ck-wash: #eef3fa;
  --ck-good: #1e7a4a;
  --ck-improve: #9a6a05;
  --ck-attention: #a32316;
}

/* Side padding keeps text off the screen edge on phones. content-box so
   the text column stays 44rem wide on desktop with the padding outside it.
   font-family set explicitly (not just inherited from body) because form
   controls below don't inherit page fonts by default in any browser. */
.ck-wrap { box-sizing: content-box; max-width: 44rem; margin: 0 auto; padding: 3rem 1.25rem 4rem; font-family: var(--font-body, "Inter", system-ui, sans-serif); }
.ck-wrap a { color: var(--ck-navy); font-weight: 600; }

/* Entry form. margin-bottom here is the gap below the whole card,
   before the next section's heading. */
.ck-entry {
  background: var(--ck-wash);
  border: 1px solid var(--ck-line);
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}
.ck-entry label { display: block; font-weight: 600; color: var(--ck-ink); margin-bottom: .5rem; }
.ck-entry input[type="text"],
.ck-entry input[type="url"] {
  width: 100%; margin-bottom: 1.25rem; padding: .85rem 1.25rem; font-family: inherit; font-size: 1.05rem;
  border: 1px solid var(--ck-line); border-radius: 999px; background: var(--ck-paper);
}
.ck-entry input:focus-visible,
.ck-form input:focus-visible,
.ck-form textarea:focus-visible { outline: 3px solid var(--ck-navy); outline-offset: 2px; }

/* Breathing room above the Turnstile widget. Set on the input's own
   margin-bottom rather than the widget's margin-top: Cloudflare's
   turnstile.js re-renders that element's contents (and sometimes its
   own styles) once the widget loads, which was silently eating a
   margin-top set directly on .cf-turnstile. */

.ck-button {
  display: inline-block; margin-top: 1rem; padding: .9rem 1.75rem;
  font-family: inherit; font-size: 1.02rem; font-weight: 700; color: #fff; background: var(--ck-orange);
  border: 0; border-radius: 999px; cursor: pointer;
}
.ck-button:hover { background: var(--ck-orange-hover); }
.ck-button:disabled { opacity: .6; cursor: default; }

.ck-promises { list-style: none; padding: 0; margin: 1rem 0 0; color: var(--ck-muted); font-size: .95rem; }
.ck-promises li { display: inline-block; margin-right: 1.25rem; }
.ck-promises li::before { content: "\2713"; color: var(--ck-good); font-weight: 700; margin-right: .35rem; }

/* Status */
.ck-status { margin: 1.5rem 0; padding: 1rem; border-left: 4px solid var(--ck-navy); background: var(--ck-wash); color: var(--ck-ink); }
.ck-status-error { border-left-color: var(--ck-attention); }

/* Results */
.ck-head { margin: 2rem 0 1rem; }
.ck-head h2 { margin: 0 0 .25rem; color: var(--ck-navy); }
.ck-date { margin: 0 0 1rem; color: var(--ck-muted); font-size: .9rem; }
.ck-cached { margin: -.5rem 0 1rem; padding: .6rem .8rem; border-radius: 10px; background: var(--ck-line); color: var(--ck-ink); font-size: .9rem; }
.ck-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ck-navy); text-decoration: underline; cursor: pointer; }
.ck-linkbtn:focus-visible { outline: 2px solid var(--ck-navy); outline-offset: 2px; }
.ck-summary { font-size: 1.1rem; line-height: 1.55; color: var(--ck-ink); }

.ck-counts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
.ck-pill { padding: .35rem .75rem; border-radius: 999px; font-size: .9rem; font-weight: 600; border: 1px solid currentColor; background: transparent; font-family: inherit; cursor: pointer; }
.ck-pill:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.ck-pill:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ck-pill.ck-good[aria-pressed="true"],
.ck-pill.ck-improve[aria-pressed="true"],
.ck-pill.ck-attention[aria-pressed="true"] { color: var(--ck-paper); }
.ck-pill.ck-good[aria-pressed="true"] { background: var(--ck-good); border-color: var(--ck-good); }
.ck-pill.ck-improve[aria-pressed="true"] { background: var(--ck-improve); border-color: var(--ck-improve); }
.ck-pill.ck-attention[aria-pressed="true"] { background: var(--ck-attention); border-color: var(--ck-attention); }
.ck-findings[data-filter="good"] .ck-finding:not(.ck-good),
.ck-findings[data-filter="improve"] .ck-finding:not(.ck-improve),
.ck-findings[data-filter="attention"] .ck-finding:not(.ck-attention) { display: none; }
.ck-pill.ck-good { color: var(--ck-good); }
.ck-pill.ck-improve { color: var(--ck-improve); }
.ck-pill.ck-attention { color: var(--ck-attention); }

.ck-pending { color: var(--ck-muted); font-style: italic; margin: 0 0 1rem; }

.ck-finding { border: 1px solid var(--ck-line); border-left-width: 4px; border-radius: 12px; margin-bottom: .6rem; background: var(--ck-paper); }
.ck-finding.ck-good { border-left-color: var(--ck-good); }
.ck-finding.ck-improve { border-left-color: var(--ck-improve); }
.ck-finding.ck-attention { border-left-color: var(--ck-attention); }

.ck-finding summary { display: flex; align-items: center; gap: .65rem; padding: .9rem 1rem; cursor: pointer; font-weight: 600; color: var(--ck-ink); }
.ck-finding summary::-webkit-details-marker { display: none; }
.ck-dot { flex: 0 0 1.5rem; height: 1.5rem; line-height: 1.5rem; text-align: center; border-radius: 50%; font-size: .85rem; color: #fff; }
.ck-good .ck-dot { background: var(--ck-good); }
.ck-improve .ck-dot { background: var(--ck-improve); }
.ck-attention .ck-dot { background: var(--ck-attention); }
.ck-title { flex: 1 1 auto; }
.ck-level { flex: 0 0 auto; font-size: .8rem; font-weight: 500; color: var(--ck-muted); }

.ck-body { padding: 0 1rem 1rem 3.15rem; color: var(--ck-ink); }
.ck-body p { margin: 0 0 .7rem; line-height: 1.6; }
.ck-fix { color: var(--ck-navy); font-weight: 600; }
.ck-evidence { font-size: .85rem; color: var(--ck-muted); }

.ck-meaning { margin: 2rem 0; padding: 1.25rem 1.5rem; background: var(--ck-wash); border-radius: 16px; }
.ck-meaning h3 { margin-top: 0; color: var(--ck-navy); }

.ck-cta { margin: 2rem 0 1rem; }
.ck-cta h3 { color: var(--ck-navy); margin-bottom: .35rem; }

/* Lead form */
.ck-form { border: 1px solid var(--ck-line); border-radius: 18px; padding: 1.5rem; background: var(--ck-paper); }
.ck-form h3 { margin-top: 0; color: var(--ck-navy); }
.ck-form label { display: block; margin-bottom: 1rem; font-weight: 600; color: var(--ck-ink); }
.ck-form input[type="text"], .ck-form textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .7rem .9rem;
  border: 1px solid var(--ck-line); border-radius: 10px; font: inherit; font-weight: 400;
}
.ck-form fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.ck-form legend { font-weight: 600; color: var(--ck-ink); margin-bottom: .5rem; }
.ck-radio, .ck-check { display: block; font-weight: 400; margin-bottom: .4rem; }
.ck-form-note { color: var(--ck-muted); font-size: .9rem; }
.ck-error { color: var(--ck-attention); font-weight: 600; }
.ck-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.ck-share { margin-top: 2rem; font-size: .9rem; color: var(--ck-muted); word-break: break-all; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
