/* Boring Exercises — boringexercises.com. Values come from Website.dc.html in the design project. */

html, body { margin: 0; min-height: 100%; background: #f4f3ef; color: #0a0a0a; font-family: -apple-system, "SF Pro Display", "SF Pro Text", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #0a0a0a; text-decoration: none; }
a:hover { color: #6e6e73; }
p { margin: 0; }

@property --bx-hue { syntax: '<angle>'; inherits: true; initial-value: 15deg; }
@keyframes bxHue { 0% { --bx-hue: 15deg; } 20% { --bx-hue: 48deg; } 40% { --bx-hue: 15deg; } 60% { --bx-hue: -60deg; } 80% { --bx-hue: -110deg; } 100% { --bx-hue: 15deg; } }
@keyframes bxOrb { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-4%, 5%) scale(1.06); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes bxRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bxPhone { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bxFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* The home is a single viewport composition on desktop; the legal pages scroll. */
@media (min-width: 821px) and (min-height: 640px) {
  body.is-home { height: 100vh; overflow: hidden; }
  .is-home .bx { height: 100%; }
  .is-home .wrap { height: 100%; min-height: 0; }
}

.bx { --bx-hue: 15deg; --accent: oklch(0.64 0.23 var(--bx-hue)); position: relative; min-height: 100vh; width: 100%; overflow: hidden; background: #f4f3ef; color: #0a0a0a; animation: bxHue 36s linear infinite; }
.orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; }
.orb-a { right: -6vw; top: -22vh; width: max(64vw, 420px); height: max(64vw, 420px); background: radial-gradient(circle at 42% 42%, var(--accent) 0%, oklch(0.7 0.2 var(--bx-hue) / .8) 26%, oklch(0.8 0.15 calc(var(--bx-hue) + 60deg) / .6) 52%, rgba(244, 243, 239, 0) 72%); filter: blur(70px); opacity: .55; animation: bxOrb 22s ease-in-out infinite; will-change: transform; }
.orb-b { left: -15vw; bottom: -30vh; width: max(48vw, 320px); height: max(48vw, 320px); background: radial-gradient(circle, oklch(0.75 0.15 calc(var(--bx-hue) + 200deg) / .5), rgba(244, 243, 239, 0) 70%); filter: blur(80px); opacity: .5; }
.grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .05; mix-blend-mode: multiply; pointer-events: none; }

.wrap { position: relative; min-height: 100vh; display: flex; flex-direction: column; padding: clamp(18px, 3vw, 28px) clamp(20px, 4vw, 48px) 24px; box-sizing: border-box; width: 100%; max-width: 1180px; margin: 0 auto; }

/* Nav */
.nav { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 3; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-dot { width: 20px; height: 20px; border-radius: 6px; background: var(--accent); }
.brand-name { font: 600 15px/1 -apple-system, system-ui; letter-spacing: -0.2px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 28px); font: 500 14px/1 -apple-system, system-ui; }
.nav-link { opacity: .55; }
.nav-link.is-current { opacity: 1; }
.pill { display: inline-flex; align-items: center; gap: 10px; background: #0a0a0a; color: #fff; border-radius: 999px; white-space: nowrap; font-family: -apple-system, system-ui; font-weight: 600; }
.pill:hover { background: #333; color: #fff; }
.pill-small { padding: 10px 16px; font-size: 13px; line-height: 1; }
/* Under 420px the hero button is the call to action; the nav pill would not fit next to Terms · Privacy. */
@media (max-width: 420px) { .nav .pill-small { display: none; } }
.pill-big { padding: 16px 26px; font-size: 15px; line-height: 1; letter-spacing: -0.1px; box-shadow: 0 18px 40px rgba(0, 0, 0, .18); }

/* Home */
.home { flex: 1; min-height: 0; position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); grid-auto-rows: minmax(0, auto); gap: clamp(28px, 4vw, 40px); z-index: 2; }
.hero { display: flex; flex-direction: column; justify-content: center; min-height: 0; padding-top: clamp(16px, 4vw, 24px); }
.hero-title { margin: 0; font: 700 clamp(46px, min(6.6vw, 12vh), 108px)/0.92 -apple-system, system-ui; letter-spacing: -0.05em; text-wrap: balance; animation: bxRise .8s .08s cubic-bezier(.2, .7, .2, 1) both; }
.hero-lead { margin: clamp(12px, 3vh, 28px) 0 0; max-width: 500px; font: 400 clamp(15px, min(1.3vw, 2.5vh), 20px)/1.4 -apple-system, system-ui; letter-spacing: -0.015em; color: #3a3a3c; text-wrap: pretty; animation: bxRise .8s .16s cubic-bezier(.2, .7, .2, 1) both; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: clamp(14px, 4vh, 36px); animation: bxRise .8s .24s cubic-bezier(.2, .7, .2, 1) both; }
.hero-note { font: 400 14px/1.3 -apple-system, system-ui; color: #8e8e93; }

/* Phone */
.stage { position: relative; min-height: 0; display: flex; justify-content: center; align-items: center; }
.phone { --ps: 0.7; position: relative; width: 281px; height: 612px; animation: bxPhone 1.1s .2s cubic-bezier(.2, .7, .2, 1) both; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .25)); }
.device { position: absolute; inset: 0; transform-origin: top left; transform: scale(var(--ps)); width: 402px; height: 874px; border-radius: 48px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .12); font-family: -apple-system, system-ui, sans-serif; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 126px; height: 37px; border-radius: 24px; background: #000; z-index: 50; }
.status { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; gap: 154px; align-items: center; justify-content: center; padding: 21px 24px 19px; box-sizing: border-box; color: #000; }
.status-time, .status-icons { flex: 1; height: 22px; display: flex; align-items: center; justify-content: center; }
.status-time { font: 590 17px/22px -apple-system, "SF Pro", system-ui; padding-top: 1.5px; }
.status-icons { gap: 7px; padding-top: 1px; padding-right: 1px; fill: currentColor; }
.home-bar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 139px; height: 5px; border-radius: 100px; background: rgba(0, 0, 0, .25); z-index: 60; }
.screen { position: absolute; inset: 0; display: none; flex-direction: column; padding: 62px 22px 0; box-sizing: border-box; animation: bxFade .7s ease both; }
.phone[data-slide="0"] .screen-today, .phone[data-slide="1"] .screen-camera, .phone[data-slide="2"] .screen-badge { display: flex; }
.phone[data-slide="1"] .device { background: #000; }
.phone[data-slide="1"] .status { color: #fff; }
.phone[data-slide="1"] .home-bar { background: rgba(255, 255, 255, .7); }

/* Phone · Today */
.screen-today { background: #fff; color: #000; }
.today-head { display: flex; justify-content: space-between; align-items: flex-start; }
.today-title { font: 700 34px/1.1 -apple-system, system-ui; letter-spacing: -0.6px; }
.today-date { font: 400 15px/1.3 -apple-system, system-ui; color: #8e8e93; margin-top: 2px; }
.today-icons { display: flex; gap: 10px; margin-top: 2px; }
.round { width: 38px; height: 38px; border-radius: 50%; background: #f2f2f7; display: flex; align-items: center; justify-content: center; }
.round-dark { background: #000; }
.hero-card { margin-top: 16px; background: #111; color: #fff; border-radius: 24px; padding: 20px 22px 22px; position: relative; overflow: hidden; }
.hero-glow { position: absolute; right: -70px; top: -90px; width: 300px; height: 300px; border-radius: 50%; background: var(--accent); opacity: .32; filter: blur(46px); }
.hero-row { position: relative; display: flex; justify-content: space-between; align-items: center; }
.hero-name { font: 600 17px/1 -apple-system, system-ui; letter-spacing: -0.2px; }
.hero-muted { font: 400 15px/1 -apple-system, system-ui; color: rgba(255, 255, 255, .6); }
.hero-count { position: relative; display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; }
.hero-big { display: flex; align-items: baseline; gap: 10px; }
.big-number { font: 700 66px/0.8 -apple-system, system-ui; letter-spacing: -3.5px; color: oklch(0.7 0.23 var(--bx-hue)); font-variant-numeric: tabular-nums; }
.week { position: relative; display: flex; justify-content: space-between; margin-top: 20px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.day-name { font: 600 11px/1 -apple-system, system-ui; letter-spacing: .06em; color: rgba(255, 255, 255, .5); }
.day-cell { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; box-sizing: border-box; display: flex; align-items: center; justify-content: center; font: 600 14px/1 -apple-system, system-ui; color: #fff; }
.day.is-done .day-cell { background: var(--accent); }
.day.is-today .day-name { color: #fff; }
.day.is-today .day-cell { background: #3a3a3c; border-color: #fff; box-shadow: 0 0 0 3px #111, 0 0 0 4px rgba(255, 255, 255, .25); }
.day.is-up .day-cell { color: rgba(255, 255, 255, .4); }
.next-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 8px; font: 400 16px/1 -apple-system, system-ui; letter-spacing: -0.2px; }
.muted { color: #8e8e93; }
.set-card { background: #f2f2f7; border-radius: 24px; padding: 20px 22px 22px; }
.set-head { display: flex; justify-content: space-between; align-items: baseline; }
.set-title { font: 600 19px/1 -apple-system, system-ui; letter-spacing: -0.3px; }
.set-note { font: 400 13px/1 -apple-system, system-ui; color: #8e8e93; }
.set-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #e0e0e5; }
.set-row.is-last { border-bottom: 0; }
.tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #b8b8be; box-sizing: border-box; }
.set-name { flex: 1; font: 500 18px/1 -apple-system, system-ui; letter-spacing: -0.3px; }
.set-goal { font: 400 17px/1 -apple-system, system-ui; color: #8e8e93; font-variant-numeric: tabular-nums; }
.start { margin-top: 8px; height: 54px; border-radius: 999px; background: oklch(0.6 0.23 var(--bx-hue)); color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font: 600 18px/1 -apple-system, system-ui; letter-spacing: -0.2px; }
.spacer { flex: 1; }
.tabbar { margin: 0 -2px 14px; height: 64px; border-radius: 999px; background: #fff; box-shadow: 0 8px 28px rgba(0, 0, 0, .14), 0 0 0 1px rgba(0, 0, 0, .04); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 6px; box-sizing: border-box; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 500 11px/1 -apple-system, system-ui; }
.tab.is-active { height: 52px; border-radius: 999px; background: #ececf1; }

/* Phone · Camera */
.screen-camera { background: radial-gradient(120% 80% at 50% 30%, #2a2a2e, #0b0b0d 70%); color: #fff; }
.cam-head { display: flex; justify-content: space-between; align-items: center; }
.cam-chip { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); font: 500 13px/1 -apple-system, system-ui; }
.cam-dot { width: 8px; height: 8px; border-radius: 50%; background: oklch(0.7 0.23 var(--bx-hue)); }
.cam-close { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; font: 500 16px/1 -apple-system, system-ui; }
.cam-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.cam-exercise { font: 500 17px/1 -apple-system, system-ui; color: rgba(255, 255, 255, .6); letter-spacing: .02em; }
.cam-count { display: flex; align-items: baseline; gap: 8px; }
.cam-big { font: 700 168px/0.85 -apple-system, system-ui; letter-spacing: -9px; color: oklch(0.72 0.23 var(--bx-hue)); font-variant-numeric: tabular-nums; }
.cam-goal { font: 500 28px/1 -apple-system, system-ui; color: rgba(255, 255, 255, .5); }
.cam-note { font: 400 15px/1 -apple-system, system-ui; color: rgba(255, 255, 255, .6); margin-top: 6px; }
.reps { display: flex; gap: 6px; margin-top: 22px; }
.rep { width: 16px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .15); }
.rep.on { background: oklch(0.72 0.23 var(--bx-hue)); }
.cam-actions { display: flex; gap: 12px; margin-bottom: 44px; }
.cam-btn { flex: 1; height: 54px; border-radius: 999px; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; font: 600 17px/1 -apple-system, system-ui; }
.cam-btn-light { background: #fff; color: #000; }

/* Phone · Badge */
.screen-badge { background: #fff; color: #000; }
.badge-kicker { font: 500 13px/1 -apple-system, system-ui; letter-spacing: .12em; text-transform: uppercase; color: #8e8e93; text-align: center; }
.badge-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; }
.badge-ring { position: relative; width: 240px; height: 240px; border-radius: 50%; background: conic-gradient(from 200deg, oklch(0.62 0.23 var(--bx-hue)), oklch(0.78 0.16 calc(var(--bx-hue) + 50deg)), oklch(0.55 0.2 calc(var(--bx-hue) - 40deg)), oklch(0.62 0.23 var(--bx-hue))); box-shadow: 0 30px 60px oklch(0.62 0.23 var(--bx-hue) / .35); display: flex; align-items: center; justify-content: center; }
.badge-core { width: 196px; height: 196px; border-radius: 50%; background: #111; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.badge-number { font: 700 72px/0.9 -apple-system, system-ui; letter-spacing: -4px; font-variant-numeric: tabular-nums; }
.badge-unit { font: 500 14px/1 -apple-system, system-ui; color: rgba(255, 255, 255, .6); }
.badge-text { text-align: center; }
.badge-title { font: 700 30px/1.1 -apple-system, system-ui; letter-spacing: -0.6px; }
.badge-sub { font: 400 16px/1.4 -apple-system, system-ui; color: #8e8e93; margin-top: 8px; }
.badge-friends { display: flex; align-items: center; gap: 10px; font: 400 14px/1 -apple-system, system-ui; color: #3a3a3c; }
.avatars { display: flex; }
.avatar { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background: #d8d8dd; }
.avatar + .avatar { margin-left: -10px; background: #bdbdc4; }
.avatar + .avatar + .avatar { background: #9d9da4; }
.badge-actions { display: flex; gap: 12px; margin-bottom: 44px; }
.badge-btn { flex: 1; height: 54px; border-radius: 999px; background: #f2f2f7; display: flex; align-items: center; justify-content: center; font: 600 17px/1 -apple-system, system-ui; }
.badge-btn-dark { background: #000; color: #fff; }

/* Footer (home) */
.foot { position: relative; z-index: 2; padding-top: 18px; border-top: 1px solid rgba(0, 0, 0, .08); margin-top: clamp(12px, 3vh, 28px); animation: bxRise .8s .4s cubic-bezier(.2, .7, .2, 1) both; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px 32px; align-items: start; }
.feature { font: 400 14px/1.45 -apple-system, system-ui; color: #3a3a3c; max-width: 300px; text-wrap: pretty; }
.feature strong, .card-body strong { font-weight: 600; color: #0a0a0a; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 20px; font: 400 12px/1.4 -apple-system, system-ui; color: #8e8e93; }
.legal a { color: #8e8e93; }

/* Terms · Privacy */
.doc { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; padding: 24px 0; }
.card { width: min(1040px, 100%); box-sizing: border-box; padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 44px); border-radius: 28px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(0, 0, 0, .06); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: 0 30px 80px rgba(0, 0, 0, .08); animation: bxRise .6s cubic-bezier(.2, .7, .2, 1) both; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-title { margin: 0; font: 700 clamp(28px, 4vw, 36px)/1.05 -apple-system, system-ui; letter-spacing: -0.035em; }
.card-date { font: 400 12px/1 -apple-system, system-ui; color: #8e8e93; }
.card-body { margin-top: 26px; font: 400 14px/1.55 -apple-system, system-ui; color: #3a3a3c; columns: 2 320px; column-gap: 44px; }
.card-body p { margin: 0 0 12px; break-inside: avoid; }
.card-body-single { columns: auto; max-width: 560px; }

/* Phones and small tablets: one column with its own rhythm — the desktop grid stacked was not a layout. */
@media (max-width: 820px) {
  .wrap { padding: 16px 20px 28px; }
  .nav-links { font-size: 15px; gap: 18px; }
  .home { display: flex; flex: 0 0 auto; flex-direction: column; gap: 28px; }
  .hero { justify-content: flex-start; padding-top: clamp(28px, 7vh, 56px); }
  .hero-title { font-size: clamp(56px, 16vw, 72px); }
  .hero-lead { margin-top: 18px; font-size: 17px; max-width: 34em; }
  .hero-cta { margin-top: 26px; gap: 12px; }
  .pill-big { width: 100%; justify-content: center; padding: 18px 26px; font-size: 16px; }
  .hero-note { width: 100%; text-align: center; font-size: 13px; }
  .hero-note br { display: none; }
  /* The phone is wide and cropped at the bottom (a peek, not a thumbnail); the mask fades it out. */
  .stage { height: clamp(440px, 148vw, 600px); overflow: hidden; align-items: flex-start; padding-top: 6px;
           -webkit-mask-image: linear-gradient(#000 78%, transparent 100%); mask-image: linear-gradient(#000 78%, transparent 100%); }
  .phone { filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .22)); }
  .foot { margin-top: 8px; padding-top: 0; border-top: 0; }
  .features { display: block; }
  .feature { max-width: none; padding: 18px 0; border-top: 1px solid rgba(0, 0, 0, .08); font-size: 15px; line-height: 1.5; }
  .feature strong { display: block; margin-bottom: 4px; font-size: 17px; }
  .legal { margin-top: 12px; padding-top: 18px; border-top: 1px solid rgba(0, 0, 0, .08); }
  /* Terms · Privacy: the card breathes less on a phone. */
  .doc { padding: 12px 0; align-items: flex-start; }
  .card { border-radius: 22px; }
  .card-body { columns: 1; font-size: 15px; line-height: 1.55; }
}
