/* ==========================================================================
   Vayu — Family Air Quality Assistant — Bold & Animated (No Liquid Glass)
   Solid Google colours (#34A853, #FBBC05, #EA4335, #4285F4), thick ink
   borders, hard offset shadows, Archivo headlines, zero translucency/blur.
   ========================================================================== */

@property --band { syntax: "<color>"; inherits: true; initial-value: #FBBC05; }
@property --band-strong { syntax: "<color>"; inherits: true; initial-value: #FBBC05; }
@property --band-soft { syntax: "<color>"; inherits: true; initial-value: #FEE8A3; }
@property --band-tint-1 { syntax: "<color>"; inherits: true; initial-value: #FEF0C3; }
@property --band-tint-2 { syntax: "<color>"; inherits: true; initial-value: #FFF9E3; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #FBBC05; }
@property --accent-soft { syntax: "<color>"; inherits: true; initial-value: #FEE8A3; }

:root {
  color-scheme: light;
  --google-blue: #4285F4;
  --google-red: #EA4335;
  --google-yellow: #FBBC05;
  --google-green: #34A853;

  --band: #FBBC05;
  --band-strong: #FBBC05;
  --band-soft: #FEE8A3;
  --band-tint-1: #FEF0C3;
  --band-tint-2: #FFF9E3;
  --accent: #FBBC05;
  --accent-soft: #FEE8A3;
  --on-band: #202124;

  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FEE8A3;
  --surface-3: #FFFFFF;
  --ink: #202124;
  --ink-2: #3C4043;
  --muted: #5F6368;
  --line: #DADCE0;
  --code-bg: #202124;
  --code-ink: #E8EAED;

  --radius: 14px;
  --hard: 7px 7px 0 var(--ink);

  transition:
    --band .55s ease,
    --band-strong .55s ease,
    --band-soft .55s ease,
    --band-tint-1 .55s ease,
    --band-tint-2 .55s ease,
    --accent .55s ease,
    --accent-soft .55s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #202124;
    --surface: #202124;
    --surface-2: #574518;
    --surface-3: #28292D;
    --ink: #E8EAED;
    --ink-2: #DADCE0;
    --muted: #9AA0A6;
    --line: #3C4043;
    --code-bg: #131314;
    --code-ink: #E8EAED;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
button, [role="button"], select, summary, input:not([type="checkbox"]):not([type="radio"]) { min-height: 2.25rem; }

body {
  margin: 0;
  background-color: var(--band-tint-2);
  background-image:
    repeating-linear-gradient(-45deg, var(--band-tint-1) 0 26px, var(--band-tint-2) 26px 52px);
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .55s ease, color .25s ease;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px 64px; }
a { color: #4285F4; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Solid Cards & Borders (No Liquid Glass) ---------- */
.card, header.hero, .stat {
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--hard);
  transition: background-color .55s ease, border-color .55s ease, box-shadow .55s ease;
}

/* ---------- Dark Hero with 4-Colour Top Bar & Ticker ---------- */
header.hero {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
  padding: 40px 28px 26px;
  background: #202124;
  color: #FFFFFF;
  border-color: #202124;
  box-shadow: 7px 7px 0 var(--band);
}

@media (prefers-color-scheme: dark) {
  header.hero {
    border-color: var(--ink);
  }
}

header.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    #4285F4 0 25%,
    #EA4335 0 50%,
    #FBBC05 0 75%,
    #34A853 0 100%
  );
}

@media (max-width: 560px) {
  header.hero { padding: 34px 18px 20px; }
}

.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 6px 12px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #202124;
  border: 2px solid #FFFFFF;
}
.tag.solid {
  background: #4285F4;
  border-color: #4285F4;
  color: #FFFFFF;
}
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

h1 {
  font-family: "Archivo", "Roboto", sans-serif;
  font-size: clamp(36px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 900;
  margin: 0 0 14px;
  max-width: 16ch;
  color: #FFFFFF;
}
h1 em { font-style: normal; color: var(--band); transition: color .55s ease; }

.lede {
  font-size: clamp(16px, 2vw, 18.5px);
  color: #E8EAED;
  font-weight: 500;
  max-width: 64ch;
  margin: 0 0 20px;
}

.ticker {
  overflow: hidden;
  border-top: 3px solid #5F6368;
  border-bottom: 3px solid #5F6368;
  margin: 0 -28px 20px;
  padding: 8px 0;
  background: #131314;
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--band);
  will-change: transform;
}
.ticker-track span { padding: 0 18px; }

.honesty {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #FFFFFF;
  color: #3C4043;
  border: 2px solid #FFFFFF;
  border-radius: 10px;
  padding: 12px 16px;
  max-width: 780px;
  font-size: 14.5px;
  box-shadow: 5px 5px 0 var(--band);
}
.honesty strong { color: #202124; }

/* ---------- Main Grid ---------- */
.layout {
  display: grid;
  grid-template-columns: 405px 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}
@media (max-width: 940px) { .layout { grid-template-columns: 1fr; } }

.form-card { padding: 22px; position: sticky; top: 16px; }
@media (max-width: 940px) { .form-card { position: static; } }

.form-card h2, .section-head h2, .info-card h2 {
  font-family: "Archivo", "Roboto", sans-serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.form-card .sub { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }

fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend, .field-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0;
}

select, input[type="number"], input[type="text"], input[type="password"] {
  width: 100%;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-3);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 9px 12px;
  min-height: 44px;
}
select:focus-visible, input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid #4285F4;
  outline-offset: 2px;
}

/* ---------- City Search ---------- */
.search-wrap { position: relative; }
.search-wrap input[type="text"] { padding-right: 40px; min-height: 50px; font-size: 16px; }
.search-icon { position: absolute; right: 14px; top: 13px; font-size: 18px; pointer-events: none; }

.suggest {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
  max-height: 310px;
  overflow-y: auto;
}
.suggest button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
  cursor: pointer;
  min-height: 48px;
}
.suggest button:last-child { border-bottom: 0; }
.suggest button:hover, .suggest button.active { background: var(--band-tint-1); }
.suggest .s-dot { width: 13px; height: 13px; flex: none; border-radius: 50%; border: 2px solid var(--ink); }
.suggest .s-name { font-weight: 800; font-size: 15px; }
.suggest .s-meta { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.suggest .s-aqi { margin-left: auto; font-size: 12.5px; font-weight: 900; white-space: nowrap; }

.not-found {
  margin-top: 8px;
  padding: 10px 12px;
  border: 2px solid #EA4335;
  border-radius: 10px;
  background: #FDECEA;
  color: #202124;
  font-size: 14px;
  font-weight: 700;
}
.quick-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 8px;
}
.current-city { font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin: 10px 0 0; }
.current-city strong { color: var(--ink); }

/* ---------- Detect Location Button & Geo Note (V2) ---------- */
.detect-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  padding: 7px 14px;
  min-height: 38px;
  margin-top: 8px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.geo-note {
  font-size: 11.5px;
  color: var(--muted);
  margin: 6px 0 0;
  font-style: italic;
}
.geo-result {
  margin-top: 6px;
  padding: 8px 12px;
  border: 2px solid #4285F4;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

/* ---------- Live AQI Bar (V2) ---------- */
.live-aqi-bar {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 2px solid var(--band-strong);
  border-radius: 10px;
  background: var(--band-tint-1);
}
.live-aqi-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}
.live-badge {
  font-size: 12px;
  font-weight: 900;
  color: #34A853;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.live-detail { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.live-time { font-size: 12px; font-weight: 600; color: var(--muted); }
.live-aqi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.btn-sm { font-size: 12px; padding: 4px 10px; min-height: 30px; }
.live-aqi-note {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
  font-style: italic;
}

/* ---------- Pills & Toggles ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill, .btn-secondary {
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 13px;
  min-height: 40px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.pill[aria-pressed="true"] {
  background: var(--band);
  color: var(--on-band);
}
.pill .pill-sub { font-weight: 700; opacity: .8; font-size: 11.5px; margin-left: 4px; }

.toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 440px) { .toggle-grid { grid-template-columns: 1fr; } }
.toggle-grid .pill { border-radius: 10px; text-align: left; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.toggle-grid .pill .tick {
  width: 18px; height: 18px; flex: none;
  border-radius: 5px;
  border: 2px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
}
.toggle-grid .pill[aria-pressed="true"] .tick::after { content: "✓"; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 460px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- AQI Controls & Indian CPCB Legend ---------- */
.aqi-control { display: flex; gap: 12px; align-items: center; }
.aqi-control input[type="number"] { width: 96px; flex: none; text-align: center; font-weight: 900; font-size: 20px; }
input[type="range"] { flex: 1; accent-color: var(--band-strong); height: 36px; cursor: pointer; touch-action: pan-x; }

.aqi-scale {
  display: flex;
  height: 10px;
  border-radius: 99px;
  border: 2px solid var(--ink);
  overflow: hidden;
  margin-top: 4px;
}
.aqi-scale span { flex: 1; }

.aqi-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1.5px solid var(--ink);
  background: var(--surface-3);
  color: var(--ink);
}
.legend-chip i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  border: 1px solid var(--ink);
}

.aqi-hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.aqi-hint button {
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  color: #4285F4;
  background: none;
  border: 0;
  padding: 4px 2px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.generate-btn {
  width: 100%;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  background: #4285F4;
  color: #FFFFFF;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 14px 18px;
  min-height: 52px;
  margin-top: 4px;
  box-shadow: 5px 5px 0 var(--ink);
}
.form-note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 10px 0 0; }

/* ---------- Results Column ---------- */
.results { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

.band-card {
  padding: 0;
  overflow: hidden;
  box-shadow: 7px 7px 0 var(--band-strong);
}
.band-top {
  display: flex;
  gap: 20px;
  padding: 24px;
  align-items: center;
  background: var(--band);
  color: var(--on-band);
  border-bottom: 3px solid var(--ink);
  transition: background-color .55s ease, color .3s ease;
}
@media (max-width: 560px) { .band-top { flex-direction: column; align-items: flex-start; gap: 12px; } }

.band-num {
  font-family: "Archivo", "Roboto", sans-serif;
  font-size: 76px;
  font-weight: 900;
  line-height: .95;
  letter-spacing: -0.03em;
  color: var(--on-band);
  font-variant-numeric: tabular-nums;
}
.band-num small {
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  margin-top: 6px;
  color: var(--on-band);
}
.band-name {
  font-family: "Archivo", "Roboto", sans-serif;
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 4px;
  color: var(--on-band);
}
.band-city { font-size: 14px; font-weight: 800; margin: 0 0 8px; color: var(--on-band); }
.band-desc { font-size: 15px; margin: 0; max-width: 54ch; color: var(--on-band); font-weight: 500; }

.beyond-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #FFFFFF;
  color: #202124;
  border: 2px solid #202124;
  font-size: 14px;
  max-width: 56ch;
}
.beyond-note strong { color: #EA4335; }

.band-body { padding: 20px 24px 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .band-body { grid-template-columns: 1fr; } }
.band-body h3 {
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.band-body ul { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); }
.band-body li { margin-bottom: 5px; }

.band-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.band-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.band-table tr:last-child td { border-bottom: 0; }
.band-table tr.current td { font-weight: 800; color: var(--ink); background: var(--band-tint-1); }
.swatch {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 3px;
  border: 1.5px solid var(--ink);
  margin-right: 8px;
  vertical-align: -1px;
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }
.stat { padding: 16px 18px; }
.stat .stat-num {
  font-family: "Archivo", "Roboto", sans-serif;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--band-strong);
  font-variant-numeric: tabular-nums;
}
@media (prefers-color-scheme: light) {
  /* Keep yellow stat numbers readable against white background */
  body[data-band="Moderate"] .stat .stat-num,
  body[data-band="Unhealthy for Sensitive Groups"] .stat .stat-num {
    color: #202124;
    background: #FBBC05;
    display: inline-block;
    padding: 2px 10px;
    border-radius: 8px;
    border: 2px solid #202124;
    margin-bottom: 4px;
  }
}
.stat .stat-label { font-size: 13.5px; font-weight: 800; color: var(--ink); margin-top: 2px; }
.stat .stat-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Plan Card & Gemini Layer ---------- */
.plan-card {
  padding: 24px;
  box-shadow: 7px 7px 0 #4285F4;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.section-head .sub { font-size: 13.5px; color: var(--muted); margin: 0; }

.gemini-box {
  margin-top: 14px;
  padding: 16px 18px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--band-tint-2);
  box-shadow: 4px 4px 0 #4285F4;
}
.gemini-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.gemini-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #4285F4;
  color: #FFFFFF;
  border: 2px solid var(--ink);
}
.gemini-status {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.gemini-summary {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
  white-space: pre-line;
}
.gemini-controls {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.gemini-controls input {
  flex: 1 1 220px;
  min-height: 40px;
  font-size: 13.5px;
}
.gemini-note {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}

.plan-section { padding: 18px 0 4px; border-top: 2px solid var(--line); margin-top: 14px; }
.plan-section:first-of-type { border-top: 0; margin-top: 6px; }
.plan-sec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.plan-sec-icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 10px;
  background: var(--band);
  color: var(--on-band);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.plan-sec-icon svg { width: 21px; height: 21px; }
.plan-sec-head h3 { font-size: 17px; font-weight: 900; margin: 0; }
.plan-sec-head .when { font-size: 12.5px; font-weight: 700; color: var(--muted); }

.plan-items { display: flex; flex-direction: column; gap: 10px; }
.plan-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 13px 15px;
  box-shadow: 3px 3px 0 var(--band);
}
@media (max-width: 560px) { .plan-item { grid-template-columns: 1fr; } }
.plan-item h4 { font-size: 15px; font-weight: 800; margin: 0 0 3px; }
.plan-item p { font-size: 14px; color: var(--ink-2); margin: 0; max-width: 58ch; }
.plan-item .why { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-top: 6px; display: block; }

.impact {
  align-self: start;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  background: var(--band);
  color: var(--on-band);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 11px;
}
.impact.neutral { background: var(--band-tint-1); color: var(--ink); }

.plan-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.empty-plan { text-align: center; padding: 34px 18px; color: var(--muted); font-size: 15px; }
.empty-plan strong { color: var(--ink); display: block; font-size: 17px; margin-bottom: 6px; }

/* ---------- Symptoms Card (V2) ---------- */
.symptoms-card {
  padding: 24px;
  box-shadow: 7px 7px 0 var(--band-strong);
}
.symptoms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
}
@media (max-width: 700px) { .symptoms-grid { grid-template-columns: 1fr; } }
.symptoms-section h3 {
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--band-strong);
  margin: 0 0 8px;
}
.symptoms-section ul {
  margin: 0;
  padding-left: 17px;
  font-size: 14px;
  color: var(--ink-2);
}
.symptoms-section li { margin-bottom: 5px; }
.symptoms-disclaimer {
  margin-top: 16px;
  padding: 10px 14px;
  border: 2px solid #EA4335;
  border-radius: 10px;
  background: #FDECEA;
  color: #202124;
  font-size: 13.5px;
  font-weight: 700;
}
@media (prefers-color-scheme: dark) {
  .symptoms-disclaimer {
    background: #3D1E1A;
    color: #E8EAED;
  }
}

/* ---------- Info, Prompt Preview & README Cards ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
@media (max-width: 940px) { .info-grid { grid-template-columns: 1fr; } }
.info-card { padding: 24px; }
.info-card .sub { font-size: 14px; color: var(--muted); margin: 0 0 16px; }

.flow { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; }
.flow li { position: relative; padding: 0 0 16px 44px; }
.flow li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--band);
  color: var(--on-band);
  border: 2px solid var(--ink);
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow li::after { content: ""; position: absolute; left: 14px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.flow li:last-child::after { display: none; }
.flow li strong { display: block; font-size: 15px; }
.flow li span { font-size: 14px; color: var(--ink-2); }

pre.prompt {
  background: var(--code-bg);
  color: var(--code-ink);
  border: 2px solid var(--ink);
  border-radius: 11px;
  padding: 16px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12.2px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  max-height: 460px;
  overflow-y: auto;
}
pre.prompt .slot { color: #FBBC05; font-weight: 600; }

.readme-card { padding: 24px; margin-top: 22px; }
.readme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 14px; }
@media (max-width: 940px) { .readme-grid { grid-template-columns: 1fr; } }
.readme-grid h3 { font-size: 13.5px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: #4285F4; margin: 0 0 8px; }
.readme-grid p, .readme-grid li { font-size: 14px; color: var(--ink-2); }
.readme-grid ul { margin: 0; padding-left: 17px; }
.readme-grid li { margin-bottom: 5px; }
.readme-grid code, .info-card code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .92em;
  background: var(--band-tint-1);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 5px;
}

footer {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
}

/* ---------- Animations (Disabled under prefers-reduced-motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: tickerMove 18s linear infinite; }
  @keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  .card, header.hero, .stat { animation: boldIn .55s cubic-bezier(.22,1,.36,1) both; }
  .form-card { animation-delay: .05s; }
  .band-card { animation-delay: .12s; }
  .plan-card { animation-delay: .2s; }
  .readme-card { animation-delay: .1s; }
  .symptoms-card { animation-delay: .24s; }
  .stat:nth-child(1) { animation-delay: .16s; }
  .stat:nth-child(2) { animation-delay: .22s; }
  .stat:nth-child(3) { animation-delay: .28s; }
  @keyframes boldIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

  .band-num.pop { animation: numPop .45s cubic-bezier(.22,1,.36,1); display: inline-block; }
  @keyframes numPop { 0% { transform: scale(.82); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

  .suggest { animation: dropIn .18s ease both; }
  @keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

  .pill, .btn-secondary, .generate-btn, .detect-btn {
    transition: transform .15s ease, box-shadow .15s ease, background-color .3s ease, color .3s ease;
  }
  .pill:hover, .btn-secondary:hover, .detect-btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
  .pill:active, .btn-secondary:active, .detect-btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }
  .generate-btn:hover { transform: translate(-1px,-1px); box-shadow: 6px 6px 0 var(--ink); }
  .generate-btn:active { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--ink); }

  .plan-item { animation: boldIn .4s ease both; }

  .aqi-scale { position: relative; overflow: hidden; }
  .aqi-scale::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, #FFFFFF 50%, transparent 70%);
    animation: shimmer 2.6s ease-in-out infinite;
  }
  @keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root { transition: none; }
  body, .card, header.hero, .stat, .band-top, .ticker-track, .band-num.pop, .suggest, .plan-item, .aqi-scale::after, .pill, .btn-secondary, .generate-btn, .detect-btn {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ---------- Click Ripple Ring Only (No Cursor Follower, No Orb) ---------- */
.click-ripple {
  position: fixed;
  left: 0; top: 0;
  width: 14px; height: 14px;
  border: 2.5px solid var(--band);
  border-radius: 50%;
  background: transparent;
  pointer-events: none;
  z-index: 9999;
  opacity: .95;
  transform: translate(-50%, -50%) scale(.35);
  animation: clickRipple .5s ease-out forwards;
  will-change: transform, opacity;
}
@keyframes clickRipple {
  to { transform: translate(-50%, -50%) scale(3.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .click-ripple { display: none !important; animation: none !important; }
}
