/* ORIGIN marketing site.
   Tokens transcribed from Origin/Origin/App/OriginColor.swift. Keep in
   lockstep with the app: if a colour changes there, change it here. */
:root {
  --bg: #0A0A0A;
  --surface: #141312;
  --surface-hi: #1B1A17;
  --surface-lo: #0E0D0C;
  --border: #24211C;
  --border-hi: #3D3422;
  --text: #F5F2EB;
  --text-dim: #9A9A92;
  /* The app's textMuted (#5C5C56) is 2.94:1 on this background, below the
     WCAG AA 4.5:1 floor for the small sizes it is used at here (11-13px
     labels, footer meta, effective date). Web deliberately diverges to
     #7A7A72 (4.58:1). The app token is unchanged; its own contrast is
     tracked separately in the a11y backlog. */
  --text-muted: #7A7A72;
  --text-muted-app: #5C5C56;
  --gold: #D4AF37;
  --gold-hi: #E8C547;
  --gold-dark: #A88A1E;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
a:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

/* The app is dark by design and so is this site, but honour a user who
   has explicitly asked for less motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

/* ---- header / footer ---------------------------------------------- */

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-block: 28px;
}
.site-header--ruled { border-bottom: 1px solid var(--border); }

.wordmark {
  font-size: 20px; font-weight: 800; letter-spacing: 0.34em;
  color: var(--text);
}
a.wordmark:hover { color: var(--text); }
.wordmark--sm { font-size: 16px; }

.header-tag {
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted);
}

.site-footer { border-top: 1px solid var(--border); background: var(--bg); }
.site-footer .shell {
  display: flex; flex-wrap: wrap; gap: 32px 48px;
  justify-content: space-between; align-items: flex-start;
  padding-block: clamp(44px, 6vw, 72px);
}
.site-footer--compact .shell {
  align-items: center;
  padding-block: clamp(36px, 5vw, 60px);
  gap: 24px 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; min-width: 200px; }
.footer-meta {
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; }
.footer-nav a { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }
.footer-note {
  font-size: 13px; line-height: 1.6; color: var(--text-muted);
  max-width: 26em; text-wrap: pretty;
}

/* ---- shared type --------------------------------------------------- */

.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow--sm { font-size: 11px; letter-spacing: 0.22em; }

h1, h2, h3 { margin: 0; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 74px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; }

.lede {
  margin: 0; font-size: clamp(17px, 2.1vw, 21px); line-height: 1.5;
  color: var(--text-dim); max-width: 34em; text-wrap: pretty;
}
.body-copy {
  margin: 0; font-size: clamp(16px, 1.9vw, 19px); line-height: 1.55;
  color: var(--text-dim); max-width: 36em; text-wrap: pretty;
}

/* ---- device frame -------------------------------------------------- */

.device {
  width: min(330px, 72vw); padding: 3px;
  border-radius: 14.1% / 6.5%;
  background: linear-gradient(150deg, rgba(232,197,71,0.45), rgba(36,33,28,0.95) 46%, rgba(168,138,30,0.32));
  box-shadow: 0 40px 80px rgba(0,0,0,0.8);
}
.device--sm { width: 100%; max-width: 300px; box-shadow: 0 30px 60px rgba(0,0,0,0.75); }
/* Slightly narrower than the hero device so the gym section reads as a
   secondary beat. A class, not an inline style: the CSP in _headers is
   style-src 'self', which blocks inline style attributes. */
.device--gym { width: min(310px, 70vw); }
.device__screen {
  border-radius: 13.9% / 6.4%; overflow: hidden; background: var(--bg);
  box-shadow: inset 0 0 0 1px rgba(212,175,55,0.22);
}
.device__screen img { display: block; width: 100%; height: auto; }

/* ---- hero ---------------------------------------------------------- */

.hero { position: relative; padding-block: clamp(32px,6vw,72px) clamp(56px,8vw,110px); }
.hero__glow {
  position: absolute; inset: -10% -20% 30%; pointer-events: none;
  background: radial-gradient(900px 620px at 30% 22%, rgba(212,175,55,0.12), rgba(212,175,55,0) 65%);
}
.hero__grid {
  position: relative; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.hero__copy { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.hero__art { display: flex; justify-content: center; min-width: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 18px; align-self: flex-start;
  padding: 16px 26px; border-radius: 14px;
  border: 1px solid var(--border-hi);
  background: linear-gradient(150deg, rgba(212,175,55,0.10), rgba(212,175,55,0.03));
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.badge__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
  flex: none; box-shadow: 0 0 0 5px rgba(212,175,55,0.14);
}
.badge__text { display: flex; flex-direction: column; gap: 5px; }
.badge__kicker {
  font-size: 11px; font-weight: 700; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold);
}
.badge__line { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }

.stats { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 6px; }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__value { font-family: var(--mono); font-size: 22px; font-weight: 700; color: var(--text); }
.stat__label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted);
}

/* ---- sections ------------------------------------------------------ */

.band { border-top: 1px solid var(--border); }
.band--privacy {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #100E0B 0%, var(--bg) 100%);
}
.band--depth { background: linear-gradient(180deg, var(--surface-lo) 0%, var(--bg) 100%); }

.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 5vw, 72px); align-items: start;
  padding-block: clamp(56px, 8vw, 104px);
}
.split--center { align-items: center; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(36px,5vw,80px); }
.split__copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.split__art { display: flex; justify-content: center; min-width: 0; }

.callout {
  padding: 24px 26px; border-radius: 14px; border: 1px solid var(--border-hi);
  background: rgba(212,175,55,0.05);
  display: flex; flex-direction: column; gap: 10px; max-width: 36em;
}
.callout p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-dim); text-wrap: pretty; }
.callout strong { color: var(--text); font-weight: 600; }

.claims {
  border-radius: 14px; border: 1px solid var(--border);
  background: var(--surface); padding: clamp(22px, 3vw, 34px); min-width: 0;
  list-style: none; margin: 0;
}
.claims li {
  display: flex; align-items: center; gap: 16px; padding: 20px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono); font-size: clamp(15px, 1.9vw, 19px);
  font-weight: 600; color: var(--text);
}
.claims li:last-child { border-bottom: 0; }
.claims li::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); flex: none;
}

.depth { display: flex; flex-direction: column; gap: clamp(36px,5vw,64px); padding-block: clamp(56px,8vw,104px); }
.depth__intro { display: flex; flex-direction: column; gap: 18px; max-width: 38em; }
.depth__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(28px,4vw,48px); }
.depth__item { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.depth__caption { display: flex; flex-direction: column; gap: 8px; }
.depth__caption p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-dim); text-wrap: pretty; }

/* ---- document pages (privacy, support) ----------------------------- */

.doc { max-width: 760px; margin: 0 auto; padding: clamp(44px,7vw,88px) var(--gutter) clamp(56px,8vw,96px); }
.doc__head { display: flex; flex-direction: column; gap: 18px; }
.doc__head h1 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.03; }
.doc__date {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
}
.doc section { margin-top: clamp(32px, 4.4vw, 52px); display: flex; flex-direction: column; gap: 14px; }
.doc section h2 { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.doc section p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text-dim); text-wrap: pretty; }
.doc section strong { color: var(--text); font-weight: 600; }

.summary {
  margin-top: clamp(36px, 5vw, 56px); padding: clamp(24px,3.4vw,36px);
  border-radius: 14px; border: 1px solid var(--border-hi);
  background: rgba(212,175,55,0.05);
  display: flex; flex-direction: column; gap: 14px;
}
.summary p { margin: 0; font-size: clamp(16px,1.9vw,19px); line-height: 1.6; color: var(--text); text-wrap: pretty; }

.contact-card {
  margin-top: clamp(32px,4.6vw,48px); padding: clamp(24px,3.4vw,36px);
  border-radius: 14px; border: 1px solid var(--border-hi);
  background: rgba(212,175,55,0.05);
  display: flex; flex-direction: column; gap: 14px;
}
.contact-card__address {
  font-family: var(--mono); font-size: clamp(18px,2.6vw,26px);
  font-weight: 600; letter-spacing: -0.01em; word-break: break-word;
}
.contact-card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-dim); text-wrap: pretty; }

.faq { margin-top: clamp(40px,6vw,68px); }
.faq > h2 { margin-bottom: 8px; font-size: clamp(24px,3.2vw,32px); line-height: 1.15; letter-spacing: -0.02em; }
.faq__item {
  padding: 26px 0; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.faq__item:last-child { border-bottom: 0; }
.faq__item h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.faq__item p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--text-dim); text-wrap: pretty; }
