:root {
  color-scheme: light;
  --ink: #11181f;
  --muted: #5e6f7f;
  --line: #d9e3ea;
  --paper: #ffffff;
  --soft: #eef5f1;
  --teal: #008b84;
  --green: #2f9d68;
  --amber: #c78120;
  --charcoal: #101820;
  --shadow: 0 18px 42px rgba(25, 42, 54, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #f8faf9;
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  color: #ffffff;
  background: rgba(12, 21, 28, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.site-header.solid {
  position: sticky;
  color: #ffffff;
  background: rgba(12, 21, 28, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 20%, rgba(255, 255, 255, 0.28) 20% 23%, transparent 23% 42%, rgba(255, 255, 255, 0.28) 42% 45%, transparent 45%),
    linear-gradient(135deg, #2dd4bf, #f6c453);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.brand-title,
.brand-caption {
  display: block;
}

.brand-title {
  font-weight: 800;
  line-height: 1.05;
}

.brand-caption {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.hero {
  position: relative;
  min-height: 760px;
  max-height: 860px;
  overflow: hidden;
  color: #ffffff;
  background: var(--charcoal);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(8, 13, 18, 0.94) 0%, rgba(8, 13, 18, 0.76) 40%, rgba(8, 13, 18, 0.2) 72%),
    linear-gradient(180deg, rgba(8, 13, 18, 0.38), rgba(8, 13, 18, 0.24) 52%, rgba(8, 13, 18, 0.78));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 40px));
  padding: 168px 0 96px;
  margin-left: clamp(20px, 6vw, 92px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: #2dd4bf;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 24px;
  font-size: 4rem;
  line-height: 1.02;
  letter-spacing: 0;
  max-width: 720px;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.12rem;
}

.editorial-meta {
  display: inline-flex;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: #061015;
  background: #f6c453;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(1120px, calc(100% - 40px));
  margin: -38px auto 0;
  padding: 16px;
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 227, 234, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.signal-strip span {
  padding: 8px 12px;
  border-radius: 8px;
  background: #eef5f1;
  color: #26343e;
  font-weight: 800;
  font-size: 0.88rem;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0;
}

.intro {
  padding-top: 84px;
}

h2 {
  margin-bottom: 18px;
  max-width: 820px;
  font-size: 2.45rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.25;
}

.section-lead {
  max-width: 800px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-note {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--muted);
}

.section-note a,
.linked-card a,
.breadcrumbs a,
.prose a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.section-note a:hover,
.linked-card a:hover,
.breadcrumbs a:hover,
.prose a:hover {
  text-decoration: underline;
}

.feature-grid,
.scenario-grid,
.boundary-grid,
.tools-grid,
.mistake-grid {
  display: grid;
  gap: 16px;
}

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

.tools-grid {
  grid-template-columns: 1.25fr 1fr 1fr;
  align-items: stretch;
}

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

.feature-card,
.scenario-grid article,
.boundary-grid article,
.tool-card,
.calculator-card,
.mistake-grid article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 32px rgba(18, 30, 38, 0.06);
}

.feature-card p,
.scenario-grid p,
.boundary-grid p,
.tool-card p,
.tool-card li,
.calculator-card p,
.mistake-grid p,
.faq p,
.site-footer p {
  color: var(--muted);
}

.tool-card ul,
.flow-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.calculator-fields {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.calculator-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.calculator-fields input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.calculator-fields input:focus-visible {
  border-color: var(--teal);
  outline: 3px solid rgba(0, 139, 132, 0.16);
}

.calculator-result {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  color: #163037;
  background: #e7f4f0;
}

.calculator-result strong {
  color: #0c625d;
}

.linked-card {
  display: flex;
  flex-direction: column;
}

.linked-card a {
  margin-top: auto;
  padding-top: 16px;
}

.card-index {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--teal);
  font-weight: 900;
}

.band {
  width: 100%;
  max-width: none;
  padding-left: max(20px, calc((100vw - 1120px) / 2));
  padding-right: max(20px, calc((100vw - 1120px) / 2));
  background: #edf5f1;
}

.comparison {
  overflow: hidden;
  border: 1px solid #cddbd5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(25, 42, 54, 0.08);
}

.comparison-row {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 1.2fr;
  border-top: 1px solid #e0e8e3;
}

.comparison-row:first-child {
  border-top: 0;
}

.comparison-row span {
  padding: 18px;
}

.comparison-row span:first-child {
  font-weight: 900;
  color: #113137;
}

.comparison-head {
  background: #102027;
  color: #ffffff;
  font-weight: 900;
}

.comparison-head span:first-child {
  color: #ffffff;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  align-items: start;
  gap: 48px;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: checklist;
}

.checklist li {
  position: relative;
  min-height: 68px;
  padding: 18px 18px 18px 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(18, 30, 38, 0.06);
  counter-increment: checklist;
}

.checklist li::before {
  content: counter(checklist);
  position: absolute;
  top: 18px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--green);
  font-size: 0.84rem;
  font-weight: 900;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
  font-size: 1.05rem;
}

.faq summary::marker {
  color: var(--teal);
}

.faq p {
  max-width: 760px;
  margin: 14px 0 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px max(20px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  flex-shrink: 0;
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}

.article-page {
  background: #f8faf9;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 104px max(20px, calc((100vw - 1120px) / 2));
  color: #ffffff;
  background:
    linear-gradient(100deg, rgba(15, 24, 32, 0.95), rgba(15, 24, 32, 0.78)),
    url("/assets/voice-automation-hero.jpg") center / cover no-repeat;
}

.page-hero.compact {
  min-height: 440px;
}

.page-hero h1 {
  max-width: 850px;
  font-size: 3.25rem;
}

.visual-section {
  padding-bottom: 16px;
}

.article-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid #203746;
  border-radius: 10px;
  background: #0c1720;
  box-shadow: 0 24px 60px rgba(8, 18, 25, 0.2);
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.article-figure figcaption {
  padding: 18px 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  line-height: 1.6;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.88rem;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: start;
}

.prose {
  max-width: 780px;
  font-size: 1.05rem;
}

.prose h2 {
  margin-top: 36px;
  margin-bottom: 12px;
  font-size: 1.8rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.side-panel {
  position: sticky;
  top: 92px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.side-panel h2 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.side-panel p {
  color: var(--muted);
}

.button-dark {
  width: 100%;
  color: #ffffff;
  background: #102027;
}

.article-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-cards article {
  min-height: 160px;
  padding: 24px;
  border: 1px solid #cddbd5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(18, 30, 38, 0.06);
}

.article-cards p {
  color: var(--muted);
}

.next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 0;
}

.next-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--teal);
  background: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-header.solid {
    position: static;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 190px;
    margin-left: 20px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .feature-grid,
  .scenario-grid,
  .boundary-grid,
  .tools-grid,
  .mistake-grid,
  .split,
  .article-layout,
  .article-cards {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .comparison {
    overflow-x: auto;
  }

  .comparison-row {
    min-width: 760px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 14px 16px;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 800px;
  }

  .page-hero {
    padding: 76px 16px;
  }

  .page-hero h1 {
    font-size: 2.05rem;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(8, 13, 18, 0.94), rgba(8, 13, 18, 0.78)),
      linear-gradient(180deg, rgba(8, 13, 18, 0.28), rgba(8, 13, 18, 0.82));
  }

  .hero-content {
    width: calc(100% - 32px);
    margin-left: 16px;
  }

  h1 {
    font-size: 2.32rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero-lead,
  .section-lead {
    font-size: 1rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    width: calc(100% - 32px);
    padding: 68px 0;
  }

  .band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .signal-strip {
    width: calc(100% - 32px);
  }

  .feature-card,
  .scenario-grid article,
  .boundary-grid article {
    min-height: 0;
    padding: 20px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
