:root {
  --font-body: "Segoe UI", Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
  --font-nav: "Segoe UI", Arial, sans-serif;
  --surface: #faf8f5;
  --surface-raised: #ffffff;
  --surface-alt: #f2efea;
  --surface-soft: #f6f1eb;
  --surface-cool: #eef3f1;
  --surface-warm: #f4eeee;
  --surface-proof: #f8f6f1;
  --surface-footer: #e7e2dc;
  --ink: #3f4647;
  --body: #666666;
  --muted: #7b8384;
  --rule: rgba(90, 96, 96, 0.2);
  --accent: #5f6869;
  --accent-ink: #ffffff;
  --focus: #6f315f;
  --max: 1180px;
  --gutter: clamp(20px, 5vw, 70px);
  --section-y: clamp(58px, 8vw, 106px);
  --tight-y: clamp(42px, 6vw, 72px);
  --section-gap: clamp(26px, 4vw, 46px);
  --module-gap: clamp(18px, 2.5vw, 28px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

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

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

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

button,
input,
textarea {
  font: inherit;
}

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

.skip-link {
  left: 12px;
  padding: 8px 12px;
  position: fixed;
  top: 12px;
  transform: translateY(-150%);
  z-index: 20;
  background: var(--accent);
  color: var(--accent-ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(12px);
}

.site-header__top {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 58px;
  padding: 16px var(--gutter) 8px;
}

.site-mark {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.3vw, 31px);
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(16px, 3vw, 42px);
  justify-content: center;
  min-height: 48px;
  overflow-x: auto;
  padding: 0 var(--gutter) 14px;
  white-space: nowrap;
}

.site-nav a,
.eyebrow,
.button,
.mobile-cta a,
.kicker {
  font-family: var(--font-nav);
  font-size: 13px;
  letter-spacing: 1.4px;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-nav a {
  border-bottom: 2px solid transparent;
  color: var(--muted);
  padding-bottom: 6px;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a.is-active,
.site-nav a[aria-current="true"] {
  border-bottom-color: var(--accent);
  color: var(--ink);
}

.loading-note {
  min-height: 50vh;
  padding: var(--section-y) var(--gutter);
  text-align: center;
}

.section {
  border-top: 1px solid color-mix(in srgb, var(--rule) 68%, transparent);
  padding: var(--section-y) var(--gutter);
  position: relative;
}

section[id] {
  scroll-margin-top: 116px;
}

.section--alt {
  background: var(--surface-alt);
}

.section--soft {
  background: var(--surface-soft);
}

.section--cool {
  background: var(--surface-cool);
}

.section--warm {
  background: var(--surface-warm);
}

.section--proof {
  background: var(--surface-proof);
}

.section--tight {
  padding-bottom: var(--tight-y);
  padding-top: var(--tight-y);
}

.section__inner {
  margin: 0 auto;
  max-width: var(--max);
}

.article-viewer {
  background: var(--surface-proof);
  border-bottom: 1px solid var(--rule);
  padding: clamp(24px, 3vw, 36px) var(--gutter);
  position: relative;
}

.article-viewer__inner {
  display: grid;
  gap: clamp(22px, 3.4vw, 42px);
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  margin: 0 auto;
  max-width: var(--max);
}

.article-viewer__copy {
  align-content: start;
  display: grid;
  gap: clamp(12px, 1.8vw, 16px);
}

.article-viewer h2 {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.08;
  margin: 0;
}

.article-viewer p {
  margin: 0;
}

.article-viewer__meta {
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  margin: 0;
  padding-top: 8px;
}

.article-viewer__meta div {
  align-items: baseline;
  border: 0;
  display: flex;
  gap: 4px;
  min-width: 0;
  padding: 0;
}

.article-viewer__meta dt {
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.article-viewer__meta dt::after {
  content: ":";
}

.article-viewer__meta dd {
  color: var(--ink);
  font-size: 13px;
  margin: 0;
}

.article-viewer__note {
  color: var(--muted);
  font-size: 14px;
}

.article-viewer__source {
  color: var(--muted);
  font-size: 14px;
}

.article-viewer__source a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-viewer__frame {
  background: var(--surface);
  border: 1px solid var(--rule);
  display: grid;
  gap: 0;
  min-height: clamp(260px, 30vw, 360px);
}

.article-viewer__tabs {
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.article-viewer__tab {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--rule);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: 1.3px;
  min-height: 42px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.article-viewer__tab:last-child {
  border-right: 0;
}

.article-viewer__tab.is-active {
  background: var(--surface-raised);
  color: var(--ink);
}

.article-viewer__pages {
  display: grid;
  min-height: 0;
}

.article-viewer__page {
  display: none;
  min-height: clamp(218px, 25vw, 300px);
}

.article-viewer__page.is-active {
  display: grid;
}

.article-viewer__page img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.article-viewer__placeholder {
  align-content: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(90, 96, 96, 0.08) 35px 36px),
    var(--surface-raised);
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: clamp(22px, 4vw, 42px);
}

.article-viewer__placeholder span {
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.article-viewer__placeholder strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  line-height: 1.1;
}

.article-viewer__placeholder p {
  max-width: 26rem;
}

.article-viewer__replay-card {
  align-content: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.12)),
    radial-gradient(circle at 20% 20%, rgba(95, 104, 105, 0.1), transparent 28%),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(90, 96, 96, 0.08) 35px 36px),
    var(--surface-raised);
  display: grid;
  gap: 14px;
  isolation: isolate;
  min-height: clamp(260px, 30vw, 360px);
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  place-items: center;
  position: relative;
}

.article-viewer__replay-card::before {
  background:
    linear-gradient(90deg, rgba(63, 70, 71, 0.15) 0 22%, transparent 22% 100%),
    repeating-linear-gradient(0deg, rgba(63, 70, 71, 0.16) 0 2px, transparent 2px 15px),
    color-mix(in srgb, var(--surface-raised) 86%, white);
  border: 1px solid color-mix(in srgb, var(--rule) 80%, transparent);
  box-shadow: 18px 22px 46px rgba(34, 38, 39, 0.12);
  content: "";
  height: 72%;
  max-height: 280px;
  position: absolute;
  transform: rotate(-4deg);
  width: 58%;
  z-index: -2;
}

.article-viewer__replay-card::after {
  background:
    linear-gradient(90deg, transparent 0 38%, rgba(95, 104, 105, 0.18) 38% 62%, transparent 62% 100%),
    color-mix(in srgb, var(--surface-proof) 78%, white);
  border: 1px solid color-mix(in srgb, var(--rule) 70%, transparent);
  content: "";
  height: 54%;
  max-height: 210px;
  position: absolute;
  transform: rotate(5deg) translate(22%, 6%);
  width: 48%;
  z-index: -3;
}

.article-viewer__replay-copy {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.article-viewer__replay-copy span {
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: 1.4px;
  line-height: 1.2;
  text-transform: uppercase;
}

.article-viewer__replay-copy strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.1;
}

.article-viewer__replay-copy p {
  max-width: 34rem;
}

.article-viewer__replay-link {
  box-shadow: 0 12px 34px rgba(34, 38, 39, 0.14);
  position: relative;
  z-index: 1;
}

.top-features {
  background: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 72%, black);
  padding: clamp(22px, 3vw, 34px) var(--gutter);
  position: relative;
}

.top-features__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--max);
}

.top-feature {
  align-content: center;
  border-right: 1px solid color-mix(in srgb, var(--accent-ink) 20%, transparent);
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 172px;
  padding: clamp(18px, 3vw, 28px);
  text-align: center;
}

.top-feature:first-child {
  border-left: 1px solid color-mix(in srgb, var(--accent-ink) 20%, transparent);
}

.top-feature span {
  color: color-mix(in srgb, var(--accent-ink) 72%, transparent);
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: 1.2px;
  line-height: 1.2;
  text-transform: uppercase;
}

.top-feature p {
  color: var(--accent-ink);
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.22;
  margin: 0;
  max-width: 19rem;
}

.hero-media {
  aspect-ratio: 16 / 5;
  background: var(--surface-alt);
  overflow: hidden;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero {
  padding: clamp(34px, 5vw, 62px) var(--gutter) clamp(58px, 8vw, 102px);
  position: relative;
}

.section-badge {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  margin: 0 auto clamp(18px, 2.5vw, 28px);
  max-width: var(--max);
  position: static;
  width: 100%;
  z-index: 2;
}

.section-badge span,
.section-badge strong {
  font-family: var(--font-nav);
  font-size: 11px;
  letter-spacing: 1.2px;
  line-height: 1;
  text-transform: uppercase;
}

.section-badge span {
  border: 1px solid var(--rule);
  color: var(--muted);
  display: inline-flex;
  min-width: 34px;
  padding: 7px 8px;
}

.section-badge strong {
  color: var(--muted);
  font-weight: 500;
}

.top-features .section-badge span {
  border-color: color-mix(in srgb, var(--accent-ink) 28%, transparent);
  color: color-mix(in srgb, var(--accent-ink) 78%, transparent);
}

.top-features .section-badge strong {
  color: color-mix(in srgb, var(--accent-ink) 82%, transparent);
}

.hero__grid,
.split-grid,
.contact-grid {
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.hero__title,
.section-title {
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.18;
  margin: 0;
}

.hero__title {
  font-size: clamp(38px, 6vw, 76px);
  max-width: 9em;
}

.section-title {
  font-size: clamp(30px, 4vw, 48px);
  max-width: 12em;
}

.eyebrow,
.kicker {
  color: var(--muted);
  display: block;
  margin-bottom: 18px;
}

.lead {
  color: var(--body);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}

.copy {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.copy p {
  margin: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(16px, 2.5vw, 26px);
}

.button {
  align-items: center;
  background: var(--accent);
  border: 0;
  color: var(--accent-ink);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 46px;
  padding: 16px 22px;
}

.button:hover {
  background: var(--ink);
  color: var(--accent-ink);
}

.button--secondary {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
}

.button--secondary:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.is-available-now {
  animation: availablePulse 1.7s ease-in-out infinite;
}

@keyframes availablePulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--focus) 28%, transparent);
  }

  50% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--focus) 0%, transparent);
  }
}

.meta-list,
.plain-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.meta-list li,
.plain-list li {
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}

.module-grid {
  display: grid;
  gap: var(--module-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-grid {
  display: grid;
  gap: var(--module-gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.proof-outcome {
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  margin: clamp(24px, 4vw, 42px) 0 0;
  max-width: 46rem;
  padding-top: clamp(18px, 3vw, 28px);
}

.section__inner:not(.contact-grid) > .lead + .module-grid,
.section__inner > .lead + .proof-grid,
.section__inner:not(.contact-grid) > .section-title + .module-grid,
.section__inner > .section-title + .proof-grid,
.section__inner > .section-title + .qa-list {
  margin-top: var(--section-gap);
}

.module-card {
  background: color-mix(in srgb, var(--surface) 78%, white);
  border: 1px solid var(--rule);
  min-height: 100%;
  padding: clamp(22px, 3vw, 34px);
}

.module-card h3,
.timeline-item h3,
.qa-item h3,
.contact-card h3 {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 12px;
}

.module-card p,
.timeline-item p,
.qa-item p,
.contact-card p {
  margin: 0;
}

.module-card p + .plain-list {
  margin-top: 18px;
}

.video-slot {
  border: 1px solid var(--rule);
  display: grid;
  gap: clamp(12px, 2vw, 18px);
  margin-top: clamp(22px, 4vw, 40px);
  min-height: 180px;
  padding: clamp(22px, 3vw, 34px);
  place-content: start;
}

.video-slot__status {
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.video-slot__title {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.video-slot__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-slot__meta span {
  border: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1.2;
  padding: 6px 8px;
  text-transform: uppercase;
}

.video-slot__block {
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 7px;
  padding-top: 12px;
}

.video-slot__block span {
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.video-slot__block p,
.video-slot__qa {
  margin: 0;
}

.video-slot__script p {
  color: var(--ink);
}

.video-slot__qa {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  display: grid;
  gap: 6px;
  padding: 12px 0 0 18px;
}

.timeline {
  counter-reset: step;
  display: grid;
  gap: 0;
}

.timeline-intro {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
}

.timeline-intro p {
  margin: 0;
}

.timeline-item {
  border-top: 1px solid var(--rule);
  display: grid;
  gap: var(--module-gap);
  grid-template-columns: 100px minmax(0, 1fr);
  padding: clamp(22px, 3vw, 30px) 0;
}

.timeline-item::before {
  color: var(--muted);
  content: counter(step, decimal-leading-zero);
  counter-increment: step;
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1;
}

.section--compact {
  padding-bottom: clamp(42px, 6vw, 72px);
  padding-top: clamp(42px, 6vw, 72px);
}

.section--compact .split-grid {
  gap: clamp(24px, 4vw, 48px);
}

.section--compact .timeline-intro {
  align-content: start;
  border-top: 1px solid var(--rule);
  padding-top: clamp(16px, 2vw, 22px);
}

.section--compact .timeline-intro .section-title {
  max-width: 9em;
}

.section--compact .timeline-intro p {
  color: var(--ink);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
  max-width: 28rem;
}

.section--compact .timeline-intro .plain-list {
  gap: 0;
  max-width: 30rem;
}

.section--compact .timeline-intro .plain-list li {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: 8px minmax(0, 1fr);
  line-height: 1.35;
  padding: 9px 0;
}

.section--compact .timeline-intro .plain-list li::before {
  background: var(--accent);
  content: "";
  height: 8px;
  margin-top: 8px;
  width: 8px;
}

.section--compact .timeline-item {
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: 72px minmax(0, 1fr);
  padding: clamp(12px, 1.7vw, 18px) 0;
}

.section--compact .timeline-item::before {
  font-size: 24px;
}

.section--compact .timeline-item h3 {
  font-size: clamp(20px, 2vw, 26px);
  margin-bottom: 6px;
}

.qa-list {
  display: grid;
  gap: 0;
}

.qa-item {
  border-top: 1px solid var(--rule);
  display: grid;
  gap: var(--module-gap);
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  padding: clamp(24px, 3.5vw, 34px) 0;
}

.contact-card {
  background: var(--surface-alt);
  padding: clamp(28px, 5vw, 54px);
}

.contact-grid .module-grid {
  grid-template-columns: 1fr;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.contact-link {
  align-items: center;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  display: flex;
  font-family: var(--font-nav);
  font-size: 12px;
  justify-content: center;
  letter-spacing: 1.4px;
  min-height: 46px;
  padding: 13px 14px;
  text-align: center;
  text-transform: uppercase;
}

.contact-link:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--accent-ink);
}

.contact-link--secondary {
  background: transparent;
  border-color: var(--rule);
  color: var(--ink);
}

.contact-link--secondary:hover {
  background: var(--surface);
  border-color: var(--ink);
  color: var(--ink);
}

.contact-widget {
  background: var(--surface);
  border: 1px solid var(--rule);
  bottom: 24px;
  box-shadow: 0 18px 48px rgba(34, 38, 39, 0.12);
  display: grid;
  gap: 12px;
  max-width: 260px;
  padding: 18px;
  position: fixed;
  right: 24px;
  z-index: 11;
}

.contact-widget__status {
  color: var(--muted);
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.contact-widget__actions {
  display: grid;
  gap: 8px;
}

.widget-link,
.mobile-link {
  align-items: center;
  display: flex;
  font-family: var(--font-nav);
  font-size: 12px;
  justify-content: center;
  letter-spacing: 1.4px;
  min-height: 42px;
  padding: 11px 12px;
  text-align: center;
  text-transform: uppercase;
}

.widget-link {
  background: var(--accent);
  color: var(--accent-ink);
}

.widget-link:hover {
  background: var(--ink);
  color: var(--accent-ink);
}

.widget-link--secondary {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--ink);
}

.widget-link--secondary:hover {
  background: var(--surface-alt);
  border-color: var(--ink);
  color: var(--ink);
}

.mobile-link {
  background: var(--accent);
  color: var(--accent-ink);
}

.mobile-link:hover {
  background: var(--ink);
  color: var(--accent-ink);
}

.mobile-link--secondary {
  background: var(--surface);
  color: var(--ink);
}

.mobile-link--secondary:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.modal-shell {
  inset: 0;
  position: fixed;
  z-index: 30;
}

.modal-shell__backdrop {
  background: rgba(28, 31, 32, 0.42);
  inset: 0;
  position: absolute;
}

.modal-panel {
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(25, 28, 29, 0.22);
  display: grid;
  gap: 22px;
  left: 50%;
  max-height: min(760px, calc(100vh - 40px));
  max-width: min(920px, calc(100vw - 40px));
  overflow: auto;
  padding: clamp(24px, 4vw, 46px);
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.modal-panel__close {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-nav);
  font-size: 12px;
  justify-self: end;
  letter-spacing: 1.4px;
  padding: 0;
  text-transform: uppercase;
}

.modal-panel__body {
  min-height: 0;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form label {
  color: var(--ink);
  display: grid;
  gap: 8px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--surface-raised);
  border: 1px solid var(--rule);
  color: var(--ink);
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.contact-form textarea {
  resize: vertical;
}

.form-error {
  background: #fff4f0;
  border: 1px solid #e4a28e;
  color: #762f20;
  margin: 0;
  padding: 10px 12px;
}

.contact-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-complete {
  background: var(--surface-alt);
  padding: 24px;
}

.form-complete h3,
.form-complete p {
  margin: 0;
}

.form-complete h3 {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 400;
}

.modal-shell--video .modal-panel {
  height: min(760px, calc(100vh - 40px));
  max-width: min(1080px, calc(100vw - 32px));
}

.modal-shell--article .modal-panel {
  grid-template-rows: auto auto minmax(0, 1fr);
  height: min(860px, calc(100vh - 24px));
  max-width: min(1200px, calc(100vw - 24px));
  padding: clamp(14px, 2vw, 24px);
}

.modal-shell--article .section-title {
  font-size: clamp(24px, 3vw, 38px);
  max-width: none;
}

.article-replay-modal {
  display: grid;
  height: 100%;
  min-height: 0;
}

.article-replay-frame {
  background: white;
  border: 1px solid var(--rule);
  height: 100%;
  min-height: 0;
  width: 100%;
}

.jitsi-frame {
  background: var(--surface-alt);
  display: grid;
  min-height: 460px;
  place-items: stretch;
}

.jitsi-frame iframe {
  min-height: 460px;
}

.call-consent {
  display: grid;
  gap: 14px;
}

.call-consent p,
.call-fallback p,
.call-loading {
  margin: 0;
}

.call-loading,
.call-fallback {
  align-content: center;
  display: grid;
  gap: 18px;
  justify-items: start;
  padding: 24px;
}

.site-footer {
  background: var(--surface-footer);
  padding: 44px var(--gutter);
}

.site-footer__inner {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
}

.site-footer p {
  margin: 0;
}

.mobile-cta {
  display: none;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  .hero-media {
    aspect-ratio: 16 / 8;
  }

  .hero__grid,
  .split-grid,
  .contact-grid,
  .article-viewer__inner,
  .qa-item {
    grid-template-columns: 1fr;
  }

  .module-grid,
  .proof-grid,
  .top-features__inner {
    grid-template-columns: 1fr;
  }

  .top-feature,
  .top-feature:first-child {
    border-left: 0;
    border-right: 0;
  }

  .top-feature {
    border-top: 1px solid var(--rule);
  }

  .top-feature:first-child {
    border-top: 0;
  }

  .timeline-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .mobile-cta {
    background: var(--surface);
    border-top: 1px solid var(--rule);
    bottom: 0;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    left: 0;
    position: fixed;
    right: 0;
    z-index: 12;
  }

  .mobile-cta a {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 52px;
    padding: 10px;
    text-align: center;
  }

  body {
    padding-bottom: 53px;
  }

  .contact-widget {
    display: none;
  }

  .modal-panel {
    inset: 12px;
    max-height: none;
    max-width: none;
    padding: 22px;
    transform: none;
    width: auto;
  }

  .modal-shell--video .modal-panel {
    height: auto;
  }

  .modal-shell--article .modal-panel {
    height: auto;
  }

  .article-replay-frame {
    min-height: calc(100vh - 170px);
  }

  .jitsi-frame,
  .jitsi-frame iframe {
    min-height: 360px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  :root {
    --gutter: 18px;
  }

  .site-header__top {
    padding-top: 18px;
  }

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

  .hero-media {
    aspect-ratio: 4 / 3;
  }

  .article-viewer__meta div {
    grid-template-columns: 1fr;
  }

  .article-viewer {
    padding-bottom: 28px;
    padding-top: 24px;
  }

  .article-viewer__copy {
    gap: 10px;
  }

  .article-viewer__meta,
  .article-viewer__note {
    display: none;
  }

  .article-viewer__frame {
    min-height: 232px;
  }

  .article-viewer__page {
    min-height: 188px;
  }

  .article-viewer__replay-card {
    min-height: 188px;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    display: grid;
  }
}
