/* JSF site. Colours are the app's dark tokens (src/theme/tokens.js in the app repo): keep them in step.
   Mobile first; no web fonts (the system font, like the app). */

:root {
  --bg: #0a0a0b;
  --surface: #17181a;
  --surface-muted: #222326;
  --border: #2c2d30;
  --fg: #f5f5f5;
  --fg-muted: #9a9b9f;
  --primary: #cdf545;
  --primary-soft: #283110;
  --on-primary: #0a0a0b;
  --danger: #ff6b6b;
  --push: #ffa552;
  --pull: #7b88ff;
  --legs: #7ed957;
  --core: #b98bff;

  --radius: 28px;
  --gutter: 20px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.6rem, 11vw, 4.6rem);
}

h2 {
  font-size: clamp(2rem, 7.5vw, 3.1rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.center {
  text-align: center;
}

.lime {
  color: var(--primary);
}

.lead {
  color: var(--fg-muted);
  font-size: 1.1rem;
  margin-top: 16px;
  max-width: 34rem;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--primary);
  color: var(--on-primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.skip:focus {
  left: 8px;
}

/* Buttons: the app's lime "start" pill. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 700;
}

.text-link svg {
  width: 18px;
  height: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.chip svg {
  width: 18px;
  height: 18px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: env(safe-area-inset-top);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand img {
  height: 30px;
  width: auto;
}

.nav {
  display: none;
  gap: 28px;
  margin-left: 24px;
  color: var(--fg-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--fg);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg-muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.lang svg {
  width: 16px;
  height: 16px;
}

/* Hero */
.hero {
  position: relative;
  padding: 44px 0 24px;
  overflow: hidden;
}

.glow {
  position: absolute;
  inset: auto -20% -10% -20%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(205, 245, 69, 0.22), rgba(205, 245, 69, 0) 70%);
  pointer-events: none;
}

.glow.is-low {
  inset: 10% -30% auto -30%;
  height: 90%;
}

.hero-row {
  position: relative;
  display: grid;
  gap: 48px;
}

.hero-text h1 {
  margin-top: 4px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}

.play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 22px 0 16px;
  border-radius: 16px;
  background: #000;
  border: 1px solid #3a3b3f;
  transition: border-color 0.15s ease;
}

a:hover > .play {
  border-color: var(--primary);
}

.play-icon svg {
  width: 26px;
  height: 26px;
}

.play-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.play-text small {
  font-size: 0.7rem;
  color: var(--fg-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.play-text strong {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  color: var(--fg-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
}

.hero-phones .phone.is-back {
  display: none;
}

/* Features */
.feature {
  padding: 72px 0;
}

.feature-row {
  display: grid;
  gap: 44px;
  align-items: center;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.points {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
}

.points svg {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 5px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

/* How it works */
.how {
  padding: 72px 0;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  gap: 14px;
}

.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.step p {
  color: var(--fg-muted);
  margin-top: 8px;
}

/* Privacy band */
.privacy-band {
  padding: 40px 0;
}

.band {
  background: var(--surface);
  border: 1.5px solid var(--primary);
  border-radius: 32px;
  padding: 36px 26px;
}

.band .text-link {
  margin-top: 20px;
}

.band-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 20px;
}

.band-icon svg {
  width: 26px;
  height: 26px;
}

/* Download */
.download {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
}

.download-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.download-box .lead {
  margin-left: auto;
  margin-right: auto;
}

.download-mark {
  height: 84px;
  width: auto;
  margin-bottom: 24px;
}

.download-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 calc(36px + env(safe-area-inset-bottom));
}

.footer-row {
  display: grid;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--fg-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-note {
  color: var(--fg-muted);
  font-size: 0.85rem;
}

/* Legal pages */
.legal {
  max-width: 760px;
  padding-top: 56px;
  padding-bottom: 80px;
}

.legal h1 {
  font-size: clamp(2.2rem, 9vw, 3.2rem);
}

.legal-date {
  color: var(--fg-muted);
  margin-top: 10px;
  font-weight: 600;
}

.legal section {
  margin-top: 36px;
}

.legal h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.legal p,
.legal li {
  color: #d4d5d8;
}

.legal p + p,
.legal ul + p,
.legal p + ul {
  margin-top: 10px;
}

.legal ul {
  padding-left: 20px;
  margin: 0;
  display: grid;
  gap: 8px;
}

.legal a {
  color: var(--primary);
  font-weight: 700;
}

.legal.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-height: 50vh;
  justify-content: center;
}

.legal.center .lead {
  margin: 0;
}

/* ------------------------------------------------------------------ */
/* Phone mockups. `.screen` font-size follows the phone width (cqw), every size below is in em, so the
   whole screen scales like a screenshot. Values mirror the app's NativeWind classes. */

.phone {
  --w: min(300px, 78vw);
  width: var(--w);
  aspect-ratio: 9 / 19.5;
  flex: none;
  container-type: inline-size;
  border-radius: calc(var(--w) * 0.155);
  padding: calc(var(--w) * 0.032);
  background: #050506;
  box-shadow:
    0 0 0 1.5px #3a3b3f,
    0 0 0 5px #121315,
    0 40px 80px -24px rgba(0, 0, 0, 0.9),
    0 0 110px -30px rgba(205, 245, 69, 0.35);
  position: relative;
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.125);
  background: var(--bg);
  font-size: 4.3cqw;
  line-height: 1.3;
  color: var(--fg);
  letter-spacing: -0.005em;
}

.island {
  position: absolute;
  z-index: 3;
  top: 0.75em;
  left: 50%;
  transform: translateX(-50%);
  width: 7.4em;
  height: 2.1em;
  border-radius: 999px;
  background: #000;
}

.m-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15em 1.9em 0;
  height: 3.4em;
  font-weight: 700;
  font-size: 0.95em;
}

.m-status-icons {
  display: flex;
  gap: 0.4em;
  align-items: center;
}

.m-status svg {
  height: 0.75em;
  width: auto;
  fill: currentColor;
}

.m-body {
  padding: 0.4em 1.15em 0;
  display: grid;
  gap: 0.85em;
}

.m-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.m-grow {
  flex: 1;
  min-width: 0;
}

.m-header {
  padding: 0.3em 0.2em 0.2em;
}

.m-title {
  font-size: 1.85em;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.m-subtitle {
  color: var(--fg-muted);
  font-size: 0.8em;
  font-weight: 500;
}

.m-card {
  background: var(--surface);
  border-radius: 1.5em;
  padding: 1.15em;
}

.m-card-tight {
  padding: 0.8em;
}

.m-card-today {
  box-shadow: inset 0 0 0 1.5px var(--primary);
}

.m-label {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.m-label.is-primary {
  color: var(--primary);
}

.m-pad {
  padding: 0.15em 0.4em 0.6em;
}

.m-hero-title {
  font-size: 2.3em;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-top: 0.15em;
}

.m-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  margin-top: 0.85em;
  padding: 0.85em;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
}

.m-button svg {
  width: 1.1em;
  height: 1.1em;
}

.m-link {
  text-align: center;
  font-size: 0.8em;
  font-weight: 700;
  color: var(--fg-muted);
  margin-top: 0.7em;
}

.m-link.is-primary {
  color: var(--primary);
  margin-top: -0.2em;
}

.m-week {
  display: flex;
}

.m-day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25em;
}

.m-day-letter {
  font-size: 0.7em;
  font-weight: 700;
  color: var(--fg-muted);
}

.m-day-num {
  width: 2.1em;
  height: 2.1em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95em;
}

.m-day-num.is-today {
  background: var(--primary);
  color: var(--on-primary);
}

.m-day-num.is-future {
  color: var(--fg-muted);
}

.m-mark {
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
}

.m-mark-trained {
  background: var(--fg);
}

.m-mark-planned {
  box-shadow: inset 0 0 0 1.5px var(--fg-muted);
}

.m-mark-missed {
  background: var(--danger);
}

.m-seg {
  display: flex;
  background: var(--surface-muted);
  border-radius: 999px;
  padding: 0.2em;
  font-size: 0.72em;
  font-weight: 700;
  color: var(--fg-muted);
}

.m-seg span {
  padding: 0.35em 0.8em;
  border-radius: 999px;
  white-space: nowrap;
}

.m-seg .is-on {
  background: var(--primary);
  color: var(--on-primary);
}

.m-seg.is-wide span {
  flex: 1;
  text-align: center;
  padding: 0.55em 0.2em;
}

.m-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55em;
}

.m-tiles.is-loose {
  gap: 0.6em;
}

.m-tile {
  background: var(--surface-muted);
  border-radius: 1.1em;
  padding: 0.75em 0.8em;
}

.m-tiles.is-loose .m-tile {
  background: var(--surface);
}

.m-tile .m-label {
  font-size: 0.62em;
}

.m-big {
  font-size: 1.8em;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.m-big small {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--fg-muted);
  margin-left: 0.25em;
  letter-spacing: 0;
}

.m-note {
  font-size: 0.65em;
  font-weight: 600;
  color: var(--fg-muted);
}

.m-note.is-up {
  color: var(--primary);
}

.m-tabbar {
  position: absolute;
  left: 1em;
  right: 1em;
  bottom: 1.4em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45em 0.6em;
  border-radius: 999px;
  background: rgba(23, 24, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(245, 245, 245, 0.1), 0 -1.5em 2em 0.5em var(--bg);
}

.m-tab {
  width: 2.6em;
  height: 2.6em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--fg-muted);
}

.m-tab.is-active {
  background: rgba(205, 245, 69, 0.2);
  color: var(--primary);
}

.m-tab svg {
  width: 1.3em;
  height: 1.3em;
}

.m-tab-add {
  width: 3.1em;
  height: 3.1em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
}

.m-tab-add svg {
  width: 1.6em;
  height: 1.6em;
}

/* Workout screen */
.m-workout-head {
  justify-content: space-between;
  padding: 0.1em 0 0.2em;
}

.m-center {
  text-align: center;
}

.m-clock {
  font-size: 1.6em;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.m-circle {
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  flex: none;
}

.m-circle svg {
  width: 1.15em;
  height: 1.15em;
}

.m-circle.is-small {
  width: 2.1em;
  height: 2.1em;
  background: var(--surface-muted);
  color: var(--fg-muted);
}

.m-circle.is-small svg {
  width: 1em;
  height: 1em;
}

.m-pill {
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  font-size: 0.85em;
  padding: 0.6em 1.1em;
  border-radius: 999px;
}

.m-ex {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.75em;
}

.m-ex-open {
  padding: 0.75em 0.65em 0.5em;
}

.m-ex-top {
  gap: 0.7em;
  padding: 0 0.1em;
}

.m-ex-dot {
  width: 2.1em;
  height: 2.1em;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--tint, var(--primary)) 15%, transparent);
}

.m-ex-dot i {
  width: 0.65em;
  height: 0.65em;
  border-radius: 50%;
  background: var(--tint);
}

.m-ex-dot.is-done {
  background: var(--primary);
  color: var(--on-primary);
}

.m-ex-dot svg {
  width: 1.1em;
  height: 1.1em;
}

.m-ex-text {
  flex: 1;
  min-width: 0;
}

.m-ex-name {
  font-weight: 800;
  font-size: 1.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-ex-sum {
  font-size: 0.72em;
  font-weight: 600;
  color: var(--fg-muted);
}

.m-actions {
  padding: 0.6em 0.1em 0.55em;
}

.m-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  background: var(--surface-muted);
  color: var(--fg-muted);
  font-size: 0.75em;
  font-weight: 700;
  padding: 0.5em 0.85em;
  border-radius: 999px;
}

.m-chip svg {
  width: 1.15em;
  height: 1.15em;
}

.m-set {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.25em 0.35em;
  border-radius: 0.9em;
  margin-top: 0.2em;
}

.m-set.is-done {
  background: rgba(205, 245, 69, 0.15);
}

.m-set-head {
  margin: 0;
}

.m-set-head .m-val,
.m-set-head .m-check {
  height: auto;
  background: none;
}

.m-set-head small {
  font-size: 0.62em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}

.m-set-n {
  width: 1.8em;
  text-align: center;
  font-weight: 800;
  color: var(--fg-muted);
  flex: none;
}

.m-val,
.m-input {
  flex: 1;
  height: 2.5em;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.05em;
}

.m-input {
  border-radius: 0.7em;
  background: var(--surface-muted);
  color: var(--fg-muted);
  font-weight: 700;
}

.m-lock {
  width: 1.9em;
  display: grid;
  place-items: center;
  color: var(--fg-muted);
  flex: none;
}

.m-lock svg {
  width: 1em;
  height: 1em;
}

.m-check {
  width: 2.6em;
  height: 2.6em;
  border-radius: 0.7em;
  display: grid;
  place-items: center;
  background: var(--surface-muted);
  color: var(--fg-muted);
  flex: none;
}

.m-check.is-done {
  background: var(--primary);
  color: var(--on-primary);
}

.m-check svg {
  width: 1.2em;
  height: 1.2em;
}

.m-add {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3em;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8em;
  padding: 0.8em 0 0.35em;
}

.m-add svg {
  width: 1.2em;
  height: 1.2em;
}

/* Rest timer bar (bg-primary, lime) */
.m-rest {
  position: absolute;
  left: 1em;
  right: 1em;
  bottom: 1.4em;
  overflow: hidden;
  border-radius: 1.5em;
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 -1.5em 2em 0.4em var(--bg);
}

.m-rest-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 62%;
  background: rgba(10, 10, 11, 0.12);
}

.m-rest-row {
  position: relative;
  padding: 0.65em 0.8em 0.35em 1em;
}

.m-rest-label {
  font-size: 0.65em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

.m-rest-clock {
  font-size: 1.95em;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.m-rest-btn {
  height: 2.5em;
  min-width: 2.5em;
  padding: 0 0.6em;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.12);
  font-weight: 800;
  font-size: 0.85em;
}

.m-rest-btn svg {
  width: 1.2em;
  height: 1.2em;
}

.m-rest-next {
  position: relative;
  font-size: 0.72em;
  font-weight: 700;
  opacity: 0.8;
  padding: 0 1.4em 0.9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Insights screen */
.m-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  align-self: center;
  justify-self: center;
  background: var(--surface);
  border-radius: 999px;
  padding: 0.5em 1em;
  font-size: 0.8em;
  font-weight: 700;
}

.m-filter svg {
  width: 1em;
  height: 1em;
  color: var(--fg-muted);
}

.m-bars {
  display: grid;
  gap: 0.45em;
  padding: 0 0.3em 0.2em;
}

.m-bar-row {
  display: grid;
  grid-template-columns: 4.6em 1fr 1.6em;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78em;
  font-weight: 600;
}

.m-bar {
  height: 0.75em;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}

.m-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.m-bar-n {
  text-align: right;
  font-weight: 800;
}

.m-pr {
  padding: 0.35em 0.4em;
  font-size: 0.85em;
  font-weight: 600;
}

.m-pr-v {
  font-weight: 800;
}

.m-new {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.7em;
  font-weight: 800;
  padding: 0.2em 0.6em;
  border-radius: 999px;
}

/* Schedule card (feature visual, not in a phone) */
.sched {
  position: relative;
  width: min(380px, 100%);
  background: var(--surface);
  border-radius: 32px;
  padding: 22px;
  font-size: 16px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 110px -40px rgba(205, 245, 69, 0.3);
}

.m-seg.is-card {
  font-size: 0.85rem;
}

.m-seg.is-card span {
  flex: 1;
  text-align: center;
  padding: 10px 0;
}

.sched-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.sched-slot {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-muted);
  border-radius: 20px;
  padding: 14px 16px;
  font-weight: 800;
  font-size: 1.1rem;
}

.sched-slot.is-today {
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px var(--primary);
}

.sched-slot.is-rest {
  color: var(--fg-muted);
}

.sched-n {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--fg-muted);
  font-size: 0.85rem;
  flex: none;
}

.sched-slot.is-today .sched-n {
  background: var(--primary);
  color: var(--on-primary);
}

.sched-name {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sched-name svg {
  width: 18px;
  height: 18px;
}

.sched-badge {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.sched-badge.is-muted {
  color: var(--fg-muted);
}

.sched-loop {
  position: absolute;
  right: -14px;
  top: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 0 0 6px var(--bg);
}

.sched-loop svg {
  width: 22px;
  height: 22px;
}

/* Rest visual: the bar and a lock-screen notification */
.rest-visual {
  width: min(380px, 100%);
  display: grid;
  gap: 18px;
  font-size: 17px;
}

.m-rest.is-standalone {
  position: relative;
  inset: auto;
  font-size: 18px;
  border-radius: 28px;
  box-shadow: 0 30px 70px -30px rgba(205, 245, 69, 0.55);
}

.notif {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(34, 35, 38, 0.92);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  animation: buzz 2.4s ease-in-out infinite;
}

.notif-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg);
  display: grid;
  place-items: center;
  flex: none;
}

.notif-icon img {
  width: auto;
  height: 22px;
}

.notif-text {
  flex: 1;
  min-width: 0;
}

.notif-app {
  font-size: 0.75rem;
  color: var(--fg-muted);
  font-weight: 600;
}

.notif-title {
  font-weight: 800;
}

.notif-body {
  font-size: 0.85rem;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-buzz {
  color: var(--primary);
  flex: none;
}

.notif-buzz svg {
  width: 26px;
  height: 26px;
}

@keyframes buzz {
  0%, 70%, 100% { transform: translateX(0); }
  74%, 82%, 90% { transform: translateX(-3px); }
  78%, 86%, 94% { transform: translateX(3px); }
}

/* Scroll reveal, CSS only where supported (content is always visible otherwise). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

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

/* ------------------------------------------------------------------ */
/* Wider screens */

@media (min-width: 560px) {
  :root { --gutter: 28px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-row { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer-links { justify-content: center; }
}

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  body { font-size: 18px; }
  .nav { display: flex; }
  .hero { padding: 72px 0 40px; }
  .hero-row { grid-template-columns: 1.05fr 1fr; align-items: center; }
  .glow { inset: -10% -10% auto 35%; height: 120%; }
  .hero-phones { min-height: 640px; align-items: center; }
  .hero-phones .phone { --w: 290px; }
  .hero-phones .phone.is-back {
    display: block;
    position: absolute;
    right: 0;
    transform: translateY(20px) rotate(6deg) scale(0.9);
    opacity: 0.55;
  }
  .hero-phones .phone.is-front { transform: translateX(-56px) rotate(-3deg); }
  .feature { padding: 96px 0; }
  .feature-row { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature.is-flipped .feature-text { order: 2; }
  .band { padding: 56px; }
  .band h2,
  .band .lead { max-width: 640px; }
}
