/* Stantia legal pages — dark brand + lime accent (matches mobile app) */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-700: #2e2e2e;
  --gray-800: #1f1f1f;
  --gray-900: #141414;
  --gray-950: #0a0a0a;
  --lime: #c9ff00;
  --lime-bright: #d4ff1a;
  --lime-soft: rgba(201, 255, 0, 0.12);
  --max: 42rem;
  --max-wide: 64rem;
  --radius: 8px;
  --radius-lg: 12px;
  --font-display: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background: var(--black);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--lime-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--lime);
  opacity: 0.85;
}

.site-header {
  border-bottom: 1px solid var(--gray-800);
  background: var(--black);
  box-shadow: inset 0 -1px 0 var(--lime);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  text-decoration: none;
}

.brand:hover {
  color: var(--white);
  opacity: 1;
}

.brand__mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.brand__wordmark {
  height: 18px;
  width: auto;
  max-width: 148px;
  object-fit: contain;
  object-position: left center;
}

.brand__divider {
  width: 1px;
  height: 28px;
  background: var(--lime);
  opacity: 0.55;
  flex-shrink: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  color: var(--gray-400);
  text-decoration: none;
}

.nav a:hover {
  color: var(--lime-bright);
  opacity: 1;
}

.nav a[aria-current="page"] {
  color: var(--lime);
  opacity: 1;
  text-decoration: none;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 1.5rem;
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero__meta {
  margin: 1rem 0 0;
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.hero__lede {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  color: var(--gray-400);
  font-size: 1.0625rem;
}

.content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.content section {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--gray-800);
}

.content h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content p,
.content li {
  color: var(--gray-400);
}

.content strong {
  color: var(--white);
  font-weight: 600;
}

.content p {
  margin: 0 0 1rem;
}

.content ul,
.content ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.content li {
  margin-bottom: 0.45rem;
}

.content li::marker {
  color: var(--lime);
}

.hub {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
  text-align: center;
}

.hub h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 3.75rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hub__tag {
  margin: 0.85rem 0 0;
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.hub__lede {
  margin: 1.5rem auto 0;
  max-width: 32rem;
  color: var(--gray-400);
  font-size: 1.125rem;
}

.card-list {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
  text-align: left;
}

.card {
  display: block;
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  background: var(--gray-950);
  color: inherit;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.card:hover {
  background: var(--lime-soft);
  border-color: var(--lime);
  color: var(--white);
  opacity: 1;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card:hover .card__title {
  color: var(--lime);
}

.card__desc {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  color: var(--gray-400);
}

.card:hover .card__desc {
  color: var(--gray-400);
  opacity: 1;
}

.site-footer {
  border-top: 1px solid var(--gray-800);
  background: var(--gray-950);
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--lime-bright);
}

.hero--wide {
  max-width: var(--max-wide);
}

.guide-toc {
  display: none;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
  margin-top: 1.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-toc a {
  color: var(--gray-400);
  text-decoration: none;
}

.guide-toc a:hover,
.guide-toc a.is-active {
  color: var(--lime-bright);
  opacity: 1;
}

.docs {
  --docs-rail: 13.5rem;
  display: grid;
  grid-template-columns: var(--docs-rail) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 0;
}

.docs-rail {
  position: sticky;
  top: 5.25rem;
  align-self: start;
  max-height: calc(100vh - 6rem);
  overflow: auto;
  padding-bottom: 2rem;
}

.docs-nav__title {
  margin: 0 0 0.85rem;
  color: var(--gray-500);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.docs-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--gray-800);
}

.docs-nav__list a {
  display: block;
  position: relative;
  padding: 0.38rem 0 0.38rem 0.95rem;
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 140ms ease;
}

.docs-nav__list a::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  bottom: 0.45rem;
  left: -1px;
  width: 2px;
  background: transparent;
  border-radius: 1px;
  transition: background 140ms ease;
}

.docs-nav__list a:hover {
  color: var(--white);
  opacity: 1;
}

.docs-nav__list a.is-active {
  color: var(--lime);
  opacity: 1;
  font-weight: 600;
}

.docs-nav__list a.is-active::before {
  background: var(--lime);
}

.docs__main {
  min-width: 0;
  padding-bottom: 4.5rem;
}

.shot-carousel {
  position: relative;
  max-width: none;
  margin: 0 0 0.25rem;
  padding: 0 0 1rem;
}

#screens,
#get-around,
#workouts,
#preview,
#train,
#apple-watch,
#timers,
#hybrid-index,
#feed,
#faq {
  scroll-margin-top: 5.5rem;
}

.shot-carousel__fade {
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 2rem;
  z-index: 2;
  width: 1.5rem;
}

.shot-carousel__fade--left {
  left: 0;
  background: linear-gradient(to right, var(--black), transparent);
}

.shot-carousel__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--black), transparent);
}

.shot-carousel__track {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.1rem 0.25rem 0.7rem;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  -webkit-overflow-scrolling: touch;
}

.shot-carousel__track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.shot-carousel__track::-webkit-scrollbar {
  height: 5px;
}

.shot-carousel__track::-webkit-scrollbar-track {
  background: transparent;
}

.shot-carousel__track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.shot-carousel__slide {
  flex: 0 0 auto;
  width: min(28vw, 112px);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, filter 180ms ease;
}

.shot-carousel__slide:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  opacity: 1;
}

.shot-carousel__slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 471 / 1024;
  object-fit: contain;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0b10;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.shot-carousel__label {
  display: block;
  margin-top: 0.4rem;
  color: var(--gray-400);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.shot-carousel__hint {
  margin: 0.1rem 0 0;
  color: var(--gray-500);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.guides {
  max-width: var(--max);
  margin: 0;
  padding: 0;
}

.guide-basics {
  margin-top: 0.5rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--gray-800);
  border-radius: var(--radius-lg);
  background: var(--gray-950);
}

.guide-basics h2,
.guide h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.guide h3 {
  margin: 1.6rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.guide-basics p,
.guide-basics li,
.guide p,
.guide li {
  color: var(--gray-400);
}

.guide-basics strong,
.guide strong {
  color: var(--white);
  font-weight: 600;
}

.guide-basics p,
.guide p {
  margin: 0 0 1rem;
}

.guide-basics p:last-child,
.guide p:last-child {
  margin-bottom: 0;
}

.guide-basics__tabs,
.guide ul,
.guide ol {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.guide-basics__tabs li,
.guide li {
  margin-bottom: 0.4rem;
}

.guide-basics__tabs li::marker,
.guide li::marker {
  color: var(--lime);
}

.guide {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--gray-800);
}

.guide__eyebrow {
  margin: 0 0 0.65rem;
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.faq {
  margin: 3.5rem 0 0;
  padding-top: 2.75rem;
  border-top: 1px solid var(--gray-800);
}

.faq__intro h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.faq__intro p {
  margin: 0 0 0.35rem;
  color: var(--gray-400);
}

.faq__list {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.65rem;
}

.faq__item {
  border: 1px solid var(--gray-800);
  border-radius: var(--radius);
  background: var(--gray-950);
  padding: 0 1.1rem;
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-weight: 600;
  color: var(--white);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  float: right;
  color: var(--lime);
  font-weight: 500;
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__item p {
  margin: 0 0 1rem;
  color: var(--gray-400);
  padding-right: 1.5rem;
}

.faq__item strong {
  color: var(--white);
  font-weight: 600;
}

.faq__contact {
  margin: 1.75rem 0 0;
  color: var(--gray-400);
  font-size: 0.975rem;
}

@media (min-width: 640px) {
  .shot-carousel__slide {
    width: 128px;
  }

  .shot-carousel__track {
    gap: 0.65rem;
  }

  .shot-carousel__fade {
    width: 1.75rem;
  }
}

@media (max-width: 960px) {
  .docs {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }

  .docs-rail {
    display: none;
  }

  .guide-toc--mobile {
    display: flex;
  }

  .docs__main {
    padding: 0 1.25rem 4.5rem;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .brand__wordmark {
    height: 16px;
    max-width: 130px;
  }

  .brand__divider {
    height: 24px;
  }
}
