:root {
  color-scheme: light dark;

  --UI-Black: #000000;
  --UI-Gray: #8e8e93;
  --UI-Gray-2: light-dark(#a3a3b2, #636366);
  --UI-Gray-3: light-dark(#c7c7cc, #48484a);
  --UI-Gray-4: light-dark(#d1d1d6, #3a3a3c);
  --UI-Gray-5: light-dark(#e5e5ea, #2c2c2e);
  --UI-Gray-6: light-dark(#f2f2f7, #1c1c1e);
  --UI-White: #ffffff;

  --UI-Backgrounds-Primary: light-dark(#ffffff, #000000);
  --UI-Backgrounds-Tertiary: light-dark(#ffffff, #2c2c2e);
  --UI-Backgrounds-Secondary: light-dark(#f1f4f4, #1c1c1e);

  --Text-Primary: light-dark(var(--UI-Black), var(--UI-White));
  --Text-Secondary: light-dark(rgba(60, 60, 67, 0.6), rgba(235, 235, 245, 0.6));

  --Brand-Indexing-Green: #4af120;

  --font-size-tiny: 12px;
  --font-size-xs: 14px;
  --font-size-sm: 16px;
  --font-size-md: 18px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 48px;
  --font-size-4xl: 60px;
}

@media screen and (max-width: 768px) {
  :root {
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 30px;
    --font-size-4xl: 36px;
  }
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter/Inter-VariableFont_opsz,wght.ttf");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
/* Note: Inter weight 400 (Regular) is used as the base weight */
@font-face {
  font-family: "Fira Code";
  src: url("/assets/fonts/Fira_Code/FiraCode-VariableFont_wght.ttf");
}
/* TWK Everett font files for Display text */
/* TWK Everett is used for large display text (48px) */
@font-face {
  font-family: "TWK Everett";
  src: url("/assets/fonts/TWK_Everett/TWKEverett-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TWK Everett";
  src: url("/assets/fonts/TWK_Everett/TWKEverett-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TWK Everett";
  src: url("/assets/fonts/TWK_Everett/TWKEverett-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

html,
body {
  background-color: var(--UI-Backgrounds-Primary);
}

body {
  align-items: center;
  color: var(--Text-Primary);
  display: flex;
  flex-direction: column;
  font-family: Inter, sans-serif;
  font-size: var(--font-size-sm, 16px);
  font-style: normal;
  font-weight: 400; /* Regular - base weight for Inter */
  font-synthesis: none; /* Prevent synthetic bolding */
  letter-spacing: -0.16px;
  line-height: 150%;
  padding: 24px;
  padding-top: calc(24px * 2 + 150px);
  gap: 150px;
  max-width: 1300px;
  margin: auto;
}
body[id="page-index"] {
  max-width: 1300px;
}
@media screen and (max-width: 768px) {
  body {
    padding-top: calc(24px * 2 + 100px);
    gap: 100px;
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

pre {
  white-space: pre-wrap;
}
code {
  color: var(--Text-Secondary, rgba(60, 60, 67, 0.6));
  font-family: "Fira Code", mono;
  font-style: normal;
  font-weight: 300;
  line-height: var(--font-line-height-md, 24px); /* 120% */
  letter-spacing: -0.2px;
  word-wrap: break-word;
}
pre code {
  font-size: 0.8em;
}

a,
a:visited {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: none;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
  position: relative;
}

/* END RESET */

/* Design System Text Styles */
/* Based on Figma design system typography */
/* Note: Inter weight 400 (Regular) is used as the base weight for all Regular text styles */

/* Display Styles (TWK Everett) */
.text-jumbo-regular {
  font-family: "TWK Everett", Inter, sans-serif;
  font-size: var(--font-size-4xl, 60px);
  font-style: normal;
  font-weight: 400; /* Regular - matches Figma Text/Jumbo/Regular */
  line-height: 110%; /* 66px */
  letter-spacing: -3.6px;
}

.text-display-regular {
  font-family: "TWK Everett", Inter, sans-serif;
  font-size: var(--font-size-3xl, 48px);
  font-style: normal;
  font-weight: 400; /* Regular - matches Figma Text/Display/Regular */
  line-height: 110%; /* 52.8px - increased for better readability */
  letter-spacing: -2.4px;
}

.text-display-bold {
  font-family: "TWK Everett", Inter, sans-serif;
  font-size: var(--font-size-3xl, 48px);
  font-style: normal;
  font-weight: 500; /* Medium - matches Figma Text/Display/Bold */
  line-height: 110%; /* 52.8px - increased for better readability */
  letter-spacing: -2.4px;
}

/* Headline Styles (TWK Everett) */
.text-headline-regular {
  font-family: "TWK Everett", Inter, sans-serif;
  font-size: 28px; /* Reduced from 32px to optically match Inter */
  font-style: normal;
  font-weight: 400; /* Regular - matches Figma Text/Headline/Regular */
  line-height: 120%; /* 33.6px */
  letter-spacing: -1.2px;
  font-synthesis: none; /* Prevent synthetic bolding */
}

.text-headline-bold,
h1.text-headline-bold {
  font-family: "TWK Everett", Inter, sans-serif;
  font-size: 28px; /* Reduced from 32px to optically match Inter */
  font-style: normal;
  font-weight: 500; /* Medium - matches Figma Text/Headline/Bold */
  line-height: 120%; /* 33.6px */
  letter-spacing: -1.2px;
  font-synthesis: none; /* Prevent synthetic bolding */
}

@media screen and (max-width: 768px) {
  .text-headline-regular,
  .text-headline-bold,
  h1.text-headline-bold {
    font-size: 22px; /* Reduced from 24px to optically match Inter, avoids conflict with subhead (20px) */
    line-height: 120%; /* 26.4px */
  }
}

/* Subhead Styles (Inter) */
.text-subhead-regular {
  font-family: Inter, sans-serif;
  font-size: var(--font-size-xl, 24px);
  font-style: normal;
  font-weight: 400; /* Regular - matches Figma Text/Subhead/Regular */
  line-height: 130%; /* 31.2px */
  letter-spacing: -0.8px;
  font-synthesis: none; /* Prevent synthetic bolding */
}

.text-subhead-bold {
  font-family: Inter, sans-serif;
  font-size: var(--font-size-xl, 24px);
  font-style: normal;
  font-weight: 500; /* Medium - matches Figma Text/Subhead/Bold */
  line-height: 130%; /* 31.2px */
  letter-spacing: -0.8px;
  font-synthesis: none; /* Prevent synthetic bolding */
}

/* Body Styles (Inter) */
.text-body-large-regular {
  font-family: Inter, sans-serif;
  font-size: var(--font-size-md, 18px);
  font-style: normal;
  font-weight: 400; /* Regular - matches Figma Text/Body Large/Regular */
  line-height: 140%; /* 25.2px */
  letter-spacing: -0.36px;
}

.text-body-base-bold {
  font-family: Inter, sans-serif;
  font-size: var(--font-size-sm, 16px);
  font-style: normal;
  font-weight: 500; /* Medium - matches Figma Text/Body Base/Bold */
  line-height: 150%; /* 24px */
  letter-spacing: -0.16px;
}

.text-body-base-regular {
  font-family: Inter, sans-serif;
  font-size: var(--font-size-sm, 16px);
  font-style: normal;
  font-weight: 400; /* Regular - matches Figma Text/Body Base/Regular */
  line-height: 150%; /* 24px */
  letter-spacing: -0.16px;
}

/* Caption Styles (Inter) */
.text-caption-medium {
  font-family: Inter, sans-serif;
  font-size: var(--font-size-xs, 14px);
  font-style: normal;
  font-weight: 500; /* Medium - matches Figma Text/Caption/Medium */
  line-height: 140%; /* 19.6px - increased for better readability */
  letter-spacing: -0.14px;
}

.text-caption-regular {
  font-family: Inter, sans-serif;
  font-size: var(--font-size-xs, 14px);
  font-style: normal;
  font-weight: 400; /* Regular - matches Figma Text/Caption/Regular */
  line-height: 140%; /* 19.6px - increased for better readability */
  letter-spacing: -0.14px;
}

/* Legal Style (Inter) */
.text-legal-regular {
  font-family: Inter, sans-serif;
  font-size: var(--font-size-tiny, 12px);
  font-style: normal;
  font-weight: 500; /* Medium - matches Figma Text/Legal/Regular */
  line-height: 110%; /* 13.2px */
  letter-spacing: -0.24px;
}

/* Code Style (Fira Code) */
.text-code-regular {
  font-family: "Fira Code", mono;
  font-size: var(--font-size-sm, 16px);
  font-style: normal;
  font-weight: 500; /* Medium - matches Figma Text/Code/Regular */
  line-height: 110%; /* 17.6px */
  letter-spacing: -1.12px;
}

/* Label Styles (Inter) */
.text-label-bold {
  font-family: Inter, sans-serif;
  font-size: var(--font-size-sm, 16px);
  font-style: normal;
  font-weight: 600; /* Semi Bold - matches Figma Text/Label/Bold */
  line-height: 16px; /* 100% */
  letter-spacing: -0.16px;
}

.text-label-regular {
  font-family: Inter, sans-serif;
  font-size: var(--font-size-sm, 16px);
  font-style: normal;
  font-weight: 500; /* Medium - matches Figma Text/Label/Regular */
  line-height: 16px; /* 100% */
  letter-spacing: -0.16px;
}

/* Link Style (Inter) */
.text-link-regular {
  font-family: Inter, sans-serif;
  font-size: var(--font-size-sm, 16px);
  font-style: normal;
  font-weight: 400; /* Regular - matches Figma Text/Link/Regular */
  line-height: 100%; /* 16px */
  letter-spacing: -0.16px;
  text-decoration: underline;
  text-decoration-style: solid;
  text-underline-position: from-font;
}

/* Global h1 and h2 styles removed - all headings should use design system classes */

h4 {
  font-size: var(--font-size-xs, 14px);
  font-style: normal;
  font-weight: 400; /* Regular */
  line-height: 120%; /* 16.8px */
  letter-spacing: -0.14px;
}

hr {
  background: light-dark(#e5e5ea, #3a3a3c);
  width: 100%;
  height: 1px;
  border: none;
  margin: 0;
}

blockquote {
  border-left: 2px solid var(--Text-Primary);
  padding: 0 24px;
  font-family: Inter, sans-serif;
  font-size: var(--font-size-sm, 16px);
  font-style: italic;
  font-weight: 400; /* Regular - matches Figma Text/Body Base/Regular */
  line-height: 150%; /* 24px */
  letter-spacing: -0.16px;
  color: var(--Text-Primary);
}
blockquote > p + p {
  margin-top: 2em;
}
@media screen and (max-width: 768px) {
  blockquote {
    margin-left: 0;
    padding-left: 24px;
    padding-right: 24px;
  }
}

footer {
  border-top: solid 1px var(--Text-Primary);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  gap: 2em;
  width: 100%;
  padding: 2em 0 1em;
}
footer .footer-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
footer .footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
footer .footer-legal {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
}
footer .footer-social {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex-wrap: wrap;
}
footer a {
  text-decoration: none;
  transition: opacity 0.2s ease;
  color: var(--Text-Primary);
}
footer a:hover {
  opacity: 0.8;
}
.theme-toggle {
  display: flex;
  flex-direction: row;
  gap: 4px;
  padding: 4px;
  background: var(--UI-Backgrounds-Secondary, #f1f4f4);
  border-radius: 4px;
  width: fit-content;
}
.theme-toggle-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  color: var(--Text-Primary);
  transition: background-color 0.2s ease;
}
.theme-toggle-button:hover {
  background: light-dark(rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0.1));
}
.theme-toggle-button.active {
  background: var(--UI-Backgrounds-Primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.theme-toggle-button .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}
@media screen and (max-width: 768px) {
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 1.5em 0 1em;
  }
  footer .footer-right {
    align-items: flex-start;
    width: 100%;
  }
  footer .footer-legal,
  footer .footer-social {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

form,
form label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
form input,
form textarea {
  padding: 0.5em 1em;
  border-radius: 4px;
}

.dex-bit {
  background-image: url("/assets/dex-bit-light.svg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 64px;
  height: 55px;
  display: block;
}
@media (prefers-color-scheme: dark) {
  .dex-bit {
    background-image: url("/assets/dex-bit-dark.svg");
  }
}

#top-nav {
  padding: 24px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  background: light-dark(rgba(255, 255, 255, 0.7), rgba(0, 0, 0, 0.7));
  backdrop-filter: blur(20px);
  position: fixed;
  top: 0;
  z-index: 1000;
}
#top-nav .nav-content {
  max-width: 1300px;
  width: calc(100% - 48px);
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  align-content: flex-start;
  flex-wrap: wrap;
}
#top-nav svg > path {
  fill: var(--Text-Primary);
}
#top-nav .nav-content > div {
  display: flex;
  align-items: center;
  gap: 40px;
}
#top-nav .nav-content > a,
#top-nav .nav-content > div > a {
  text-decoration: none;
  transition: opacity 0.2s ease;
}
#top-nav .nav-content > a:hover,
#top-nav .nav-content > div > a:hover {
  opacity: 0.8;
}
#top-nav .nav-content > div > a.external-link {
  position: relative;
}
#top-nav .nav-content > div > a.external-link::after {
  content: "north_east";
  font-family: "Material Symbols Outlined";
  font-size: 0.85em;
  position: absolute;
  top: -0.2em;
  right: -1.2em;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  line-height: 1;
}
#top-nav .nav-content > div > a.external-link:hover::after {
  opacity: 1;
}
@media screen and (max-width: 768px) {
  #top-nav .nav-content > div > a:not(:last-of-type) {
    display: none;
  }
}

a.button-link,
.button-link {
  background: var(--Text-Primary);
  color: light-dark(var(--UI-White), var(--UI-Black));
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 100px;
  width: fit-content;
  text-decoration: none;
  transition: opacity 0.2s ease;
  /* Default size is large */
  padding: 16px;
  font-size: var(--font-size-sm, 16px);
}

/* Button size variants */
.button-link-large,
a.button-link-large {
  padding: 16px;
  font-size: var(--font-size-sm, 16px);
}

.button-link-medium,
a.button-link-medium {
  padding: 12px 20px;
  font-size: var(--font-size-sm, 16px);
}

.button-link-small,
a.button-link-small {
  padding: 8px 16px;
  font-size: var(--font-size-xs, 14px);
}

a.button-link:hover,
.button-link:hover {
  opacity: 0.8;
}

#content {
  display: flex;
  width: 580px;
  flex-direction: column;
  gap: 40px;
}
#content > .header p + p {
  margin-top: -2.6em;
}
#content > .header p {
  color: var(--Text-Secondary, rgba(60, 60, 67, 0.6));
  font-size: var(--font-size-xs, 14px);
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 16.8px */
  letter-spacing: -0.14px;
}
#content > p {
  font-family: Inter, sans-serif;
  font-size: var(--font-size-sm, 16px);
  font-style: normal;
  font-weight: 400; /* Regular - matches Figma Text/Body Base/Regular */
  line-height: 150%; /* 24px */
  letter-spacing: -0.16px;
  color: var(--Text-Primary);
}
#content p strong {
  font-family: Inter, sans-serif;
  font-size: var(--font-size-sm, 16px);
  font-style: normal;
  font-weight: 500; /* Medium - matches Figma Text/Body Base/Bold */
  line-height: 150%; /* 24px */
  letter-spacing: -0.16px;
}
#content .layout-image {
  display: flex;
  height: 100px;
  padding: 100px 150px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
#content > p > img {
  max-width: 100%;
}
@media screen and (max-width: 768px) {
  #content {
    width: 100%;
  }
  #content .layout-image {
    height: auto;
  }
}

/* Hero Carousel Container - 1300px max width */
.hero-carousel {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  height: 650px;
}

.hero-carousel-container {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.hero-carousel-pagination {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  max-width: 1300px;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
  justify-content: flex-start;
  pointer-events: none;
  /* Position above subhead copy - align with content area */
  /* bottom: 24px (content padding) + 32px (content-text padding-top) + 16px (gap) + text height */
  margin-bottom: calc(24px + 32px + 16px + 2em);
}

/* Item container that slides horizontally (Apple-style) */
.hero-carousel-items {
  display: flex;
  height: 100%;
  position: relative;
  transition: transform 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
  will-change: transform;
}

/* Individual carousel item */
.hero-carousel-item {
  height: 650px;
  width: 100%;
  min-width: 100%;
  max-width: 1300px;
  box-sizing: border-box;
  background-color: var(--UI-Backgrounds-Secondary, #1c1c1e);
  background-image: var(--carousel-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 24px;
  gap: 24px;
  transition:
    transform 1s cubic-bezier(0.645, 0.045, 0.355, 1),
    opacity 0.6s ease;
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0;
  pointer-events: none;
  /* Ensure children respect padding boundaries */
  overflow: visible;
}

/* Gradient overlay for text readability - Apple-style approach */
.hero-carousel-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-carousel-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 0;
  box-sizing: border-box;
  /* Ensure content respects parent padding */
  min-width: 0;
}

.hero-carousel-pagination-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.35);
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
  pointer-events: auto;
}

.hero-carousel-pagination-dot.active {
  background-color: rgba(255, 255, 255, 1);
}

.hero-carousel-pagination-dot:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

/* SVG progress ring for active dot */
.hero-carousel-pagination-dot .progress-ring {
  position: absolute;
  top: calc(50% - 8px);
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.hero-carousel-pagination-dot .progress-circle {
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.1s linear;
}

.hero-carousel-pagination-dot .progress-circle.active {
  stroke: rgba(255, 255, 255, 1);
  animation: carousel-dot-progress 10s linear infinite;
}

@keyframes carousel-dot-progress {
  0% {
    stroke-dashoffset: 37.699;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.hero-carousel-content-text {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  gap: 24px;
  padding-top: 32px; /* Space for pagination dots above */
  box-sizing: border-box;
  /* Ensure content respects parent padding */
  min-width: 0;
}

.hero-carousel-content-text > p {
  margin: 0;
  flex: 1;
  max-width: 547px;
  min-width: 0;
  overflow-wrap: break-word;
}

.hero-carousel-content-text > a {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 1);
  color: var(--UI-Black, #000000);
  white-space: nowrap;
}

.hero-carousel-content-text > a:hover {
  opacity: 0.8;
}

.hero-carousel-content p {
  color: var(--UI-White, #ffffff);
  max-width: 547px;
  margin: 0;
  flex: 1;
}

.hero-carousel-content a {
  flex-shrink: 0;
}

/* Items positioned in a row - simple sliding */
.hero-carousel-item {
  opacity: 1;
  pointer-events: auto;
  z-index: 0;
}

/* Legacy support for old .hero-image class */
.hero-image {
  height: 650px;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--UI-Backgrounds-Secondary, #1c1c1e);
  background-image: url("/assets/heros/carousel-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 24px;
  gap: 24px;
}

.hero-image::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.3) 50%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-image > * {
  position: relative;
  z-index: 1;
}

.hero-image p {
  color: var(--UI-White, #ffffff);
  max-width: 547px;
  margin: 0;
}

.hero-image a {
  color: var(--UI-White, #ffffff);
}

#directory-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 64px;
  align-self: stretch;
}
#directory-list > .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  flex-direction: row;
}
#directory-list > .header p {
  /* Font styles handled by .text-label-regular class */
}
#directory-list > .header a {
  color: var(--Text-Secondary, rgba(60, 60, 67, 0.6));
  text-decoration: none;
  transition: opacity 0.2s ease;
  /* Font styles handled by .text-link-regular class */
}
#directory-list > .header a:hover {
  opacity: 0.8;
}
#directory-list > a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  border-bottom: 1px solid var(--UI-Gray-4, #d1d1d6);
}
#directory-list > a:last-child {
  border-bottom: none;
}
#directory-list > a > div {
  display: flex;
  padding: 40px 0;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
  cursor: pointer;
  gap: 24px;
}
#directory-list > a > div > label {
  flex-shrink: 0;
}
#directory-list > a > div > .arrow-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  border-radius: 100px;
  border: 1px solid var(--Text-Primary);
  flex-shrink: 0;
  position: relative;
}
#directory-list > a > div > .arrow-icon img {
  width: 20px;
  height: 20px;
  display: block;
  position: relative;
  z-index: 1;
}
#directory-list > a > div > .arrow-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: var(--Text-Primary);
  mask-image: url(/assets/icons/arrow-outward.svg);
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-image: url(/assets/icons/arrow-outward.svg);
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  z-index: 2;
}
#directory-list > a > div > .arrow-icon img {
  opacity: 0;
}
#directory-list > a > div > label p {
  /* Font styles handled by .text-label-regular class */
  margin-bottom: 12px;
}
#directory-list > a > div > label p + p {
  color: var(--Text-Secondary, rgba(60, 60, 67, 0.6));
  /* Font styles handled by .text-caption-regular class */
}
#directory-list > a > div > p {
  /* Font styles handled by .text-headline-regular and .text-body-base-regular classes */
  width: 400px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
#directory-list > a > div > p + p {
  overflow: hidden;
  color: var(--Text-Secondary);
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
@media screen and (max-width: 768px) {
  #directory-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
  }
  #directory-list > a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
  }
  #directory-list > a > div {
    display: flex;
    padding: 20px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
  }
  #directory-list > a > div > .arrow-icon {
    display: none;
  }
  #directory-list > a > div > p {
    width: auto;
  }
}

#cta {
  display: flex;
  padding: 100px 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
#cta h1 {
  /* Font styles handled by .text-display-regular class */
}
#cta > div {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 24px;
}
#cta > div > h1 {
  text-align: center;
}
#cta > div > .cta-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 11px;
  flex-wrap: nowrap;
}
#cta > div > .cta-buttons > a:first-of-type {
  display: flex;
  padding: 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 100px;
  background: var(--Text-Primary);
  color: light-dark(var(--UI-White), var(--UI-Black));
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
#cta > div > .cta-buttons > a:first-of-type:hover {
  opacity: 0.8;
}
#cta > div > .cta-buttons > a:last-of-type {
  display: flex;
  padding: 16px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border: 1px solid var(--Text-Primary);
  border-radius: 100px;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
#cta > div > .cta-buttons > a:last-of-type:hover {
  opacity: 0.8;
}
/* Single button should be filled (primary) style */
#cta > div > .cta-buttons > a:first-of-type:last-of-type {
  background: var(--Text-Primary);
  color: light-dark(var(--UI-White), var(--UI-Black));
  border: none;
}
@media screen and (max-width: 768px) {
  #cta > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  #cta > div > h1 {
    text-align: center;
  }
  #cta > div > .cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 11px;
    flex-wrap: nowrap;
  }
}

/* home page special case */
#page-index #content {
  width: 100%;
  display: block;
  max-width: 1300px;
}
#page-index #content > h1:first-of-type {
  display: inline-block;
  max-width: 800px; /* Increased to allow headline to fit on 2 lines */
}
#page-index #content > h1:first-of-type + p {
  display: inline-block;
  margin-top: 1.5em;
  float: right;
}
#page-index #content .button-link {
  padding: 12px 20px; /* Smaller padding for hero button */
  font-weight: 400; /* Regular weight for button text */
}
#page-index .hero-carousel {
  margin-top: 100px;
}

#page-index .hero-image {
  margin-top: 100px;
  max-width: 1300px;
  width: min(100%, 1300px);
}
#page-index .hero-carousel + h4,
#page-index .hero-image + h4 {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 24px;
}
@media screen and (max-width: 768px) {
  #page-index #content > h1:first-of-type + p {
    float: none;
  }
  /* Hide line break on mobile */
  .desktop-only {
    display: none;
  }
  /* Stronger gradient overlay on mobile for better text readability */
  .hero-carousel-item::before {
    height: 70%;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      transparent 100%
    );
  }
  /* On mobile, make carousel item responsive */
  .hero-carousel-item {
    width: 100%;
    min-width: 100%;
    height: 500px;
    background-position: center 30%;
  }

  .hero-carousel-items {
    width: 100%;
  }

  /* On mobile, ensure proper layout */
  .hero-carousel-content-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-carousel-content-text > p {
    max-width: 100%;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .hero-carousel-content-text > a {
    align-self: flex-start;
  }

  .hero-carousel-content {
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .hero-image::before {
    height: 70%;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.4) 50%,
      transparent 100%
    );
  }
  .hero-image {
    background-position: center 30%;
  }
}

#page-index #logos {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 10px;
  align-self: stretch;
  flex-wrap: wrap;
  margin-bottom: 150px;
  overflow: visible;
}
#page-index #logos div {
  display: flex;
  height: 110px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex: 1 0 0;
  border-radius: 4px;
  background-color: var(--UI-Backgrounds-Secondary, #f1f4f4);
  position: relative;
}
#page-index #logos div[style*="--logo-url"]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--Text-Primary);
  mask-image: var(--logo-url);
  mask-size: 60%;
  mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-image: var(--logo-url);
  -webkit-mask-size: 60%;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  pointer-events: none;
  z-index: 1;
}
/* Hover effect on logo containers that have case studies */
/* Use .has-case-study class to enable case study functionality on any logo */
#page-index #logos div.has-case-study {
  cursor: pointer;
  transition: background-color 0.2s ease;
  overflow: visible;
  position: relative;
}

#page-index #logos div.has-case-study:hover {
  background-color: light-dark(#e5e5ea, #2c2c2e);
}

/* Create invisible bridge that extends upward from logo container to cover the gap */
/* This bridge maintains hover state when moving mouse from logo to dialog */
#page-index #logos div.has-case-study::after {
  content: "";
  position: absolute;
  top: -12px; /* Extend upward to cover the gap */
  left: 0;
  right: 0;
  width: 100%;
  height: 12px; /* Height of the gap */
  background: transparent;
  pointer-events: auto;
  z-index: 1000;
  /* Bridge is always present and interactive - hovering over it maintains logo hover */
  /* This ensures the dialog stays visible when moving mouse through the gap */
}

/* Case study dialog - appears on hover */
/* Figma specs: 400px width, 24px padding, gap 16px between items */
#page-index #logos div .case-study-dialog {
  position: absolute;
  bottom: 100%;
  left: 0; /* Align with left edge of logo box */
  margin-bottom: 12px; /* Visual gap between dialog and logo box */
  width: 350px;
  max-width: calc(100vw - 32px); /* 16px margin on each side */
  min-width: 280px; /* Minimum width for readability */
  min-height: auto;
  height: auto;
  max-height: calc(
    100vh - 32px
  ); /* Prevent overflow with 16px margin top/bottom */
  padding: 24px;
  background-color: light-dark(var(--UI-White), var(--UI-Black));
  border: 1px solid var(--UI-Gray-5, light-dark(#e5e5ea, #2c2c2e));
  border-radius: 8px;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  z-index: 1001;
  pointer-events: none;
  box-sizing: border-box;
  white-space: normal;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  overflow-y: auto; /* Allow scrolling if content is too tall */
  overflow-x: hidden;
  /* Ensure dialog stays within viewport bounds - prevent overflow on right */
  /* If dialog would overflow viewport, constrain width to keep 16px margin */
  max-width: min(350px, calc(100vw - 16px));
}

/* Show dialog when hovering over logo container or the dialog itself */
/* The bridge (::after) is part of the logo container, so hovering over it keeps the logo hover active */
#page-index #logos div.has-case-study:hover .case-study-dialog,
#page-index #logos div .case-study-dialog:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Disable dialog hover on mobile */
@media screen and (max-width: 768px) {
  #page-index #logos div.has-case-study:hover .case-study-dialog,
  #page-index #logos div .case-study-dialog:hover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  /* Hide the bridge on mobile as well */
  #page-index #logos div.has-case-study::after {
    display: none;
  }
}

/* Adjust positioning for smaller screens */
@media screen and (max-width: 768px) {
  #page-index #logos div .case-study-dialog {
    width: calc(100vw - 32px); /* 16px margin on each side */
    max-width: 350px;
    min-width: 280px; /* Smaller minimum on mobile */
    left: 0; /* Still align with left edge of logo box */
    /* If dialog would overflow, ensure it stays within viewport */
    max-width: min(350px, calc(100vw - 16px));
  }
}

/* Adjust for very small screens to keep dialog within viewport */
@media screen and (max-width: 480px) {
  #page-index #logos div .case-study-dialog {
    left: 0; /* Still align with left edge of logo box */
    right: 16px; /* Ensure 16px margin on right */
    width: auto;
    max-width: none;
    min-width: 280px;
  }
}

/* Figma: Frame 10120795 - x=24, y=24, width=368, height=31 */
#page-index #logos div .case-study-dialog .case-study-company,
#page-index
  #logos
  div
  .case-study-dialog
  .case-study-company.text-body-base-bold,
#page-index
  #logos
  div
  .case-study-dialog
  .text-body-base-bold.case-study-company,
#page-index #logos div .case-study-dialog div.case-study-company,
#page-index #logos div .case-study-dialog div.text-body-base-bold {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--Text-Primary);
  width: 368px; /* Figma spec: 368px width */
  max-width: 100%;
  flex-shrink: 0;
  text-align: left !important;
  background-color: transparent !important;
  display: block !important;
  align-self: flex-start !important;
  /* Text/Body Base/Bold: line-height already set by class (150% = 1.5) */
}

/* Figma: x=24, y=87, width=352, height=96 */
#page-index #logos div .case-study-dialog .case-study-quote {
  margin: 0;
  padding: 0;
  color: var(--Text-Primary);
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 352px; /* Figma spec: 352px width */
  max-width: 100%;
  flex-shrink: 0;
  text-align: left;
  background-color: transparent;
  /* Text/Caption/Regular: line-height already set by class (140% = 1.4) */
}

.case-study-quote strong,
.case-study-quote b {
  font-weight: inherit;
  color: inherit;
}

/* Figma: Line 1347/1348 - x=24, width=352, height=0 */
#page-index #logos div .case-study-dialog .case-study-divider {
  height: 1px;
  min-height: 1px;
  background-color: var(--Text-Primary);
  margin: 0;
  padding: 0;
  border: none;
  width: 352px; /* Figma spec: 352px width */
  max-width: 100%;
  flex-shrink: 0;
  opacity: 1; /* Black, not grey */
  display: block;
}

/* Figma: Frame 10120794 - x=24, y=215, width=368, height=36, gap=4px */
#page-index #logos div .case-study-dialog .case-study-author {
  display: flex;
  flex-direction: column;
  gap: 2px; /* Tighter gap between title and name */
  width: 100%; /* Match dialog content width */
  max-width: 100%;
  flex-shrink: 0;
  align-items: flex-start;
  justify-content: flex-start;
  background-color: transparent;
  margin: 0;
  padding: 0;
}

/* Figma: width=368, height=16 */
#page-index #logos div .case-study-dialog .case-study-author-name,
#page-index
  #logos
  div
  .case-study-dialog
  .case-study-author-name.text-legal-regular,
#page-index
  #logos
  div
  .case-study-dialog
  .text-legal-regular.case-study-author-name,
#page-index #logos div .case-study-dialog div.case-study-author-name,
#page-index
  #logos
  div
  .case-study-dialog
  div.text-legal-regular.case-study-author-name {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--Text-Primary);
  width: 100%;
  max-width: 100%;
  text-align: left !important;
  background-color: transparent !important;
  display: block !important;
  align-self: flex-start !important;
  align-items: flex-start !important;
  /* Text/Legal/Regular: line-height already set by class (110% = 1.1) */
}

/* Figma: width=368, height=16 */
#page-index #logos div .case-study-dialog .case-study-author-title,
#page-index
  #logos
  div
  .case-study-dialog
  .case-study-author-title.text-legal-regular,
#page-index
  #logos
  div
  .case-study-dialog
  .text-legal-regular.case-study-author-title,
#page-index #logos div .case-study-dialog div.case-study-author-title,
#page-index
  #logos
  div
  .case-study-dialog
  div.text-legal-regular.case-study-author-title {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--Text-Primary);
  width: 100%;
  max-width: 100%;
  text-align: left !important;
  background-color: transparent !important;
  display: block !important;
  align-self: flex-start !important;
  align-items: flex-start !important;
  /* Text/Legal/Regular: line-height already set by class (110% = 1.1) */
}

/* Figma: Frame 10120794 - x=24, y=267, width=352, height=72 */
#page-index #logos div .case-study-dialog .case-study-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 352px; /* Figma spec: 352px width */
  max-width: 100%;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  background-color: transparent;
}

#page-index #logos div .case-study-dialog .case-study-footer-logo {
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  max-width: 72px;
  max-height: 72px;
  flex-shrink: 0;
  display: block;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

#page-index #logos div .case-study-dialog .case-study-footer-logo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Preserve image quality - use smooth scaling for photos */
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  /* Ensure high quality rendering */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#page-index #logos div .case-study-dialog .case-study-link {
  text-decoration: underline;
  text-underline-position: from-font;
  text-decoration-style: solid;
  color: var(--Text-Primary);
  white-space: nowrap;
  margin: 0;
  padding: 0;
  display: inline-block;
  /* Text/Caption/Medium: line-height already set by class (140% = 1.4) */
}

#page-index #logos div .case-study-dialog .case-study-link:hover {
  opacity: 0.8;
}

#page-index #logos div > a.case-study-button {
  text-decoration: none;
  display: flex;
  padding: 8px 12px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  border-radius: 100px;
  border: 10px solid var(--UI-Backgrounds-Primary);
  background: light-dark(var(--UI-Black), var(--UI-White));
  color: light-dark(var(--UI-White), var(--UI-Black));
  white-space: nowrap;
  z-index: 2;
  transition: opacity 0.2s ease;
}
#page-index #logos div > a.case-study-button:hover {
  opacity: 0.8;
}
@media screen and (max-width: 768px) {
  #page-index #logos {
    display: grid;
    row-gap: 10px;
    column-gap: 10px;
    flex-shrink: 0;
    align-self: stretch;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 40px;
  }
}

#page-index #sub-content {
  display: flex;
  padding: 24px 0;
  flex-direction: column;
  align-items: center;
  gap: 150px;
}

#page-index #sub-content #value-props {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
  align-self: stretch;
  width: 100%;
}
#page-index #sub-content #value-props > div:first-of-type {
  display: flex;
  align-items: flex-start;
  gap: 100px;
}
#page-index #sub-content #value-props > div:first-of-type > div {
  display: flex;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0; /* Remove gap, using margins instead */
  flex: 1 0 0;
}
#page-index #sub-content #value-props > div:first-of-type > div h2 {
  margin-bottom: 8px; /* 8px gap between headline and subhead */
}
#page-index #sub-content #value-props > div:first-of-type > div p {
  margin-bottom: 24px; /* 24px gap between description and next element */
  color: var(--Text-Secondary, rgba(60, 60, 67, 0.6));
}
#page-index #sub-content #value-props > div:first-of-type > div p:last-of-type {
  margin-bottom: 0; /* Remove bottom margin from last p */
}
#page-index #sub-content #value-props > div:last-of-type {
  display: flex;
  padding: 10px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: var(--UI-Backgrounds-Secondary, #f1f4f4);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
#page-index #sub-content #value-props > div:last-of-type > div {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
#page-index #sub-content #value-props > div:last-of-type > div > div {
  display: flex;
  height: 200px;
  padding: 16px;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1 1 0;
  min-width: 0;
  background: var(--UI-Backgrounds-Primary);
  box-sizing: border-box;
}
#page-index #sub-content #value-props > div:last-of-type > div > div p {
  color: var(--Text-Secondary, rgba(60, 60, 67, 0.6));
}
#page-index #sub-content #value-props > div:last-of-type > div > div h1 {
  /* Font styles handled by .text-display-regular class */
}
@media screen and (max-width: 768px) {
  #page-index #sub-content #value-props {
    gap: 40px;
  }
  #page-index #sub-content #value-props > div:first-of-type {
    flex-direction: column;
    gap: 40px;
  }
  #page-index #sub-content #value-props > div:last-of-type {
    padding: 10px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  #page-index #sub-content #value-props > div:last-of-type > div {
    display: flex;
    padding: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  #page-index #sub-content #value-props > div:last-of-type > div > div {
    display: flex;
    gap: 48px;
    padding: 16px;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
}

#page-index #sub-content #use-cases {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
  width: 100%;
}
#page-index #sub-content #use-cases a {
  text-decoration: none;
}
#page-index #sub-content #use-cases > .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  flex-direction: row;
  margin-bottom: 64px;
}
#page-index #sub-content #use-cases > .header p {
  /* Font styles handled by .text-label-regular class */
}
#page-index #sub-content #use-cases > .header a {
  color: var(--Text-Secondary, rgba(60, 60, 67, 0.6));
  text-decoration: none;
  transition: opacity 0.2s ease;
  /* Font styles handled by .text-link-regular class */
}
#page-index #sub-content #use-cases > .header a:hover {
  opacity: 0.8;
}
#page-index #sub-content #use-cases > div:not(.header) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
#page-index #sub-content #use-cases > div:not(.header) > a {
  height: 150px;
  gap: 10px;
  display: flex;
  padding: 16px;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  flex: 1 1 calc(33.333% - 7px);
  min-width: 0;
  max-width: calc(33.333% - 7px);
  border-radius: 4px;
  background: var(--UI-Backgrounds-Secondary, #f1f4f4);
  box-sizing: border-box;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}
#page-index #sub-content #use-cases > div:not(.header) > a:hover {
  background: light-dark(#e5e5ea, #2c2c2e);
  transform: translateY(-2px);
}
#page-index #sub-content #use-cases > div:not(.header) > a > svg {
  fill: var(--Text-Secondary, rgba(60, 60, 67, 0.6));
}
#page-index #sub-content #use-cases > div:not(.header) > a > p {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  align-self: stretch;
  /* Font styles handled by .text-body-base-regular class */
}
#page-index #sub-content #use-cases > div:not(.header) > a > p > span {
  max-width: 70%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
@media screen and (max-width: 768px) {
  #page-index #sub-content #use-cases {
    gap: 10px;
    width: 100%;
    align-self: stretch;
  }
  #page-index #sub-content #use-cases > .header {
    margin-bottom: 64px;
    width: 100%;
    align-self: stretch;
  }
  #page-index #sub-content #use-cases > div:not(.header) {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  #page-index #sub-content #use-cases > div:not(.header) > a {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
    box-sizing: border-box;
  }
}

/* articles override */
#page-articles #content {
  width: 100%;
  display: block;
}
/* Apply 64px spacing between title and articles list on articles listing page */
#page-articles #content > h1 {
  margin-bottom: 64px;
}
/* Apply text-subhead-regular styles to h2 elements on article pages and The Neighborhood page */
body:not([id="page-index"]):not([id="page-contact"]):not(
    [id="page-brand-kit"]
  ):not([id="page-404"]):not([id="page-privacy-policy"]):not(
    [id="page-terms-of-service"]
  ):not([id="page-pricing"])
  #content
  h2 {
  font-family: Inter, sans-serif;
  font-size: var(--font-size-xl, 24px);
  font-style: normal;
  font-weight: 400; /* Regular - matches Figma Text/Subhead/Regular */
  line-height: 130%; /* 31.2px */
  letter-spacing: -1.2px;
  color: var(--Text-Secondary, rgba(60, 60, 67, 0.6));
}
@media screen and (max-width: 768px) {
  body:not([id="page-index"]):not([id="page-contact"]):not(
      [id="page-brand-kit"]
    ):not([id="page-404"]):not([id="page-privacy-policy"]):not(
      [id="page-terms-of-service"]
    ):not([id="page-pricing"])
    #content
    h2 {
    font-size: var(--font-size-lg, 20px);
  }
}
/* 20px spacing between headline and subhead on article pages */
body:not([id="page-index"]):not([id="page-contact"]):not(
    [id="page-brand-kit"]
  ):not([id="page-404"]):not([id="page-privacy-policy"]):not(
    [id="page-terms-of-service"]
  )
  #content
  h1
  + h2 {
  margin-top: -20px;
}
/* Apply text-secondary color to subhead descriptions on article pages and The Neighborhood page */
/* Target pages with descriptions (articles) and The Neighborhood specifically */
body:not([id="page-index"]):not([id="page-contact"]):not(
    [id="page-brand-kit"]
  ):not([id="page-404"]):not([id="page-privacy-policy"]):not(
    [id="page-terms-of-service"]
  ):not([id="page-pricing"])
  #content
  .text-subhead-regular,
body:not([id="page-index"]):not([id="page-contact"]):not(
    [id="page-brand-kit"]
  ):not([id="page-404"]):not([id="page-privacy-policy"]):not(
    [id="page-terms-of-service"]
  ):not([id="page-pricing"])
  #content
  .text-subhead-bold {
  color: var(--Text-Secondary, rgba(60, 60, 67, 0.6));
}

/* Pricing page styles */
#page-pricing #content {
  width: 100%;
  max-width: 1300px;
}

.pricing-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 0 40px 0;
}

#page-pricing #content > h1:first-of-type {
  text-align: center;
  margin-bottom: 0;
}

.pricing-toggle {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 4px;
  background-color: var(--UI-Backgrounds-Secondary, #f1f4f4);
  border-radius: 100px;
  width: fit-content;
}

.pricing-toggle-btn {
  padding: 8px 20px;
  border: none;
  background: transparent;
  color: var(--Text-Primary);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s ease;
  /* Font styles handled by .text-body-base-regular class */
}

.pricing-toggle-btn.active {
  background: var(--Text-Primary);
  color: light-dark(var(--UI-White), var(--UI-Black));
}

.pricing-toggle-btn:hover:not(.active) {
  opacity: 0.7;
}

/* Reduce spacing below section headings */
#page-pricing #content h2 {
  margin-bottom: 16px;
  margin-top: 40px;
}

#page-pricing #content h2:first-of-type {
  margin-top: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr; /* Default to 1 column on mobile */
  gap: 16px;
  margin: 0 0 40px 0;
}

/* On tablet, show 2 columns */
@media screen and (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* On desktop, show all cards in one row if there are 4 cards */
@media screen and (min-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--UI-Gray-5, light-dark(#e5e5ea, #2c2c2e));
  border-radius: 8px;
  background-color: var(--UI-Backgrounds-Primary);
  gap: 0; /* Remove default gap, use individual margins */
  height: 100%;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width calculation */
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
  border-radius: 8px;
}

.pricing-card:hover::before {
  opacity: 0.4;
}

.pricing-card > * {
  position: relative;
  z-index: 1;
}

.pricing-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 60px;
}

.pricing-card-header h3 {
  margin: 0;
}

.pricing-card-header p {
  margin: 0;
  color: var(--Text-Secondary, rgba(60, 60, 67, 0.6));
}

.pricing-card-price {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 120px;
  justify-content: flex-start;
  margin-top: 8px; /* Closer to title */
}

/* Reserve space for prefix text - all cards have this space */
.pricing-card-price::before {
  content: "";
  display: block;
  min-height: 20px;
}

/* When price-prefix exists, hide the pseudo-element and show the prefix */
.pricing-card-price:has(.price-prefix)::before {
  display: none;
}

/* Reserve space for usage-based billing text - all cards have this space */
.pricing-card-price::after {
  content: "";
  display: block;
  min-height: 40px;
  flex-shrink: 0;
}

/* When price-usage exists, hide the pseudo-element and show the actual content */
.pricing-card-price:has(.price-usage)::after {
  display: none;
}

.price-prefix {
  color: var(--Text-Secondary, rgba(60, 60, 67, 0.6));
  margin-bottom: 0;
  min-height: 20px;
  display: flex;
  align-items: center;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.price-value {
  /* Font styles handled by .text-headline-regular class */
  color: var(--Text-Primary);
}

.price-period {
  /* Font styles handled by .text-body-base-regular class */
  color: var(--Text-Secondary, rgba(60, 60, 67, 0.6));
}

.price-savings {
  /* Font styles handled by .text-caption-regular class */
  color: var(--Text-Primary);
  font-weight: 500;
}

.price-usage {
  margin-top: 4px;
  min-height: 20px;
}

/* Ensure consistent spacing for usage-based billing text */
.pricing-card-price > p {
  margin: 0;
  min-height: 20px;
}

/* Ensure usage-based billing section takes up consistent space */
.price-usage + p {
  margin-top: 0;
  min-height: 20px;
}

/* Annual contracts note for Enterprise - same treatment as usage-based billing */
.price-annual-note {
  margin: 0;
  min-height: 20px;
}

.pricing-card-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  margin-top: 20px; /* 20px padding before includes section */
}

.pricing-card-features > p:first-child {
  margin: 0;
  font-weight: 500;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--Text-Primary);
}

.pricing-card-best-for {
  margin-top: auto;
  padding-top: 8px;
  color: var(--Text-Secondary, rgba(60, 60, 67, 0.6));
}

.pricing-card-cta {
  width: 100%;
  justify-content: center;
  margin-top: 40px; /* 40px padding before button */
}

.addons-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 64px; /* Match spacing from Latest Developments section on home page */
  align-self: stretch;
  width: 100%;
  margin: 32px 0;
}

.addons-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  flex-direction: row;
  /* Spacing handled by parent container gap */
}

.addons-header p {
  /* Font styles handled by .text-label-regular class */
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  width: 100%;
  margin: 0; /* No margin, spacing handled by section container */
}

.addon-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background-color: var(--UI-Backgrounds-Secondary, #f1f4f4);
  border-radius: 8px;
  gap: 12px;
}

.addon-icon {
  font-size: 24px;
  color: var(--Text-Primary);
  margin-bottom: 4px;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

.addon-card h3 {
  margin: 0;
}

.addon-card p {
  margin: 0;
  color: var(--Text-Secondary, rgba(60, 60, 67, 0.6));
}

@media screen and (min-width: 1200px) {
  .addons-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .addons-grid {
    grid-template-columns: 1fr;
  }

  .addon-card {
    padding: 20px;
  }
}

@media screen and (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 16px;
    height: auto; /* Override height: 100% on mobile to prevent squishing */
    min-height: auto; /* Allow cards to size naturally */
  }

  .pricing-card-price {
    margin-top: 8px; /* Closer to title on mobile */
  }

  .pricing-card-features {
    margin-top: 20px; /* 20px padding before includes section */
  }

  .pricing-card-cta {
    margin-top: 40px; /* 40px padding before button */
  }

  /* Price value font size handled by .text-headline-regular responsive styles */
}
