/* ==============================================
   ShopBurial Final Expense Funnel
   70s-warm palette, mobile-first, designed for ages 60-80.
   Body min 18px, tap targets 56px+, AAA contrast on cream.
   The original CoverSavvy CSS shipped --cs-* tokens and the rest of the
   stylesheet (1300+ lines below) references them by name. To keep the
   blast radius of the rebrand small, we redefine the same token names
   below with the ShopBurial 70s palette — every component automatically
   inherits the new look without rule-by-rule edits.
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* ShopBurial 70s palette */
  --sb-cream: #FBF6E9;          /* page background */
  --sb-paper: #F5EFE0;          /* card alt bg */
  --sb-paper-warm: #EFE5CD;     /* warmer alt bg, used for inset surfaces */
  --sb-espresso: #2D1F12;       /* primary text — 16:1 on cream, exceeds AAA */
  --sb-espresso-dark: #1F1408;  /* heading text, slightly darker */
  --sb-gold: #C9982E;           /* primary accent */
  --sb-gold-dark: #A07514;      /* hover/pressed states for gold */
  --sb-rust: #B8552E;           /* CTA / secondary accent */
  --sb-rust-dark: #8C3F1E;
  --sb-avocado: #5A6A3A;        /* trust / success */
  --sb-avocado-dark: #3F4A28;
  --sb-teak: #7B5E3A;           /* borders, muted text */
  --sb-sage: #A8AE8C;           /* subtle bg / disabled */
  --sb-error: #A8341B;          /* errors — deep rust-red, distinct from --sb-rust CTA */

  /* Legacy --cs-* tokens (referenced throughout the rest of this file).
     Re-aliased to ShopBurial palette so existing rules work unchanged.
     Semantically: --cs-green family becomes the gold accent, --cs-gray-section
     becomes cream, etc. */
  --cs-green: var(--sb-gold);
  --cs-green-dark: var(--sb-gold-dark);
  --cs-green-bg: var(--sb-paper);
  --cs-green-border: rgba(201, 152, 46, 0.30);
  --cs-green-light: rgba(201, 152, 46, 0.10);
  --cs-white: #FFFFFF;
  --cs-text: var(--sb-espresso);
  --cs-text-heading: var(--sb-espresso-dark);
  --cs-text-muted: var(--sb-teak);
  --cs-gray-section: var(--sb-cream);
  --cs-red: var(--sb-error);

  --cs-font-heading: 'Fraunces', 'Georgia', 'Cooper Black', serif;
  --cs-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --cs-radius: 16px;
  --cs-radius-sm: 12px;
  --cs-radius-pill: 50px;
  /* Slightly warmer shadow tint to sit on cream without looking grey */
  --cs-shadow: 0 1px 3px rgba(45, 31, 18, 0.06), 0 4px 16px rgba(45, 31, 18, 0.04);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--cs-font-body);
  color: var(--cs-text);
  background: var(--cs-gray-section);
  margin: 0;
  /* Bumped 16 → 18px: ShopBurial's audience is 60-80; default WCAG-AA legibility
     starts to fail at 16px on a phone for older eyes. */
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Fraunces looks best with optical sizing dialed up at large sizes — gives
   the chunky 70s display feel without being kitschy. The -0.02em tracking
   matches the brand-spec.html specimen. */
h1, h2, h3, .hero h1, .step-question, .agent-name {
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.02em;
}

/* ==============================================
   HEADER
   ============================================== */
.site-header {
  background: var(--cs-white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.header-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo img {
  height: 36px;
  width: auto;
}

/* ==============================================
   FUNNEL CONTAINER
   ============================================== */
.funnel-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  min-height: calc(100vh - 61px);
  display: flex;
  flex-direction: column;
}

/* ==============================================
   HERO / VALUE PROP
   ============================================== */
.hero {
  text-align: center;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-block;
  background: var(--cs-green-light);
  color: var(--cs-green);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--cs-radius-pill);
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--cs-font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--cs-text-heading);
  line-height: 1.25;
  margin: 0 0 8px;
}

.hero h1 .highlight {
  color: var(--cs-green);
}

.hero .subtitle {
  font-size: 15px;
  color: var(--cs-text-muted);
  margin: 0;
}

/* Variant D: compact hero — badge + one-line subtitle, no H1 */
.hero--compact {
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--cs-text-muted);
  margin: 10px 0 0;
  line-height: 1.5;
}

/* ==============================================
   PROGRESS BAR
   ============================================== */
.progress-container {
  margin-bottom: 24px;
}

.progress-bar {
  height: 6px;
  background: rgba(19, 156, 108, 0.12);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--cs-green);
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

.progress-text {
  font-size: 12px;
  color: var(--cs-text-muted);
  margin-top: 6px;
  text-align: right;
}

/* ==============================================
   STEP CARD
   ============================================== */
.step-card {
  background: var(--cs-white);
  border-radius: var(--cs-radius);
  padding: 32px 24px;
  box-shadow: var(--cs-shadow);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-card[hidden] {
  display: none;
}

.step-question {
  font-family: var(--cs-font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--cs-text-heading);
  margin: 0 0 6px;
  line-height: 1.3;
}

.step-helper {
  font-size: 14px;
  color: var(--cs-text-muted);
  margin: 0 0 24px;
}

/* ==============================================
   FORM ELEMENTS
   ============================================== */

/* Button select (gender, coverage, yes/no, budget) */
.btn-select-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-select-group.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-select {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--cs-radius-sm);
  background: var(--cs-white);
  font-family: var(--cs-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--cs-text);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.btn-select:hover {
  border-color: var(--cs-green-border);
  background: var(--cs-green-light);
}

.btn-select.selected {
  border-color: var(--cs-green);
  background: var(--cs-green-light);
  color: var(--cs-green-dark);
  font-weight: 600;
}

/* Text inputs */
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--cs-radius-sm);
  font-family: var(--cs-font-body);
  font-size: 16px;
  color: var(--cs-text);
  background: var(--cs-white);
  transition: border-color 0.15s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--cs-green);
}

.form-input.error {
  border-color: var(--cs-red);
}

.form-input::placeholder {
  color: #9CA3AF;
}

/* Select dropdown */
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--cs-radius-sm);
  font-family: var(--cs-font-body);
  font-size: 16px;
  color: var(--cs-text);
  background: var(--cs-white);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-select:focus {
  border-color: var(--cs-green);
}

/* DOB dropdowns */
.dob-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 8px;
}

.dob-row .field-error {
  grid-column: 1 / -1;
}

/* Input groups (name fields) */
.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Error message */
.field-error {
  font-size: 13px;
  color: var(--cs-red);
  margin-top: 6px;
  display: none;
}

.field-error.visible {
  display: block;
}

/* ==============================================
   NAVIGATION BUTTONS
   ============================================== */
.step-nav {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.btn-next {
  flex: 1;
  padding: 16px 24px;
  background: var(--cs-green);
  color: var(--cs-white);
  border: none;
  border-radius: var(--cs-radius-sm);
  font-family: var(--cs-font-heading);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: center;
}

.btn-next:hover {
  background: var(--cs-green-dark);
}

.btn-next:disabled {
  background: #D1D5DB;
  cursor: not-allowed;
}

.btn-back {
  padding: 16px 20px;
  background: transparent;
  color: var(--cs-text-muted);
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--cs-radius-sm);
  font-family: var(--cs-font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-back:hover {
  border-color: rgba(0,0,0,0.15);
  color: var(--cs-text);
}

/* ==============================================
   OTP SECTION
   ============================================== */
.otp-section {
  margin-top: 16px;
}

.otp-input-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.otp-input {
  flex: 1;
  padding: 14px 16px;
  border: 2px solid rgba(0,0,0,0.08);
  border-radius: var(--cs-radius-sm);
  font-family: var(--cs-font-body);
  font-size: 20px;
  text-align: center;
  letter-spacing: 8px;
  color: var(--cs-text);
  outline: none;
  transition: border-color 0.15s ease;
}

.otp-input:focus {
  border-color: var(--cs-green);
}

.btn-send-otp {
  padding: 14px 20px;
  background: var(--cs-green);
  color: var(--cs-white);
  border: none;
  border-radius: var(--cs-radius-sm);
  font-family: var(--cs-font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-send-otp:hover {
  background: var(--cs-green-dark);
}

.btn-send-otp:disabled {
  background: #D1D5DB;
  cursor: not-allowed;
}

.otp-status {
  font-size: 13px;
  margin-top: 8px;
  color: var(--cs-text-muted);
}

.otp-status.success {
  color: var(--cs-green);
}

.otp-status.error {
  color: var(--cs-red);
}

/* ==============================================
   TCPA CONSENT
   ============================================== */
.tcpa-container {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--cs-gray-section);
  border-radius: var(--cs-radius-sm);
}

.tcpa-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.5;
  color: var(--cs-text-muted);
}

.tcpa-label input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--cs-green);
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
}

/* ==============================================
   THANK YOU PAGE
   ============================================== */
.thankyou {
  text-align: center;
  padding: 16px 0 8px;
}

/* Tighten container top padding on the thank-you route only. */
.funnel-container:has(#step-thankyou:not([hidden])) {
  padding-top: 12px;
}

.thankyou-icon {
  width: 56px;
  height: 56px;
  background: var(--cs-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.thankyou-icon svg {
  width: 32px;
  height: 32px;
  color: var(--cs-green);
}

/* Presence block lifted ABOVE the agent card (T5). */
.presence-top {
  margin: 8px 0 20px;
}

.presence-top .presence {
  justify-content: center;
  margin: 0 0 10px;
}

.presence-top .presence-sub {
  margin: 10px 0 0;
  font-size: 13px;
}

/* Micro-copy under the vCard secondary CTA in the online variant. Smaller
   + tighter than the primary presence-sub so it reads as a helper rather
   than a distinct paragraph. */
.presence-top .presence-sub--vcard {
  margin: 8px 0 0;
  font-size: 12px;
}

.thankyou h2 {
  font-family: var(--cs-font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--cs-text-heading);
  margin: 0 0 8px;
}

.thankyou p {
  color: var(--cs-text-muted);
  font-size: 15px;
  margin: 0 0 24px;
}

.agent-card {
  background: var(--cs-white);
  border-radius: var(--cs-radius);
  padding: 20px;
  box-shadow: var(--cs-shadow);
  margin-bottom: 24px;
}

.agent-card .agent-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
  color: var(--cs-text-muted);
  text-align: center;
  margin: 0 0 12px;
}

/* Offline action steps: Step 1 (vCard) + Step 2 (SMS) + Step 3 (calendar).
   Rendered only when availability resolves to offline/unknown.
   :not([hidden]) prevents the CSS `display: flex` from overriding the
   HTML `hidden` attribute (per CLAUDE.md CSS+hidden safety rule). */
.offline-steps:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 24px 0 16px;
}

.offline-steps-divider {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-text-muted);
  position: relative;
  padding: 8px 0;
}

.offline-steps-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--cs-green-border);
  z-index: 0;
}

.offline-steps-divider span {
  background: var(--cs-green-bg);
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.action-card {
  background: var(--cs-white);
  border-radius: var(--cs-radius);
  padding: 18px;
  box-shadow: var(--cs-shadow);
}

.action-step-label {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cs-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.action-step-title {
  margin: 0 0 6px;
  font-family: var(--cs-font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--cs-text-heading);
  text-align: center;
  line-height: 1.25;
}

.action-step-body {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--cs-text-muted);
  line-height: 1.4;
  text-align: center;
}

.action-btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--cs-radius-sm);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.action-btn--primary {
  background: var(--cs-green);
  color: var(--cs-white);
  border-color: var(--cs-green);
}

.action-btn--primary:hover,
.action-btn--primary:focus-visible {
  background: var(--cs-green-dark);
  border-color: var(--cs-green-dark);
}

.action-btn--outline {
  background: var(--cs-white);
  color: var(--cs-green);
  border-color: var(--cs-green);
}

.action-btn--outline:hover,
.action-btn--outline:focus-visible {
  background: var(--cs-green-light);
}

.action-calendar-host {
  margin-top: 14px;
  border-radius: var(--cs-radius-sm);
  overflow: hidden;
}

.action-calendar-host iframe {
  width: 100%;
  height: 800px;
  border: 0;
  display: block;
}

.agent-card .agent-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  border: 3px solid var(--cs-white);
  box-shadow: 0 4px 12px rgba(14,40,30,0.12), 0 0 0 2px var(--cs-green-border);
}

.agent-card .agent-photo[hidden] {
  display: none;
}

.agent-card .agent-name {
  font-family: var(--cs-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--cs-text-heading);
  margin: 0 0 4px;
}

.agent-card .agent-detail {
  font-size: 14px;
  color: var(--cs-text-muted);
  margin: 2px 0;
}

.agent-card .agent-detail a {
  color: var(--cs-green);
  font-weight: 600;
}

.btn-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--cs-green);
  color: var(--cs-white);
  border: none;
  border-radius: var(--cs-radius-sm);
  font-family: var(--cs-font-heading);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin-top: 12px;
  transition: background 0.15s ease;
}

.btn-call:hover {
  background: var(--cs-green-dark);
  color: var(--cs-white);
}

/* Hero variant — used inside the online/offline presence variants where
   "Call Us Now" is the single most important action on the page. Oversized
   on mobile so it dominates above the fold. The business driver (highest-
   leverage lever in the funnel) is driving inbound calls — the whole card
   pivots around this button. */
.btn-call--hero {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 18px 24px;
  font-size: 20px;
  margin: 12px 0 8px;
  gap: 10px;
}

.btn-call--hero svg {
  width: 22px;
  height: 22px;
}

.calendar-embed {
  margin-top: 4px;
  border-radius: var(--cs-radius);
  overflow: hidden;
}

/* ==============================================
   PRESENCE INDICATOR (live Dialpad availability)
   ==============================================
   Online: pulsing green dot + "Agents Standing By" label.
   Offline: static grey dot + "We'll Call You Back Shortly" label.
   Both dots live inside the [data-variant] containers and are only
   rendered when renderPartnerCard unhides the matching variant. */

.presence {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 4px;
}

.presence-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.presence-dot--online {
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: presence-pulse 1.6s ease-out infinite;
}

.presence-dot--offline {
  background: #9ca3af;
}

@keyframes presence-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(16, 185, 129, 0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);  }
  100% { box-shadow: 0 0 0 0   rgba(16, 185, 129, 0);   }
}

/* Respect reduced-motion preference — the pulsing dot is decorative, the
   underlying color is what communicates state. */
@media (prefers-reduced-motion: reduce) {
  .presence-dot--online {
    animation: none;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
  }
}

.presence-label {
  font-family: var(--cs-font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--cs-text-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.presence-sub {
  font-size: 14px;
  color: var(--cs-text-muted);
  text-align: center;
  margin: 4px 0 12px;
  line-height: 1.5;
}

.agent-bio:not([hidden]) {
  font-size: 14px;
  color: var(--cs-text-muted);
  text-align: center;
  margin: 8px auto 16px;
  line-height: 1.5;
  max-width: 40ch;
}

/* ==============================================
   VARIANT D — STEP-1 REASSURANCE STACK
   (testimonial + coverage iconlist + SSL bar)
   Shown only while step 1 is active; survey.js toggles #step1Extras.hidden.
   ============================================== */
#step1Extras[hidden] {
  display: none;
}

.testimonial--step1 {
  margin-top: 20px;
}

.coverage-iconlist {
  margin: 20px 0 0;
  padding: 18px 16px;
  background: var(--cs-white);
  border-radius: var(--cs-radius);
  box-shadow: var(--cs-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.coverage-iconlist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.coverage-iconlist-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--cs-green-light);
  color: var(--cs-green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coverage-iconlist-icon svg {
  width: 16px;
  height: 16px;
}

.coverage-iconlist-item strong {
  display: block;
  font-family: var(--cs-font-heading);
  font-weight: 700;
  color: var(--cs-text-heading);
  font-size: 14px;
  margin: 0 0 1px;
  letter-spacing: -0.005em;
}

.coverage-iconlist-item span {
  display: block;
  font-size: 12.5px;
  color: var(--cs-text-muted);
  line-height: 1.4;
}

.ssl-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--cs-text-muted);
  font-weight: 600;
}

.ssl-bar svg {
  width: 13px;
  height: 13px;
  color: var(--cs-green-dark);
  flex-shrink: 0;
}

.ssl-bar strong {
  color: var(--cs-text-heading);
  font-weight: 700;
}

/* ==============================================
   OUTLINE CALL BUTTON (offline variant CTA)
   ============================================== */
.btn-call--outline {
  display: flex;
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 16px;
  margin: 12px 0 4px;
  gap: 8px;
  min-height: 44px;
  background: transparent;
  color: var(--cs-green-dark);
  border: 1.5px solid var(--cs-green-border);
  font-weight: 700;
}

.btn-call--outline:hover {
  background: var(--cs-green-light);
  color: var(--cs-green-dark);
}

.btn-call--outline svg {
  width: 18px;
  height: 18px;
}

/* ==============================================
   iOS-STYLE INCOMING CALL PREVIEW
   ============================================== */
.ios-callpreview {
  margin: 16px 0 8px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #F8FAFB 0%, #F2F4F5 100%);
  border: 1px solid rgba(14,40,30,0.07);
  border-radius: 18px;
  position: relative;
}

.ios-callpreview::before {
  content: "When we call, your screen will look like this";
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-text-muted);
  text-align: center;
  margin: 0 0 10px;
}

.ios-card {
  background: var(--cs-white);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 6px rgba(14,40,30,0.06);
}

.ios-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--cs-green-light);
}

.ios-card-body {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
  text-align: left;
}

.ios-card-kicker {
  font-size: 11px;
  color: var(--cs-text-muted);
  font-weight: 600;
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ios-card-kicker svg {
  width: 10px;
  height: 10px;
}

.ios-card-name {
  font-family: var(--cs-font-heading);
  font-weight: 700;
  color: var(--cs-text-heading);
  font-size: 15px;
  margin: 0;
  letter-spacing: -0.01em;
}

.ios-card-num {
  font-size: 12px;
  color: var(--cs-text-muted);
  margin: 1px 0 0;
  font-variant-numeric: tabular-nums;
}

.ios-card-accept {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #30D158;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: ios-ring 1.8s ease-out infinite;
}

.ios-card-accept svg {
  width: 16px;
  height: 16px;
}

@keyframes ios-ring {
  0%   { box-shadow: 0 0 0 0    rgba(48,209,88,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(48,209,88,0);    }
  100% { box-shadow: 0 0 0 0    rgba(48,209,88,0);    }
}

@media (prefers-reduced-motion: reduce) {
  .ios-card-accept { animation: none; }
}

/* ==============================================
   TESTIMONIAL
   ============================================== */
.testimonial {
  background: var(--cs-white);
  border-radius: var(--cs-radius);
  padding: 20px 22px;
  box-shadow: var(--cs-shadow);
  border: 1px solid rgba(19,156,108,0.12);
  text-align: left;
  margin-bottom: 20px;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  color: #F5A623;
  margin-bottom: 8px;
}

.testimonial-stars svg {
  width: 14px;
  height: 14px;
}

.testimonial-quote {
  font-family: var(--cs-font-heading);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--cs-text-heading);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}

.testimonial-quote::before {
  content: "\201C";
  margin-right: 2px;
  color: var(--cs-green);
}

.testimonial-quote::after {
  content: "\201D";
  margin-left: 2px;
  color: var(--cs-green);
}

.testimonial-attr {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--cs-text-muted);
}

.testimonial-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #139C6C, #0E7A54);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cs-font-heading);
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.testimonial-attr strong {
  color: var(--cs-text-heading);
  font-weight: 700;
  margin-right: 6px;
}

.testimonial-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cs-green);
  font-weight: 600;
  font-size: 11px;
  margin-left: auto;
}

.testimonial-verified svg {
  width: 12px;
  height: 12px;
}

/* ==============================================
   WHAT HAPPENS NEXT TIMELINE
   ============================================== */
.next-steps {
  background: var(--cs-white);
  border-radius: var(--cs-radius);
  padding: 20px;
  box-shadow: var(--cs-shadow);
  margin-bottom: 20px;
  text-align: left;
}

.next-steps h3 {
  font-family: var(--cs-font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--cs-text-heading);
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.step-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.step-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cs-green-light);
  color: var(--cs-green-dark);
  font-family: var(--cs-font-heading);
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-item .step-body {
  flex: 1;
  font-size: 14px;
  line-height: 1.5;
}

.step-item .step-body strong {
  color: var(--cs-text-heading);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.step-item .step-body span {
  color: var(--cs-text-muted);
}

/* ==============================================
   CALENDAR HEADING + "OR BOOK" DIVIDER
   ============================================== */
.or-book-divider:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--cs-text-muted);
}

.or-book-divider::before,
.or-book-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(14,40,30,0.1);
}

.or-book-divider span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.calendar-heading {
  text-align: center;
  margin: 0 0 12px;
}

.calendar-title {
  font-family: var(--cs-font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--cs-text-heading);
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.calendar-subtitle {
  font-size: 13px;
  color: var(--cs-text-muted);
  margin: 0;
}

/* ==============================================
   LOADING SPINNER
   ============================================== */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==============================================
   ADDRESS SECTION
   ============================================== */
.address-container {
  position: relative;
}

/* ==============================================
   MOBILE OPTIMIZATIONS
   ============================================== */

/* Prevent iOS zoom on input focus */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
.form-input,
.form-select {
  font-size: 16px !important;
}

/* Minimum touch target size */
.btn-select,
.btn-next,
.btn-back,
.btn-send-otp,
.btn-call {
  min-height: 48px;
}

/* Safe area for iOS notch/home bar */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 374px) {
  .hero h1 { font-size: 22px; }
  .step-question { font-size: 18px; }
  .dob-row { grid-template-columns: 1fr !important; }
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 32px;
  }

  .step-card {
    padding: 40px 32px;
  }

  .step-question {
    font-size: 26px;
  }

  .funnel-container {
    padding: 32px 20px 48px;
  }
}

/* Digital partner tiles — shown on the online-branch thank-you page */
.digital-partner-tiles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.digital-partner-tile {
  background: var(--cs-white);
  border-radius: var(--cs-radius);
  padding: 22px 18px;
  box-shadow: var(--cs-shadow);
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
}

.digital-partner-tile__logo {
  font-family: var(--cs-font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #1B2A4A;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.digital-partner-tile__blurb {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--cs-text-muted);
  line-height: 1.45;
}

.digital-partner-tile__cta {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 22px;
  border-radius: 10px;
  background: var(--cs-green);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  font-size: 17px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(46,167,98,0.25);
}

.digital-partner-tile__cta:hover,
.digital-partner-tile__cta:visited {
  color: #fff !important;
  filter: brightness(0.95);
  text-decoration: none;
}

/* ==============================================
   ShopBurial trust strip (replaces .cs-as-seen)
   ============================================== */
.sb-trust {
  padding: 18px 12px 22px;
  text-align: center;
  margin: 0 0 16px;
  border-top: 1px solid rgba(123, 94, 58, 0.12);
  border-bottom: 1px solid rgba(123, 94, 58, 0.12);
  background: var(--sb-paper);
}
.sb-trust__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--cs-font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--sb-avocado-dark);
}
.sb-trust__items li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sb-trust__icon {
  color: var(--sb-avocado);
  font-size: 18px;
}

/* ==============================================
   Marketing pages (root /, /about, /guide, etc.)
   Used by the static marketing site that wraps the funnel; not loaded
   on /start1/ (the funnel uses the .funnel-container class above).
   ============================================== */
.sb-page {
  background: var(--sb-cream);
  color: var(--sb-espresso);
  font-size: 19px;
  line-height: 1.65;
}
.sb-page main { display: block; }

.sb-nav {
  background: var(--sb-cream);
  border-bottom: 1px solid rgba(123, 94, 58, 0.18);
  padding: 14px 0;
}
.sb-nav__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sb-nav__logo img { height: 40px; width: auto; }
.sb-nav__links {
  display: flex;
  gap: 20px;
  font-family: var(--cs-font-body);
  font-size: 16px;
  font-weight: 600;
}
.sb-nav__links a {
  color: var(--sb-espresso);
  text-decoration: none;
}
.sb-nav__links a:hover { color: var(--sb-rust); }
.sb-nav__phone {
  font-family: var(--cs-font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--sb-rust);
  text-decoration: none;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .sb-nav__links { display: none; }
}

/* Hamburger button — only visible on mobile.
   Sized to be a real tap target (≥48px) and labeled "MENU" for older users
   who don't always recognize the three-line icon alone. */
.sb-nav__menu-btn {
  display: none;
  background: transparent;
  border: 0;
  align-items: center;
  gap: 8px;
  font-family: var(--cs-font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--sb-espresso);
  padding: 12px 14px;
  min-height: 48px;
  cursor: pointer;
}
.sb-nav__menu-btn:focus-visible {
  outline: 3px solid var(--sb-gold);
  outline-offset: 2px;
  border-radius: 4px;
}
.sb-nav__menu-btn svg { display: block; }

/* Slide-down menu panel — opens beneath the nav on tap. */
.sb-nav__menu { background: var(--sb-cream); border-top: 1px solid rgba(123, 94, 58, 0.18); border-bottom: 2px solid var(--sb-espresso); }
.sb-nav__menu ul { list-style: none; margin: 0; padding: 0; }
.sb-nav__menu li { border-bottom: 1px solid rgba(123, 94, 58, 0.12); }
.sb-nav__menu li:last-child { border-bottom: 0; }
.sb-nav__menu a {
  display: flex;
  align-items: center;
  padding: 18px 22px;
  min-height: 56px;
  font-family: var(--cs-font-body);
  font-size: 19px;
  font-weight: 600;
  color: var(--sb-espresso);
  text-decoration: none;
}
.sb-nav__menu a:hover, .sb-nav__menu a:focus-visible {
  background: var(--sb-paper);
  color: var(--sb-rust);
  outline: none;
}
.sb-nav__menu-cta {
  background: var(--sb-rust) !important;
  color: #FFFBF2 !important;
  font-family: var(--cs-font-heading) !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  justify-content: center;
}
.sb-nav__menu-cta:hover, .sb-nav__menu-cta:focus-visible {
  background: var(--sb-rust-dark) !important;
  color: #FFFBF2 !important;
}
.sb-nav__menu-call { color: var(--sb-rust) !important; }

@media (max-width: 640px) {
  .sb-nav__menu-btn { display: inline-flex; }
  .sb-nav__phone { display: none; } /* phone is in the menu instead — keeps the nav row uncrowded */
}

.sb-hero {
  padding: 56px 20px 48px;
  text-align: center;
  background: var(--sb-cream);
}
.sb-hero__inner { max-width: 760px; margin: 0 auto; }
.sb-hero__kicker {
  display: inline-block;
  background: var(--sb-paper-warm);
  color: var(--sb-teak);
  font-family: var(--cs-font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.sb-hero h1 {
  font-family: var(--cs-font-heading);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--sb-espresso-dark);
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
@media (max-width: 640px) {
  .sb-hero h1 { font-size: 34px; }
  .sb-hero { padding: 40px 20px 32px; }
}
.sb-hero p {
  font-size: 21px;
  line-height: 1.55;
  color: var(--sb-espresso);
  margin: 0 auto 28px;
  max-width: 560px;
}
.sb-cta {
  display: inline-block;
  background: var(--sb-rust);
  color: #FFFBF2;
  font-family: var(--cs-font-heading);
  font-weight: 700;
  font-size: 22px;
  padding: 18px 36px;
  border-radius: 14px;
  text-decoration: none;
  min-height: 60px;
  line-height: 1.2;
  box-shadow: 0 3px 0 var(--sb-rust-dark), 0 6px 16px rgba(184, 85, 46, 0.25);
  transition: transform 0.05s ease;
}
.sb-cta:hover { background: var(--sb-rust-dark); color: #FFFBF2; }
.sb-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--sb-rust-dark), 0 3px 8px rgba(184, 85, 46, 0.20); }
.sb-cta--gold { background: var(--sb-gold); box-shadow: 0 3px 0 var(--sb-gold-dark), 0 6px 16px rgba(201, 152, 46, 0.25); color: var(--sb-espresso-dark); }
.sb-cta--gold:hover { background: var(--sb-gold-dark); color: var(--sb-espresso-dark); }
.sb-cta--block { display: block; max-width: 360px; margin: 0 auto; }

.sb-section {
  padding: 64px 20px;
  background: var(--sb-cream);
}
.sb-section--paper { background: var(--sb-paper); }
.sb-section__inner { max-width: 760px; margin: 0 auto; }
.sb-section h2 {
  font-family: var(--cs-font-heading);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.15;
  color: var(--sb-espresso-dark);
  margin: 0 0 24px;
  font-variation-settings: "opsz" 96, "SOFT" 60;
}
.sb-section p { font-size: 19px; line-height: 1.65; }

.sb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 32px;
}
.sb-card {
  background: var(--sb-cream);
  border: 1.5px solid var(--sb-teak);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 2px 0 rgba(123, 94, 58, 0.10);
}
.sb-section--paper .sb-card { background: #FFFFFF; border-color: rgba(123, 94, 58, 0.30); }
.sb-card h3 {
  font-family: var(--cs-font-heading);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--sb-espresso-dark);
}
.sb-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sb-gold);
  color: var(--sb-espresso-dark);
  font-family: var(--cs-font-heading);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}
.sb-card p { margin: 0; font-size: 17px; line-height: 1.6; }

.sb-cta-band {
  background: var(--sb-espresso-dark);
  color: var(--sb-cream);
  padding: 56px 20px;
  text-align: center;
}
.sb-cta-band h2 {
  font-family: var(--cs-font-heading);
  font-weight: 700;
  font-size: 32px;
  margin: 0 0 18px;
  color: var(--sb-cream);
}
.sb-cta-band p {
  font-size: 18px;
  margin: 0 auto 26px;
  max-width: 540px;
  color: rgba(251, 246, 233, 0.85);
}

.sb-footer {
  background: var(--sb-paper-warm);
  color: var(--sb-teak);
  padding: 36px 20px 28px;
  font-size: 15px;
  text-align: center;
}
.sb-footer a { color: var(--sb-teak); text-decoration: underline; }
.sb-footer__links {
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
}
.sb-footer__legal { font-size: 13px; line-height: 1.6; max-width: 720px; margin: 0 auto; }

/* Hero image — sits above the H1 as an editorial banner. No card frame
   (border-radius / shadow would make it read as a UI screenshot). Wider than
   the text column so it has presence as a magazine cover, not a thumbnail. */
.sb-hero-img {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  margin: 0 auto 32px;
}
.sb-hero { padding-top: 32px; }
@media (max-width: 640px) {
  .sb-hero { padding-left: 0; padding-right: 0; padding-top: 16px; }
  .sb-hero__inner { padding-left: 20px; padding-right: 20px; }
  .sb-hero-img { margin-bottom: 24px; }
}

/* Editorial rule — 2px x 64px espresso bar, used as a section divider.
   Pulled from brand-spec.html where it signals the start of every section. */
.sb-rule {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--sb-espresso);
  margin: 20px 0 24px;
  border: 0;
}
.sb-rule--gold { background: var(--sb-gold); height: 3px; width: 80px; }
.sb-rule--center { margin-left: auto; margin-right: auto; }
.sb-rule--on-dark { background: var(--sb-cream); opacity: 0.7; }

/* Lede paragraph after the H1 in the hero — slightly larger, tighter line-height. */
.sb-lede {
  font-size: 22px;
  line-height: 1.5;
  color: var(--sb-espresso);
  max-width: 560px;
  margin: 0 0 28px;
}
@media (max-width: 640px) { .sb-lede { font-size: 20px; } }

/* Phone secondary CTA — sits below the primary form CTA, lower visual weight. */
.sb-cta-secondary {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--cs-font-body);
  font-size: 17px;
  font-weight: 500;
  color: var(--sb-teak);
  text-decoration: none;
}
.sb-cta-secondary strong {
  color: var(--sb-rust);
  font-weight: 700;
}
.sb-cta-secondary:hover strong { color: var(--sb-rust-dark); }

/* Section icon — small circular pictogram above the H2 of each major section.
   inline-block + auto-margin makes it follow the parent's text-align: left-aligned
   sections (How it works, Why us) get a left-aligned icon; centered sections
   (Built around cost, CTA band) get a centered icon. */
.sb-section-icon {
  display: inline-block;
  width: 72px;
  height: 72px;
  margin: 0 0 12px;
}
.sb-section-icon--on-dark { filter: brightness(1.05); }

/* Generic prose container for content pages (privacy, terms, licensing) */
.sb-prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 20px 72px;
  font-size: 18px;
  line-height: 1.7;
}
.sb-prose h1 {
  font-family: var(--cs-font-heading);
  font-weight: 700;
  font-size: 40px;
  margin: 0 0 24px;
  color: var(--sb-espresso-dark);
}
.sb-prose h2 {
  font-family: var(--cs-font-heading);
  font-weight: 700;
  font-size: 26px;
  margin: 36px 0 14px;
  color: var(--sb-espresso-dark);
}
.sb-prose p { margin: 0 0 16px; }
.sb-prose ul { padding-left: 22px; }
.sb-prose li { margin-bottom: 8px; }
