/* RepLock: same palette and type as the app. Dark only, like the app. */
@font-face { font-family: "Big Shoulders"; src: url("assets/fonts/big-shoulders-display-900.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url("assets/fonts/schibsted-grotesk-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url("assets/fonts/schibsted-grotesk-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Schibsted"; src: url("assets/fonts/schibsted-grotesk-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --ink: #0A0A0B;
  --panel: #141416;
  --line: #232326;
  --volt: #D7FF1F;
  --ember: #FF5C1A;
  --bone: #F4F1EA;
  --muted: #8A8A8F;
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Big Shoulders", "Impact", "Arial Narrow", sans-serif;
  --text: "Schibsted", ui-sans-serif, system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font: 500 clamp(16px, 1.1vw, 18px)/1.55 var(--text);
  overflow-x: hidden;
}
/* Film grain over everything, like the app's backdrop */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .86; letter-spacing: -.005em; margin: 0; }
h2 { font-size: clamp(48px, 7.5vw, 112px); }
h3 { font-size: clamp(30px, 3vw, 42px); }
p { margin: 0 0 1em; max-width: 58ch; }
strong { color: var(--bone); font-weight: 800; }
.volt { color: var(--volt); }
.ember { color: var(--ember) !important; }
.mono { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--volt); color: var(--ink); padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }

.kicker {
  font: 800 12px/1 var(--text); letter-spacing: .18em; text-transform: uppercase;
  color: var(--volt); margin: 0 0 18px;
}

/* Buttons: same shape as the app's volt button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 30px; border-radius: 16px;
  background: var(--volt); color: var(--ink); text-decoration: none;
  font: 900 24px/1 var(--display); text-transform: uppercase; letter-spacing: .01em;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 19px; border-radius: 12px; }
.link { color: var(--bone); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--line); padding-bottom: 2px; }
.link:hover { border-color: var(--volt); }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  background: linear-gradient(var(--ink), rgba(10,10,11,.0));
  transition: background .3s;
}
.nav.solid { background: rgba(10,10,11,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font: 800 14px/1 var(--text); letter-spacing: .2em; text-transform: uppercase; }
.brand svg { width: 22px; height: 22px; color: var(--volt); }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted); }
.nav nav a:hover { color: var(--bone); }

/* HERO */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end;
  padding: 120px var(--gutter) clamp(40px, 7vh, 80px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,11,.92) 0%, rgba(10,10,11,.55) 45%, rgba(10,10,11,.1) 75%),
    linear-gradient(0deg, var(--ink) 0%, transparent 35%);
}
.hero-copy { max-width: 760px; position: relative; }
.hero h1 { font-size: clamp(88px, 15vw, 230px); line-height: .8; }
.hero h1 span { display: block; opacity: 0; transform: translateY(40px); animation: rise .8s cubic-bezier(.2,.8,.2,1) forwards; }
.hero h1 span:nth-child(2) { animation-delay: .08s; }
.hero h1 span:nth-child(3) { animation-delay: .16s; }
.lede { font-size: clamp(18px, 1.5vw, 22px); color: rgba(244,241,234,.8); margin: 28px 0 32px; max-width: 34ch; opacity: 0; animation: fade .7s .45s forwards; }
.hero .kicker { opacity: 0; animation: fade .6s .1s forwards; }
.beta-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); opacity: 0; animation: fade .7s .7s forwards; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; opacity: 0; animation: fade .7s .6s forwards; }
.hero-phone { justify-self: end; width: min(300px, 100%); transform: rotate(4deg) translateY(30px); opacity: 0; animation: phone-in 1s .5s cubic-bezier(.2,.8,.2,1) forwards; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes phone-in { to { opacity: 1; transform: rotate(4deg) translateY(0); } }

/* Phone frame: titanium-dark rim around a real screenshot */
.phone {
  margin: 0; border-radius: 44px; padding: 9px;
  background: linear-gradient(145deg, #2a2a2e, #0e0e10 40%, #1c1c20);
  box-shadow: 0 0 0 1px #34343a, 0 40px 80px -20px rgba(0,0,0,.8), 0 0 60px -20px rgba(215,255,31,.25);
}
.phone img { border-radius: 36px; width: 100%; height: auto; }

/* Live workout screen: camera frame + the app's HUD, sized off the screen width like the app */
.phone.live .screen {
  position: relative; aspect-ratio: 1206 / 2622; border-radius: 36px; overflow: hidden;
  container-type: inline-size; background: #000;
}
.phone.live .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hud { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 14cqw 5cqw 7cqw;
  background: linear-gradient(rgba(0,0,0,.5), transparent 25%, transparent 45%, rgba(0,0,0,.85)); }
.hud .segs { display: flex; gap: 1.5cqw; width: 64%; }
.hud .segs i { flex: 1; height: 1cqw; border-radius: 1cqw; background: #2f2f33; }
.hud .segs i.on { background: var(--volt); }
.hud .pill { margin-top: 5cqw; display: flex; align-items: center; gap: 2cqw; padding: 2.4cqw 4cqw; border-radius: 99px;
  background: rgba(30,30,32,.7); backdrop-filter: blur(8px); font: 700 3.8cqw/1 var(--text); color: var(--bone); }
.hud .pill b { width: 2cqw; height: 2cqw; border-radius: 50%; background: var(--volt); }
.hud .count { margin-top: auto; display: grid; grid-template-columns: auto auto; align-items: end; justify-content: center; column-gap: 1cqw; text-align: center; }
.hud .count small { grid-column: 1 / -1; font: 900 7.5cqw/1 var(--display); text-transform: uppercase; color: rgba(244,241,234,.8); margin-bottom: -2cqw; }
.hud .count span { font: 900 50cqw/.85 var(--display); color: var(--bone); text-shadow: 0 0 5cqw rgba(0,0,0,.5); transition: transform .15s; display: inline-block; }
.hud .count span.bump { transform: scale(1.12); }
.hud .count span.done { color: var(--volt); }
.hud .count em { font: 900 11cqw/1 var(--display); font-style: normal; color: rgba(244,241,234,.45); padding-bottom: 3cqw; }
.hud .bar { width: 82%; height: 1.3cqw; border-radius: 1cqw; background: #2f2f33; margin-top: 4cqw; overflow: hidden; }
.hud .bar i { display: block; height: 100%; background: var(--volt); border-radius: inherit; transition: width .3s; }

/* TICKER: hazard tape */
.ticker {
  background: var(--volt); color: var(--ink); overflow: hidden;
  border-block: 6px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--ink) 0 10px, var(--volt) 10px 20px) 6;
  transform: rotate(-1.2deg); margin: 10px -20px 0;
}
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 16px 0; animation: ticker 40s linear infinite; }
.ticker span { font: 900 clamp(28px, 3vw, 40px)/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.ticker i { width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* PROBLEM */
.problem {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(90px, 12vw, 170px) var(--gutter);
}
.problem-img { margin: 0; position: relative; }
.problem-img img { border-radius: 4px; filter: saturate(.85); }
.problem-img figcaption {
  position: absolute; left: 20px; bottom: 18px; right: 20px;
  font-weight: 700; color: rgba(244,241,234,.85); font-size: 15px;
}
.problem-img .mono { font: 900 30px/1 var(--display); color: var(--volt); margin-right: 10px; vertical-align: -3px; }
.problem-copy h2 { font-size: clamp(46px, 5.4vw, 84px); margin-bottom: 28px; }
.problem-copy s { text-decoration-color: var(--ember); text-decoration-thickness: .12em; color: var(--muted); }
.problem-copy p { color: rgba(244,241,234,.75); font-size: clamp(17px, 1.3vw, 20px); }

/* HOW */
.section-head { padding: 0 var(--gutter); margin-bottom: clamp(40px, 6vw, 80px); }
.how { padding-bottom: clamp(80px, 10vw, 140px); }
.steps { list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.step { position: relative; display: flex; flex-direction: column; border-top: 2px solid var(--line); padding-top: 22px; }
.step:nth-child(2) { margin-top: clamp(0px, 6vw, 90px); }
.step:nth-child(3) { margin-top: clamp(0px, 12vw, 180px); }
.step-num { font: 900 clamp(64px, 7vw, 110px)/.8 var(--display); color: transparent; -webkit-text-stroke: 2px var(--volt); margin-bottom: 18px; }
.step h3 { margin-bottom: 12px; }
.step p { color: rgba(244,241,234,.72); min-height: 5.5em; }
.step .phone { margin-top: 16px; width: min(280px, 90%); }

/* COUNTER */
.counter {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 90px);
  padding: clamp(80px, 10vw, 140px) var(--gutter);
  background: var(--panel); border-block: 1px solid var(--line);
}
.counter-img { margin: 0; position: sticky; top: 90px; align-self: start; }
.counter-img img { border-radius: 4px; }
.counter-copy h2 { margin-bottom: 28px; }
.counter-copy > p { color: rgba(244,241,234,.78); font-size: clamp(17px, 1.3vw, 20px); }
.private { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--ink); }
.private svg { width: 22px; height: 22px; flex: none; color: var(--volt); margin-top: 2px; }
.moves { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 15px; }
.moves th, .moves td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.moves thead th { font: 800 11px/1 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; }
.moves tbody th { font: 900 22px/1.1 var(--display); text-transform: uppercase; width: 38%; padding-right: 16px; }
.moves td { color: rgba(244,241,234,.72); }

/* STREAK */
.streak {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 100px); align-items: center;
  padding: clamp(90px, 12vw, 170px) var(--gutter);
  background: radial-gradient(60% 70% at 15% 40%, rgba(255,92,26,.14), transparent 70%);
}
.streak .streak-num { font: 900 clamp(160px, 24vw, 360px)/.78 var(--display); margin: 0 0 18px; color: var(--bone); display: flex; align-items: flex-end; gap: .08em; }
.streak-num::after {
  content: ""; width: .32em; height: .42em; margin-bottom: .1em;
  background: linear-gradient(to top, var(--ember), #FFB833);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 0c1 6 8 9 8 18a8 8 0 0 1-16 0c0-4 2-7 4-9 0 3 1 5 3 6-1-6 1-11 1-15z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 0c1 6 8 9 8 18a8 8 0 0 1-16 0c0-4 2-7 4-9 0 3 1 5 3 6-1-6 1-11 1-15z'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 0 30px rgba(255,92,26,.6));
}
.streak h2 { margin-bottom: 24px; }
.streak p { color: rgba(244,241,234,.75); font-size: clamp(17px, 1.3vw, 20px); }
.streak .small { font-size: 15px; color: var(--muted); }
.streak-phone { width: min(320px, 80vw); transform: rotate(-3deg); }

/* RULES: volt slab with hazard edge, the app's "unlocked" color */
.rules { background: var(--volt); color: var(--ink); position: relative; }
.rules::before { content: ""; position: absolute; inset: 0 0 auto; height: 14px; background: repeating-linear-gradient(-45deg, var(--ink) 0 12px, var(--volt) 12px 24px); }
.rules-inner { padding: clamp(80px, 9vw, 130px) var(--gutter); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); }
.rules h2 { font-size: clamp(56px, 8vw, 128px); }
.rules dl { margin: 0; display: grid; gap: 0; }
.rules dl div { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 20px 0; border-top: 2px solid rgba(10,10,11,.85); }
.rules dt { font: 900 26px/1 var(--display); text-transform: uppercase; }
.rules dd { margin: 0; font-weight: 700; color: rgba(10,10,11,.8); }

/* FAQ */
.faq { padding: clamp(90px, 11vw, 160px) var(--gutter); display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq .section-head { padding: 0; margin: 0; position: sticky; top: 100px; }
.faq-list { max-width: 820px; }
.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: 24px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  font: 900 clamp(28px, 3vw, 40px)/1 var(--display); text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 28px/1 var(--text); color: var(--volt); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: rgba(244,241,234,.75); padding-bottom: 24px; margin: 0; }

/* FINAL */
.final { position: relative; min-height: 80vh; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 80px var(--gutter); }
.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: brightness(.45); }
.final h2 { font-size: clamp(72px, 12vw, 190px); margin-bottom: 40px; }

/* FOOTER */
.foot { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding: 28px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot a { color: var(--bone); }
.foot-note { margin-left: auto; }

/* Scroll reveals (JS adds .in) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; align-items: end; }
  .hero-phone { display: none; }
  .hero-shade { background: linear-gradient(0deg, var(--ink) 10%, rgba(10,10,11,.55) 60%, rgba(10,10,11,.35)); }
  .problem, .counter, .streak, .rules-inner, .faq { grid-template-columns: 1fr; }
  .faq .section-head { position: static; }
  .counter-img { position: static; }
  .steps { grid-template-columns: 1fr; gap: 64px; }
  .step:nth-child(n) { margin-top: 0; }
  .step p { min-height: 0; }
  .streak-phone { justify-self: center; }
  .rules dl div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  .nav nav { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .hero { padding-top: 100px; }
  .btn { width: 100%; }
  .nav .btn-sm { width: auto; }
  .hero-cta .link { align-self: center; }
  .hero-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .moves tbody th { width: 42%; font-size: 19px; }
  .foot-note { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track { animation: none; }
  .hero-video { display: none; }
  .hero-media { background: url("assets/img/hero-poster.jpg") 60% 50%/cover; }
}
