/* Stool Checker — accessible, responsive stylesheet
   Native system fonts are deliberate: no external font dependency is required. */

:root {
  --page-bg: #f5f5f3;
  --surface: #ffffff;
  --surface-muted: #f9f9f7;
  --surface-strong: #1a1a1a;
  --text: #1a1a1a;
  --text-muted: #4f4f4f;
  --text-subtle: #626262;
  --text-faint: #6b6b6b;
  --border: #d7d7d4;
  --border-soft: #e5e5e2;
  --focus: #005fcc;
  --focus-on-dark: #8bd3ff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --display: ui-rounded, "Arial Rounded MT Bold", "Avenir Next", Avenir, var(--sans);
}

/* ─── BASE AND ACCESSIBILITY ─── */

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

html {
  min-width: 320px;
  background: var(--page-bg);
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

button {
  appearance: none;
}

button:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
a[href],
summary,
select {
  cursor: pointer;
}

img,
picture,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

svg {
  flex: 0 0 auto;
}

a {
  color: #0b5cad;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

a:hover {
  color: #063f78;
}

p,
h1,
h2,
h3,
h4,
ul,
ol {
  margin-top: 0;
}

p,
li,
span,
label,
legend,
button,
a,
input,
select,
textarea {
  overflow-wrap: anywhere;
}

/* Never allow script state and the HTML hidden attribute to disagree. */
[hidden] {
  display: none !important;
}

.page,
.cscreen,
.tab-panel {
  display: none;
}

.page.active,
.cscreen.active,
.tab-panel.active {
  display: block;
}

.page,
.lp,
.checker,
.biz,
.privacy,
.privacy-page,
.section-card,
.biz-form-card,
.result-card,
.ad-card,
.waitlist-banner,
.type-btn,
.urine-btn,
.bsc-row,
.ad-row,
.status-row,
.site-nav,
.problem-grid,
.features-grid,
.offering-grid,
.venue-types,
.biz-stats,
.business-lead-form,
.lead-form,
.form-row,
.form-field,
.field-group {
  min-width: 0;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

:where(button, [role="button"], input, select, textarea):disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  min-height: 44px;
  max-width: calc(100vw - 1rem);
  padding: 0.7rem 1rem;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 0.15s ease-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  color: #ffffff;
  outline-color: var(--focus-on-dark);
}

.sr-only,
.visually-hidden,
[aria-live="polite"].sr-only,
[aria-live="polite"].visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Lets a visually-hidden destination become readable when directly focused. */
.sr-only:focus,
.visually-hidden:focus {
  position: fixed !important;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  padding: 0.7rem 1rem !important;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  white-space: normal !important;
}

/* ─── SHARED TYPOGRAPHY AND LAYOUT ─── */

.lp,
.biz,
.privacy,
.privacy-page {
  width: min(100%, 680px);
  margin-inline: auto;
  padding: 1.5rem 1rem 4rem;
}

.checker {
  width: min(100%, 420px);
  margin-inline: auto;
  padding: 1.5rem 1rem 3rem;
  font-family: var(--sans);
}

.lp-header {
  margin-bottom: 1rem;
  text-align: center;
}

.lp-logo,
.checker-wordmark,
.site-nav-logo {
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lp-logo {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.checker-wordmark {
  font-size: 1.4rem;
}

.checker-sub {
  margin-top: 4px;
  color: var(--text-subtle);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.section-card,
.biz-form-card,
.privacy-card {
  margin-bottom: 1rem;
  padding: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.section-card h2,
.cta-card h2,
.biz-form-card h2,
.privacy-card h1,
.privacy-card h2,
.privacy-page h1,
.privacy-page h2 {
  margin-bottom: 0.75rem;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
}

.section-card h2 {
  font-size: clamp(1.45rem, 4vw, 1.6rem);
}

.section-card p,
.biz-form-card > p,
.privacy-card p,
.privacy-page p,
.privacy-page li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.section-card p:last-child,
.biz-form-card > p:last-child,
.privacy-card p:last-child {
  margin-bottom: 0;
}

.section-label {
  margin-bottom: 0.5rem;
  color: var(--text-faint);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 1.25rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8f5e9;
  color: #24652a;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* ─── NAVIGATION ─── */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-inline: 0.25rem;
}

.site-nav-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.site-nav-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  flex: 0 0 auto;
  padding: 0.45rem 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
}

button.site-nav-logo {
  cursor: pointer;
}

.site-nav-link,
a.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: color 0.12s ease, border-color 0.12s ease, background-color 0.12s ease, transform 0.12s ease;
}

.site-nav-link:hover,
a.site-nav-link:hover {
  border-color: #777777;
  color: var(--text);
}

.site-nav-link.highlight,
a.site-nav-link.highlight {
  border-color: var(--surface-strong);
  background: var(--surface-strong);
  color: #ffffff;
}

.site-nav-link.highlight:hover,
a.site-nav-link.highlight:hover {
  border-color: #363636;
  background: #363636;
  color: #ffffff;
}

/* ─── BUTTONS ─── */

.btn-primary,
.btn-check,
.btn-light,
.tally-btn,
.again-btn,
.ad-cta,
.form-submit,
.business-lead-form button[type="submit"],
.lead-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.15s ease, background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.btn-primary,
.btn-check,
.tally-btn,
.form-submit,
.business-lead-form button[type="submit"],
.lead-form button[type="submit"] {
  padding: 0.65rem 1.125rem;
  background: var(--surface-strong);
  color: #ffffff;
}

.btn-primary:hover,
.btn-check:hover,
.tally-btn:hover,
.form-submit:hover,
.business-lead-form button[type="submit"]:hover,
.lead-form button[type="submit"]:hover {
  background: #383838;
  color: #ffffff;
}

.btn-check {
  margin-top: 0.25rem;
  padding-inline: 1.375rem;
}

.btn-light {
  padding: 0.65rem 1.5rem;
  background: #ffffff;
  color: var(--text);
}

.btn-light:hover {
  background: #ededed;
  color: var(--text);
}

.again-btn {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border-color: var(--border);
  border-radius: var(--radius-md);
  background: var(--page-bg);
  color: var(--text);
}

.again-btn:hover {
  border-color: #a5a5a2;
  background: #eeeeeb;
}

.ad-cta {
  width: fit-content;
  margin-top: 0.65rem;
  padding: 0.55rem 0.875rem;
  border-color: #b8b8b5;
  border-radius: var(--radius-sm);
  background: #f5f5f5;
  color: var(--text);
  font-size: 0.8125rem;
}

.ad-cta:hover {
  border-color: #777777;
  background: #e9e9e7;
  color: var(--text);
}

/* ─── LANDING PAGE ─── */

.hero-card {
  padding: 2.5rem 2rem;
  text-align: center;
}

.hero-card h1 {
  margin-bottom: 1rem;
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
}

.hero-card p {
  max-width: 460px;
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.waitlist-form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  max-width: 400px;
  margin: 0 auto 0.75rem;
}

.waitlist-form input {
  min-width: 0;
  flex: 1 1 12rem;
}

.waitlist-form .btn-primary,
.waitlist-form button[type="submit"] {
  flex: 0 0 auto;
}

.counter {
  margin-top: 0.5rem;
  color: var(--text-faint);
  font-size: 0.75rem;
}

.success-msg {
  display: none;
  margin-top: 0.5rem;
  color: #24652a;
  font-size: 0.8125rem;
  font-weight: 600;
}

.success-msg:not([hidden]).is-visible,
.success-msg[aria-hidden="false"] {
  display: block;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 1.25rem;
}

.problem-item,
.feature,
.venue-type,
.offering-card {
  min-width: 0;
  border: 1px solid transparent;
  background: var(--surface-muted);
}

.problem-item {
  padding: 1rem;
  border-radius: 10px;
}

.problem-item p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* The reference icons use #bbb presentation attributes. Keep their quiet tone,
   but make them visible against the pale card background. */
.problem-item svg [stroke] {
  stroke: var(--text-faint);
}

.problem-item svg [fill="#bbb"] {
  fill: var(--text-faint);
}

.bsc-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 1.25rem;
}

.bsc-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--surface-muted);
}

.bsc-row.ideal {
  border-color: #1d9e75;
}

.bsc-visual,
.type-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 36px;
}

.bsc-name,
.type-name {
  display: block;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
}

.bsc-hint,
.type-hint {
  display: block;
  margin-top: 1px;
  color: var(--text-subtle);
  font-size: 0.6875rem;
  line-height: 1.35;
}

.bsc-tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.tag-concern { background: #fcebeb; color: #8b2525; }
.tag-ok { background: #eaf3de; color: #355f10; }
.tag-ideal { background: #e1f5ee; color: #0b604b; }
.tag-warn { background: #faeeda; color: #744308; }

.steps,
.how-list {
  display: flex;
  flex-direction: column;
  margin-top: 1.25rem;
}

.step,
.how-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: 1rem 0;
  border-bottom: 1px solid #ededeb;
}

.step:last-child,
.how-item:last-child {
  border-bottom: 0;
}

.step-num,
.how-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  margin-top: 2px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

.step-num {
  border: 1px solid var(--border);
  background: var(--page-bg);
  color: var(--text);
}

.how-num {
  background: var(--surface-strong);
  color: #ffffff;
}

.step h3,
.how-item h3,
.feature h3,
.offering-card h3 {
  margin: 0 0 3px;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
}

.step p,
.how-item p,
.feature p,
.offering-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.55;
}

.features-grid,
.offering-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 1.25rem;
}

.feature {
  padding: 1rem;
  border-radius: 10px;
}

.cta-card {
  padding: 2.5rem 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}

.cta-card h2 {
  font-size: clamp(1.55rem, 5vw, 1.8rem);
}

.cta-card p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

.try-now-card,
.biz-hero {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  color: #ffffff;
}

.try-now-card {
  margin-bottom: 1rem;
  padding: 2rem;
  text-align: center;
}

.try-now-card h2,
.biz-hero h1 {
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
}

.try-now-card h2 {
  font-size: 1.5rem;
}

.try-now-card p,
.biz-hero p {
  color: #d6d6d6;
  line-height: 1.6;
}

.try-now-card p {
  margin-bottom: 1.25rem;
  font-size: 0.8125rem;
}

.try-now-card :is(a, button, input, select, textarea, [tabindex]):focus-visible,
.biz-hero :is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline-color: var(--focus-on-dark);
}

/* ─── CHECKER ─── */

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  margin-bottom: 1.25rem;
  padding: 0.5rem 0.25rem;
  border: 0;
  background: transparent;
  color: var(--text-subtle);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.back-btn:hover {
  color: var(--text);
}

.q {
  margin-bottom: 0.3rem;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(1.1rem, 5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.q-sub {
  margin-bottom: 1.25rem;
  color: var(--text-subtle);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
}

.type-list,
.urine-list,
.result-wrap,
.u-result-wrap,
.advice-list {
  display: flex;
  flex-direction: column;
}

.type-list,
.urine-list {
  gap: 6px;
}

.type-btn,
.urine-btn {
  display: grid;
  width: 100%;
  min-height: 56px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition: border-color 0.12s ease, background-color 0.12s ease, transform 0.12s ease;
}

.type-btn {
  grid-template-columns: 50px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
}

.urine-btn {
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
}

.type-btn:hover,
.urine-btn:hover {
  border-color: #787878;
  background: #fafafa;
}

.type-btn:active,
.urine-btn:active,
.site-nav-link:active,
.btn-primary:active,
.btn-check:active,
.btn-light:active,
.tally-btn:active,
.again-btn:active,
.form-submit:active {
  transform: translateY(1px);
}

.type-btn.ideal-btn {
  border-color: #1d9e75;
}

.urine-swatch {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid rgb(0 0 0 / 14%);
  border-radius: 50%;
}

.urine-swatch-1 { background: #fefce8; }
.urine-swatch-2 { background: #fef08a; }
.urine-swatch-3 { background: #fde047; }
.urine-swatch-4 { background: #eab308; }
.urine-swatch-5 { background: #ca8a04; }
.urine-swatch-6 { background: #92400e; }
.urine-swatch-7 { background: #fca5a5; }
.urine-swatch-8 { background: #c4b5fd; }
.urine-swatch-9 { background: #d1d5db; }

.type-num {
  color: var(--text-faint);
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
  text-align: right;
}

/* ─── RESULTS ─── */

.result-wrap,
.u-result-wrap {
  gap: 10px;
}

.result-card,
.ad-card,
.waitlist-banner {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.result-top {
  padding: 1.25rem 1.25rem 1rem;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.status-type {
  min-width: 0;
  color: var(--text-subtle);
  font-size: 0.75rem;
  line-height: 1.4;
}

.result-headline {
  margin-bottom: 0.5rem;
  border-radius: 3px;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  scroll-margin-block: 1rem;
}

/* Dynamic result headings can receive tabindex="-1" for keyboard focus after
   selection without looking like an interactive control until focused. */
.result-headline[tabindex],
.result-heading[tabindex],
[role="heading"][tabindex] {
  outline-offset: 4px;
}

.scale-track,
.urine-scale-track {
  display: flex;
  gap: 3px;
  margin-bottom: 4px;
}

.scale-track {
  min-height: 4px;
}

.scale-seg {
  min-width: 0;
  flex: 1 1 0;
  height: 4px;
  border-radius: 2px;
  background: #dededb;
}

.urine-scale-track {
  height: 8px;
  overflow: hidden;
  border-radius: 6px;
}

.urine-scale-seg {
  min-width: 0;
  flex: 1 1 0;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 1rem;
  color: var(--text-faint);
  font-size: 0.625rem;
  line-height: 1.25;
}

.scale-labels span:nth-child(2) {
  text-align: center;
}

.scale-labels span:last-child {
  text-align: right;
}

.divider {
  height: 1px;
  background: #e7e7e4;
}

.advice-section {
  padding: 1rem 1.25rem;
}

.advice-heading,
.ad-label {
  color: var(--text-faint);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.advice-heading {
  margin-bottom: 0.75rem;
}

.advice-list {
  gap: 9px;
}

.advice-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.advice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}

.advice-text {
  min-width: 0;
  color: #444444;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.gp-banner {
  margin: 0 1.25rem 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid;
  border-radius: var(--radius-sm);
  color: #633806;
  font-size: 0.75rem;
  line-height: 1.5;
}

.gp-banner strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.75rem;
  font-weight: 700;
}

.ad-card {
  padding: 1rem 1.25rem;
}

.ad-label {
  margin-bottom: 0.6rem;
}

.ad-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ad-row > :last-child {
  min-width: 0;
}

.ad-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: var(--radius-sm);
  font-size: 1.125rem;
}

.ad-brand {
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
}

.ad-tagline {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.waitlist-banner {
  padding: 1.25rem;
  text-align: center;
}

.waitlist-banner h3 {
  margin: 0 0 0.3rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.waitlist-banner p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.disclaimer {
  padding: 0 0.5rem;
  color: var(--text-faint);
  font-size: 0.6875rem;
  line-height: 1.5;
  text-align: center;
}

/* ─── TAB SWITCHER ─── */

.tab-bar {
  display: flex;
  gap: 3px;
  margin-bottom: 1.25rem;
  padding: 3px;
  border-radius: var(--radius-md);
  background: #e9e9e6;
}

.tab-btn {
  min-width: 0;
  min-height: 44px;
  flex: 1 1 0;
  padding: 0.55rem 0.5rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--text-subtle);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active,
.tab-btn[aria-selected="true"] {
  border-color: #eeeeec;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
}

/* ─── EMBEDS AND FORMS ─── */

iframe[data-tally-src],
.tally-embed,
.tally-frame,
.embed-frame {
  width: 100%;
  max-width: 100%;
  height: 420px;
  min-height: 300px;
  margin-inline: auto;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
}

.tally-loader { margin: 1rem 0; }
.tally-notice { color: var(--text-muted); font-size: 0.875rem; line-height: 1.5; }
.tally-loader-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.75rem; }
.tally-fallback-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.875rem; }

.precheck-disclaimer, .health-resources, .noscript-notice {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}
.precheck-disclaimer h2, .health-resources h2 { margin-bottom: 0.35rem; color: var(--text); font-size: 1rem; }
.precheck-disclaimer p:last-child, .health-resources p:last-child { margin-bottom: 0; }
.noscript-notice { max-width: 42rem; margin: 1rem auto; }

.biz-form-card iframe[data-tally-src],
.business-lead-form iframe[data-tally-src],
.lead-form iframe[data-tally-src] {
  min-height: 300px;
}

.tally-placeholder,
.embed-placeholder {
  display: grid;
  width: 100%;
  min-height: 180px;
  place-items: center;
  padding: 1rem;
  border: 1px dashed #9a9a96;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
}

.tally-placeholder > *,
.embed-placeholder > * {
  max-width: 100%;
}

.form-field,
.field-group {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.business-lead-form,
.lead-form,
.biz-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.business-lead-form label,
.lead-form label,
.biz-form label,
.waitlist-form label,
label {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
}

.business-lead-form :is(input, select, textarea),
.lead-form :is(input, select, textarea),
.biz-form :is(input, select, textarea),
.waitlist-form input,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.625rem 0.75rem;
  border: 1px solid #a3a3a0;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
}

select {
  padding-right: 2.25rem;
}

input::placeholder,
textarea::placeholder {
  color: #6b6b6b;
  opacity: 1;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #6d6d6a;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"],
.is-invalid {
  border-color: #b42318;
}

.field-hint,
.form-hint,
.field-error,
.form-error {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.field-hint,
.form-hint {
  color: var(--text-subtle);
}

.field-error,
.form-error {
  color: #a32d2d;
  font-weight: 600;
}

.checkbox-field,
.radio-field {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  min-height: 44px;
}

.checkbox-field input,
.radio-field input,
input[type="checkbox"],
input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 1.125rem;
  margin-top: 0.15rem;
  accent-color: #0b5cad;
}

.checkbox-field label,
.radio-field label {
  font-weight: 400;
}

/* ─── BUSINESS PAGE ─── */

.biz-hero {
  margin-bottom: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
}

.biz-hero h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.7rem, 6vw, 2rem);
}

.biz-hero p {
  max-width: 420px;
  margin: 0 auto 1.5rem;
  font-size: 0.875rem;
}

.biz-hero .badge {
  background: rgb(255 255 255 / 14%);
  color: #ffffff;
}

.biz-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 1rem;
}

.biz-stat {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  text-align: center;
}

.biz-stat-num {
  display: block;
  color: var(--text);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.biz-stat-label {
  display: block;
  margin-top: 3px;
  color: var(--text-subtle);
  font-size: 0.6875rem;
  line-height: 1.4;
}

.offering-card {
  padding: 1.25rem;
  border-color: var(--border-soft);
  border-radius: var(--radius-md);
}

.offering-card.featured {
  grid-column: 1 / -1;
  border-color: var(--surface-strong);
  background: var(--surface);
}

.offering-icon {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  line-height: 1;
}

.offering-price {
  display: block;
  margin-top: 0.5rem;
  color: var(--text);
  font-family: var(--display);
  font-size: 0.6875rem;
  font-weight: 700;
}

.venue-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 1.25rem;
}

.venue-type {
  padding: 0.75rem;
  border-color: var(--border-soft);
  border-radius: 10px;
  text-align: center;
}

.venue-type span {
  display: block;
  min-height: 20px;
  margin-bottom: 4px;
  font-size: 1.25rem;
  line-height: 1;
}

.venue-type h3,
.venue-type p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}

.biz-form-card h2 {
  font-size: clamp(1.35rem, 5vw, 1.5rem);
}

/* ─── PRIVACY PAGE ─── */

.privacy,
.privacy-page {
  color: var(--text);
}

.privacy-header,
.privacy-page-header {
  margin-bottom: 1rem;
}

.privacy-card,
.privacy-content {
  background: var(--surface);
}

.privacy-content {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.privacy-card h1,
.privacy-page h1 {
  font-size: clamp(1.85rem, 6vw, 2.35rem);
}

.privacy-card h2,
.privacy-content h2,
.privacy-page h2 {
  margin-top: 1.75rem;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
}

.privacy-card h2:first-child,
.privacy-content h2:first-child,
.privacy-page h2:first-child {
  margin-top: 0;
}

.privacy-card h3,
.privacy-content h3,
.privacy-page h3 {
  margin: 1.25rem 0 0.35rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.35;
}

.privacy-card ul,
.privacy-card ol,
.privacy-content ul,
.privacy-content ol,
.privacy-page ul,
.privacy-page ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.privacy-card li + li,
.privacy-content li + li,
.privacy-page li + li {
  margin-top: 0.4rem;
}

.privacy-meta,
.privacy-updated {
  color: var(--text-subtle);
  font-size: 0.8125rem;
}

/* ─── RESPONSIVE LAYOUT ─── */

@media (max-width: 540px) {
  .section-card,
  .biz-form-card,
  .privacy-content {
    padding: 1.5rem;
  }

  .hero-card,
  .cta-card,
  .biz-hero {
    padding: 2rem 1.5rem;
  }

  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .biz-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .biz-stat:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 400px) {
  html,
  body {
    min-width: 320px;
  }

  .lp,
  .biz,
  .privacy,
  .privacy-page,
  .checker {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .site-nav {
    align-items: center;
    gap: 0.5rem;
    padding-inline: 0;
  }

  .site-nav-logo {
    font-size: 0.9375rem;
  }

  .site-nav-link,
  a.site-nav-link {
    max-width: 52%;
    padding-inline: 0.7rem;
    font-size: 0.75rem;
  }

  .section-card,
  .biz-form-card,
  .privacy-content {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .hero-card,
  .cta-card,
  .try-now-card,
  .biz-hero {
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
  }

  .hero-card h1 {
    font-size: 2rem;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form .btn-primary,
  .waitlist-form button[type="submit"] {
    width: 100%;
  }

  .problem-grid,
  .features-grid,
  .offering-grid,
  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .offering-card.featured {
    grid-column: auto;
  }

  .venue-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .biz-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .biz-stat:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .bsc-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 8px;
    padding-inline: 10px;
  }

  .bsc-visual svg {
    max-width: 44px;
  }

  .type-btn {
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    gap: 8px;
    padding-inline: 10px;
  }

  .type-visual svg {
    max-width: 44px;
  }

  .urine-btn {
    grid-template-columns: 40px minmax(0, 1fr) 22px;
    gap: 8px;
    padding-inline: 10px;
  }

  .type-num {
    font-size: 0.9375rem;
  }

  .result-top,
  .advice-section,
  .ad-card {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .gp-banner {
    margin-right: 1rem;
    margin-left: 1rem;
  }

  .status-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .scale-labels {
    font-size: 0.5625rem;
  }

  .waitlist-banner {
    padding: 1rem;
  }

  .privacy-card h1,
  .privacy-page h1 {
    font-size: 1.85rem;
  }
}

@media (max-width: 340px) {
  .site-nav {
    flex-wrap: wrap;
  }

  .site-nav-logo {
    width: 100%;
  }

  .site-nav-link,
  a.site-nav-link {
    max-width: none;
  }

  .bsc-tag {
    padding-inline: 6px;
    font-size: 0.5625rem;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
