/* Redeye Leads design system */
:root {
  --text: #1b212d;
  --bg: #fafafa;
  --bg-alt: #f2f2f2;
  --border: #e0e0e0;
  --muted: #5f6470;
  --brand: #a02222;
  --accent: #ed2c2c;
  --green: #16a34a;
  --radius: 10px;
  --radius-card: 12px;
  --header-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover:not(.btn) { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: 2.2rem; margin: 0 0 .5rem; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.01em; margin: 2rem 0 1.5rem; }
h3 { font-size: 1.1rem; margin: .5rem 0; }
p { margin: .5rem 0 1rem; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Header */
.site-header { background: rgba(255,255,255,.92); -webkit-backdrop-filter: saturate(180%) blur(8px); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.site-header.scrolled { box-shadow: 0 4px 16px rgba(27,33,45,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.logo img { height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--brand); text-decoration: none; }
.nav-toggle { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; padding: 0; }
.nav-toggle-line { display: block; width: 20px; height: 2px; border-radius: 1px; background: var(--text); transition: transform 180ms ease, opacity 180ms ease; }
body.nav-open .nav-toggle-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle-line:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.inline-form { display: inline; }

/* Buttons */
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: var(--radius);
  padding: .6rem 1.2rem; font-weight: 600; font-size: .95rem; cursor: pointer; min-height: 44px;
  background: none; color: var(--text); text-align: center;
  transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-row .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.btn.btn-primary { background: var(--brand); color: #fff; }
.btn.btn-primary:hover { background: #861b1b; color: #fff; }
.btn.btn-primary:active { background: #6f1616; color: #fff; }
.btn.btn-light { background: #fff; color: var(--text); }
.btn.btn-outline { border-color: var(--border); background: #fff; color: var(--text); }
.btn.btn-outline:hover { border-color: var(--brand); background: #fff5f5; color: var(--brand); }
.btn.btn-outline:active { background: #ffecec; }
.btn.btn-ghost { border: none; background: none; color: var(--muted); padding: .6rem .25rem; }
.btn.btn-ghost:hover { color: #4b525f; transform: none; }
.btn.btn-ghost:active { color: var(--text); }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin: .75rem 0; }

/* Banner/alerts */
.banner { background: #fff7ed; border-bottom: 1px solid #fdba74; color: #9a3412; padding: .6rem 1.25rem; text-align: center; font-size: .9rem; }
.banner a { color: #9a3412; font-weight: 600; }
.alert { border-radius: var(--radius); padding: .75rem 1rem; margin: .75rem 0; font-size: .95rem; border: 1px solid var(--border); background: #fff; }
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert-info { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* Hero + sections */
.hero { background: linear-gradient(135deg, #1b212d, #a02222); color: #fff; padding: 4.5rem 0; text-align: center; }
.hero h1 { font-size: 2.6rem; max-width: 720px; margin: 0 auto .75rem; }
.hero-sub { font-size: 1.2rem; color: #f3f4f6; max-width: 560px; margin: 0 auto 1.5rem; }
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.cta-band { background: linear-gradient(135deg, #1b212d, #a02222); color: #fff; padding: 3.5rem 0; text-align: center; }
.cta-band h2 { color: #fff; margin-top: 0; }

/* Cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 1.5rem 0; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.check { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #f0fdf4; color: var(--green); font-weight: 700; margin-bottom: .5rem; }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.75rem; position: relative; margin: .5rem 0; }
.checks li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.price-card { text-align: center; }
.price-card .price { font-size: 2rem; font-weight: 800; margin: .25rem 0; color: var(--text); }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: .5rem; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
th, td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.table-card { padding: .5rem .75rem; }

/* FAQ */
details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; margin: .6rem 0; }
details summary { font-weight: 600; cursor: pointer; }

/* Forms */
form p { margin: .6rem 0; }
form label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .25rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], input[type=url], input[type=tel], input[type=search], select, textarea {
  width: 100%; max-width: 480px; min-height: 44px; padding: .55rem .75rem; border: 1px solid var(--border);
  border-radius: var(--radius); font: inherit; color: var(--text); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(160,34,34,.25); border-color: var(--brand); }
.errorlist { color: #991b1b; list-style: none; padding: 0; margin: .25rem 0; font-size: .85rem; }
.helptext { color: var(--muted); font-size: .85rem; display: block; margin: .25rem 0 0; }
.form-card { max-width: 560px; }
.filter-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.filter-form input, .filter-form select { width: auto; }
.form-field { margin: .75rem 0; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.field-error { color: #991b1b; font-size: .85rem; margin: .25rem 0 0; }
.form-field.has-error input, .form-field.has-error select { border-color: #991b1b; }
.check-field { margin: 1rem 0; }
/* Pill toggles (checkbox + label) */
.pill-toggle {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; padding: .45rem 1rem;
  font-weight: 500; font-size: .9rem; background: #fff; margin: 0 .35rem .5rem 0;
}
.pill-toggle input { width: auto; min-height: 0; accent-color: var(--brand); margin: 0; }
.pill-toggle:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #fff; }
.day-pills ul { list-style: none; padding: 0; margin: .25rem 0 0; display: flex; flex-wrap: wrap; gap: .35rem; max-width: 480px; }
.day-pills li label {
  display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; font-weight: 500; font-size: .9rem;
  border: 1px solid var(--border); border-radius: 999px; padding: .45rem 1rem; background: #fff; margin: 0;
}
.day-pills li label:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #fff; }
.day-pills input { width: auto; min-height: 0; accent-color: var(--brand); margin: 0; }

/* App layout */
.app-layout { display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem; padding-top: 1.5rem; padding-bottom: 3rem; }
.app-sidebar { display: flex; flex-direction: column; gap: .25rem; }
.app-sidebar a { padding: .55rem .75rem; border-radius: 8px; color: var(--text); font-weight: 500; }
.app-sidebar a:hover { background: var(--bg-alt); text-decoration: none; }
.app-sidebar a.active { background: var(--brand); color: #fff; }
.app-content { min-width: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1rem 0; }
.stat { display: flex; flex-direction: column; gap: .25rem; }
.stat-num { font-size: 1.8rem; font-weight: 800; }
.status-card { margin-bottom: .5rem; }
.status-card h2 { margin: 0 0 .25rem; }
.empty-state { color: var(--muted); padding: 1rem .5rem; }

/* Progress */
.progress { background: var(--bg-alt); border-radius: 999px; height: 8px; width: 100%; max-width: 360px; overflow: hidden; margin: 1rem 0 .25rem; }
.progress-bar { background: var(--brand); height: 100%; border-radius: 999px; transition: width .3s; }

/* Pagination */
.pagination { display: flex; gap: 1rem; align-items: center; padding: .75rem; color: var(--muted); }

/* Footer */
.site-footer { background: #1b212d; color: #d1d5db; padding: 2.5rem 0 1rem; }
.site-footer, .footer-grid { overflow-wrap: anywhere; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: #fff; margin: 0 0 .5rem; }
.footer-grid a { display: block; color: #d1d5db; padding: .15rem 0; }
.footer-grid a:hover { color: #fff; }
.footer-logo { height: 32px; filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid #374151; margin-top: 2rem; padding-top: 1rem; font-size: .85rem; color: #9ca3af; }

.legal, .legal h2[id] { overflow-wrap: anywhere; }
.legal h2[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Responsive */
@media (max-width: 860px) {
  .cards-3, .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::before, .steps li:not(:last-child)::after { content: none; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 1.8rem; }
  h1 { font-size: 1.6rem; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 1.5rem; }
}
/* Mobile/tablet nav: hamburger below 960px */
@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .phone-icon { display: flex; }
  .app-company-name { display: none; }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; box-shadow: 0 12px 24px rgba(27,33,45,.12);
    flex-direction: column; align-items: stretch; padding: .25rem 1.25rem 1.25rem; gap: 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  body.nav-open .site-nav { display: flex; }
  body.nav-open { overflow: hidden; }
  .site-nav a:not(.btn) { min-height: 48px; display: flex; align-items: center; padding: 0 .25rem; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .site-nav .inline-form { border-bottom: 1px solid var(--border); }
  .site-nav .inline-form .btn { min-height: 48px; width: 100%; justify-content: flex-start; padding-left: .25rem; }
  .site-nav .btn.btn-primary { width: 100%; min-height: 48px; margin: .75rem 0 .25rem; }
}
@media (min-width: 961px) {
  .app-company-name + .inline-form { display: inline-flex; margin-left: .5rem; }
}

/* Status pills */
.pill { display: inline-block; border-radius: 999px; padding: .2rem .75rem; font-size: .8rem; font-weight: 600; }
.pill-pending_review, .pill-pending { background: #fef3c7; color: #92400e; }
.pill-live { background: #f0fdf4; color: var(--green); }
.pill-paused, .pill-declined { background: var(--bg-alt); color: var(--muted); }

/* Stat cards + pack cards */
.stat-grid-2 { grid-template-columns: repeat(2, 1fr); }
.stat .stat-num { font-size: 2.2rem; }
.badge-popular {
  display: inline-block; background: var(--brand); color: #fff; border-radius: 999px;
  font-size: .75rem; font-weight: 600; padding: .2rem .75rem; margin-bottom: .5rem;
}
.price-card.popular { border-color: var(--brand); }
.price-card .price { font-size: 2.2rem; font-weight: 800; margin: .25rem 0; color: var(--text); }
.small { font-size: .85rem; margin-top: -.25rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.staff-subnav { margin-bottom: .75rem; }

/* Wizard */
.wizard-steps { list-style: none; padding: 0; display: flex; gap: 1.5rem; margin: 1rem 0 1.5rem; flex-wrap: wrap; }
.wizard-steps li { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 500; font-size: .9rem; }
.wizard-steps .step-dot {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--bg-alt); color: var(--muted); font-weight: 700; font-size: .85rem;
}
.wizard-steps li.current { color: var(--text); }
.wizard-steps li.current .step-dot { background: var(--brand); color: #fff; }
.wizard-steps li.done .step-dot { background: var(--green); color: #fff; }
.review-card { margin-bottom: 1rem; max-width: 560px; }
.review-card h2 { margin-top: 0; }
.review-card h3 { font-size: 1rem; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.review-grid dt { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.review-grid dd { margin: 0 0 .5rem; font-weight: 500; }
.edit-link { font-size: .85rem; font-weight: 600; margin-left: .5rem; }

/* How it works connector (desktop) */
.steps li { position: relative; }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 18px; left: calc(100% - 1.25rem + 12px);
  width: calc(100% - 2.5rem - 24px); height: 2px; background: #d9d9de;
}
.steps li:not(:last-child)::before {
  content: ""; position: absolute; top: 13px; left: calc(100% - 1.25rem);
  width: 10px; height: 10px; border-top: 2px solid #d9d9de; border-right: 2px solid #d9d9de;
  transform: rotate(45deg);
}
@media (max-width: 860px) {
  .steps li:not(:last-child)::before, .steps li:not(:last-child)::after { content: none; }
}

/* Pricing teaser */
.price-teaser { text-align: center; max-width: 420px; margin: 1.5rem auto; }
.price-teaser-amount { font-size: 3rem; font-weight: 800; margin: 0; color: var(--text); }
.price-teaser-sub { font-weight: 600; margin: .25rem 0 .5rem; }

/* Mobile refinements */
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .footer-grid a:last-child { margin-bottom: 0; }
  .field-pair { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .stat-grid-2 { grid-template-columns: 1fr; }
}

.company-block { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; margin: 0 0 1.5rem; }
.guarantee-note { max-width: 680px; margin: 1.5rem auto 1rem; text-align: center; }
.price-card .checks { text-align: left; }
.price-includes li { font-size: .9rem; }
/* CRO: hero grid, sample card, trust strip, calculator, sticky CTA */
.eyebrow { text-transform: uppercase; letter-spacing: .06em; font-weight: 700; font-size: .85rem; color: #fecaca; margin: 0 0 .5rem; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2.5rem; align-items: center; text-align: left; }
.hero-grid h1, .hero-grid .hero-sub { margin-left: 0; max-width: none; }
.btn.hero-outline { border: 1.5px solid #fff; background: transparent; color: #fff; }
.btn.hero-outline:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }
.btn.hero-outline:active { background: rgba(255,255,255,.2); color: #fff; }
.hero-micro { color: #e5e7eb; font-size: .9rem; margin: .5rem 0 0; }
.sample-card-wrap { display: flex; justify-content: center; }
.sample-card { background: #fff; color: var(--text); border-radius: var(--radius); padding: 1.5rem; width: 100%; max-width: 340px; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.sample-label { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; font-weight: 700; color: var(--brand); margin: 0 0 .5rem; }
.sample-name { font-size: 1.25rem; font-weight: 700; margin: 0 0 .25rem; }
.sample-phone { font-size: 1.5rem; font-weight: 800; margin: 0 0 .75rem; }
.sample-tags { list-style: none; padding: 0; margin: 0 0 .75rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { border: 1px solid var(--border); background: var(--bg-alt); border-radius: 999px; padding: .2rem .7rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.tag-green { background: #f0fdf4; border-color: #bbf7d0; color: var(--green); }
.sample-tip { color: var(--muted); font-size: .85rem; margin: 0; }
.trust-strip { background: #fff; border-bottom: 1px solid var(--border); padding: .8rem 0; text-align: center; font-weight: 600; font-size: .95rem; }
.pricing-block { max-width: 480px; margin: 1.5rem auto; text-align: center; }
.pricing-packs { max-width: 260px; margin: 1rem auto; text-align: left; }
.guarantee-badge { display: inline-block; margin: .75rem 0 0; padding: .3rem .9rem; border-radius: 999px; background: #f0fdf4; color: var(--green); border: 1px solid #bbf7d0; font-weight: 700; font-size: .9rem; }
.calc { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2rem; align-items: center; margin: 1.5rem 0; }
.calc-outputs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.calc-out { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: .25rem; }
.calc-num { font-size: 2rem; font-weight: 800; }
.calc-roas { color: var(--green); }
.calc-cap { color: var(--muted); font-size: .85rem; }
.calc-inputs input { max-width: none; }
.cta-band-phone { color: #e5e7eb; margin: 1rem 0 0; }
.cta-band-phone a { color: #fff; font-weight: 700; text-decoration: underline; }
.header-phone { font-size: .9rem; font-weight: 600; }
.phone-icon { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; border: 1px solid var(--border); border-radius: 8px; color: var(--brand); margin-left: auto; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: .75rem; align-items: center; background: #fff; border-top: 1px solid var(--border); padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
.sticky-cta[hidden] { display: none; }
.sticky-cta-btn { flex: 1; min-height: 48px; }
.sticky-cta-call { font-weight: 700; white-space: nowrap; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-grid .hero-copy { text-align: center; }
  .hero-grid .hero-cta { justify-content: center; }
  .calc { grid-template-columns: 1fr; }
  .sticky-cta { display: flex; }
}
@media (min-width: 861px) {
  .sticky-cta { display: none !important; }
}
@media (min-width: 961px) {
  .phone-icon { display: none !important; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  .calc-outputs { grid-template-columns: 1fr 1fr; }
  .hero-grid .hero-micro { text-align: center; }
}
@media (max-width: 360px) {
  .calc-outputs { grid-template-columns: 1fr; }
}

/* ===== App polish ===== */

/* Header company name (desktop only, next to Log out) */
.app-company-name { color: var(--muted); font-size: .85rem; font-weight: 500; }
@media (max-width: 900px) {
  .who-grid, .leads-grid, .appt-grid { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .pack-rows, .setup-strip { max-width: none; }
}

/* Stat cards: equal height, 4 / 2 / 1 columns */
.stat-grid { align-items: stretch; }
.stat-grid .card.stat { height: 100%; margin: 0; padding: 1rem 1.25rem; }
.stat-label { color: var(--muted); font-weight: 500; }
.stat-actions { margin: 0 0 1.5rem; }
@media (max-width: 860px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; } }

/* Lead tables: stacked cards on phones (no horizontal scroll) */
.lead-table td a { color: var(--brand); }
.pill-delivered { background: #f0fdf4; color: var(--green); }
.pill-return_requested { background: #fef3c7; color: #92400e; }
.pill-returned { background: var(--bg-alt); color: var(--muted); }
.pill-return_denied { background: #fee2e2; color: var(--brand); }
.btn-sm { padding: .35rem .75rem; font-size: .85rem; min-height: 0; }
@media (max-width: 1000px) {
  .lead-table .table-wrap { overflow-x: visible; }
  .lead-table thead { display: none; }
  .lead-table table, .lead-table tbody { display: block; width: 100%; }
  .lead-table tr {
    display: block; border: 1px solid var(--border); border-radius: 10px;
    padding: .5rem .75rem; margin: .5rem 0; background: #fff;
  }
  .lead-table td {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 1rem; padding: .3rem 0; border: 0; text-align: right;
  }
  .lead-table td::before {
    content: attr(data-label); color: var(--muted); font-weight: 600;
    font-size: .75rem; text-transform: uppercase; letter-spacing: .04em;
    text-align: left;
  }
  .lead-table td[data-label=""]::before { content: none; }
  .lead-table td[data-label=""] { justify-content: flex-end; }
}

/* Billing: full-width buy buttons */
.pack-buy-form .btn-block { display: block; width: 100%; min-height: 48px; margin-top: auto; }
.price-card { display: flex; flex-direction: column; }
.checkout-note { margin-top: .75rem; }

/* Settings: titled section cards with two-column field grids */
.settings-card { max-width: none; margin-bottom: 1.25rem; }
.settings-card h2 { margin-top: 0; }
.form-grid { display: grid; gap: .75rem 1.25rem; margin-bottom: .75rem; }
.form-grid .form-field { margin-bottom: .5rem; }
.form-grid .day-pills { margin-bottom: 0; }
.input-suffix { display: flex; align-items: center; gap: .5rem; }
.input-suffix input { flex: 0 1 8rem; }
.input-suffix span { color: var(--muted); }
@media (min-width: 721px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* Slim app footer */
.app-footer { background: #1b212d; color: #9ca3af; padding: .9rem 0; margin-top: 2rem; }
.app-footer-inner {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center;
  justify-content: space-between; font-size: .85rem;
}
.app-footer a { color: #d1d5db; }
.app-footer a:hover { color: #fff; }
.app-footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }

/* Final app tweaks (Hermes QA) */
.price-card { position: relative; }
.price-card .badge-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; }
.app-content .form-grid input, .app-content .form-grid select, .app-content .form-card input, .app-content .form-card select { max-width: none; }
@media (min-width: 1100px) { .app-content table td, .app-content table th { white-space: nowrap; } }
.app-content .table-wrap, .app-content table { width: 100%; }
.app-content .pill-toggle { background: #fff; color: var(--text); border-color: var(--border); }
.app-content .pill-toggle:has(input:checked) { background: #fef2f2; color: var(--brand); border-color: var(--brand); }

/* Appointments info QA round 1 */
.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1020px) {
  .steps-4 { grid-template-columns: repeat(2, 1fr); }
  .steps.steps-4 li:not(:last-child)::before, .steps.steps-4 li:not(:last-child)::after { content: none; }
}
@media (max-width: 860px) {
  .steps-4 { grid-template-columns: 1fr; }
  .steps.steps-4 li:not(:last-child)::before, .steps.steps-4 li:not(:last-child)::after { content: none; }
}
.steps li:last-child::before, .steps li:last-child::after { content: none; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.feature-card p { margin: .5rem 0 0; }
.setup-line { text-align: center; margin: .25rem 0 1rem; font-weight: 600; }
.cards-single { max-width: 380px; margin: 1.5rem auto; }
.highlight-card { text-align: center; }
.highlight-card .guarantee-badge { display: inline-block; margin-bottom: .5rem; }
.feature-grid--centered { display: flex; flex-wrap: wrap; justify-content: center; }
.feature-grid--centered > .card { flex: 0 1 300px; max-width: 300px; margin: 0; }
@media (max-width: 600px) {
  .feature-grid--centered > .card { flex-basis: 100%; max-width: none; }
}

/* Homepage products grid */
.card-muted { background: var(--bg-alt); }
.card-muted .price, .card-muted h3 { color: var(--muted); }
.badge-soon { display: inline-block; background: #fff; border: 1px solid var(--border); color: var(--muted); border-radius: 999px; font-size: .75rem; font-weight: 600; padding: .2rem .75rem; margin-bottom: .5rem; }
.card-muted .price-includes { color: var(--muted); }

/* ===== Homepage CRO redesign ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hero-grid h1 { font-size: clamp(28px, 6vw, 46px); line-height: 1.08; max-width: 14ch; }
.hero-sub { max-width: 56ch; }
.sample-bought { font-size: 15px; font-weight: 600; color: var(--text); margin: 0; }
.sample-bought .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: .4rem; }
.trust-strip { font-weight: 600; font-size: 14px; }
.trust-strip .sep { color: var(--accent); margin: 0 .35rem; }
.blist { padding-left: 1.15rem; margin: .5rem 0 1rem; text-align: left; }
.setup-inline { font-weight: 600; }
.setup-inline .now, .setup-inline strong { color: var(--text); font-weight: 800; }
.card-soon { border-style: dashed; background: #fff; }
.card-soon .price, .card-soon h3 { color: #6b7280; }

/* Who you're calling */
.who-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 2.5rem; align-items: start; }
.lead-includes { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.lead-includes h3 { margin-top: 0; }
.lead-includes ul { list-style: none; padding: 0; margin: 0; }
.lead-includes li { padding: .55rem 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.lead-includes li:last-child { border-bottom: none; }
.who-grid > div > p:last-child { margin-bottom: 0; }

/* Leads pricing section */
.leads-grid { display: grid; grid-template-columns: 1fr 400px; gap: 2.5rem; align-items: start; }
.num-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.num-list li { display: flex; gap: .9rem; align-items: baseline; margin: 1.25rem 0; }
.num-list .num { color: var(--brand); font-weight: 800; font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.num-list div { max-width: 46ch; }
.pack-table { list-style: none; padding: 0; margin: 1rem auto; max-width: 280px; font-variant-numeric: tabular-nums; }
.pack-table li { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.pack-table li:last-child { border-bottom: none; }
.return-rule { background: #f6f6f6; border-left: 4px solid #1a7f37; border-radius: 6px; padding: .75rem 1rem; margin: 1rem 0 0; text-align: left; }
.return-rule p { margin: 0; font-size: .95rem; }
.return-rule a { font-weight: 600; white-space: nowrap; }

/* Appointment packs + setup strip */
.appt-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 2.5rem; align-items: start; margin-top: 2rem; }
.pack-rows { display: flex; flex-direction: column; gap: .75rem; max-width: 560px; }
.pack-row { display: flex; align-items: center; gap: 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1.1rem; flex-wrap: wrap; }
.pack-row-popular { border: 2px solid var(--brand); }
.pack-name { font-weight: 700; }
.pack-total { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.pack-row .btn { min-height: 44px; }
.setup-strip { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; background: #fff4f2; border-radius: 8px; padding: .75rem 1rem; margin: 1rem 0; max-width: 560px; }
.setup-fee-label { font-weight: 700; }
.was { color: #6b7280; text-decoration: line-through; text-decoration-color: #d0021b; text-decoration-thickness: 2px; font-size: 20px; }
.setup-strip .now, .setup-inline .now { font-size: 20px; }
.setup-strip .now { color: var(--text); font-weight: 800; }
.setup-note { color: #8b1a1a; font-size: 14px; font-weight: 600; }

/* No-show panel */
.noshow-panel { background: #fff; border: 1px solid #e5e7eb; border-left: 4px solid #8b1a1a; border-radius: var(--radius); padding: 28px; }
.noshow-panel h3 { font-size: 22px; font-weight: 700; margin: 0 0 1rem; }
.noshow-row { display: grid; grid-template-columns: 130px 1fr; gap: .75rem; padding: .7rem 0; border-bottom: 1px dashed #e5e7eb; }
.noshow-when { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #8b1a1a; font-weight: 700; font-variant-numeric: tabular-nums; padding-top: .2rem; }
.noshow-result { color: #1a7f37; font-weight: 700; margin: 1rem 0 .5rem; }
.noshow-exclude { color: #6b7280; font-size: 14px; margin: 0; }
.setup-strip .was, .setup-strip .now { line-height: 1; }
h3 .badge-soon { margin: 0 0 0 .5rem; vertical-align: middle; }

/* ROI calculator */
.calc-toggle { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.calc-toggle label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; cursor: pointer; }
.calc-toggle input { width: auto; min-height: 0; accent-color: var(--brand); margin: 0; }
.calc-pays { font-size: 1.15rem; font-weight: 700; margin: 1.25rem 0 .25rem; }

/* FAQ */
.faq-list details { border: none; border-radius: 0; border-bottom: 1px solid var(--border); padding: .9rem 0; margin: 0; }
.faq-list details summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-list details summary::-webkit-details-marker { display: none; }
.faq-list details summary::after { content: "+"; font-weight: 700; color: var(--brand); font-size: 1.2rem; flex-shrink: 0; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { font-size: 16px; }

/* Final CTA band, light variant */
.cta-band-light { background: #fbf3f2; color: var(--text); border-top: 4px solid #8b1a1a; }
.cta-band-light h2 { color: var(--text); }
.cta-band-note { color: var(--muted); margin: 1rem 0 0; }
.cta-band-note a { color: var(--brand); font-weight: 700; }

/* Responsive */
@media (max-width: 900px) {
  .who-grid, .leads-grid, .appt-grid { grid-template-columns: 1fr; }
  .pack-rows, .setup-strip { max-width: none; }
}
@media (max-width: 960px) {
  .btn:not(.btn-sm):not(.btn-ghost) { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 640px) {
  .hero-grid h1 { font-size: clamp(28px, 8.5vw, 34px); }
  .hero-copy { display: contents; }
  .hero-grid .eyebrow { order: 0; }
  .hero-grid h1 { order: 1; }
  .hero-grid .sample-card-wrap { order: 2; max-width: 92%; margin: 0 auto; }
  .hero-grid .hero-sub { order: 3; }
  .hero-grid .hero-cta { order: 4; }
  .hero-grid .hero-micro { order: 5; }
  .noshow-row { grid-template-columns: 96px 1fr; }
  .pack-total { font-size: 1rem; }
}
@media (max-width: 480px) {
  .pack-row { flex-wrap: wrap; }
  .pack-row .btn { flex: 1 1 100%; }
}
@media (max-width: 400px) {
  .noshow-row { grid-template-columns: 1fr; }
}

/* ===== Homepage fix5 polish ===== */
body { font-size: 17px; }
.section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.section .container > p, .who-grid p, .lead-includes, .noshow-panel { max-width: 62ch; }
.section .muted.center { margin-left: auto; margin-right: auto; }
.section h2 + .cards-3, .section h2 + .leads-grid, .section h2 + .steps, .section h2 + .calc { margin-top: 2rem; }

/* Cards: one radius, borders only, shadow sparingly */
.card { border-radius: var(--radius-card); }
.price-card { box-shadow: none; border: 1px solid #e8e8ec; }
.price-card.popular, .price-card:has(.badge-popular) { box-shadow: var(--shadow-soft); }
.cards-3 .price-card { display: flex; flex-direction: column; align-items: flex-start; }
.cards-3 .price-card h3, .cards-3 .price-card .price, .cards-3 .price-card .muted.small { align-self: flex-start; text-align: left; }
.cards-3 .price-card .price { margin-top: auto; }
.cards-3 .price-card > .btn, .cards-3 .price-card > form { margin-top: auto; }
.cards-3 .price-card .price + .muted.small { margin-top: -.75rem; }
.card-soon { border-color: #d6d6dc; }
.pricing-block { box-shadow: var(--shadow-soft); }

/* Pack rows, setup strip, no-show rhythm */
.setup-strip { width: 100%; max-width: 560px; margin-top: 1rem; }
.noshow-rules-link { font-size: 14px; margin: .5rem 0 0; }
.noshow-rules-link a { font-weight: 600; }

/* Calculator */
.calc { align-items: start; }
.calc-outputs, .calc-out { align-items: stretch; }
.calc-num { font-variant-numeric: tabular-nums; }
.calc-pays {
  display: inline-block; background: #fbf3f2; border-radius: 10px;
  padding: .6rem 1rem; font-size: 1.05rem;
}

/* FAQ: single container, dividers, animated +/− */
.faq-list {
  background: #fff; border: 1px solid #e8e8ec; border-radius: var(--radius-card);
  padding: .25rem 1.5rem; max-width: 820px; margin-left: auto; margin-right: auto;
}
.faq-list details { border: none; border-radius: 0; border-bottom: 1px solid var(--border); padding: 0; margin: 0; background: none; }
.faq-list details:last-child { border-bottom: none; }
.faq-list details summary {
  font-size: 18px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 22px 0; transition: color 150ms ease;
}
.faq-list details summary:hover { color: var(--brand); }
.faq-list details summary::-webkit-details-marker { display: none; }
.faq-list details summary::after {
  content: "+"; font-weight: 400; color: var(--brand); font-size: 14px;
  line-height: 1; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: 1px solid #d9d9de; border-radius: 50%;
  transition: transform 200ms ease;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p {
  font-size: 16px; color: #4a4f5a; padding: 0 0 22px; margin: 0; max-width: 62ch;
  animation: faq-in 180ms ease;
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details::details-content {
    height: 0; overflow: hidden; transition: height 200ms ease;
  }
  .faq-list details[open]::details-content { height: auto; }
}

/* Section rhythm on smaller screens */
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  body { font-size: 16px; }
  .faq-list { padding: .25rem 1.1rem; }
  .faq-list details summary { padding: 18px 0; font-size: 17px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transform: none; transition: none; }
  .faq-list details p { animation: none; }
  .faq-list details::details-content { transition: none; }
  .progress-bar { transition: none; }
}
