/*
 * Bikerspedia Care - situs publik.
 *
 * Token diambil dari design/stitch web marketing/bikerspedia_marketing/DESIGN.md. Graphite Dark
 * jadi fondasi, Safety Orange satu-satunya warna aksi, Moto Red hanya untuk aksen merek - dipakai
 * hemat supaya halaman terbaca sebagai produk yang kredibel, bukan situs taruhan.
 */

:root {
  --graphite: #17191c;
  --graphite-800: #1f2226;
  --graphite-700: #2b2f34;
  --orange: #f26a21;
  --orange-600: #d95a17;
  --red: #e11d2e;
  --green: #16835d;

  --ink: #191c1d;
  --ink-variant: #45474a;
  --ink-muted: #76777b;
  --outline: #c6c6ca;
  --hairline: #e1e3e4;

  --surface: #f8f9fa;
  --surface-card: #ffffff;
  --surface-low: #f3f4f5;
  --surface-high: #e7e8e9;

  --container: 1280px;
  --gutter: 24px;
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lift: 0 12px 32px rgba(0, 0, 0, 0.1);

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/*
 * Plus Jakarta Sans, self-hosted.
 *
 * Not loaded from Google Fonts: that would add a third party the privacy policy does not list,
 * and the policy's own claim of no third-party trackers should stay true. The font is SIL OFL
 * licensed, so redistribution is permitted.
 *
 * Three weights instead of five. 700 is served by the 800 file - at marketing headline sizes the
 * difference is slight, and a fourth ~95 kB download is not worth it. `swap` means text is
 * readable in the fallback face from the first paint.
 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/PlusJakartaSans-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/PlusJakartaSans-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('/fonts/PlusJakartaSans-800.ttf') format('truetype');
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f0f1f2;
    --ink-variant: #c6c6ca;
    --ink-muted: #9a9c9f;
    --outline: #45474a;
    --hairline: #2b2f34;
    --surface: #101214;
    --surface-card: #191c1f;
    --surface-low: #1f2226;
    --surface-high: #2b2f34;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lift: 0 12px 32px rgba(0, 0, 0, 0.55);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-variant);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
}

/* ================================================================== nav == */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--surface-card) 85%, transparent);
  backdrop-filter: saturate(1.6) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  flex: none;
}

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

.brand__name {
  font-size: 1.02rem;
  line-height: 1.1;
}

.brand__name em {
  display: block;
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--orange);
  font-weight: 700;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.nav__links a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--ink-variant);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--ink);
  background: var(--surface-low);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}

/* The login menu is a <details> so it works with zero JavaScript. */
.menu {
  position: relative;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

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

.menu summary:hover {
  background: var(--surface-low);
}

.menu summary::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
}

.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 16rem;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 0.4rem;
  z-index: 60;
}

.menu__panel a {
  display: block;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
}

.menu__panel a small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 1px;
}

.menu__panel a:hover,
.menu__panel a:focus-visible {
  background: var(--surface-low);
}

.nav__toggle {
  display: none;
}

@media (max-width: 1023px) {
  .nav__links,
  .nav__actions .menu,
  .nav__actions .btn--ghost {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    border: 1px solid var(--hairline);
    background: var(--surface-card);
    cursor: pointer;
    list-style: none;
  }

  .nav__toggle::-webkit-details-marker {
    display: none;
  }
}

.drawer {
  display: none;
}

@media (max-width: 1023px) {
  .drawer[open] .drawer__panel {
    display: block;
  }

  .drawer {
    display: block;
  }

  .drawer__panel {
    display: none;
    position: fixed;
    inset: 68px 0 0;
    background: var(--graphite);
    padding: 1.25rem var(--gutter) 2.5rem;
    overflow-y: auto;
    z-index: 55;
  }

  .drawer__panel a {
    display: block;
    padding: 0.95rem 0;
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .drawer__panel .btn {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    border-bottom: 0;
  }
}

/* =============================================================== button == */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.btn--primary {
  background: var(--graphite);
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #000;
  color: #fff;
}

.btn--accent {
  background: var(--orange);
  color: #fff;
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--orange-600);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--outline);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--orange);
  color: var(--ink);
}

.btn--onDark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.btn--onDark:hover,
.btn--onDark:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn--block {
  width: 100%;
}

/* The Play Store button before a listing URL exists: visibly inert, never a dead link. */
.btn[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

.btn__sub {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}

.btn__stack {
  text-align: left;
  line-height: 1.15;
}

/* ================================================================= hero == */

.hero {
  background: var(--graphite);
  color: #fff;
  position: relative;
  overflow: hidden;
}

/* Speed lines: fine diagonal strokes, per the brand motif. Decorative only. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(242, 106, 33, 0.07) 0 1px,
    transparent 1px 84px
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  padding: 4.5rem 0 5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 5fr 6fr;
    padding: 6rem 0 6.5rem;
  }
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.35rem, 1.2rem + 4.6vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #fff;
}

.hero h1 .accent {
  color: var(--orange);
}

.hero p {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__note {
  margin: 1.75rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.hero__note a {
  color: #fff;
  font-weight: 600;
}

.hero__art {
  display: flex;
  justify-content: center;
}

.hero__art img {
  width: 100%;
  max-width: 30rem;
  border-radius: var(--radius-xl);
}

/* ============================================================= platform == */

.platforms {
  background: var(--surface-card);
  border-bottom: 1px solid var(--hairline);
}

.platforms__grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .platforms__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.platform {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.4rem 1rem;
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 768px) {
  .platform {
    border-bottom: 0;
    border-right: 1px solid var(--hairline);
    justify-content: center;
  }
  .platform:last-child {
    border-right: 0;
  }
}

.platform__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--surface-low);
  display: grid;
  place-items: center;
  flex: none;
}

.platform strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
}

.platform span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.platform--soon strong,
.platform--soon span {
  color: var(--ink-muted);
}

/* ============================================================== section == */

.section {
  padding: 4.5rem 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 7.5rem 0;
  }
}

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

.section--dark {
  background: var(--graphite);
  color: rgba(255, 255, 255, 0.72);
}

.section__head {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section__head h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 1.3rem + 1.9vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--ink);
}

.section--dark .section__head h2 {
  color: #fff;
}

.section__head p {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink-muted);
}

.section__rule {
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--orange);
  margin: 0 auto 1.5rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ================================================================ cards == */

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.65rem;
  box-shadow: var(--shadow-card);
}

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

.card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-lift);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--orange) 12%, transparent);
  color: var(--orange);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.card--feature {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.card--feature .membercard {
  margin-top: auto;
}

/* Member card mock, "physical proxy" depth per the design system. */
.membercard {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(140deg, var(--graphite-800), var(--graphite));
  color: #fff;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-lift);
}

.membercard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 0.9rem;
}

.membercard__body {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.membercard__qr {
  width: 54px;
  height: 54px;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
  flex: none;
}

.membercard small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
}

.membercard b {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.membercard .tier {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.65rem;
  font-weight: 700;
}

.stat {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
}

.stat span {
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-weight: 600;
}

/* ================================================================ steps == */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.75rem;
}

@media (min-width: 1024px) {
  .steps li {
    padding: 4.25rem 0 0;
  }

  /* Speed line connecting the numbered track. */
  .steps li::after {
    content: '';
    position: absolute;
    top: 1.4rem;
    left: 3.4rem;
    right: -0.5rem;
    height: 1px;
    background: color-mix(in srgb, var(--orange) 45%, transparent);
  }

  .steps li:last-child::after {
    display: none;
  }
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
}

/* Used on the legal pages, where the steps are prose rather than a five-stage journey. */
.steps--stacked {
  grid-template-columns: 1fr;
  max-width: 46rem;
}

@media (min-width: 1024px) {
  .steps--stacked {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .steps--stacked li {
    padding: 0 0 0 3.75rem;
  }

  .steps--stacked li::after {
    display: none;
  }
}

.steps h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
}

.section--dark .steps h3 {
  color: #fff;
}

.steps p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-muted);
}

.section--dark .steps p {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================================= download == */

.download {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .download {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dl {
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  background: var(--surface-card);
}

.dl--android {
  background: var(--graphite);
  border-color: var(--graphite);
  color: rgba(255, 255, 255, 0.7);
}

.dl--android h3 {
  color: #fff;
}

.dl__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.dl__status--live {
  background: color-mix(in srgb, var(--green) 16%, transparent);
  color: var(--green);
}

.dl--android .dl__status--live {
  background: rgba(22, 131, 93, 0.24);
  color: #6ee7b7;
}

.dl__status--soon {
  background: color-mix(in srgb, var(--ink-muted) 16%, transparent);
  color: var(--ink-muted);
  backdrop-filter: blur(20px);
}

.dl h3 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.dl p {
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
}

.dl .btn {
  margin-top: auto;
  width: 100%;
}

.dl--soon {
  opacity: 0.72;
}

/* ================================================================== faq == */

.faq {
  max-width: 46rem;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--hairline);
  padding-left: 1rem;
  border-left: 4px solid transparent;
}

.faq details[open] {
  border-left-color: var(--orange);
  background: var(--surface-low);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0.75rem 1.15rem 0;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}

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

.faq summary::after {
  content: '+';
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--orange);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: '\2212';
}

.faq details p {
  margin: 0 0 1.25rem;
  padding-right: 2rem;
  font-size: 0.97rem;
  color: var(--ink-muted);
}

/* =============================================================== footer == */

.footer {
  background: var(--graphite);
  color: rgba(255, 255, 255, 0.6);
  padding: 4rem 0 0;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }
}

.footer__brand .brand {
  color: #fff;
  margin-bottom: 1rem;
}

.footer__brand p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  max-width: 22rem;
}

.footer h4 {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 0.65rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.66);
  text-decoration: none;
  font-size: 0.93rem;
}

.footer a:hover,
.footer a:focus-visible {
  color: #fff;
}

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  font-size: 0.85rem;
}

.footer__bar .spacer {
  flex: 1;
}

/* ================================================================== doc == */

.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem var(--gutter) 5rem;
}

.layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
  .layout {
    grid-template-columns: 17rem minmax(0, 1fr);
    align-items: start;
  }
}

.doc {
  max-width: 68ch;
}

.doc h1 {
  font-size: clamp(1.9rem, 1.35rem + 2.2vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 1.25rem;
  font-weight: 800;
}

.doc h2 {
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.45rem);
  line-height: 1.3;
  color: var(--ink);
  font-weight: 700;
  margin: 3rem 0 0.9rem;
  scroll-margin-top: 6rem;
}

.doc h3 {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 700;
  margin: 2rem 0 0.6rem;
}

.doc h4 {
  font-size: 0.95rem;
  color: var(--ink);
  font-weight: 600;
  margin: 1.5rem 0 0.4rem;
}

.doc p {
  margin: 0 0 1.1rem;
}

.doc strong {
  color: var(--ink);
  font-weight: 600;
}

.doc ul,
.doc ol {
  margin: 0 0 1.2rem;
  padding-left: 1.35rem;
}

.doc li {
  margin-bottom: 0.4rem;
}

.doc li::marker {
  color: var(--ink-muted);
}

.doc hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 2.5rem 0;
}

a {
  color: var(--orange);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--orange-600);
}

.toc {
  font-size: 0.875rem;
}

@media (min-width: 1024px) {
  .toc {
    position: sticky;
    top: 6rem;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
    padding-right: 0.5rem;
  }
}

.toc__title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  font-weight: 700;
  margin: 0 0 0.85rem;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: block;
  padding: 0.34rem 0 0.34rem 2rem;
  position: relative;
  color: var(--ink-muted);
  text-decoration: none;
  border-left: 2px solid var(--hairline);
  line-height: 1.45;
}

.toc a::before {
  content: counter(toc);
  position: absolute;
  left: 0.85rem;
  color: var(--outline);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--ink);
  border-left-color: var(--orange);
}

.toc details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 0.85rem 1.1rem;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  list-style: none;
}

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

.toc details summary::after {
  content: '\25BE';
  float: right;
  color: var(--ink-muted);
}

.toc details[open] summary {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.toc details[open] .toc__panel {
  border: 1px solid var(--hairline);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 0.75rem 1rem;
  background: var(--surface-card);
  max-height: 22rem;
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .toc details summary {
    display: none;
  }

  .toc details[open] .toc__panel,
  .toc .toc__panel {
    border: 0;
    padding: 0;
    background: none;
    max-height: none;
  }
}

/* ============================================================== callout == */

.callout {
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--orange);
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.35rem;
  margin: 0 0 1.5rem;
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout--warn {
  border-left-color: var(--red);
}

.callout__title {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}

th,
td {
  border: 1px solid var(--hairline);
  padding: 0.55rem 0.8rem;
  text-align: left;
}

th {
  background: var(--surface-high);
  color: var(--ink);
}

code {
  background: var(--surface-high);
  border-radius: 5px;
  padding: 0.12em 0.4em;
  font-size: 0.9em;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 80;
  background: var(--surface-card);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
