/* Rennur site. Colors from shared/design-tokens.json (dark theme: the app lives on black OLED). */
@font-face {
  font-family: "Roboto Flex";
  src: url("/fonts/roboto-flex.woff2") format("woff2");
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #000;
  --surface: #12161b;
  --line: #222a33;
  --text: #f4f8fb;
  --text-2: #9dabb9;
  --text-3: #6c7a89;
  --accent: #9be3ff;
  --on-accent: #04202e;
  --ok: #5ee3a1;
  --warning: #ffc145;
  --warmup: #6ccfc0;
  --work: #ff6a33;
  --recovery: #5e7083;
  --cooldown: #3f9fb0;
  --f-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-num: "Roboto Flex", Roboto, system-ui, sans-serif;
  --gutter: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--f-body);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration-color: #ffffff55; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }

.wrap { max-width: 1140px; margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  font: 600 13px/1.2 var(--f-num);
  font-variation-settings: "wdth" 80;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--text-3);
}

/* The workout ring unrolled into a bar; the dot is how far down the page you are */
.track {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  display: flex;
  gap: 2px;
  z-index: 10;
  background: var(--bg);
}
.track i { display: block; height: 100%; }
.track .wu { flex: 2000; background: var(--warmup); }
.track .wk { flex: 800; background: var(--work); }
.track .rc { flex: 333; background: var(--recovery); }
.track .cd { flex: 1500; background: var(--cooldown); }
.track b {
  position: absolute;
  top: -4px;
  left: 0;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #000;
  transform: translateX(var(--p, 0px));
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 32px 48px;
  align-items: center;
  padding-block: 72px 56px;
}
.mark { display: flex; align-items: center; gap: 16px; }
.logo { width: 68px; height: 68px; flex: none; }
.spin { animation: spin 1.6s cubic-bezier(.65, 0, .25, 1) .25s both; }
@keyframes spin { from { transform: rotate(-360deg); } to { transform: rotate(0deg); } }

.word {
  margin: 18px 0 0 -0.04em;
  font-family: var(--f-num);
  font-weight: 250;
  font-variation-settings: "wdth" 25;
  font-size: clamp(84px, 10.6vw, 152px);
  line-height: .86;
  letter-spacing: -0.005em;
  white-space: nowrap;
  user-select: none;
}
.word span { display: inline-block; position: relative; transition: color .5s; will-change: transform; }
.word span.moving { color: var(--accent); }

.lede {
  margin-top: 28px;
  max-width: 31ch;
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.42;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.lede em { font-style: normal; color: var(--text-2); }

.get { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 36px; }
.play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font: 650 17px/1.1 var(--f-body);
}
.play svg { width: 20px; height: 20px; flex: none; }
.play small {
  display: block;
  font: 600 11px/1.2 var(--f-num);
  font-variation-settings: "wdth" 80;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  opacity: .7;
}
.play[aria-disabled="true"] { cursor: default; }
.fine { color: var(--text-2); font-size: 15px; line-height: 1.5; }

/* ---------- Devices ---------- */
.devices {
  position: relative;
  container-type: inline-size;
  width: 100%;
  max-width: 560px;
  justify-self: end;
  aspect-ratio: 1000 / 1050;
}
.phone {
  position: absolute;
  left: 47cqw;
  top: 1.5cqw;
  width: 45cqw;
  padding: 1.4cqw;
  border-radius: 7.6cqw;
  background: #191d22;
  box-shadow: 0 0 0 1px #323a44, 0 30px 60px -20px #000;
  transform: rotate(3deg);
}
.phone img { width: 100%; height: auto; border-radius: 6.4cqw; }
.watch {
  position: absolute;
  left: 4cqw;
  top: 51cqw;
  width: 43cqw;
  aspect-ratio: 1;
  transform: rotate(-6deg);
  z-index: 2;
}
.watch .case {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #000;
  box-shadow:
    0 0 0 1.3cqw #222830,
    0 0 0 1.5cqw #4a535e,
    0 2cqw 5cqw -1cqw #000,
    0 0 0 3.5cqw #000;
  overflow: hidden;
}
.watch img, .dial img { width: 100%; height: 100%; }
.watch .crown {
  position: absolute;
  right: -3.2cqw;
  top: 44%;
  width: 2.4cqw;
  height: 6cqw;
  border-radius: 1.2cqw;
  background: linear-gradient(90deg, #3a424c, #222830);
}
.notes { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.notes svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.notes line { stroke: var(--text-2); stroke-width: 2.4; stroke-linecap: round; }
.notes circle { fill: #fff; stroke: #000; stroke-width: 3; }
.note {
  position: absolute;
  width: 40cqw;
  font: 500 13px/1.35 var(--f-body);
  color: var(--text-2);
}
.note b { color: var(--text); font-weight: 600; }

/* ---------- On the wrist ---------- */
.wrist { padding-block: 40px 88px; }
.wrist-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 28px; }
.wrist figure { margin: 0; display: grid; gap: 22px; justify-items: start; }
.dial {
  width: min(100%, 240px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 7px #222830, 0 0 0 8px #4a535e;
  margin: 8px;
}
.wrist figcaption { color: var(--text-2); font-size: 16px; max-width: 30ch; }
.wrist figcaption b { color: var(--text); font-weight: 600; }

/* ---------- Features as a workout ---------- */
.inside { padding-block: 72px 24px; border-top: 1px solid var(--line); }
.inside-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 40px; }
.inside-head h2, .end h2 {
  font-family: var(--f-num);
  font-variation-settings: "wdth" 70;
  font-weight: 560;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.inside-head p { color: var(--text-3); font-size: 15px; }

.steps { display: grid; gap: 10px; max-width: 900px; }
.step {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 32px;
}
.block {
  border-radius: 14px;
  padding: 12px 12px 12px 14px;
  font: 650 14px/1.25 var(--f-body);
  color: #000;
  min-height: 100%;
}
.block span { display: block; font-weight: 450; font-feature-settings: "tnum"; }
.block.wu { background: var(--warmup); }
.block.wk { background: var(--work); }
.block.rc { background: var(--recovery); color: #fff; }
.block.cd { background: var(--cooldown); }
.copy { padding-block: 18px 30px; }
.copy h3 {
  font-family: var(--f-num);
  font-variation-settings: "wdth" 84;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.copy p { margin-top: 8px; color: var(--text-2); max-width: 60ch; text-wrap: pretty; }
.copy p strong { color: var(--text); font-weight: 550; }
.ok { color: var(--ok); }
.caps { font: 650 .82em/1 var(--f-num); letter-spacing: 1.2px; color: var(--warning); }

.repeat {
  position: relative;
  display: grid;
  gap: 10px;
  padding-block: 12px;
}
.repeat::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  bottom: 0;
  width: calc(132px + 28px);
  border: 1px solid #353d47;
  border-radius: 20px;
  pointer-events: none;
}
.repeat .times {
  position: absolute;
  left: -26px;
  top: -12px;
  padding: 3px 8px;
  border-radius: 8px;
  background: #1c232b;
  font: 700 14px/1.2 var(--f-num);
  font-feature-settings: "tnum";
}

/* ---------- End ---------- */
.end { padding-block: 88px 96px; border-top: 1px solid var(--line); margin-top: 64px; }
.end-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: end; justify-items: start; }
.end h2 { font-size: clamp(44px, 7vw, 92px); font-weight: 300; font-variation-settings: "wdth" 56; line-height: .92; }
.end p { margin-top: 18px; color: var(--text-2); max-width: 46ch; }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
footer .grow { flex: 1; }
footer a { color: var(--text-2); }

/* ---------- Text pages (privacy, 404) ---------- */
.page-head { display: flex; align-items: center; gap: 12px; padding-block: 40px 8px; }
.page-head a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.page-head img { width: 36px; height: 36px; }
.page-head span { font: 300 30px/1 var(--f-num); font-variation-settings: "wdth" 52; letter-spacing: .02em; }
.doc { max-width: 720px; padding-block: 32px 80px; }
.doc h1 {
  font-family: var(--f-num);
  font-variation-settings: "wdth" 70;
  font-weight: 560;
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1;
}
.doc .date { margin-top: 12px; color: var(--text-3); font-size: 15px; }
.doc h2 { margin-top: 44px; font: 600 21px/1.25 var(--f-body); letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--text-2); }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.doc strong { color: var(--text); font-weight: 600; }
.short {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--surface);
  border-left: 4px solid var(--accent);
}
.short p { margin: 0; color: var(--text); }
.perm { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.perm div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 18px; padding: 12px 16px; }
.perm div + div { border-top: 1px solid var(--line); }
.perm dt { font-weight: 600; color: var(--text); }
.perm dd { margin: 0; color: var(--text-2); }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 56px 32px; }
  .devices { justify-self: center; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .logo { width: 52px; height: 52px; }
  .word { font-size: 27vw; }
  .note { display: none; }
  .notes { display: none; }
  .step { grid-template-columns: 76px minmax(0, 1fr); gap: 18px; }
  .block { font-size: 12px; padding: 10px 8px 10px 10px; border-radius: 12px; }
  .repeat::before { left: -8px; width: calc(76px + 16px); }
  .repeat .times { left: -12px; }
  .copy { padding-block: 10px 22px; }
  .copy h3 { font-size: 22px; }
  .end-grid { grid-template-columns: minmax(0, 1fr); }
  .wrist { padding-block: 24px 64px; }
  .wrist-row { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .wrist figure { grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 20px; }
  .dial { width: 112px; box-shadow: 0 0 0 5px #222830, 0 0 0 6px #4a535e; }
  .perm div { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .spin { animation: none; }
  .word span { transition: none; }
}
