/* The ATLAS website (atlasfitnesstech.com). One stylesheet for every page, in the apps' own look: the Ember palette
   (design-handoff/design/prototype/atlas.css), Unbounded for headings and Onest for text (self-hosted, so no page
   sends anything to a third party), the client app's violet for its own parts. Dark or light follows the device. */

@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url(/assets/fonts/onest-regular.woff2) format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 500; font-display: swap; src: url(/assets/fonts/onest-medium.woff2) format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url(/assets/fonts/onest-semibold.woff2) format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 500; font-display: swap; src: url(/assets/fonts/unbounded-medium.woff2) format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 600; font-display: swap; src: url(/assets/fonts/unbounded-semibold.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0B1125; --bg-2: #0E162B; --surface: #151D33; --surface-2: #1E273E; --surface-3: #29324B;
  --text: #F3F5FB; --text-2: #BBC1CE; --text-3: #8C94A6;
  --accent: #FE894E; --on-accent: #0A0F1D;
  --violet: #B296FF; --on-violet: #0E0D1C;
  --line: rgba(219, 226, 255, .08); --line-2: rgba(219, 226, 255, .15);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .04);
  --float: 0 30px 60px -24px rgba(0, 0, 0, .8), 0 2px 10px rgba(0, 0, 0, .3);
  --glass: rgba(14, 22, 43, .72);
  --orb: linear-gradient(100deg, #FFC58A, #F5803F 36%, #F2587F 68%, #A47BFF);
  --aura-1: rgba(245, 128, 63, .26); --aura-2: rgba(164, 123, 255, .22); --aura-3: rgba(242, 88, 127, .16);
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #F3F7FE; --bg-2: #ECF1FE; --surface: #FFFFFF; --surface-2: #EAF0FF; --surface-3: #DEE4F5;
    --text: #101524; --text-2: #414758; --text-3: #646C7D;
    --accent: #AE4902; --on-accent: #FFFFFF;
    --violet: #7447C8; --on-violet: #FFFFFF;
    --line: rgba(16, 22, 40, .08); --line-2: rgba(16, 22, 40, .15);
    --hi: 0 1px 2px rgba(16, 22, 40, .05), 0 8px 22px -12px rgba(16, 22, 40, .16);
    --float: 0 30px 60px -24px rgba(16, 22, 40, .45), 0 2px 8px rgba(16, 22, 40, .1);
    --glass: rgba(243, 247, 254, .78);
    --aura-1: rgba(245, 128, 63, .18); --aura-2: rgba(164, 123, 255, .16); --aura-3: rgba(242, 88, 127, .1);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 48rem; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 20; background: var(--glass);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
.brand svg { width: 2rem; height: 2rem; border-radius: .55rem; box-shadow: 0 6px 16px -6px rgba(168, 30, 63, .6); }
.brand b { font: 600 1.05rem/1 var(--display); letter-spacing: .04em; }
.site-nav { display: flex; gap: .25rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  text-decoration: none; color: var(--text-2); font-weight: 500; font-size: .94rem; padding: .45rem .8rem;
  border-radius: 999px; white-space: nowrap; transition: color .2s, background .2s;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--text); background: var(--surface-2); }
@media (max-width: 40rem) { .site-nav .wide { display: none; } .site-head .wrap { gap: .5rem; } }

/* Type */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem; padding: .35rem .8rem .35rem .4rem;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2);
  font-size: .85rem; font-weight: 600; color: var(--text-2); box-shadow: var(--hi);
}
.eyebrow svg { width: 1.4rem; height: 1.4rem; border-radius: .4rem; }
.eyebrow .dot { width: .5rem; height: .5rem; margin-left: .35rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
h1, h2, h3 { margin: 0; color: var(--text); }
.display { font: 600 clamp(2.3rem, 5.6vw, 4rem)/1.06 var(--display); letter-spacing: -.04em; margin-bottom: 1.25rem; }
.h2 { font: 500 clamp(1.75rem, 3.6vw, 2.6rem)/1.15 var(--display); letter-spacing: -.03em; margin-bottom: 1rem; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 38rem; margin: 0 0 2rem; }
.grad { background: var(--orb); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none;
  font-weight: 600; font-size: 1rem; padding: .85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); box-shadow: var(--hi); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.btn svg { width: 1.1rem; height: 1.1rem; }
.soon { font-size: .9rem; color: var(--text-3); margin-top: 1.25rem; display: flex; align-items: center; gap: .5rem; }
.soon svg { width: 1rem; height: 1rem; }

/* Hero */
.hero { position: relative; padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.aura { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.aura::before, .aura::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(70px);
}
.aura::before { width: 42rem; height: 42rem; right: -12rem; top: -10rem; background: radial-gradient(circle, var(--aura-1), transparent 65%); }
.aura::after { width: 36rem; height: 36rem; right: 8rem; top: 14rem; background: radial-gradient(circle, var(--aura-2), transparent 65%); }
.hero .wrap { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
@media (min-width: 60rem) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } }

.phones { position: relative; height: clamp(26rem, 62vw, 36rem); }
.phone {
  position: absolute; width: clamp(12.5rem, 30vw, 16.5rem); aspect-ratio: 540 / 1200; padding: .45rem;
  border-radius: 2.3rem; background: linear-gradient(160deg, #2A3147, #0A0E1C 40%, #151B2D);
  box-shadow: var(--float), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 1.9rem; }
.phones .back { left: 50%; top: 0; transform: translateX(-8%) rotate(6deg); }
.phones .front { left: 50%; top: 2.2rem; transform: translateX(-92%) rotate(-4deg); }
@media (max-width: 60rem) { .phones { max-width: 30rem; margin: 0 auto; width: 100%; } }
@media (max-width: 30rem) {
  .phones { height: 24rem; }
  .phone { width: 10.6rem; border-radius: 1.9rem; padding: .38rem; }
  .phone img { border-radius: 1.55rem; }
  .phones .front { top: 1.6rem; transform: translateX(-86%) rotate(-4deg); }
  .phones .back { transform: translateX(-12%) rotate(6deg); }
}

/* Sections */
section { position: relative; }
.band { padding: clamp(4rem, 9vw, 7rem) 0; }
.band.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { margin-bottom: 2.75rem; }

.features { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 38rem) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .features { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 1.4rem; padding: 1.5rem;
  box-shadow: var(--hi);
}
.feature h3 { font: 600 1.08rem/1.35 var(--body); margin: 1.1rem 0 .4rem; }
.feature p { margin: 0; color: var(--text-2); font-size: .97rem; line-height: 1.6; }
.tile {
  width: 2.9rem; height: 2.9rem; border-radius: .9rem; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.tile svg { width: 1.45rem; height: 1.45rem; }

/* The client app's parts use its violet */
.client { --accent: var(--violet); --on-accent: var(--on-violet); }
.client .aura::before { background: radial-gradient(circle, var(--aura-2), transparent 65%); }

/* Screens */
.gallery {
  display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem 1.25rem 1.5rem;
  margin: 3rem auto 0; max-width: 72rem; scrollbar-width: thin;
}
.gallery figure { margin: 0; flex: none; width: clamp(11rem, 40vw, 13.5rem); scroll-snap-align: center; }
.gallery .phone { position: static; width: 100%; transform: none; }
.gallery figcaption { font-size: .9rem; color: var(--text-3); text-align: center; margin-top: .8rem; }
/* Centred when the row fits, scrollable from the first screen when it doesn't (justify-content would clip the start) */
.gallery > :first-child { margin-left: auto; }
.gallery > :last-child { margin-right: auto; }
@media (min-width: 64rem) { .gallery figure { width: 10.4rem; } }

/* Plans */
.plans { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; gap: .2rem; }
.plan .name { font: 500 1rem/1.3 var(--display); color: var(--text-2); letter-spacing: -.01em; }
.plan .num { font: 600 clamp(2.4rem, 5vw, 3.2rem)/1.1 var(--display); letter-spacing: -.04em; margin-top: .6rem; }
.plan .unit { color: var(--text-3); font-size: .95rem; }
.plan.top { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background:
  linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), var(--surface); }
.note { color: var(--text-3); font-size: .95rem; margin: 1.5rem 0 0; }

/* Promise */
.promise { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .promise { grid-template-columns: repeat(3, 1fr); } }

/* Two cards side by side (the choosers) */
.pair { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .pair { grid-template-columns: 1fr 1fr; } }
.choice {
  display: flex; flex-direction: column; gap: .9rem; text-decoration: none; padding: 1.6rem;
  transition: transform .3s var(--ease), border-color .2s;
}
.choice:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.choice svg.icon { width: 3.25rem; height: 3.25rem; border-radius: .9rem; }
.choice h3 { font: 500 1.25rem/1.3 var(--display); letter-spacing: -.02em; }
.choice p { margin: 0; color: var(--text-2); font-size: .97rem; }
.choice .go { margin-top: auto; color: var(--accent); font-weight: 600; display: inline-flex; gap: .4rem; align-items: center; }
.choice .go svg { width: 1.1rem; height: 1.1rem; transition: transform .3s var(--ease); }
.choice:hover .go svg { transform: translateX(3px); }
.choice.client .go { color: var(--violet); }

/* Contact */
.cta { text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem; position: relative; overflow: hidden; }
.cta .lede { margin-left: auto; margin-right: auto; }
.cta .actions { justify-content: center; }

/* Documents (privacy, terms, deletion) */
.doc-head { padding: clamp(2.5rem, 7vw, 4.5rem) 0 2rem; position: relative; overflow: hidden; }
.doc-head h1 { font: 500 clamp(1.9rem, 4.6vw, 3rem)/1.12 var(--display); letter-spacing: -.035em; margin-bottom: .9rem; }
.stamp { display: inline-block; font-size: .88rem; color: var(--text-3); }
.doc { padding: clamp(1.5rem, 4vw, 2.75rem); margin-bottom: 1.5rem; }
.doc > :first-child { margin-top: 0; }
.doc h2 { font: 500 1.15rem/1.35 var(--display); letter-spacing: -.02em; margin: 2.4rem 0 .7rem; }
.doc p, .doc li { color: var(--text-2); }
.doc p { margin: 0 0 1rem; }
.doc strong { color: var(--text); font-weight: 600; }
.doc ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.doc li { position: relative; padding-left: 1.35rem; margin: .5rem 0; }
.doc li::before { content: ""; position: absolute; left: .1rem; top: .72em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); }
.doc a { color: var(--accent); text-underline-offset: .2em; }
.doc .lead { color: var(--text); font-size: 1.08rem; }
.related { margin: 0 0 4rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.related a { text-decoration: none; font-size: .92rem; font-weight: 500; padding: .5rem .9rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2); }
.related a:hover { color: var(--text); }

/* Invite page */
.invite { padding: clamp(2.5rem, 7vw, 4.5rem) 0 1rem; position: relative; overflow: hidden; }
.code { text-align: center; padding: 1.6rem 1rem; margin: 0 0 1.25rem; }
.code .label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: .5rem; }
.code .value { font: 600 2.2rem/1.2 var(--display); letter-spacing: .3em; text-indent: .3em; font-variant-numeric: tabular-nums; }
.stack { display: grid; gap: .7rem; }
.stack .btn { width: 100%; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .8rem; }
.steps li { counter-increment: s; display: flex; gap: .9rem; align-items: flex-start; color: var(--text-2); }
.steps li::before { content: counter(s); flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center;
  font: 600 .85rem/1 var(--display); background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.hidden { display: none !important; }
.small-h { font: 500 1.1rem/1.3 var(--display); letter-spacing: -.02em; margin: 2.5rem 0 1rem; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 3.5rem 0 2.5rem; color: var(--text-3); font-size: .93rem; }
.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 52rem) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-grid .about { grid-column: 1 / -1; }
@media (min-width: 52rem) { .foot-grid .about { grid-column: auto; } }
.foot-grid h4 { margin: 0 0 .8rem; font: 600 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot-grid a { text-decoration: none; color: var(--text-3); }
.foot-grid a:hover { color: var(--text); }
.foot-grid .about p { margin: .9rem 0 0; max-width: 22rem; }
.legal-line { margin-top: 2.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; line-height: 1.6; }

/* Arrival */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise .9s var(--ease) both; }
  .d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  .phones .phone { animation: float-in 1.1s var(--ease) both; }
  .phones .back { animation-delay: .25s; }
  @keyframes float-in { from { opacity: 0; translate: 0 40px; } }
}
