/* Civet AI Visibility Check: shared styles (design from Kirsty, 26 Sep 2026).
   Brand tokens from the build spec, section 10. */

/* Oswald and Poppins, latin subset, served from this site (SIL Open Font License). */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/oswald-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #1b2a30;
  --maroon: #55242a;
  --cream: #fbf2eb;
  --gold: #c4a95b;
  --sage: #a8b49d;
  --grey: #e6e6e6;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: 'Poppins', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

h1, h2, h3, .heading {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
}

a { color: var(--maroon); }
a:hover { color: var(--navy); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Badges */
.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 5px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge.great { background: var(--sage); color: var(--navy); }
.badge.ok { background: var(--gold); color: var(--navy); }
.badge.needs-work { background: var(--maroon); color: var(--cream); }
.badge.significant-gaps { background: var(--navy); color: var(--cream); }
.badge.not-checked, .badge.unreachable { background: var(--grey); color: var(--navy); }

/* Checklist rows: Google and Website cards. Icons carry a visible mark,
   never colour alone. The Google card uses neutral rings: what was checked,
   not which passed. */
.checklist { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.checklist-item { display: flex; align-items: center; gap: 12px; }
.checklist-icon {
  width: 24px; height: 24px; border-radius: 50%;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.checklist-icon.pass { background: var(--sage); }
.checklist-icon.fail { background: var(--maroon); }
.checklist-icon.unknown { background: var(--grey); font-size: 13px; font-weight: 700; }
.checklist-icon.neutral { background: var(--white); border: 2px solid var(--grey); }
.checklist-note { margin: 6px 0 0; font-size: 14.5px; line-height: 1.4; color: var(--maroon); }

/* Buttons */
.btn-primary {
  display: flex; align-items: center; justify-content: center;
  height: 56px;
  background: var(--maroon); color: var(--cream);
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 18px;
  letter-spacing: 1px; text-transform: uppercase;
  border: none; border-radius: 8px; text-decoration: none;
  cursor: pointer; width: 100%;
}
.btn-primary:hover { background: var(--navy); color: var(--cream); }
.btn-primary[disabled] { opacity: 0.7; cursor: wait; }

.btn-cta {
  display: flex; align-items: center; justify-content: center;
  height: 54px; padding: 0 24px;
  background: var(--gold); color: var(--navy);
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 16px;
  letter-spacing: 1px; text-transform: uppercase;
  border: none; border-radius: 8px; text-decoration: none;
  cursor: pointer;
}
.btn-cta:hover { background: var(--cream); }

input[type="text"], input[type="url"], input[type="email"] {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  border: 1.5px solid var(--navy);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
}

label { font-size: 14px; font-weight: 500; }

input:focus-visible, .btn-primary:focus-visible, .btn-cta:focus-visible, a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* A field hidden from people, which bots fill in. */
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===================== SCREEN 1: ENTRY ===================== */

.entry-shell { display: flex; flex-direction: row; min-height: 100vh; }
.entry-panel {
  width: 560px;
  flex-shrink: 0;
  padding: 56px 64px;
  background: var(--navy);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.entry-form {
  flex-grow: 1;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  max-width: 760px;
}
.entry-form-fields { display: flex; flex-direction: column; gap: 18px; }
.entry-field { display: flex; flex-direction: column; gap: 6px; }

/* Mobile: get people to the form faster (Kirsty, 26 Sep 2026). */
.mobile-only { display: none; }
@media (max-width: 900px) {
  .entry-shell { flex-direction: column; min-height: 0; }
  .entry-panel, .entry-form { width: 100%; padding: 28px 20px; }
  .entry-form { justify-content: flex-start; flex-grow: 0; }
  .entry-panel { gap: 20px; }
  .entry-panel > div:nth-child(2) { gap: 14px !important; }
  .entry-panel h1 { font-size: 36px !important; }
  .logo-panel { width: 170px; }
  .entry-form { gap: 20px; }
  .desktop-only, .desktop-only-inline { display: none; }
  .mobile-only { display: block; }
}

/* ===================== SCREEN 2: CHECKING ===================== */

.checking-shell {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
}
.checking-list { display: flex; flex-direction: column; gap: 18px; font-size: 18px; list-style: none; margin: 0; padding: 0; }
.checking-row { display: flex; align-items: center; gap: 16px; }
.checking-icon { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; }
.checking-icon.done { background: var(--sage); display: flex; align-items: center; justify-content: center; }
.checking-icon.pending {
  border: 2.5px solid var(--gold); border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .checking-icon.pending { animation: none; } }

.checking-progress-track { flex: 1; height: 8px; background: var(--grey); border-radius: 4px; overflow: hidden; }
.checking-progress-fill { height: 8px; background: var(--gold); width: 0%; transition: width 0.4s ease; }
.checking-progress-row { display: flex; align-items: center; gap: 16px; }

/* ===================== SCREEN 3: RESULTS ===================== */

.results-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.results-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.results-header-brand { display: flex; align-items: center; gap: 16px; }
.logo-header { display: block; height: auto; }
.logo-panel { display: block; height: auto; max-width: 100%; }
.results-header-brand .wordmark {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 20px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--maroon);
}
.results-header-brand .product-name { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.results-tagline { font-size: 13px; letter-spacing: 0.5px; color: var(--maroon); }

.results-summary {
  display: flex; align-items: stretch; flex-wrap: wrap;
  background: var(--white); border-radius: 10px;
  border-left: 6px solid var(--maroon);
  box-shadow: 0 1px 0 rgba(27,42,48,0.06);
}
.results-summary-main { flex: 1; min-width: 280px; padding: 22px 28px; display: flex; flex-direction: column; gap: 6px; }
.results-summary-eyebrow {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--maroon);
}
.results-summary-heading { font-size: 38px; line-height: 1.05; }
.results-summary-independence {
  margin: 4px 0 0; font-size: 14px; line-height: 1.4;
  color: var(--navy); background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 8px 12px; border-radius: 4px; max-width: 620px;
}
.results-summary-clinic {
  width: 300px; flex-shrink: 0;
  padding: 22px 28px;
  border-left: 1px solid var(--grey);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.results-summary-clinic-name { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 20px; text-transform: uppercase; line-height: 1.15; overflow-wrap: anywhere; }

.results-cards { display: flex; gap: 20px; align-items: stretch; flex-wrap: wrap; }
.results-card {
  flex: 1 1 300px; min-width: 280px;
  display: flex; flex-direction: column;
  background: var(--white); border-radius: 10px; overflow: hidden;
  border: 1px solid var(--grey);
}
.results-card-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--grey); display: flex; flex-direction: column; gap: 10px; }
.results-card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.results-card-title { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 18px; text-transform: uppercase; }
.results-card-subtitle { font-size: 13px; color: var(--maroon); }
.results-card-headline { margin: 0; font-size: 15px; line-height: 1.4; }
.results-card-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.results-card-footer {
  margin-top: auto; padding: 14px 22px;
  background: var(--cream); border-top: 1px solid var(--grey);
  font-size: 13.5px; color: var(--maroon);
}

.directory-count { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 30px; }
.directory-count .of { font-size: 16px; font-weight: 400; font-family: 'Poppins', sans-serif; color: var(--maroon); }
.directory-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.directory-pill { padding: 5px 12px; border-radius: 20px; background: var(--cream); border: 1px solid var(--sage); font-size: 13px; }
.preview-note { margin: 0; padding: 6px 10px; border: 2px dashed var(--maroon); border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--maroon); }

.results-cta {
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  background: var(--navy); border-radius: 10px; padding: 30px 34px; color: var(--cream);
}
.results-cta-main { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.results-cta-eyebrow {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--gold);
}
.results-cta-heading { font-size: 28px; line-height: 1.1; }
.results-cta-body { margin: 0; font-size: 15px; line-height: 1.5; color: var(--grey); max-width: 620px; }
.results-cta-action { display: flex; flex-direction: column; align-items: center; gap: 10px; flex-shrink: 0; max-width: 320px; }
.results-cta-action .btn-cta { width: 280px; height: 56px; }
.results-cta-note { font-size: 13px; color: var(--sage); text-align: center; }

@media (max-width: 860px) {
  .results-cards { flex-direction: column; }
  /* Stacked, the card's 300px flex-basis would become its height and clip the footer. */
  .results-card { flex: none; min-width: 0; }
  .results-summary-clinic { border-left: none; border-top: 1px solid var(--grey); width: 100%; }
  .results-summary-heading { font-size: 28px; }
  .results-tagline { display: none; }
  .logo-header { width: 130px; }
  .results-card-title-row { align-items: flex-start; }
  .results-cta { padding: 24px 22px; }
  .results-cta-heading { font-size: 21px; }
  .results-cta-body { font-size: 13.5px; }
  .results-cta-action { max-width: none; width: 100%; }
  .btn-cta, .results-cta-action .btn-cta { width: 100%; }
}

[hidden] { display: none !important; }

/* Simple message pages (errors, rate limit) */
.narrow { max-width: 720px; margin: 0 auto; min-height: 100vh; padding: 56px 24px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.brand-small { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 2px; text-transform: uppercase; color: var(--maroon); }
.lead { margin: 0; font-size: 18px; color: var(--maroon); }
.cta .button, a.button { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; background: var(--maroon); color: var(--cream); font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; border-radius: 8px; text-decoration: none; }
.site-footer { margin-top: 8px; font-size: 12px; color: #5b6669; }
.site-footer a { color: #5b6669; }

/* ===================== SCREEN 1: LANDING PAGE ===================== */
/* Full scrolling landing page, spec v1.1 section 10 (26 Sep 2026). */

.landing-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  padding: 24px 80px 0; max-width: 1440px; margin: 0 auto;
}
.landing-brand { display: flex; align-items: center; gap: 16px; }
.landing-brand .product-name { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.landing-tagline { font-size: 13px; letter-spacing: 0.5px; color: var(--maroon); }

.landing-hero {
  display: flex; gap: 56px; align-items: flex-start; flex-wrap: wrap;
  padding: 48px 80px 64px; max-width: 1440px; margin: 0 auto;
}
.landing-hero-copy { flex: 1.1; min-width: 320px; display: flex; flex-direction: column; gap: 20px; }
.landing-eyebrow {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--maroon);
}
.landing-h1 { font-size: 44px; line-height: 1.08; }
.landing-lead { margin: 0; font-size: 17px; line-height: 1.5; max-width: 480px; }
.landing-sub { margin: 0; font-size: 15px; line-height: 1.5; max-width: 480px; color: var(--maroon); }
.landing-checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.landing-check-row { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.landing-check-icon {
  width: 20px; height: 20px; border-radius: 50%; background: var(--sage);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}

.landing-form-card {
  flex: 1; min-width: 320px;
  background: var(--white); border-radius: 12px;
  border-top: 6px solid var(--maroon);
  padding: 32px 36px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 1px 0 rgba(27,42,48,0.06);
}
.landing-form-fields { display: flex; flex-direction: column; gap: 18px; }
.landing-field { display: flex; flex-direction: column; gap: 6px; }
.landing-form-note { margin: 0; font-size: 12.5px; color: var(--maroon); text-align: center; line-height: 1.4; }
.landing-form-privacy { margin: -8px 0 0; font-size: 12px; color: #5b6669; text-align: center; }
.landing-form-privacy a { color: #5b6669; }

.landing-section {
  padding: 56px 80px;
  display: flex; flex-direction: column; gap: 28px;
}
.landing-section > * { max-width: 1280px; width: 100%; margin-left: auto; margin-right: auto; }
.landing-section.bordered { background: var(--white); border-top: 1px solid var(--grey); border-bottom: 1px solid var(--grey); }
.landing-section.dark { background: var(--navy); color: var(--cream); }
.landing-section-head { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.landing-section-head h2 { font-size: 28px; }
.landing-dark-intro { margin: 8px auto 0; font-size: 15px; line-height: 1.5; max-width: 640px; color: var(--grey); }
.landing-closer { margin: 0; text-align: center; font-size: 13.5px; color: var(--maroon); }

.landing-cards-row { display: flex; gap: 24px; flex-wrap: wrap; }
.landing-card {
  flex: 1; min-width: 220px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px; background: var(--cream); border-radius: 10px;
}
.landing-card p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.landing-card-title {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 16px;
  text-transform: uppercase; color: var(--maroon); margin: 0;
}
.landing-card.on-dark { background: rgba(251,242,235,0.06); border: 1px solid rgba(251,242,235,0.15); }
.landing-card.on-dark .landing-card-title { color: var(--gold); }
.landing-card.on-dark p { color: var(--grey); font-size: 14px; }

.landing-why { flex-direction: row; gap: 56px; align-items: flex-start; flex-wrap: wrap; max-width: 1440px; margin: 0 auto; }
.landing-why > * { max-width: none; width: auto; margin: 0; }
.landing-why-copy { flex: 1; min-width: 320px; display: flex; flex-direction: column; gap: 14px; }
.landing-why-copy p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.landing-why-list {
  flex: 0.85; min-width: 260px; list-style: none; margin: 0;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border-radius: 10px; padding: 28px; border: 1px solid var(--grey);
}
.landing-why-item { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.landing-why-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--maroon); flex-shrink: 0; }

.landing-preview-card {
  flex: 1; min-width: 220px;
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; background: var(--white); border-radius: 10px; border: 1px solid var(--grey);
}
.landing-preview-card p { margin: 0; font-size: 14px; color: var(--maroon); }
.landing-preview-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.landing-preview-title { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 15px; text-transform: uppercase; margin: 0; }

.landing-final-cta {
  border-top: 1px solid var(--grey);
  padding: 56px 80px 48px;
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
}
.landing-footer { text-align: center; padding: 0 24px 40px; }

@media (max-width: 900px) {
  .landing-header, .landing-hero, .landing-section, .landing-final-cta { padding-left: 20px; padding-right: 20px; }
  .landing-header { padding-top: 18px; }
  .landing-tagline { display: none; }
  .landing-hero { flex-direction: column; gap: 22px; padding-top: 24px; padding-bottom: 40px; }
  .landing-hero-copy { gap: 12px; min-width: 0; }
  .landing-checks.desktop-only, .landing-sub.desktop-only { display: none; }
  .landing-h1 { font-size: 32px; }
  .landing-form-card { min-width: 0; width: 100%; padding: 24px 20px; }
  .landing-cards-row, .landing-why { flex-direction: column; }
  .landing-card, .landing-preview-card, .landing-why-copy, .landing-why-list { min-width: 0; }
  .landing-section { padding-top: 40px; padding-bottom: 40px; }
}
