/* SDE Voice marketing site
   Palette matches sde-tech.com: deep blue #1E3A8A, slate, light gray.
   Type: Inter (400, 600). Mobile-first. */

:root {
  --blue: #1E3A8A;
  --blue-hover: #1E40AF;
  --ink: #0F172A;
  --slate: #475569;
  --muted: #475569;
  --bg: #ffffff;
  --bg-alt: #F1F5F9;
  --border: #E2E8F0;
  --soft: #DBEAFE;
  --max: 1120px;
  --radius: 8px;
  --header: 4.5rem;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue); }
a:hover { color: var(--blue-hover); }

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.125rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.measure { max-width: 42rem; }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nowrap { white-space: nowrap; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.75rem 0.5rem;
  width: min(var(--max), calc(100% - 1.5rem));
  margin-inline: auto;
  padding: 0.7rem 0;
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-name {
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--blue);
  line-height: 1.1;
  white-space: nowrap;
}
.brand-sub {
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--slate);
  white-space: nowrap;
}

.bar-end {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-toggle-label {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  border-radius: var(--radius);
}
.nav-toggle-label span.bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}
.nav-toggle:focus-visible + .nav-toggle-label {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.nav-toggle:checked + .nav-toggle-label .menu-open-label { display: none; }
.nav-toggle:checked + .nav-toggle-label .menu-close-label { display: inline; }
.menu-close-label { display: none; }

.primary-nav { display: none; grid-column: 1 / -1; }
.header-inner:has(.nav-toggle:checked) .primary-nav { display: block; }

.primary-nav ul { list-style: none; }
.primary-nav a {
  display: block;
  padding: 0.85rem 0;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.primary-nav a:hover { color: var(--blue); text-decoration: none; }
.primary-nav .nav-cta a {
  margin-top: 0.75rem;
  border-bottom: 0;
}

.btn.desktop-cta { display: none; }

body:has(.nav-toggle:checked) { overflow: hidden; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font: 600 0.95rem/1.2 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  text-decoration: none;
  text-align: center;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover,
.btn-primary:visited { background: var(--blue-hover); color: #fff; }

.btn-sign-in {
  background: #fff;
  color: var(--blue);
  border-color: var(--blue);
  padding-inline: 0.75rem;
}
.btn-sign-in:hover,
.btn-sign-in:visited { background: var(--bg-alt); color: var(--blue-hover); }

.btn-light {
  background: #fff;
  color: var(--blue);
  border-color: #fff;
}
.btn-light:hover,
.btn-light:visited { background: var(--bg-alt); color: var(--blue); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.75);
}
.btn-outline-light:hover,
.btn-outline-light:visited { background: rgba(255, 255, 255, 0.12); color: #fff; }

.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(160deg, #1E3A8A 0%, #1E40AF 55%, #1D4ED8 100%);
  color: #fff;
  padding: 2.5rem 0 2.75rem;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #BFDBFE;
}
.hero .subhead {
  color: #DBEAFE;
  font-size: 1.05rem;
  max-width: 40rem;
  margin-bottom: 1.15rem;
}
.hero .proof {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  max-width: 40rem;
}
.hero .proof li {
  position: relative;
  padding-left: 1.6rem;
  color: #DBEAFE;
}
.hero .proof li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: #fff;
  font-weight: 600;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.hero-note {
  color: #DBEAFE;
  font-size: 0.95rem;
  margin: 0;
}
.hero-note a {
  color: #fff;
  font-weight: 600;
  text-underline-offset: 0.15em;
}
.hero :focus-visible,
.cta-band :focus-visible { outline-color: #fff; }

.hero-grid { display: grid; gap: 1.75rem; }

.phone {
  background: #fff;
  color: var(--ink);
  border-radius: 1.5rem;
  padding: 1.25rem 1.15rem 1.1rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  max-width: 22rem;
}
.phone-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
}
.phone-title {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.phone-fields {
  list-style: none;
  border-top: 1px solid var(--border);
  margin-bottom: 0.9rem;
}
.phone-fields li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
}
.phone-sent {
  margin: 0;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.95rem;
}

/* ---------- Sections ---------- */

.section { padding: 3.25rem 0; }
.section.alt { background: var(--bg-alt); }
.section h2 { margin-bottom: 1rem; }

.lead {
  font-size: 1.05rem;
  color: var(--slate);
  max-width: 40rem;
}

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}
.stats li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 0.9rem;
}
.stat-num {
  margin: 0 0 0.35rem;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--blue);
  line-height: 1;
}
.stat-label { margin: 0; color: var(--slate); font-size: 0.92rem; }
.source {
  margin: 0.5rem 0 1.5rem;
  color: var(--slate);
  font-size: 0.85rem;
}

.story p { margin-bottom: 1rem; }

.bridge {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.steps, .start-steps {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.start-steps { counter-reset: start; }
.start-steps > li { counter-increment: start; }
.start-steps > li p::before {
  content: counter(start) ".";
  margin-right: 0.4rem;
  color: var(--blue);
  font-weight: 600;
}
#how-it-works,
#booking,
#features,
#who-its-for,
#phone-system,
#phone-systems,
#pricing,
#faq { scroll-margin-top: 5.25rem; }
.step, .start-steps li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem 1rem;
}
.section:not(.alt) .step,
.section:not(.alt) .start-steps li { background: var(--bg-alt); }
.step-num {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.step h3, .start-steps h3 { margin-bottom: 0.4rem; }

.feature-grid, .audience {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}
.feature-grid li, .audience li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
}
.feature-grid h3, .audience h3 { margin-bottom: 0.4rem; }
.feature-grid p, .audience p { margin: 0; color: var(--slate); }
.audience strong { color: var(--ink); }

.plans {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.plan {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.1rem 1.15rem;
}
.plan h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.plan-price {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}
.plan-price strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.03em;
  color: var(--blue);
  line-height: 1.1;
}
.plan-features {
  list-style: none;
  margin: 0 0 1.25rem;
}
.plan-features li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}
.plan-features li.off { color: var(--slate); }
.plan .btn { margin-top: auto; }

.billing-note {
  margin-top: 1rem;
  color: var(--slate);
  font-size: 0.95rem;
}

.start-block { margin-top: 2.5rem; }
.start-block h3 { font-size: 1.35rem; }
.live-line { margin-top: 1rem; font-weight: 600; }

.faq { margin-top: 0.5rem; }
.faq-item {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.faq-item h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.faq-item p { margin: 0; }
.faq-item a { text-underline-offset: 0.15em; }

.cta-band {
  background: var(--blue);
  color: #fff;
  padding: 3.25rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band .subhead { color: #DBEAFE; max-width: 36rem; }
.cta-actions,
.section-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin: 1.25rem 0 1rem;
}
.cta-quiet { margin: 0; color: #DBEAFE; }
.cta-quiet a { color: #fff; font-weight: 600; }

.miss { padding: 4rem 0 5rem; }
.miss h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.miss-actions { margin-top: 1.25rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #CBD5E1;
  padding: 2.75rem 0 1.25rem;
}
.site-footer a { color: #E2E8F0; text-underline-offset: 0.15em; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 1.75rem;
}
.site-footer h2 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.product-name {
  margin: 0;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
}
.tagline { margin: 0.2rem 0 0; color: #94A3B8; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 0 0 0.45rem; }
address {
  font-style: normal;
  margin-top: 0.45rem;
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #334155;
  color: #94A3B8;
  font-size: 0.9rem;
}
.site-footer :focus-visible { outline-color: #fff; }

/* ---------- Wider screens ---------- */

@media (min-width: 720px) {
  .hero { padding: 4rem 0 4.25rem; }
  .hero .subhead { font-size: 1.15rem; }
  .hero-actions, .cta-actions, .section-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .steps.booking-steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .feature-grid, .audience { grid-template-columns: 1fr 1fr; }
  .start-steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr 1fr; }
  .section { padding: 4.5rem 0; }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
    align-items: center;
    gap: 3rem;
  }
  .phone { justify-self: end; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps.booking-steps { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1041px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    width: min(var(--max), calc(100% - 3rem));
  }
  .brand { grid-column: 1; grid-row: 1; }
  .bar-end { grid-column: 3; grid-row: 1; }
  .nav-toggle, .nav-toggle-label { display: none; }
  .btn.desktop-cta { display: inline-flex; }
  .primary-nav {
    display: block;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
  .primary-nav ul {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
  }
  .primary-nav a {
    padding: 0.25rem 0;
    border-bottom: 0;
    font-size: 0.95rem;
  }
  .primary-nav .nav-cta { display: none; }
  body:has(.nav-toggle:checked) { overflow: auto; }
}

@media (max-width: 380px) {
  .btn-sign-in { padding-inline: 0.55rem; font-size: 0.9rem; }
  .header-inner { width: min(var(--max), calc(100% - 1rem)); }
}

@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
