/* JustJump Rope: site styles. One theme, the instrument. */

@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url("/fonts/spacegrotesk-400.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("/fonts/spacegrotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("/fonts/spacegrotesk-700.woff2") format("woff2"); }
@font-face { font-family: "Martian Mono"; font-weight: 400; font-display: swap; src: url("/fonts/martianmono-400.woff2") format("woff2"); }
@font-face { font-family: "Martian Mono"; font-weight: 600; font-display: swap; src: url("/fonts/martianmono-600.woff2") format("woff2"); }
@font-face { font-family: "Martian Mono"; font-weight: 700; font-display: swap; src: url("/fonts/martianmono-700.woff2") format("woff2"); }

:root {
  --bg: #0C0D0F;
  --bg-2: #101215;
  --surface: #16181C;
  --surface-2: #1C1F24;
  --line: #26292F;
  --line-2: #31353C;
  --text: #F4F2ED;
  --text-2: #C9C7C1;
  --dim: #8A8F98;
  --accent: #9FE870;
  --accent-ink: #0C0D0F;
  --catch: #E8A29F;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  /* Radius scale: 4 focus rings, 8 skip link, 16 cards and nodes, 28 the offer card, 999 chips and small buttons. The phone is a squircle. */
  --r: 16px;
  --r-lg: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

* { 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(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.skip { position: absolute; left: 16px; top: -48px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; font-weight: 500; z-index: 50; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Type */
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: .02em; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.04; }
h3 { font-size: 20px; letter-spacing: -.01em; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--text-2); max-width: 34em; }
.dim { color: var(--dim); }
.small { font-size: 14px; line-height: 1.5; }

/* Header */
.top { position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.brand { display: inline-flex; align-items: baseline; gap: 0; font-weight: 700; font-size: 19px; letter-spacing: -.01em; text-decoration: none; }
.brand .b1 { color: var(--dim); }
.brand .b2 { color: var(--text); }
.brand .b3 { color: var(--accent); margin-left: .28em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav .badge { height: 36px; }
@media (max-width: 720px) { .nav { gap: 18px; } .nav .badge { display: none; } .nav a { font-size: 14px; } }

/* App Store badge (Apple's artwork). Never restyled, only sized. */
.badge { display: inline-block; line-height: 0; border-radius: 7px; }
.badge img { height: 100%; width: auto; }
.badge:focus-visible { outline-offset: 4px; }
.badge-lg { height: 54px; }

/* Hero */
.hero { position: relative; padding: clamp(36px, 8vh, 72px) 0 clamp(40px, 6vh, 72px); overflow: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 { display: block; font-size: clamp(52px, 7.6vw, 108px); line-height: .94; letter-spacing: -.035em; }
.hero .kicker { font-size: 15px; line-height: 1.5; color: var(--dim); margin-bottom: 20px; }
.hero h1 .line { display: block; }
.hero .lede { margin-top: 28px; }
.hero .cta { margin-top: 36px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* The instrument: phone + synced numeral. The numeral is the phone's count, magnified: same value, same moment. */
.instrument { --nf: clamp(80px, 8.2vw, 116px); margin: 0; display: flex; flex-direction: column; align-items: center; }
.stage { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0; }
.phone {
  position: relative; z-index: 2;
  width: clamp(220px, 20vw, 280px); aspect-ratio: 9 / 16;
  border-radius: 12.5% / 7%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 40px 90px -30px rgba(0,0,0,.9);
  overflow: hidden;
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }
.stage .cut { position: absolute; left: -8px; right: -16px; top: calc(var(--nf) * -0.47); bottom: -8px; background: var(--bg); opacity: 0; transition: opacity .14s linear; pointer-events: none; z-index: 4; }
.stage .cut.on { opacity: 1; }
.vbtn {
  position: absolute; right: 10px; bottom: 10px; z-index: 3; min-height: 36px; min-width: 64px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-2); background: rgba(12, 13, 15, .72); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 7px 11px; cursor: pointer; opacity: .85;
}
.vbtn:hover { opacity: 1; color: var(--text); }
.vbtn:active { transform: scale(.97); }
/* The numeral's baseline sits on the baseline of the count pill inside the clip; a short lime rule joins them. */
.readout { position: relative; z-index: 3; margin-left: 22px; margin-top: calc(var(--nf) * -0.33); pointer-events: none; }
.readout::before { content: ""; position: absolute; left: -22px; width: calc(22px + var(--nf) * 0.09); height: 1px; background: var(--accent); opacity: 1; top: calc(var(--nf) * 0.84); }
.readout .num {
  font-family: var(--mono); font-weight: 700; font-feature-settings: "tnum" 1;
  font-size: var(--nf); line-height: .9; letter-spacing: -.05em; color: var(--accent);
  display: inline-flex; overflow: hidden;
}
.readout .num .d { display: inline-block; }
.readout .num .d.roll { animation: roll .16s var(--ease); }
@keyframes roll { 0% { transform: translateY(.5em); } 100% { transform: none; } }
.readout .under { margin-top: 4px; padding-left: 4px; font-size: 14px; color: var(--dim); }
.instrument .cap { align-self: flex-start; margin-top: 18px; }
.cap { font-size: 13px; line-height: 1.5; color: var(--dim); }

@media (max-width: 900px) {
  .hero { padding-top: 28px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: clamp(44px, 12vw, 76px); }
  .hero .kicker { font-size: 14px; margin-bottom: 16px; }
  .hero .lede { margin-top: 22px; }
  .hero .cta { margin-top: 28px; }
  .instrument { align-items: flex-start; }
  .stage { grid-template-columns: 1fr; justify-items: start; }
  .readout { order: -1; margin: 0 0 16px 4%; display: flex; align-items: baseline; gap: 14px; }
  .readout::before { left: calc(var(--nf) * 0.06); top: auto; bottom: -16px; width: 1px; height: 16px; opacity: .8; }
  .stage .cut { left: -8px; right: -8px; top: -8px; bottom: -8px; }
  .instrument { --nf: clamp(72px, 20vw, 96px); }
  .readout { margin-top: 0; }
  .readout .under { margin: 0; padding: 0; }
  .phone { width: clamp(180px, 48vw, 220px); }
  .instrument .cap { order: -1; margin: 0 0 12px; }
  .instrument .cap { margin-top: 14px; }
}

/* Sections */
.sec { padding: clamp(64px, 10vh, 132px) 0; border-top: 1px solid var(--line); }
.sec .head { max-width: 30em; }
.sec .head .label { display: block; margin-bottom: 18px; }
.sec .head h2 + .lede { margin-top: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}

/* Count section */
.spec { list-style: none; margin: 36px 0 0; padding: 0; }
.spec li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.spec .k { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.spec .k.c { color: var(--catch); }
.spec .v { color: var(--text-2); }
@media (max-width: 520px) { .spec li { grid-template-columns: 1fr; gap: 6px; } }

.shot { position: relative; margin: 0; }
.shot .frame {
  width: min(100%, 360px); margin-inline: auto;
  border: 1px solid var(--line-2); background: var(--surface); overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
}
.shot .frame img { width: 100%; height: auto; }
.shot figcaption { margin-top: 14px; text-align: center; }
.shot .frame { border-radius: 12.5% / 7%; }

/* Steps: one horizontal strip */
.how h2 { max-width: 14em; }
.steps { list-style: none; counter-reset: s; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.steps li { counter-increment: s; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--dim); margin-bottom: 14px; }
.steps h3 { font-size: 24px; }
.steps p { margin-top: 8px; color: var(--text-2); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; gap: 32px 24px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Why (manifesto) */
.why .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.why h2 { font-size: clamp(34px, 5vw, 64px); max-width: 12em; }
.why .body { margin-top: 26px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--text-2); max-width: 34em; }
.why .body p + p { margin-top: 1.1em; }
.why .body strong { color: var(--text); font-weight: 500; }
.card-shot { margin: 0; justify-self: start; width: min(100%, 250px); }
.card-shot img { width: 100%; height: auto; border-radius: 7%; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.card-shot figcaption { margin-top: 16px; text-align: center; }
@media (max-width: 860px) { .why .wrap { grid-template-columns: 1fr; gap: 36px; } .why .card-shot { order: 2; } }

/* Privacy flow */
.priv .head { max-width: 36em; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; margin-top: 44px; }
.flow .node { padding: 18px 0; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line-2); }
.flow .node .label { margin: 0; }
.flow .node .v { font-weight: 500; }
.flow .node.out { border-top-color: var(--accent); }
.flow .node.out .v { color: var(--accent); font-family: var(--mono); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -.04em; }
.flow .arrow { width: 28px; height: 2px; background: var(--dim); border-radius: 1px; }

@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { width: 2px; height: 22px; justify-self: center; }
}
.priv-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 28px; }
.privacy-label { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
.privacy-label .chk { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }

/* Offer */
.offer .card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 4vw, 64px); align-items: center;
}
.offer .card .lede { max-width: 30em; margin-top: 18px; }
.offer .get { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
@media (max-width: 800px) { .offer .card { grid-template-columns: 1fr; } }

/* FAQ */
.faqs .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .faqs .wrap { grid-template-columns: 1fr; gap: 24px; } }
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 500; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:active { color: var(--text-2); }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--mono); color: var(--dim); font-size: 20px; }
.faq summary::after { transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .a { padding: 0 0 22px; color: var(--text-2); max-width: 36em; }
.faq-cta { margin-top: 36px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 44px 0 40px; }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot .links a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.foot .links a:hover { color: var(--text); }
.foot .made { margin-top: 10px; }
@media (max-width: 720px) { .foot .wrap { grid-template-columns: 1fr; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }

/* Inner pages (privacy, support, terms) */
.doc { padding: 40px 0 80px; }
.doc > * { max-width: 760px; }
.doc h2 { font-size: 24px; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.02; }
.doc .updated { margin-top: 14px; }
.doc .intro { margin-top: 28px; }
.doc h2 { font-size: 22px; margin-top: 44px; letter-spacing: -.01em; }
.doc h2 + p, .doc p + p { margin-top: 12px; }
.doc p { color: var(--text-2); }
.doc ol, .doc ul { color: var(--text-2); padding-left: 1.3em; margin: 12px 0 0; }
.doc li + li { margin-top: 6px; }
.doc dl { margin: 12px 0 0; }
.doc dt { font-weight: 500; margin-top: 18px; }
.doc dd { margin: 6px 0 0; color: var(--text-2); }
.doc .back { display: inline-block; margin-bottom: 30px; color: var(--dim); text-decoration: none; font-size: 15px; }
.doc .back:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .readout .num .d.roll { animation: none; }
  .faq summary::after { transition: none; }
  .stage .cut { transition: none; }
}
