:root {
  --feature-ink: #151515;
  --feature-muted: #66717e;
  --feature-orange: #ec671b;
  --feature-steel: #dce1e7;
  --feature-paper: #f5f6f8;
  --feature-surface: #ffffff;
  --feature-dark: #0a0a0c;
  --feature-header-height: 5rem;
}

html {
  scroll-padding-top: calc(var(--feature-header-height) + 1.5rem);
}

body.features-page {
  overflow-x: clip;
  background: var(--feature-paper);
  color: var(--feature-ink);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000001;
  transform: translateY(-180%);
  border-radius: 0.5rem;
  background: #ffffff;
  color: #111111;
  padding: 0.75rem 1rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

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

.features-page :focus-visible {
  outline: 3px solid #ff9a5c;
  outline-offset: 3px;
}

.features-page .cta-button,
.features-page #cookie-accept-all,
.features-page #cookie-modal-accept {
  color: #111111;
}

.features-header {
  background: rgba(10, 10, 12, 0.92) !important;
  backdrop-filter: blur(16px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(140%) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.features-header .header-logo {
  width: 120px;
  height: auto;
}

.features-hero {
  position: relative;
  overflow: hidden;
  min-height: 46rem;
  padding: 9.5rem 0 6rem;
  background: radial-gradient(circle at 82% 18%, rgba(236, 103, 27, 0.2), transparent 25rem),
    radial-gradient(circle at 12% 80%, rgba(102, 113, 126, 0.2), transparent 30rem), var(--feature-dark);
  color: #fafafa;
}

.features-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.27;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.features-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 4rem;
}

.feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
  color: #ff8b47;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.feature-kicker::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0.3rem rgba(236, 103, 27, 0.16);
  content: "";
}

.features-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.75rem, 5.5vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.features-hero h1 span {
  color: #ff7e31;
}

.features-hero-copy {
  max-width: 42rem;
  margin-top: 1.75rem;
  color: #bdc5ce;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.75;
}

.feature-tier-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.feature-tier-legend span,
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  border-radius: 999px;
  padding: 0.48rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.feature-tier-legend span::before,
.availability-badge::before {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.feature-tier-legend .tier-core,
.availability-badge.tier-core {
  background: #e8f6ef;
  color: #12613a;
}

.feature-tier-legend .tier-addon,
.availability-badge.tier-addon {
  background: #fff0e6;
  color: #a73e00;
}

.feature-tier-legend .tier-custom,
.availability-badge.tier-custom {
  background: #e8edf3;
  color: #43505e;
}

.features-hero .feature-tier-legend span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f6f8;
}

.hero-stage {
  position: relative;
  min-height: 32rem;
}

.hero-browser {
  position: absolute;
  top: 1.5rem;
  right: -10rem;
  width: min(54rem, 67vw);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.25rem;
  background: #ffffff;
  box-shadow: 0 2.5rem 7rem rgba(0, 0, 0, 0.5);
  transform: rotate(1.8deg);
}

.hero-browser::before {
  display: block;
  height: 2rem;
  border-bottom: 1px solid #dfe3e8;
  background: radial-gradient(circle at 1rem 1rem, #ff725f 0 0.28rem, transparent 0.3rem),
    radial-gradient(circle at 2rem 1rem, #ffbf3f 0 0.28rem, transparent 0.3rem),
    radial-gradient(circle at 3rem 1rem, #37ca56 0 0.28rem, transparent 0.3rem), #f1f3f5;
  content: "";
}

.hero-browser img,
.hero-phone img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-phone {
  position: absolute;
  right: 1rem;
  bottom: -1.5rem;
  width: 12.25rem;
  overflow: hidden;
  border: 0.45rem solid #171719;
  border-radius: 2rem;
  background: #171719;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.5);
  transform: rotate(-4deg);
}

.hero-phone::before {
  position: absolute;
  top: 0.35rem;
  left: 50%;
  z-index: 2;
  width: 3rem;
  height: 0.32rem;
  border-radius: 999px;
  background: #202023;
  content: "";
  transform: translateX(-50%);
}

.capability-overview {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
}

.overview-grid {
  display: grid;
  gap: 1rem;
}

.overview-card {
  min-height: 12rem;
  border: 1px solid #e1e4e8;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.96);
  padding: 1.75rem;
  box-shadow: 0 1rem 3rem rgba(26, 31, 36, 0.08);
}

.overview-number {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  margin-bottom: 1.5rem;
  border-radius: 0.7rem;
  background: #171719;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.overview-card h2 {
  margin-bottom: 0.65rem;
  font-size: 1.22rem;
  font-weight: 800;
}

.overview-card p {
  color: var(--feature-muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.mobile-capability-nav {
  position: sticky;
  top: var(--feature-header-height);
  z-index: 35;
  border-block: 1px solid #dfe3e8;
  background: rgba(245, 246, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-capability-nav nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.8rem 1rem;
  scrollbar-width: none;
}

.mobile-capability-nav nav::-webkit-scrollbar {
  display: none;
}

.mobile-capability-nav a {
  flex: 0 0 auto;
  border: 1px solid #d7dce2;
  border-radius: 999px;
  background: #ffffff;
  color: #54606e;
  padding: 0.55rem 0.78rem;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.mobile-capability-nav a.is-active,
.mobile-capability-nav a[aria-current="true"] {
  border-color: #ec671b;
  background: #ec671b;
  color: #111111;
}

.features-docs {
  display: grid;
  gap: 3.5rem;
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.capability-rail {
  display: none;
}

.capability-rail-inner {
  position: sticky;
  top: 7rem;
}

.capability-rail-label {
  margin-bottom: 1rem;
  color: #8b949f;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.capability-rail nav {
  display: grid;
  gap: 0.18rem;
  padding-left: 0.8rem;
  border-left: 1px solid #d9dde2;
}

.capability-rail a {
  position: relative;
  border-radius: 0.45rem;
  color: #6a7480;
  padding: 0.55rem 0.7rem;
  font-size: 0.77rem;
  font-weight: 650;
  line-height: 1.3;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.capability-rail a::before {
  position: absolute;
  top: 50%;
  left: -0.88rem;
  width: 0.2rem;
  height: 1.3rem;
  border-radius: 999px;
  background: transparent;
  content: "";
  transform: translateY(-50%);
}

.capability-rail a:hover {
  color: #151515;
}

.capability-rail a.is-active,
.capability-rail a[aria-current="true"] {
  background: #fff1e8;
  color: #a83e00;
  transform: translateX(0.2rem);
}

.capability-rail a.is-active::before,
.capability-rail a[aria-current="true"]::before {
  background: #ec671b;
}

.capability-content {
  min-width: 0;
}

.capability-intro {
  max-width: 54rem;
  margin-bottom: 4rem;
}

.capability-intro h2,
.foundation-section h2,
.expectations-section h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.capability-intro p,
.foundation-section > p,
.expectations-section > p {
  max-width: 48rem;
  color: var(--feature-muted);
  line-height: 1.75;
}

.capability-section {
  scroll-margin-top: 9.5rem;
  padding: 4.5rem 0;
  border-top: 1px solid #dce1e7;
}

.capability-heading {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.capability-index {
  color: #9ca4ad;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.capability-heading h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.capability-outcome {
  max-width: 48rem;
  color: #45515e;
  font-size: 1.06rem;
  line-height: 1.75;
}

.capability-outcome strong {
  color: #1a1a1a;
}

.capability-audiences {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.audience-card,
.integration-note {
  border: 1px solid #dfe3e8;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.35rem;
}

.audience-card h3,
.integration-note h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  font-size: 0.86rem;
  font-weight: 800;
}

.audience-card h3::before,
.integration-note h3::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #ec671b;
  content: "";
}

.audience-card ul {
  display: grid;
  gap: 0.52rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.audience-card li {
  position: relative;
  color: #606b77;
  padding-left: 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
}

.audience-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 999px;
  background: #adb5bf;
  content: "";
}

.integration-note {
  margin-bottom: 2.25rem;
  background: #edf0f3;
}

.integration-note h3::before {
  background: #66717e;
}

.integration-note p {
  color: #53606c;
  font-size: 0.87rem;
  line-height: 1.65;
}

.feature-shot-grid {
  display: grid;
  gap: 1rem;
}

.feature-shot {
  overflow: hidden;
  border: 1px solid #d8dde3;
  border-radius: 1.15rem;
  background: #ffffff;
  box-shadow: 0 1.5rem 4rem rgba(35, 42, 49, 0.1);
}

.shot-media {
  position: relative;
  overflow: hidden;
  background: #ebedf0;
}

.shot-media picture,
.shot-media img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-callout {
  position: absolute;
  top: var(--callout-y);
  left: var(--callout-x);
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 0.18rem solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: #ec671b;
  color: #111111;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.shot-callout:hover,
.shot-callout.is-active {
  background: #171719;
  color: #ffffff;
  transform: translate(-50%, -50%) scale(1.12);
}

.feature-shot figcaption {
  display: grid;
  gap: 0.85rem;
  padding: 1rem 1.1rem 1.15rem;
  color: #5f6a76;
  font-size: 0.8rem;
  line-height: 1.55;
}

.shot-label {
  color: #222222;
  font-weight: 750;
}

.shot-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shot-notes li {
  display: flex;
  align-items: flex-start;
  gap: 0.42rem;
}

.shot-notes .note-number {
  display: grid;
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #f2e4dc;
  color: #a74006;
  font-size: 0.62rem;
  font-weight: 850;
}

.shot-notes li.is-active {
  color: #9e3900;
  font-weight: 750;
}

.feature-shot--phone {
  max-width: 24rem;
  margin-inline: auto;
}

.foundation-section,
.expectations-section {
  scroll-margin-top: 8rem;
  padding: 5rem 0;
  border-top: 1px solid #dce1e7;
}

.foundation-grid,
.expectations-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.foundation-card,
.expectations-card {
  border: 1px solid #dce1e7;
  border-radius: 1rem;
  background: #ffffff;
  padding: 1.4rem;
}

.foundation-card h3,
.expectations-card h3 {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.foundation-card p,
.expectations-card p {
  color: #606b77;
  font-size: 0.86rem;
  line-height: 1.65;
}

.expectations-card--wide {
  grid-column: 1 / -1;
  background: #edf0f3;
}

.features-cta {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 10%, rgba(236, 103, 27, 0.25), transparent 24rem), #0a0a0c;
  color: #ffffff;
  padding: 5rem 0;
}

.features-cta h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.features-cta p {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  color: #b7bec8;
  line-height: 1.75;
}

.features-cal {
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1rem;
  background: #111111;
}

@media (min-width: 640px) {
  .overview-grid,
  .capability-audiences,
  .foundation-grid,
  .expectations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-heading {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .capability-heading > :not(.capability-index) {
    grid-column: 2;
  }

  .capability-heading .capability-index {
    grid-row: 1 / span 4;
  }
}

@media (min-width: 900px) {
  .features-hero-grid {
    grid-template-columns: minmax(0, 0.83fr) minmax(28rem, 1.17fr);
  }

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

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

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

@media (min-width: 1100px) {
  .mobile-capability-nav {
    display: none;
  }

  .features-docs {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 5rem;
  }

  .capability-rail {
    display: block;
  }
}

@media (max-width: 899px) {
  .features-hero {
    min-height: auto;
  }

  .hero-stage {
    min-height: 25rem;
  }

  .hero-browser {
    right: -12rem;
    width: 47rem;
  }

  .hero-phone {
    right: 8%;
    width: 10rem;
  }
}

@media (max-width: 639px) {
  :root {
    --feature-header-height: 6rem;
  }

  .features-hero {
    padding-top: 8.5rem;
    padding-bottom: 4rem;
  }

  .features-hero-grid {
    gap: 2rem;
  }

  .features-hero h1 {
    max-width: none;
  }

  .hero-stage {
    min-height: 19rem;
  }

  .hero-browser {
    top: 0.75rem;
    right: -15.5rem;
    width: 42rem;
  }

  .hero-phone {
    right: 1rem;
    bottom: -0.5rem;
    width: 8rem;
    border-width: 0.3rem;
    border-radius: 1.35rem;
  }

  .capability-overview {
    margin-top: 0;
    padding-top: 1rem;
  }

  .features-docs {
    padding-top: 3.5rem;
  }

  .capability-section {
    padding: 3.5rem 0;
  }

  .capability-heading h2 {
    font-size: 2.15rem;
  }

  .feature-shot figcaption {
    font-size: 0.75rem;
  }

  .shot-callout {
    width: 1.65rem;
    height: 1.65rem;
    border-width: 0.13rem;
    font-size: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .features-page *,
  .features-page *::before,
  .features-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero-browser,
  .hero-phone {
    transform: none;
  }
}
