/* =========================================================
   Dr. Pritesh Patel · funnel site
   Brand palette (edit here to re-colour the whole site)
   ========================================================= */
:root {
  --accent: #407cbf;        /* brand blue: buttons, ring, highlights */
  --accent-bright: #439cff; /* bright blue: progress bar, focus ring */
  --accent-ink: #2c66a8;    /* darker brand blue for small text/links (AA contrast on white) */
  --accent-hover: #346aa6;  /* button hover */
  --ink: #010101;           /* headings / body text */
  --muted: #484849;         /* secondary text */
  --line: #a8abad;          /* input borders, dividers */
  --soft: #edf4fd;          /* soft blue panels */
  --paper: #f4f4f4;         /* page background */
  --white: #ffffff;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(1, 1, 1, .04), 0 6px 20px rgba(64, 124, 191, .08);
  --max: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { max-width: 100%; }

a { color: var(--accent-ink); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); padding: 12px 16px; z-index: 10;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header / footer ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--soft);
}
.site-header .wrap { display: flex; align-items: center; min-height: 64px; }
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}
.logo-mark { width: 40px; height: 40px; display: block; }
.logo-word { height: 36px; width: auto; display: block; }
@media (max-width: 360px) { .logo-word { height: 30px; } }

main { flex: 1; padding: 32px 0 48px; }

.site-footer {
  border-top: 1px solid #e2e4e6;
  background: var(--white);
  color: var(--muted);
  font-size: .9rem;
  padding: 20px 0;
  text-align: center;
}
.site-footer a { color: var(--muted); display: inline-block; padding: 12px 4px; }
.site-footer a.main-site { color: var(--accent-ink); font-weight: 600; padding: 12px 8px 4px; }
.site-footer a.main-site:hover { color: var(--ink); }

/* Social links (official brand marks, brand colours) */
.social { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.site-footer .social a {
  width: 48px; height: 48px; padding: 0; border-radius: 12px;
  display: inline-grid; place-items: center;
  transition: background-color .15s ease, transform .15s ease;
}
.site-footer .social a:hover { background: var(--soft); transform: translateY(-1px); }
.social svg { fill: currentColor; }
.site-footer .s-instagram { color: #E4405F; }
.site-footer .s-linkedin  { color: #0A66C2; }
.site-footer .s-facebook  { color: #0866FF; }
.site-footer .s-youtube   { color: #FF0000; }
.site-footer .s-reddit    { color: #FF4500; }

/* ---------- Typography ---------- */
h1 {
  font-size: clamp(1.75rem, 6vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}
h2 { font-size: 1.3rem; line-height: 1.3; margin: 0 0 8px; letter-spacing: -.01em; }
p { margin: 0 0 14px; }
.lead { font-size: 1.12rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--soft);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- Ticks ---------- */
.ticks {
  list-style: none; padding: 0; margin: 18px 0 28px;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
}
.ticks li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ticks li::before {
  content: "";
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Cards ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e6ebf1;
  padding: 22px;
  display: flex; flex-direction: column;
}
.card p { color: var(--muted); }
.card .btn { margin-top: auto; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 14px;
}
.card-wide {
  margin-top: 16px;
  background: var(--soft);
  border-color: #d7e6f8;
}
.card-wide .btn { margin-top: 6px; align-self: flex-start; }
@media (max-width: 639px) { .card-wide .btn { align-self: stretch; } }

.phone-display {
  text-align: center; margin: 10px 0 0; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums;
}

.widget-slot { margin-top: auto; }
/* Room for the floating ElevenLabs widget so it never covers the footer */
.page-talk .site-footer { padding-bottom: 170px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px;
  border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-size: 1.2rem; font-weight: 700; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--white);
  transition: background-color .15s ease, transform .05s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--accent-hover); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent; color: var(--accent-ink);
  border-color: transparent; font-size: 1rem; padding: 12px 14px; min-height: 48px;
}
.btn-ghost:hover { background: var(--soft); color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-lg { min-height: 60px; font-size: 1.25rem; }

.fineprint {
  margin-top: 28px; font-size: .9rem; color: var(--muted);
  border-top: 1px solid #e2e4e6; padding-top: 18px;
}

/* ---------- Diagnosis ---------- */
.panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e6ebf1;
  padding: 26px 22px;
}
@media (min-width: 640px) { .panel { padding: 36px; } }

.progress-wrap { margin-bottom: 18px; }
.progress-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .9rem; color: var(--muted); margin-bottom: 8px; min-height: 48px;
}
.progress {
  height: 8px; background: #dce6f2; border-radius: 999px; overflow: hidden;
}
.progress > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: inherit; transition: width .3s ease;
}

.q-topic {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); margin: 0 0 6px;
}
.q-title { font-size: clamp(1.35rem, 5vw, 1.7rem); line-height: 1.25; margin: 0 0 20px; }

.options { display: grid; gap: 12px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%;
  min-height: 60px; padding: 14px 16px;
  text-align: left; font: inherit; font-size: 1.02rem; color: var(--ink);
  background: var(--white);
  border: 2px solid #dfe4ea; border-radius: 12px; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.option:hover { border-color: var(--accent); background: var(--soft); }
.option[aria-checked="true"] { border-color: var(--accent); background: var(--soft); }
.option .key {
  flex: none; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; font-size: .9rem; font-weight: 700;
  background: var(--soft); color: var(--accent-ink); border: 1px solid #d7e6f8;
}
.option[aria-checked="true"] .key { background: var(--accent); color: var(--white); border-color: var(--accent); }
.kbd-hint { font-size: .85rem; color: var(--muted); margin-top: 14px; }
@media (hover: none) { .kbd-hint { display: none; } }

/* Forms */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: span 2; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .98rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line); border-radius: 10px;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(67, 156, 255, .35); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field .error { color: #b3261e; font-size: .9rem; margin-top: 4px; min-height: 0; }
.field .error:empty { display: none; }

.check {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 20px; padding: 14px; border-radius: 12px; background: var(--soft);
  cursor: pointer;
}
.check input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check span { font-size: .98rem; }

.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.actions { display: flex; gap: 12px; margin-top: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.actions .btn:not(.btn-ghost) { flex: 1 1 200px; }

/* Results */
.result { text-align: center; }
.score-ring { position: relative; width: 190px; height: 190px; margin: 8px auto 18px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-ring .track { stroke: var(--soft); }
.score-ring .bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.score-ring .num {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center;
}
.score-ring .num strong { font-size: 3.2rem; line-height: 1; letter-spacing: -.03em; }
.score-ring .num span { color: var(--muted); font-size: 1rem; }
.score-line { font-size: 1.15rem; margin-bottom: 6px; }
.band {
  display: inline-block; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  background: var(--soft); color: var(--accent-ink); margin: 6px 0 14px;
}
.band.band-low { background: #fdf0e6; color: #8a4500; }
.band.band-mid { background: var(--soft); color: var(--accent-ink); }
.band.band-high { background: #e8f5ec; color: #1d6a35; }
.result .text-left { text-align: left; }
.result .callout {
  text-align: left; background: var(--soft); border-radius: 12px; padding: 18px; margin: 20px 0;
}

/* Privacy page */
.prose h1 { margin-bottom: 6px; }
.prose h2 { margin-top: 30px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Phones: keep "Call now" and the number above the floating ElevenLabs widget */
@media (max-width: 639px) {
  main { padding-top: 18px; }
  .page-talk .eyebrow { margin-bottom: 10px; }
  .page-talk h1 { margin-bottom: 10px; }
  .page-talk .lead { font-size: 1.05rem; margin-bottom: 0; }
  .page-talk .ticks { margin: 14px 0 18px; gap: 6px 16px; }
  .page-talk .card { padding: 18px; }
  .page-talk .card-icon { display: none; }
  .page-talk .card p { margin-bottom: 10px; }
  .page-talk .phone-display { margin-top: 8px; }
}
