/* Orbit website. Light only, like the app: paper and white, charcoal type,
   lilac as the one brand colour, the people swatches for warmth. */

:root {
  --lilac: #c6abf2;
  --lilac-deep: #8e6bd8;
  --lilac-soft: #efe6fd;
  --on-lilac: #241a3d;
  --charcoal: #2c2b33;
  --ink: #141414;
  --ink-2: #55545c;
  --ink-3: #8b8a92;
  --paper: #f7f5f2;
  --card: #ffffff;
  --line: #e7e4df;
  --peach: #f6c9a8;
  --sage: #b9d8bd;
  --sky: #b7d4f2;
  --pink: #f4bfd6;
  --sand: #ecdcc0;
  --radius-lg: 36px;
  --radius: 24px;
  --radius-sm: 14px;
  --page: min(1200px, 100% - 40px);
  --shadow: 0 18px 50px rgba(36, 26, 61, 0.12);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lilac-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: var(--page); margin-inline: auto; }

/* ---------------------------------------------------------------- Type */
.display {
  font-weight: 900;
  font-stretch: 112%;
  letter-spacing: -0.035em;
  line-height: 0.95;
  font-size: clamp(48px, 9vw, 112px);
  margin: 0;
}
.h2 {
  font-weight: 850;
  font-stretch: 108%;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: clamp(36px, 5.6vw, 68px);
  margin: 0;
}
.h3 { font-weight: 800; letter-spacing: -0.02em; font-size: 24px; line-height: 1.15; margin: 0; }
.lede { font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); max-width: 36ch; margin: 0; }
.eyebrow { display: inline-block; font-size: 16px; font-weight: 650; opacity: 0.75; }
.muted { color: var(--ink-2); }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 750; font-size: 17px; text-decoration: none;
  border: 0; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-dark:hover { background: #1f1e25; }
.btn-light { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-lilac { background: var(--lilac); color: var(--on-lilac); }

/* An App Store style badge, until the app is live. */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 22px 0 18px; border-radius: 16px;
  background: var(--charcoal); color: #fff; text-decoration: none;
}
.store .icon { width: 26px; height: 26px; }
.store small { display: block; font-size: 11px; opacity: 0.75; line-height: 1; }
.store strong { display: block; font-size: 19px; line-height: 1.15; letter-spacing: -0.01em; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -0.03em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 650; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav .btn { height: 44px; padding: 0 20px; font-size: 15px; color: #fff; }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--charcoal); color: #fff; margin-top: 0; }
.site-footer .wrap { padding: 72px 0 40px; display: grid; gap: 40px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.site-footer h4 { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, 0.55); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: rgba(255, 255, 255, 0.86); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.site-footer p { color: rgba(255, 255, 255, 0.65); max-width: 32ch; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding: 22px 0 30px; font-size: 14px; color: rgba(255, 255, 255, 0.55); grid-template-columns: none; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- Documents
   Terms, Privacy, Guidelines, Support: one readable column on white. */
.doc-hero { background: var(--lilac); color: var(--on-lilac); }
.doc-hero .wrap { padding: 72px 0 64px; }
.doc-hero .h2 { max-width: 16ch; }
.doc-hero p { margin: 18px 0 0; font-size: 18px; max-width: 52ch; opacity: 0.85; }
.doc { background: var(--card); }
.doc .wrap { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 64px; padding: 64px 0 96px; }
.doc-toc { position: sticky; top: 96px; align-self: start; font-size: 15px; }
.doc-toc h4 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--ink-3); }
.doc-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.doc-toc a { text-decoration: none; color: var(--ink-2); }
.doc-toc a:hover { color: var(--ink); }
.doc-body h2 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; margin: 48px 0 12px; scroll-margin-top: 96px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 19px; margin: 28px 0 8px; }
.doc-body p, .doc-body li { color: #2b2a31; }
.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body li + li { margin-top: 6px; }
.doc-body a { color: var(--lilac-deep); font-weight: 650; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.doc-body th, .doc-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-body th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.doc-meta { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--lilac-soft); color: var(--on-lilac); font-size: 14px; font-weight: 650; margin-bottom: 28px; }
.callout { background: var(--paper); border-radius: var(--radius-sm); padding: 18px 20px; margin: 20px 0; }
@media (max-width: 900px) {
  .doc .wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .doc-toc { position: static; }
}
