/* 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;
  --bg: #000000;
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --text-subtle: #737373;
  --line: #1f1f1f;
  --surface: #141414;
  --lime: #c9ff00;
  --lime-bright: #d4ff1a;
  --lime-soft: rgba(212, 255, 26, 0.2);
  --accent-fg: #000000;
  --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;
}

html[data-theme="light"] {
  --bg: #f4f4f5;
  --text: #000000;
  --text-muted: #737373;
  --text-subtle: #a3a3a3;
  --line: #e4e4e7;
  --surface: #ffffff;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  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(--line);
  background: var(--bg);
  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(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
  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(--text-muted);
  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;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.25rem;
}

.lang-switch {
  display: none;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.lang-switch a[aria-current="true"],
.lang-switch a.is-active {
  color: var(--accent-fg);
  background: var(--lime);
}

.lang-switch a[aria-current="true"]:hover,
.lang-switch a.is-active:hover {
  color: var(--accent-fg);
  opacity: 1;
}

.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(--text-subtle);
  font-size: 0.9375rem;
}

.hero__lede {
  margin: 1.25rem 0 0;
  max-width: 36rem;
  color: var(--text-muted);
  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(--line);
}

.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(--text-muted);
}

.content strong {
  color: var(--text);
  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(--text-muted);
  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(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  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(--text);
  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(--text-muted);
}

.card:hover .card__desc {
  color: var(--text-muted);
  opacity: 1;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  color: var(--text-subtle);
  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(--text-muted);
  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(--text-subtle);
  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(--line);
}

.docs-nav__list a {
  display: block;
  position: relative;
  padding: 0.38rem 0 0.38rem 0.95rem;
  color: var(--text-muted);
  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(--text);
  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,
#crews,
#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(--bg), transparent);
}

.shot-carousel__fade--right {
  right: 0;
  background: linear-gradient(to left, var(--bg), 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(--text-muted);
  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(--text-subtle);
  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(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.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(--text);
}

.guide-basics p,
.guide-basics li,
.guide p,
.guide li {
  color: var(--text-muted);
}

.guide-basics strong,
.guide strong {
  color: var(--text);
  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(--line);
}

.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(--line);
}

.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(--text-muted);
}

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

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

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

.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(--text-muted);
  padding-right: 1.5rem;
}

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

.faq__contact {
  margin: 1.75rem 0 0;
  color: var(--text-muted);
  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;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

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

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

  .brand__divider {
    height: 24px;
  }
}

html[data-accent="lime"] {
  --lime: #C9FF00;
  --lime-bright: #D4FF1A;
  --accent-fg: #000000;
  --lime-soft: rgba(212, 255, 26, 0.2);
}

html[data-theme="light"][data-accent="lime"] {
  --lime: #4D7C0F;
  --lime-bright: #65A30D;
  --accent-fg: #FFFFFF;
  --lime-soft: rgba(101, 163, 13, 0.14);
}

html[data-accent="purple"] {
  --lime: #A78BFA;
  --lime-bright: #C4B5FD;
  --accent-fg: #000000;
  --lime-soft: rgba(196, 181, 253, 0.2);
}

html[data-theme="light"][data-accent="purple"] {
  --lime: #5B21B6;
  --lime-bright: #7C3AED;
  --accent-fg: #FFFFFF;
  --lime-soft: rgba(124, 58, 237, 0.14);
}

html[data-accent="emerald"] {
  --lime: #34D399;
  --lime-bright: #6EE7B7;
  --accent-fg: #000000;
  --lime-soft: rgba(110, 231, 183, 0.2);
}

html[data-theme="light"][data-accent="emerald"] {
  --lime: #065F46;
  --lime-bright: #059669;
  --accent-fg: #FFFFFF;
  --lime-soft: rgba(5, 150, 105, 0.14);
}

html[data-accent="amber"] {
  --lime: #FBBF24;
  --lime-bright: #FCD34D;
  --accent-fg: #000000;
  --lime-soft: rgba(252, 211, 77, 0.2);
}

html[data-theme="light"][data-accent="amber"] {
  --lime: #92400E;
  --lime-bright: #D97706;
  --accent-fg: #FFFFFF;
  --lime-soft: rgba(217, 119, 6, 0.14);
}

html[data-accent="rose"] {
  --lime: #F472B6;
  --lime-bright: #F9A8D4;
  --accent-fg: #000000;
  --lime-soft: rgba(249, 168, 212, 0.2);
}

html[data-theme="light"][data-accent="rose"] {
  --lime: #9D174D;
  --lime-bright: #DB2777;
  --accent-fg: #FFFFFF;
  --lime-soft: rgba(219, 39, 119, 0.14);
}

html[data-accent="sky"] {
  --lime: #38BDF8;
  --lime-bright: #7DD3FC;
  --accent-fg: #000000;
  --lime-soft: rgba(125, 211, 252, 0.2);
}

html[data-theme="light"][data-accent="sky"] {
  --lime: #075985;
  --lime-bright: #0284C7;
  --accent-fg: #FFFFFF;
  --lime-soft: rgba(2, 132, 199, 0.14);
}

html[data-accent="orange"] {
  --lime: #FB923C;
  --lime-bright: #FDBA74;
  --accent-fg: #000000;
  --lime-soft: rgba(253, 186, 116, 0.2);
}

html[data-theme="light"][data-accent="orange"] {
  --lime: #9A3412;
  --lime-bright: #EA580C;
  --accent-fg: #FFFFFF;
  --lime-soft: rgba(234, 88, 12, 0.14);
}

html[data-accent="teal"] {
  --lime: #2DD4BF;
  --lime-bright: #5EEAD4;
  --accent-fg: #000000;
  --lime-soft: rgba(94, 234, 212, 0.2);
}

html[data-theme="light"][data-accent="teal"] {
  --lime: #115E59;
  --lime-bright: #0D9488;
  --accent-fg: #FFFFFF;
  --lime-soft: rgba(13, 148, 136, 0.14);
}

html[data-accent="indigo"] {
  --lime: #818CF8;
  --lime-bright: #A5B4FC;
  --accent-fg: #000000;
  --lime-soft: rgba(165, 180, 252, 0.2);
}

html[data-theme="light"][data-accent="indigo"] {
  --lime: #312E81;
  --lime-bright: #4F46E5;
  --accent-fg: #FFFFFF;
  --lime-soft: rgba(79, 70, 229, 0.14);
}

html[data-accent="gray"] {
  --lime: #A3A3A3;
  --lime-bright: #E5E5E5;
  --accent-fg: #000000;
  --lime-soft: rgba(229, 229, 229, 0.2);
}

html[data-theme="light"][data-accent="gray"] {
  --lime: #171717;
  --lime-bright: #404040;
  --accent-fg: #FFFFFF;
  --lime-soft: rgba(64, 64, 64, 0.14);
}

html[data-theme="light"] .brand__mark,
html[data-theme="light"] .brand__wordmark {
  filter: invert(1);
  mix-blend-mode: multiply;
}

.lang-switch {
  display: none;
}

.settings-root {
  position: relative;
  flex-shrink: 0;
}

.settings-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.settings-toggle:hover,
.settings-toggle[aria-expanded="true"] {
  border-color: var(--lime);
  color: var(--lime-bright);
}

.settings-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 40;
  width: min(18.5rem, calc(100vw - 1.5rem));
  padding: 1rem 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.settings-panel__title {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-panel__label,
.settings-accent__head {
  margin: 0.85rem 0 0.4rem;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 600;
}

.settings-accent__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.settings-accent__name {
  color: var(--lime-bright);
  font-weight: 700;
}

.settings-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

.settings-segment__btn {
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  cursor: pointer;
}

.settings-segment__btn[aria-pressed="true"] {
  background: var(--lime);
  color: var(--accent-fg);
}

.settings-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.15rem;
}

.settings-swatch {
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.settings-swatch[aria-pressed="true"] {
  border-width: 2px;
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--surface);
}

@media (max-width: 640px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .header-actions {
    display: contents;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
  }

  .settings-root {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }
}
