/* Repertoir landing — built from Figma "landing page 4".
   Every layout number is in design pixels. A .frame is the design canvas
   (desktop 1680×1068, tablet 1024 wide, mobile 390 wide) and is scaled to
   the viewport by main.js through --s / --fw / --fh / --fx / --fy. */

@font-face { font-family: "Geist"; font-weight: 300; font-display: swap; src: url(fonts/geist-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url(fonts/geist-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Darker Grotesque"; font-weight: 500; font-display: swap; src: url(fonts/darker-grotesque-latin-500-normal.woff2) format("woff2"); }

:root {
  --bg: #0f0f0f;
  --s: 1; --fw: 1680px; --fh: 1068px; --fx: 0px; --fy: 0px;
  --sans: "Geist", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: #fff; overflow: hidden; }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #00ee9b; outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--mono); font-weight: 400; }
.im { font-family: "Inter", system-ui, sans-serif; font-weight: 500; }
.ir { font-family: "Inter", system-ui, sans-serif; font-weight: 400; }
.gl { font-family: var(--sans); font-weight: 300; }

.frame {
  position: absolute; left: var(--fx); top: var(--fy);
  width: var(--fw); height: var(--fh);
  transform: scale(var(--s)); transform-origin: 0 0;
}

/* ---------------------------------------------------------------- track */
.track {
  position: fixed; inset: 0; display: flex;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior: contain;
  scrollbar-width: none; outline: none;
}
.track::-webkit-scrollbar { display: none; }
.panel {
  flex: 0 0 100vw; width: 100vw; height: 100%;
  position: relative; overflow: hidden;
  scroll-snap-align: start; scroll-snap-stop: always;
  background: var(--bg);
}

/* ---------------------------------------------------------------- grid */
.grid i { position: absolute; display: none; background: rgba(255, 255, 255, .07); }
.grid .gv { top: -3000px; bottom: -3000px; width: 1px; }
.grid .gh { left: -4000px; right: -4000px; height: 1px; }
.gl-d, .gl-t { position: absolute; display: none; font-size: 10px; letter-spacing: 1px; color: rgba(140, 140, 140, .45); line-height: normal; }

/* ---------------------------------------------------------------- copy */
.headline {
  position: absolute; left: 54px; top: 180px; margin: 0;
  font-family: var(--sans); font-weight: 300; font-size: 117.303px;
  line-height: .88; letter-spacing: -.05em; white-space: nowrap; color: #fff;
}
.sub {
  position: absolute; left: 980.99px; top: 176.38px; width: 313.911px; margin: 0;
  font-weight: 300; font-size: 22.673px; line-height: 1.18; letter-spacing: -.02em; color: #707070;
}
.label {
  position: absolute; left: 54px; top: 490px; margin: 0;
  font-size: 12px; letter-spacing: 1.2px; line-height: normal; color: #fff; white-space: nowrap;
}
.label .dim { color: #707070; }

/* ---------------------------------------------------------------- mockups */
.mock-wrap { position: absolute; left: 416.21px; top: 475.66px; width: 1212.898px; height: 511.791px; }
.mock {
  position: relative; width: 100%; height: 100%;
  background: #0e0e10; border-radius: 12px; overflow: hidden;
  box-shadow: 0 30.3px 80.8px rgba(0, 0, 0, .55);
}
.mock::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, .1); pointer-events: none;
}
.mock-hero { border-radius: 12.12px; background: #111; }
.mock-hero::after { border-width: 1.01px; }
.mock-hero picture { display: contents; }
.hero-shot { position: absolute; left: -3.87%; top: -39.51%; width: 107.59%; height: 161.37%; max-width: none; }
.hero-sheen {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(174.08deg, rgba(255, 255, 255, .05) 1.07%, rgba(255, 255, 255, 0) 30.32%),
    linear-gradient(123.74deg, rgba(255, 255, 255, .03) .98%, rgba(255, 255, 255, 0) 82.42%);
}
.a { position: absolute; white-space: nowrap; line-height: normal; }
.wrap { white-space: normal; }
.board { background: #d3d3d3; border-radius: 6px; overflow: hidden; }
.board .fill { position: absolute; inset: 0; width: 100%; height: 100%; }
.elo {
  display: flex; gap: 10px; align-items: center; font-size: 13px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  padding: 7px 12px; border-radius: 8px;
}
.elo i { font-style: normal; color: #8c8c8c; }
.elo b { font-weight: 500; color: #f2f2f2; }
.toast {
  display: flex; gap: 10px; align-items: center; font-size: 12px; color: #e6e6e6;
  background: #1a1a1c; border: 1px solid rgba(255, 255, 255, .1);
  padding: 10px 16px 10px 14px; border-radius: 10px;
}
.correct {
  display: flex; gap: 8px; align-items: center; font-family: "Inter", sans-serif; font-size: 13px;
  background: rgba(15, 20, 18, .92); border: 1px solid rgba(0, 238, 155, .6);
  padding: 8px 14px 8px 12px; border-radius: 20px; box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
.correct b { font-weight: 500; color: #00ee9b; }
.correct span { font-weight: 500; color: #f2f2f2; }
.correct i { font-style: normal; color: #00ee9b; font-size: 12px; }
.cta-light {
  display: flex; gap: 10px; align-items: center; font-size: 14px; color: #0f0f0f;
  background: #f2f2f2; padding: 13px 20px; border-radius: 8px; transition: background .2s;
}
.cta-light:hover { background: #fff; }

/* ---------------------------------------------------------------- header */
.hdr, .progress { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.progress { z-index: 25; }
.hdr a, .hdr button { pointer-events: auto; }
.brand { position: absolute; left: 0; top: 0; }
.mark { position: absolute; left: 54px; top: 40px; width: 51.132px; height: 51.132px; }
.word {
  position: absolute; left: 124.115px; top: 37px; white-space: nowrap;
  font-family: "Darker Grotesque", var(--sans); font-weight: 500;
  font-size: 37.208px; line-height: 1.3; letter-spacing: -.02em;
}
.nav {
  position: absolute; left: 518px; top: 61px; display: flex; gap: 40px;
  font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; line-height: normal;
}
.nav a { position: relative; color: #707070; transition: color .25s; }
.nav a:hover, .nav a.on { color: #fff; }
.nav .pill {
  position: absolute; left: -14px; top: -12px; width: 68px; height: 37px;
  border-radius: 5.975px; background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: left .35s cubic-bezier(.2, .8, .2, 1), width .35s cubic-bezier(.2, .8, .2, 1);
}
.signin {
  position: absolute; left: 1327.5px; top: 72.1px; font-size: 12px; letter-spacing: 1.2px;
  text-transform: uppercase; color: #707070; transition: color .25s; line-height: normal;
}
.signin:hover { color: #fff; }
.btn-trial {
  position: absolute; left: 1448px; top: 44px; width: 171px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16.593px; color: #fff; border-radius: 5.975px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: background .25s;
}
.btn-trial:hover { background: rgba(255, 255, 255, .12); }
.btn-trial .short { display: none; }
.menu-btn {
  position: absolute; display: none; padding: 0; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); border-radius: 6px;
}
.menu-btn i {
  position: absolute; left: 50%; width: 16px; height: 1.5px; margin-left: -8px;
  background: #fff; border-radius: 1px; transition: transform .3s, top .3s;
}
.menu-btn i:first-child { top: calc(50% - 4px); }
.menu-btn i:last-child { top: calc(50% + 3px); }
.menu-btn[aria-expanded="true"] i:first-child { top: calc(50% - .75px); transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { top: calc(50% - .75px); transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 28; background: rgba(15, 15, 15, .97);
  display: flex; flex-direction: column; justify-content: center; gap: 48px; padding: 96px 28px 48px;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 14px; }
.menu nav a { font-weight: 300; font-size: 40px; letter-spacing: -.04em; line-height: 1.1; }
.menu-cta { align-self: flex-start; background: #f2f2f2; color: #0f0f0f; font-family: "Inter", sans-serif; font-weight: 500; font-size: 15px; padding: 14px 22px; border-radius: 8px; }

/* ---------------------------------------------------------------- progress */
.segs { position: absolute; left: 47.27px; top: 759.7px; display: flex; flex-direction: column; gap: 9.07px; }
.segs i { display: block; width: 4px; height: 28px; border-radius: 2px; background: #3a3a3a; transition: height .45s cubic-bezier(.2, .8, .2, 1), width .45s cubic-bezier(.2, .8, .2, 1), background .3s; }
.segs i.on { height: 74.95px; background: #fff; }
.swipe { position: absolute; display: none; font-size: 10px; letter-spacing: .6px; color: #6b6b6b; }

/* ================================================================ desktop */
[data-mode="desktop"] .grid .d, [data-mode="desktop"] .gl-d { display: block; }

/* ================================================================ tablet */
[data-mode="tablet"] .grid .t, [data-mode="tablet"] .gl-t { display: block; }
[data-mode="tablet"] .mark { left: 40px; top: 57px; width: 50px; height: 50px; }
[data-mode="tablet"] .word { left: 106px; top: 56px; font-size: 36px; }
[data-mode="tablet"] .nav, [data-mode="tablet"] .signin { display: none; }
[data-mode="tablet"] .btn-trial { left: 782px; top: 58px; width: 138px; height: 44px; font-size: 15px; }
[data-mode="tablet"] .menu-btn { display: block; left: 934px; top: 58px; width: 48px; height: 44px; }
[data-mode="tablet"] .headline { left: 40px; top: 188px; font-size: 94px; }
[data-mode="tablet"] .sub { left: 40px; top: 403px; width: 470px; font-size: 20px; line-height: 1.25; }
[data-mode="tablet"] .label { left: 552px; top: 405px; }
[data-mode="tablet"] .mock-wrap { left: 40px; top: auto; bottom: 118px; }
[data-mode="tablet"] .segs { left: 40px; top: auto; bottom: 53px; flex-direction: row; gap: 6px; }
[data-mode="tablet"] .segs i { width: 17px; height: 3px; }
[data-mode="tablet"] .segs i.on { width: 48px; height: 3px; }

/* ================================================================ mobile */
[data-mode="mobile"] .mark { left: 16px; top: 30px; width: 31px; height: 31px; }
[data-mode="mobile"] .word { left: 52px; top: 32px; font-size: 21px; }
[data-mode="mobile"] .nav, [data-mode="mobile"] .signin { display: none; }
[data-mode="mobile"] .btn-trial { left: 251px; top: 27px; width: 77px; height: 36px; font-size: 13px; }
[data-mode="mobile"] .btn-trial .full { display: none; }
[data-mode="mobile"] .btn-trial .short { display: inline; }
[data-mode="mobile"] .menu-btn { display: block; left: 334px; top: 27px; width: 40px; height: 36px; }
[data-mode="mobile"] .copy { position: absolute; left: 16px; top: 116px; width: 358px; }
[data-mode="mobile"] .headline, [data-mode="mobile"] .sub, [data-mode="mobile"] .label { position: static; }
[data-mode="mobile"] .headline { font-size: 48px; }
[data-mode="mobile"] .sub { width: 335px; margin-top: 24px; font-size: 15px; line-height: 1.33; color: #8c8c8c; letter-spacing: -.01em; }
[data-mode="mobile"] .label { margin-top: 18px; font-size: 10px; letter-spacing: 1px; line-height: 1.25; }
[data-mode="mobile"] .mock-wrap { left: 16px; top: auto; bottom: 90px; transform: scale(var(--ms, .555)); transform-origin: 0 100%; }
[data-mode="mobile"] .segs { left: 50%; transform: translateX(-50%); top: auto; bottom: 31px; flex-direction: row; gap: 5px; }
[data-mode="mobile"] .segs i { width: 9px; height: 3px; }
[data-mode="mobile"] .segs i.on { width: 28px; height: 3px; }
[data-mode="mobile"] .swipe { display: block; right: 18px; bottom: 28px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
