/* Shared by the static localized homepages and language chooser. */
:root {
  --paper:#f7f7f2;
  --ink:#151b27;
  --muted:#58616b;
  --violet:#5c50cf;
  --mint:#48ead0;
  --line:#d9ddd7;
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:32px;
}

body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}

a {
  color:inherit;
  text-decoration:none;
}

a:hover {
  color:var(--violet);
}

a:focus-visible,summary:focus-visible {
  outline:3px solid var(--violet);
  outline-offset:6px;
  border-radius:3px;
}

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

h1,h2,h3,p,figure {
  margin:0;
}

h1,h2,h3 {
  text-wrap:balance;
  overflow-wrap:break-word;
}

p {
  line-height:1.65;
}

h1,h2 {
  letter-spacing:-.055em;
}

h3 {
  letter-spacing:-.025em;
}

.wrap {
  width:min(1200px,calc(100% - 96px));
  margin-inline:auto;
}

.skip-link {
  position:absolute;
  top:-100px;
  left:16px;
  z-index:10;
  padding:12px;
  background:white;
}

.skip-link:focus {
  top:12px;
}

.site-header {
  min-height:104px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  border-bottom:1px solid var(--line);
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:19px;
  font-weight:750;
  letter-spacing:-.035em;
}

.brand img {
  border-radius:10px;
  flex-shrink:0;
}

.main-nav {
  display:flex;
  gap:28px;
  font-size:13px;
  font-weight:550;
}

.language-link {
  font-size:13px;
  white-space:nowrap;
}

.language-link span {
  font-size:21px;
  vertical-align:-2px;
  margin-inline-end:5px;
}

.hero {
  display:grid;
  grid-template-columns:1.03fr 1fr;
  align-items:center;
  gap:30px;
  min-height:744px;
  padding-block:58px 68px;
}

.eyebrow {
  font-size:12px;
  letter-spacing:.13em;
  text-transform:uppercase;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:25px;
  line-height:1.7;
}

.live-dot {
  height:7px;
  width:7px;
  border-radius:50%;
  background:var(--violet);
}

h1 {
  font-size:clamp(48px,5.55vw,80px);
  font-weight:760;
  line-height:1.04;
  margin-bottom:27px;
}

h1 span {
  color:var(--violet);
}

.intro {
  max-width:465px;
  color:var(--muted);
  font-size:18px;
  margin-bottom:30px;
}

.store-link {
  display:inline-block;
}

.store-link img {
  width:auto;
  height:52px;
}

.compatibility {
  font-size:11px;
  color:var(--muted);
  max-width:310px;
  margin-block:14px 29px;
}

.text-link {
  font-size:14px;
  font-weight:650;
  display:inline-flex;
  gap:20px;
  align-items:center;
  line-height:1.6;
}

.text-link span {
  font-size:22px;
}

.hero-art {
  position:relative;
  height:600px;
  isolation:isolate;
  direction:ltr;
}

.orbit {
  position:absolute;
  width:480px;
  height:480px;
  max-width:100%;
  border:1px solid #d2d1df;
  border-radius:50%;
  top:75px;
  left:6%;
  z-index:-1;
  background:#eae9e2;
}

.orbit:before {
  content:"";
  position:absolute;
  inset:24px;
  border:1px solid #d2d1df;
  border-radius:50%;
}

.hero-phone {
  position:absolute;
  width:267px;
  top:0;
  left:30%;
  transform:rotate(7deg);
}

.hero-watch {
  position:absolute;
  width:178px;
  top:307px;
  left:6%;
  transform:rotate(-9deg);
}

.art-caption {
  position:absolute;
  bottom:0;
  right:0;
  max-width:250px;
  color:var(--muted);
  font-size:12px;
  text-align:right;
}

.phone {
  position:relative;
  aspect-ratio:1470/3000;
  filter:drop-shadow(0 20px 24px #14182220);
  direction:ltr;
}

.phone .capture {
  position:absolute;
  left:5.102%;
  top:2.2%;
  width:89.796%;
  height:95.6%;
  border-radius:9%/4.3%;
}

.device-frame {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}

.watch-device {
  position:relative;
  aspect-ratio:560/880;
  filter:drop-shadow(0 14px 16px #15182225);
  direction:ltr;
}

.watch-device .capture {
  position:absolute;
  left:12.857%;
  top:21.818%;
  width:74.286%;
  height:56.364%;
  border-radius:24%/20%;
}

.chapter-nav {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  border-block:1px solid var(--line);
  gap:26px;
  padding-block:25px;
}

.chapter-nav a {
  display:flex;
  gap:14px;
  align-items:baseline;
  font-size:13px;
  font-weight:600;
}

.chapter-nav span {
  font-size:11px;
  color:var(--violet);
  font-variant-numeric:tabular-nums;
}

.story-section {
  padding-block:112px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:100px;
  align-items:center;
}

.workout-art {
  height:665px;
  border-radius:8px;
  background:#e6e9df;
  position:relative;
  overflow:hidden;
  direction:ltr;
}

.workout-phone {
  width:265px;
  margin:38px auto 0;
  position:relative;
  z-index:1;
}

.decorative-word {
  position:absolute;
  bottom:-34px;
  left:-10px;
  font-size:152px;
  font-weight:850;
  letter-spacing:-.065em;
  color:#ced5c4;
  line-height:1.1;
}

.section-copy h2,.section-intro h2 {
  font-size:clamp(36px,4vw,55px);
  line-height:1.08;
  margin-bottom:25px;
}

.section-copy>p:not(.eyebrow),.section-intro>div>p:not(.eyebrow) {
  font-size:16px;
  color:var(--muted);
  line-height:1.75;
}

.feature-line {
  display:flex;
  gap:18px;
  margin-top:27px;
  padding-top:23px;
  border-top:1px solid var(--line);
}

.feature-line>span {
  color:var(--violet);
  font-size:25px;
  width:26px;
  flex-shrink:0;
}

.feature-line h3 {
  font-size:16px;
  line-height:1.4;
  margin-bottom:7px;
}

.feature-line p {
  font-size:14px;
  color:var(--muted);
}

.progress-section {
  background:#171e2a;
  color:#f8f9fb;
  padding-block:90px 45px;
}

.section-intro {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:100px;
  align-items:center;
  margin-bottom:55px;
}

.progress-section .eyebrow {
  color:#a9a1ff;
}

.section-intro>div>p:not(.eyebrow) {
  color:#bdc4d0;
}

.section-intro h2 {
  margin-bottom:0;
}

.disclosure {
  font-size:12px!important;
  margin-top:15px;
  line-height:1.6!important;
}

.progress-gallery {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:36px;
}

.gallery-image {
  background:#242c3a;
  border-radius:8px;
  padding:28px 40px 0;
  overflow:hidden;
  height:530px;
}

.gallery-image .phone {
  max-width:270px;
  margin:auto;
}

.progress-gallery figure:nth-child(2) .gallery-image {
  background:#27363d;
}

.progress-gallery figure:nth-child(3) .gallery-image {
  background:#302e44;
}

.progress-gallery figcaption {
  position:relative;
  padding:23px 0 0 34px;
}

.progress-gallery figcaption>span {
  position:absolute;
  left:0;
  top:26px;
  font-size:10px;
  color:#aba1ff;
}

.progress-gallery h3 {
  font-size:18px;
  line-height:1.4;
  margin-bottom:8px;
}

.progress-gallery p {
  font-size:14px;
  color:#bac3ce;
  max-width:290px;
}

.image-note {
  font-size:11px;
  color:#a0aabc;
  margin-top:40px;
}

.community-section {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:100px;
  align-items:center;
  padding-block:100px;
}

.community-section .text-link {
  margin-top:28px;
}

.community-art {
  height:540px;
  background:#e5e3f0;
  border-radius:8px;
  position:relative;
  overflow:hidden;
  direction:ltr;
  isolation:isolate;
}

.community-phone {
  width:265px;
  position:relative;
  z-index:1;
  margin:34px auto 0;
  transform:rotate(-5deg);
}

.community-ring {
  position:absolute;
  width:410px;
  height:410px;
  border:1px solid #c1bbdc;
  border-radius:50%;
  top:60px;
  left:20px;
  z-index:-1;
}

.closing {
  position:relative;
  isolation:isolate;
  background:#252b2c url('/img/jumpfit_hero-image_2.jpg') center 53%/cover;
  color:#fff;
  min-height:460px;
  display:flex;
  align-items:center;
}

.closing-shade {
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,#101723eb,#10172370);
  z-index:-1;
}

.closing-copy {
  padding-block:65px;
}

.closing h2 {
  font-size:clamp(38px,4.5vw,64px);
  max-width:590px;
  line-height:1.08;
  margin-bottom:30px;
}

.closing-copy>p:last-child {
  font-size:11px;
  margin-top:16px;
  max-width:350px;
  color:#e1e3e8;
}

.site-footer {
  padding-block:45px 30px;
}

.footer-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:35px;
}

.footer-top>a:last-child {
  font-size:13px;
}

.language-list {
  display:flex;
  flex-wrap:wrap;
  gap:9px 23px;
  padding-block:24px;
  border-block:1px solid var(--line);
}

.language-list a {
  font-size:13px;
  line-height:2;
  min-height:30px;
}

.language-list a[aria-current=page] {
  color:var(--violet);
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:5px;
}

.footer-bottom {
  display:flex;
  justify-content:space-between;
  gap:30px;
  font-size:11px;
  line-height:1.8;
  margin-top:25px;
  color:var(--muted);
}

.footer-bottom nav {
  display:flex;
  flex-wrap:wrap;
  gap:8px 20px;
}

.language-home {
  min-height:80vh;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  gap:70px;
  padding-block:80px;
}

.language-home h1 {
  font-size:clamp(44px,5vw,70px);
}

.language-home .language-list {
  margin-top:28px;
  border-bottom:0;
}

.language-home p {
  color:var(--muted);
}

.chooser-art {
  height:550px;
  position:relative;
}

.chooser-art .phone {
  width:250px;
  margin:auto;
  transform:rotate(6deg);
}

[dir=rtl] h1,[dir=rtl] h2,[dir=rtl] h3 {
  letter-spacing:0;
}

[dir=rtl] .eyebrow {
  letter-spacing:0;
}

[dir=rtl] .progress-gallery figcaption {
  padding:23px 34px 0 0;
}

[dir=rtl] .progress-gallery figcaption>span {
  left:auto;
  right:0;
}

/* Give Thai vowels and tone marks room between heading lines. */
:lang(th) h1,:lang(th) h2,:lang(th) h3,:lang(th) .eyebrow {
  letter-spacing:0;
}

:lang(th) h1,:lang(th) h2 {
  line-height:1.25;
}

@media(min-width:1500px) {
  .hero {
    gap:90px;
  }
  .hero-art {
    margin-inline-start:20px;
  }
}

@media(max-width:1100px) {
  .wrap {
    width:calc(100% - 64px);
  }
  .main-nav {
    gap:16px;
  }
  .main-nav a:first-child {
    display:none;
  }
  .hero {
    gap:16px;
    min-height:670px;
  }
  .hero-art {
    height:530px;
  }
  .hero-phone {
    width:230px;
    left:27%;
  }
  .hero-watch {
    width:155px;
    top:270px;
  }
  .orbit {
    height:370px;
    width:370px;
  }
  .story-section,.community-section,.section-intro {
    gap:50px;
  }
  .gallery-image {
    padding:24px 25px 0;
    height:440px;
  }
  .progress-gallery {
    gap:22px;
  }
  .workout-art {
    height:620px;
  }
  .section-copy h2,.section-intro h2 {
    font-size:42px;
  }
}

@media(max-width:760px) {
  .wrap {
    width:calc(100% - 40px);
  }
  .site-header {
    min-height:82px;
    gap:12px;
  }
  .brand {
    font-size:16px;
    gap:9px;
  }
  .brand img {
    width:34px;
    height:34px;
  }
  .main-nav {
    display:none;
  }
  .hero {
    grid-template-columns:1fr;
    padding-block:44px 30px;
    gap:30px;
    min-height:0;
  }
  .hero-copy {
    max-width:580px;
    min-width:0;
  }
  .eyebrow {
    font-size:10px;
    margin-bottom:19px;
  }
  h1 {
    font-size:clamp(45px,9.5vw,70px);
    margin-bottom:22px;
  }
  .intro {
    font-size:16px;
    max-width:520px;
    margin-bottom:25px;
  }
  .compatibility {
    max-width:330px;
    margin-bottom:20px;
  }
  .hero-art {
    height:545px;
    width:min(420px,100%);
    margin-inline:auto;
  }
  .hero-phone {
    width:245px;
    left:23%;
  }
  .hero-watch {
    width:165px;
    top:280px;
    left:2%;
  }
  .orbit {
    width:355px;
    height:355px;
    left:0;
    top:95px;
  }
  .art-caption {
    font-size:11px;
  }
  .chapter-nav {
    gap:14px;
    padding-block:20px;
  }
  .chapter-nav a {
    display:block;
    font-size:11px;
    line-height:1.5;
  }
  .chapter-nav span {
    display:block;
    margin-bottom:8px;
  }
  .story-section {
    padding-block:65px;
    grid-template-columns:1fr;
    gap:36px;
  }
  .section-copy h2,.section-intro h2 {
    font-size:39px;
  }
  .story-section .section-copy {
    grid-row:1;
  }
  .workout-art {
    height:560px;
  }
  .workout-phone {
    width:245px;
    margin-top:28px;
  }
  .decorative-word {
    font-size:140px;
  }
  .feature-line {
    margin-top:22px;
    padding-top:18px;
  }
  .section-intro {
    grid-template-columns:1fr;
    gap:22px;
    margin-bottom:32px;
  }
  .progress-section {
    padding-block:60px 30px;
  }
  .progress-gallery {
    grid-template-columns:1fr;
    gap:40px;
    max-width:430px;
    margin-inline:auto;
  }
  .gallery-image {
    height:540px;
    padding:28px 42px 0;
  }
  .gallery-image .phone {
    width:245px;
  }
  .progress-gallery figcaption {
    padding-top:19px;
  }
  .progress-gallery figcaption>span {
    top:23px;
  }
  .progress-gallery p {
    max-width:none;
  }
  .community-section {
    grid-template-columns:1fr;
    padding-block:65px;
    gap:32px;
  }
  .community-art {
    height:520px;
  }
  .community-phone {
    width:245px;
  }
  .closing {
    min-height:430px;
  }
  .closing h2 {
    font-size:42px;
    max-width:460px;
  }
  .closing-shade {
    background:#101723a8;
  }
  .footer-top {
    align-items:flex-start;
    flex-direction:column;
  }
  .footer-bottom {
    flex-direction:column;
    gap:15px;
  }
  .language-list {
    gap:8px 19px;
  }
  .language-home {
    grid-template-columns:1fr;
    padding-block:45px;
    gap:30px;
  }
  .chooser-art {
    height:520px;
  }
}

@media(max-width:380px) {
  .hero-phone {
    width:218px;
    left:14%;
  }
  .hero-watch {
    width:145px;
    top:260px;
  }
  .hero-art {
    height:500px;
  }
  .orbit {
    width:290px;
    height:290px;
  }
  .gallery-image {
    padding-inline:24px;
  }
  .language-link {
    font-size:11px;
  }
  .brand {
    font-size:14px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
}
