:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #4c5868;
  --line: #e0e6e4;
  --brand: #1e7b69;
  --brand-dark: #155f52;
  --accent: #f1b84b;
  --soft: #e9fbf8;
  --shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
  --max: 1120px;
  --section-pad: clamp(56px, 7vw, 84px);
  --image-card-height: clamp(280px, 29vw, 340px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.home-page {
  padding-bottom: 88px;
}

.home-wrap {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-logo {
  color: var(--text);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  font-weight: 900;
  white-space: nowrap;
}

.region-badge {
  display: inline-grid;
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 104px;
  flex-shrink: 0;
  transform: translate(-50%, -50%);
  justify-items: center;
  gap: 3px;
  color: #344154;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.region-badge img {
  width: clamp(50px, 4.8vw, 64px);
  height: auto;
  max-height: 28px;
  object-fit: contain;
}

.region-badge span {
  display: block;
}

.hero-menu {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: #344154;
  font-size: 0.95rem;
  font-weight: 850;
}

.menu-demo {
  display: inline-grid;
  min-width: 132px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 999px;
  padding: 8px 15px;
  background: var(--brand);
  color: #ffffff;
  text-align: center;
}

.menu-demo .demo-number {
  font-size: 0.86rem;
}

.demo-cta-label,
.demo-number {
  display: block;
}

.demo-number {
  white-space: nowrap;
  font-weight: 950;
  line-height: 1;
}

.demo-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 6px solid #c98700;
  border-radius: 14px;
  padding: 16px 18px;
  background: #ffd66b;
  color: #111827;
}

.top-demo-banner {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  min-height: 52px;
  padding: 8px max(16px, calc((100vw - var(--max)) / 2 + 16px));
  background: #ffd500;
  color: #000000;
  font-size: clamp(0.96rem, 1.6vw, 1.5rem);
  font-weight: 950;
  line-height: 1.05;
}

.top-demo-primary {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.top-demo-primary strong,
.top-demo-primary span,
.top-demo-primary .demo-number,
.top-demo-proof {
  color: #000000;
  font-size: inherit;
  font-weight: 950;
  line-height: inherit;
}

.top-demo-primary > span:not(.demo-number) {
  display: none;
}

.top-demo-proof {
  justify-self: center;
  text-align: center;
}

.demo-banner-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 50%;
  background: #0f172a;
  color: #ffd66b;
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.demo-banner-copy {
  display: grid;
  gap: 5px;
}

.demo-banner-copy strong {
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  line-height: 1.05;
}

.demo-banner-copy span {
  color: #292524;
  font-size: clamp(0.94rem, 1.5vw, 1.08rem);
  font-weight: 850;
  line-height: 1.25;
}

.demo-banner-copy .demo-number {
  color: #111827;
  font-size: clamp(1.34rem, 2.6vw, 2rem);
  letter-spacing: 0;
}

.top-demo-banner .demo-cta-label,
.top-demo-banner .demo-number,
.top-demo-banner .top-demo-primary span,
.top-demo-banner .top-demo-proof {
  display: inline;
  color: #000000;
  font-size: inherit;
  font-weight: 950;
  line-height: inherit;
}

.top-demo-banner .top-demo-primary {
  display: flex;
}

.top-demo-banner .top-demo-primary > span:not(.demo-number) {
  display: none;
}

.demo-banner-arrow {
  margin-left: auto;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
}

.hero-section {
  padding: clamp(18px, 3.5vw, 34px) 0 clamp(20px, 4vw, 42px);
  background: #ffffff;
}

.hero-section .home-wrap {
  width: min(calc(100% - 32px), 1220px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(8px, 1.4vw, 16px);
  text-align: center;
}

.hero-main {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.82fr);
  gap: clamp(20px, 3.4vw, 42px);
  align-items: center;
  text-align: left;
}

.hero-copy {
  display: grid;
  width: 100%;
  justify-items: start;
  gap: clamp(16px, 2vw, 22px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-section .eyebrow {
  margin: 0;
  color: #0047fb;
  font-size: clamp(1.28rem, 2.5vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
}

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

h1 {
  max-width: 100%;
  margin-bottom: 0;
  font-size: clamp(3.1rem, 6vw, 5.35rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  line-height: 1.15;
}

.hero-subtitle {
  max-width: 670px;
  margin: 0;
  color: #000000;
  font-size: clamp(1.1rem, 1.78vw, 1.5rem);
  line-height: 1.16;
}

.hero-proof-card {
  width: min(100%, 646px);
  border-radius: 10px;
  padding: clamp(14px, 2vw, 18px) clamp(18px, 3vw, 28px) clamp(16px, 2.4vw, 22px);
  background: #999c97;
  color: #000000;
}

.hero-proof-card strong {
  display: block;
  margin-bottom: 8px;
  color: #ffd500;
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.hero-bullets {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  column-gap: clamp(18px, 5vw, 56px);
  row-gap: 2px;
  margin: 0;
  padding: 0 0 0 22px;
  list-style: disc;
}

.hero-bullets li {
  padding-left: 2px;
  color: #000000;
  font-size: clamp(1rem, 1.75vw, 1.5rem);
  font-weight: 500;
  line-height: 1.18;
}

.hero-bullets li::before {
  content: none;
}

.demo-callout {
  width: min(100%, 760px);
  max-width: none;
  margin: 0 0 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: clamp(16px, 3.2vw, 50px);
  width: min(100%, 620px);
  padding-top: clamp(4px, 1.6vw, 20px);
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 28px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.primary-btn {
  background: var(--brand);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.demo-btn {
  display: inline-grid;
  min-width: 224px;
  background: #ffd500;
  color: #000000;
  font-size: 1.08rem;
  gap: 3px;
  line-height: 1.05;
  box-shadow: none;
}

.demo-btn .demo-number {
  font-size: clamp(1rem, 1.35vw, 1.24rem);
}

.demo-btn.is-disabled {
  background: #2f7f71;
}

.primary-btn:hover,
.floating-pay:hover {
  background: var(--brand-dark);
}

.demo-btn:hover {
  background: #ffd500;
}

.secondary-btn {
  min-width: 200px;
  border-color: transparent;
  background: #007d68;
  color: #ffffff;
  box-shadow: none;
}

.primary-btn:hover,
.secondary-btn:hover,
.floating-cta:hover {
  transform: translateY(-1px);
}

.demo-cta.is-disabled {
  cursor: default;
  pointer-events: none;
}

.demo-cta.is-disabled:hover {
  transform: none;
}

.hero-media {
  width: 100%;
  max-width: 528px;
  justify-self: end;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: clamp(28px, 4.8vw, 61px);
  background: #dff4f0;
  box-shadow: none;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.missed-section {
  padding: 10px 0 0;
  border-top: 0;
  background: #c1c1c1;
  color: #000000;
  text-align: center;
}

.missed-inner {
  display: grid;
  gap: 10px;
}

.missed-section .section-kicker {
  margin: 0;
  color: #0047fb;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
}

.missed-section h2 {
  margin: 0;
  color: #000000;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.missed-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 110px);
  align-items: center;
  max-width: 1040px;
  margin: 10px auto 12px;
  text-align: left;
}

.missed-phone {
  justify-self: center;
  width: min(100%, 260px);
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.missed-phone img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center;
}

.missed-copy h2 {
  max-width: 760px;
}

.truth-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.truth-list p {
  margin: 0;
  border-left: 0;
  padding: 0;
  color: #000000;
  font-size: clamp(1.12rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
}

.missed-demo-banner {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 10px 16px;
  background: #ffd500;
  color: #000000;
  text-align: center;
}

.missed-demo-banner .demo-banner-copy strong {
  color: #000000;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 950;
  line-height: 1.1;
}

.missed-demo-banner .demo-banner-copy span,
.missed-demo-banner .demo-number {
  display: inline;
  color: #000000;
  font-size: clamp(0.88rem, 1.35vw, 1.1rem);
  font-weight: 950;
  line-height: 1.1;
}

.how-section {
  background: #ffffff;
}

.how-band {
  padding: 12px 0 13px;
  background: var(--brand);
  color: #ffffff;
  text-align: center;
}

.how-band h2 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 4.8rem);
  line-height: 1;
}

.story-stack {
  display: grid;
  gap: clamp(34px, 6vw, 64px);
  padding: clamp(22px, 5vw, 56px) 0 clamp(44px, 8vw, 86px);
}

.story-step h3 {
  margin: 0 0 14px;
  color: #050b16;
  font-size: clamp(1.35rem, 3.2vw, 2.55rem);
  line-height: 1.12;
}

.story-step h3 span {
  font-weight: 950;
}

.image-card,
.story-image {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #eef4f2;
}

.image-card img,
.story-image img {
  width: 100%;
  height: var(--image-card-height);
  object-fit: cover;
}

.story-customer-image {
  width: 100%;
}

.story-customer-image img {
  object-position: center 26%;
}

.busy-time-card img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.busy-time-card {
  position: relative;
}

.busy-time-card picture {
  display: block;
}

.busy-time-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.busy-time-labels span {
  position: absolute;
  bottom: 18px;
  transform: translateX(-50%);
  max-width: calc(33.333% - 24px);
  padding: 8px 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(5, 10, 22, 0.82), rgba(5, 10, 22, 0.62));
  color: #fff;
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.busy-time-labels span:nth-child(1) {
  left: 16.667%;
}

.busy-time-labels span:nth-child(2) {
  left: 50%;
}

.busy-time-labels span:nth-child(3) {
  left: 83.333%;
}

.busy-forwarding-row {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.busy-forwarding-row .story-copy {
  max-width: none;
  margin-top: 0;
}

.story-step:first-child > .story-copy p,
.busy-forwarding-row .story-copy p {
  margin: 0;
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  font-weight: 400;
  line-height: 1.28;
}

.story-step > .story-copy {
  max-width: none;
}

.story-copy {
  max-width: 980px;
  margin-top: 18px;
}

.story-copy-tight {
  margin-top: 14px;
}

.story-step p {
  margin: 12px 0 0;
  color: #0f172a;
  font-size: clamp(1.05rem, 2.4vw, 1.85rem);
  line-height: 1.28;
}

.story-step-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
}

.notification-step-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 42px);
  align-items: center;
}

.notification-story .notification-step-grid {
  margin-top: 18px;
}

.pricing-section p {
  color: var(--muted);
}

.sms-preview-card {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(30, 123, 105, 0.18);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 34px);
  background: #f4f8f7;
  box-shadow: var(--shadow);
}

.sms-preview-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #526173;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.sms-bubble {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: clamp(16px, 3vw, 24px);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 28, 43, 0.1);
}

.sms-bubble strong {
  font-size: clamp(1.12rem, 2.4vw, 1.55rem);
  line-height: 1.1;
}

.sms-bubble span {
  color: #3b4656;
}

.setup-section {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, #102033 0%, #13283f 100%);
  color: #ffffff;
}

.setup-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 70px);
  align-items: start;
}

.setup-section .section-kicker {
  color: #93f0dc;
}

.setup-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-list li {
  position: relative;
  min-height: 56px;
  padding: 16px 18px 16px 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.setup-list li::before {
  content: "✓";
  position: absolute;
  top: 16px;
  left: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.18);
  color: #8ef0b0;
  text-align: center;
  line-height: 22px;
}

/* ─── ABC Plumbing Demo Profile Section ──────────────────── */
.demo-profile-section {
  padding: clamp(52px, 8vw, 96px) 0 clamp(48px, 7vw, 84px);
  background: var(--bg);
}

.demo-profile-wrap {
  display: grid;
  gap: clamp(28px, 4vw, 44px);
  justify-items: center;
  text-align: center;
}

.demo-profile-heading {
  margin: 0;
}

.demo-profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  width: 100%;
  text-align: left;
}

.demo-profile-card {
  border-radius: 16px;
  padding: clamp(22px, 3.5vw, 36px);
  background: #ffffff;
  box-shadow: 0 4px 28px rgba(15, 23, 42, 0.09);
}

.demo-profile-card-title {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 950;
  line-height: 1.1;
}

.demo-profile-card-desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.5;
}

.demo-profile-bullets {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-profile-bullets li {
  display: grid;
  gap: 2px;
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  padding: 9px 14px;
  background: var(--soft);
}

.demo-profile-bullets li strong {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-profile-bullets li span {
  color: var(--text);
  font-size: clamp(0.9rem, 1.4vw, 1rem);
  line-height: 1.4;
}

.demo-profile-van {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
}

.demo-profile-van img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.demo-profile-cta {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.demo-profile-cta-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.4;
}

@media (max-width: 880px) {
  .demo-profile-layout {
    grid-template-columns: 1fr;
  }

  .demo-profile-van {
    order: -1;
  }
}

/* ─────────────────────────────────────────────────────────── */

.pricing-section {
  padding: clamp(34px, 6vw, 72px) 0 clamp(44px, 7vw, 84px);
  background: #ffffff;
  color: #000000;
}

.pricing-layout {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: clamp(16px, 2.5vw, 26px);
}

.pricing-layout h2 {
  margin: 0;
  color: #000000;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 950;
  line-height: 0.95;
  text-align: center;
}

.pricing-card {
  display: grid;
  width: min(100%, 780px);
  gap: 18px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.invoice-lines {
  display: grid;
  padding: clamp(18px, 3vw, 28px) clamp(24px, 5vw, 72px) clamp(14px, 2.5vw, 22px);
  background: #d3d3d3;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto);
  align-items: baseline;
  gap: 24px;
  border-bottom: 0;
  padding: 0;
  color: #000000;
}

.price-row.total-row {
  border-radius: 0;
  border: 0;
  border-top: 1px solid #4d4d4d;
  border-bottom: 3px solid #000000;
  padding: 5px 0 4px;
  background: transparent;
}

.price-row span {
  color: #000000;
  font-size: clamp(1.85rem, 3.25vw, 2.65rem);
  font-weight: 950;
  line-height: 1.12;
  text-transform: none;
}

.price-row strong {
  color: #000000;
  font-size: clamp(1.85rem, 3.25vw, 2.65rem);
  font-weight: 950;
  line-height: 1;
  text-align: right;
}

.total-row strong {
  color: #000000;
}

.subscription-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: clamp(14px, 2.2vw, 20px) clamp(12px, 2vw, 18px);
  background: #d3d3d3;
  color: #000000;
}

.subscription-row span,
.subscription-row strong {
  color: #000000;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  font-weight: 950;
  line-height: 1.06;
}

.subscription-row strong {
  white-space: nowrap;
  text-align: right;
}

.checkout-btn {
  display: inline-flex;
  min-height: 68px;
  width: min(100%, 360px);
  margin: 8px auto 0;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #0f6f5f;
  box-shadow: 0 18px 42px rgba(15, 111, 95, 0.26);
  font-size: 1.14rem;
}

.checkout-support {
  margin: -6px auto 0;
  color: #5b6472;
  font-size: 0.92rem;
  font-weight: 850;
  text-align: center;
}

.floating-cta-bar {
  position: fixed;
  right: max(8px, calc((100vw - var(--max)) / 2 + 8px));
  bottom: 12px;
  z-index: 30;
  display: none;
  gap: 10px;
  max-width: calc(100vw - 16px);
}

.floating-cta {
  display: inline-grid;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 13px 18px;
  box-shadow: 0 16px 38px rgba(16, 25, 39, 0.28);
  font-size: clamp(0.92rem, 2.2vw, 1.06rem);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  transition: background 0.18s ease, transform 0.18s ease;
}

.floating-cta .demo-number {
  display: block;
  margin-top: 3px;
  font-size: 0.86em;
  font-weight: 900;
}

.floating-demo {
  min-width: 128px;
  background: #ffd66b;
  color: #111827;
}

.floating-pay {
  min-width: 158px;
  background: var(--brand);
  color: #ffffff;
  opacity: 0.9;
}

.home-footer {
  padding: 26px 0 42px;
  background: #ffffff;
  color: var(--muted);
}

.footer-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(31, 41, 55, 0.08);
  padding-top: 18px;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 880px) {
  :root {
    --section-pad: clamp(48px, 8vw, 68px);
    --image-card-height: clamp(240px, 42vw, 300px);
  }

  .hero-grid,
  .hero-main,
  .missed-grid,
  .setup-grid,
  .pricing-layout {
    grid-template-columns: 1fr;
  }

  .hero-main {
    max-width: 680px;
    text-align: center;
  }

  .hero-copy {
    justify-items: center;
    text-align: center;
  }

  .hero-media {
    justify-self: center;
  }

  .story-step-split,
  .notification-step-grid,
  .busy-forwarding-row {
    grid-template-columns: 1fr;
  }

  .missed-phone img {
    height: var(--image-card-height);
  }
}

@media (max-width: 640px) {
  :root {
    --section-pad: clamp(38px, 11vw, 56px);
    --image-card-height: clamp(220px, 58vw, 260px);
  }

  .home-wrap {
    width: min(calc(100% - 24px), var(--max));
  }

  .header-inner {
    min-height: 56px;
  }

  .hero-menu {
    display: none;
  }

  .region-badge {
    min-width: 82px;
    font-size: 0.66rem;
  }

  .region-badge img {
    width: 52px;
    max-height: 22px;
  }

  .hero-section {
    padding-top: 16px;
    padding-bottom: 86px;
  }

  .hero-grid {
    gap: 10px;
  }

  .hero-main {
    display: contents;
  }

  .hero-media {
    order: 3;
  }

  .hero-copy {
    order: 4;
  }

  .top-demo-banner {
    min-height: 46px;
    padding: 8px 12px;
    font-size: clamp(0.9rem, 3.8vw, 1.05rem);
    text-align: center;
  }

  .top-demo-primary {
    justify-content: center;
    white-space: normal;
  }

  .demo-banner {
    gap: 12px;
    border-radius: 12px;
    padding: 14px 16px;
  }

  .demo-banner-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    font-size: 0.62rem;
  }

  .demo-banner-arrow {
    display: none;
  }

  h1 {
    font-size: clamp(2.5rem, 12vw, 4.2rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .pricing-section {
    padding-top: 34px;
  }

  .pricing-layout h2 {
    font-size: clamp(3.2rem, 16vw, 4.8rem);
  }

  .pricing-card {
    gap: 14px;
  }

  .invoice-lines {
    padding: 16px 16px 14px;
  }

  .price-row {
    grid-template-columns: minmax(0, 1fr) minmax(78px, auto);
    gap: 10px;
  }

  .price-row span,
  .price-row strong {
    font-size: clamp(1.26rem, 6vw, 1.85rem);
  }

  .subscription-row {
    grid-template-columns: 1fr;
    gap: 6px;
    text-align: center;
  }

  .subscription-row span,
  .subscription-row strong {
    font-size: clamp(1.1rem, 4.8vw, 1.55rem);
    text-align: center;
  }

  .subscription-row span {
    white-space: nowrap;
  }

  .hero-actions {
    display: none;
  }

  .busy-time-card img {
    width: 100%;
    height: auto;
  }

  .busy-time-labels span {
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 32px);
    font-size: clamp(1rem, 6vw, 1.25rem);
  }

  .busy-time-labels span:nth-child(1) {
    left: 50%;
    top: calc(33.333% - 16px);
    transform: translate(-50%, -100%);
  }

  .busy-time-labels span:nth-child(2) {
    left: 50%;
    top: calc(66.667% - 16px);
    transform: translate(-50%, -100%);
  }

  .busy-time-labels span:nth-child(3) {
    left: 50%;
    top: auto;
    bottom: 16px;
  }

  .hero-bullets {
    display: grid;
    justify-items: start;
    gap: 2px 18px;
    margin-bottom: 0;
  }

  .hero-bullets li {
    width: auto;
  }

  .hero-proof-card {
    padding: 13px 16px 15px;
  }

  .hero-media {
    max-width: min(100%, 430px);
    border-radius: 28px;
  }

  .missed-section {
    padding-top: 8px;
  }

  .missed-inner {
    gap: 8px;
  }

  .missed-grid {
    gap: 14px;
    margin: 8px auto 10px;
    text-align: center;
  }

  .missed-phone {
    width: min(62vw, 230px);
  }

  .truth-list {
    gap: 10px;
  }

  .truth-list p {
    font-size: clamp(1rem, 4.3vw, 1.22rem);
    line-height: 1.18;
  }

  .missed-demo-banner {
    min-height: 66px;
  }

  .checkout-btn {
    width: 100%;
  }

  .demo-callout {
    margin-bottom: 14px;
  }

  .demo-btn {
    min-width: 0;
  }

  .demo-btn .demo-number,
  .floating-demo .demo-number {
    font-size: clamp(1.08rem, 5vw, 1.38rem);
  }

  .demo-banner-copy .demo-number {
    font-size: clamp(1.2rem, 6.2vw, 1.72rem);
  }

  .floating-cta-bar {
    right: 8px;
    left: 8px;
    width: auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8px;
  }

  .floating-cta {
    min-height: 50px;
    padding: 12px 10px;
  }

  .floating-demo {
    min-width: 0;
  }

  .floating-demo .demo-cta-label {
    font-size: clamp(0.8rem, 3.6vw, 0.95rem);
  }

  .floating-pay {
    min-width: 0;
  }

  .home-footer {
    padding-bottom: 40px;
  }
}

/* ─── Demo Gate Modal ─────────────────────────────────────── */
.demo-gate-modal[hidden] {
  display: none;
}

.demo-gate-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}

.demo-gate-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.demo-gate-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  border-radius: 20px;
  padding: 32px 28px 28px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.demo-gate-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: none;
  border-radius: 50%;
  padding: 0;
  background: rgba(15, 23, 42, 0.07);
  color: #344154;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.15s;
}

.demo-gate-close:hover {
  background: rgba(15, 23, 42, 0.14);
}

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

.demo-gate-step:not([hidden]) {
  display: grid;
  gap: 14px;
}

.demo-gate-step h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  line-height: 1.1;
}

.demo-gate-step > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.demo-gate-label {
  display: block;
  margin-bottom: 6px;
  color: #344154;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-gate-input {
  width: 100%;
  padding: 13px 15px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #f9fafb;
  color: var(--text);
  font-size: 1.12rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.demo-gate-input:focus {
  border-color: var(--brand);
  background: #ffffff;
}

.demo-gate-input.is-error {
  border-color: #dc2626;
  background: #fff5f5;
}

.demo-gate-error {
  margin: -4px 0 0;
  color: #dc2626;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.demo-gate-error[hidden] {
  display: none;
}

.demo-gate-submit {
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  background: var(--brand);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 950;
  font-family: inherit;
  line-height: 1;
  transition: background 0.18s, transform 0.18s;
}

.demo-gate-submit:hover:not(:disabled) {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.demo-gate-submit:disabled {
  background: #93c5bc;
  cursor: not-allowed;
  transform: none;
}

.demo-gate-resend {
  justify-self: center;
  border: none;
  padding: 0;
  background: none;
  color: var(--brand);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
  font-family: inherit;
  text-decoration: underline;
  transition: color 0.15s;
}

.demo-gate-resend:hover:not(:disabled) {
  color: var(--brand-dark);
}

.demo-gate-resend:disabled {
  color: #93c5bc;
  cursor: not-allowed;
  text-decoration: none;
}

.demo-call-btn {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ffd500;
  color: #000000;
  font-size: 1.1rem;
  font-weight: 950;
  text-align: center;
  box-shadow: 0 8px 24px rgba(255, 213, 0, 0.32);
  transition: transform 0.18s, box-shadow 0.18s;
}

.demo-call-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 213, 0, 0.44);
}

.demo-call-subtext {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 480px) {
  .demo-gate-modal:not([hidden]) {
    align-items: flex-end;
    padding: 0;
  }

  .demo-gate-panel {
    width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 28px 22px 36px;
  }
}

/* Demo gate interaction fixes */
.demo-cta {
  cursor: pointer;
}

.demo-gate-input::placeholder {
  color: #7a8494;
}

.demo-gate-submit:focus-visible,
.demo-gate-resend:focus-visible,
.demo-call-btn:focus-visible,
.demo-gate-close:focus-visible {
  outline: 3px solid rgba(30, 123, 105, 0.35);
  outline-offset: 3px;
}
