:root {
  color-scheme: light dark;
  --ground: #fafafa;
  --sheet: #ffffff;
  --panel: #f2f2f4;
  --chip: #e8e8ec;
  --ink: #0c0c0e;
  --second: #4a4a50;
  --quiet: #71717a;
  --line: rgba(12, 12, 14, 0.085);
  --line-strong: rgba(12, 12, 14, 0.16);
  --on: #2a9d4a;
  --warn: #b45309;
  --warn-soft: rgba(180, 83, 9, 0.1);
  --steel: #6a82a6;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03), 0 8px 24px -12px rgba(0, 0, 0, 0.06);
  --shadow-stage: 0 24px 70px -24px rgba(0, 0, 0, 0.32), 0 2px 8px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #09090b;
    --sheet: #111114;
    --panel: #18181c;
    --chip: #222228;
    --ink: #f4f4f6;
    --second: #a1a1aa;
    --quiet: #71717a;
    --line: rgba(255, 255, 255, 0.085);
    --line-strong: rgba(255, 255, 255, 0.16);
    --on: #30b557;
    --warn: #f59e0b;
    --warn-soft: rgba(245, 158, 11, 0.14);
    --steel: #9cb4d8;
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px -16px rgba(0, 0, 0, 0.5);
    --shadow-stage: 0 30px 90px -24px rgba(0, 0, 0, 0.75);
  }
}

:root[data-theme="dark"] {
  --ground: #09090b;
  --sheet: #111114;
  --panel: #18181c;
  --chip: #222228;
  --ink: #f4f4f6;
  --second: #a1a1aa;
  --quiet: #71717a;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --on: #30b557;
  --warn: #f59e0b;
  --warn-soft: rgba(245, 158, 11, 0.14);
  --steel: #9cb4d8;
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px -16px rgba(0, 0, 0, 0.5);
  --shadow-stage: 0 30px 90px -24px rgba(0, 0, 0, 0.75);
}

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

html {
  scroll-behavior: smooth;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: clip;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: background-color 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.site-nav[data-scrolled="true"] {
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 620;
  letter-spacing: -0.022em;
}

.brand-mark {
  width: 24px;
  height: 20px;
  display: block;
}

.brand-mark.small {
  width: 20px;
  height: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--quiet);
  transition: color 160ms ease;
}

.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--second);
  background: transparent;
  border: 1px solid transparent;
  transition: transform 150ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    display: none;
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    display: block;
  }
}

.theme-toggle:active {
  transform: scale(0.94);
}

.pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding-inline: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow: hidden;
  transition: transform 150ms var(--ease-out), opacity 160ms ease, background-color 160ms ease;
}

.pill-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.pill-btn.small {
  height: 36px;
  padding-inline: 16px;
  font-size: 13px;
}

.pill-btn.full {
  width: 100%;
}

.pill-btn.inverse {
  background: #ffffff;
  color: #09090b;
}

.pill-btn.inverse::after {
  background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(12, 12, 14, 0.12), transparent 65%);
}

.pill-btn.glass {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f4f6;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pill-btn.secondary {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.pill-btn.secondary::after {
  display: none;
}

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

.ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding-inline: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--second);
  transition: color 160ms ease, transform 150ms var(--ease-out);
}

.ghost-link:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover {
    color: var(--ink);
  }

  .theme-toggle:hover {
    background: var(--panel);
    border-color: var(--line);
    color: var(--ink);
  }

  .pill-btn:hover::after {
    opacity: 1;
  }

  .pill-btn.glass:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
  }

  .ghost-link:hover {
    color: var(--ink);
  }
}

.hero {
  position: relative;
  padding-top: clamp(32px, 5.5vw, 64px);
  padding-bottom: clamp(56px, 7.5vw, 96px);
  overflow: clip;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 68% 58% at 50% 34%, #000 18%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 68% 58% at 50% 34%, #000 18%, transparent 78%);
  opacity: 0.65;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 740px;
}

.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding-inline: 13px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--sheet);
  border: 1px solid var(--line-strong);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--second);
}

.platform-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--on);
}

.platform-sep {
  width: 1px;
  height: 10px;
  background: var(--line-strong);
}

.hero-title {
  margin: 0;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.042em;
  font-weight: 650;
  color: var(--ink);
}

.hero-sub {
  margin: 18px auto 0;
  max-width: 540px;
  font-size: clamp(16px, 1.75vw, 18.5px);
  line-height: 1.5;
  color: var(--second);
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.device-stage-wrap {
  position: relative;
  z-index: 2;
  margin-top: clamp(34px, 4.5vw, 52px);
}

.device-stage {
  display: grid;
  grid-template-columns: minmax(0, 276px) 318px minmax(0, 276px);
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.2vw, 44px);
}

.companion-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.companion-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--quiet);
}

.companion-lock {
  padding: 18px;
  border-radius: 24px;
  background: #0b0b0f;
  color: #f4f4f6;
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 24px 60px -24px rgba(0, 0, 0, 0.42),
    0 2px 6px rgba(0, 0, 0, 0.16);
}

.companion-lock .companion-kicker {
  color: rgba(244, 244, 246, 0.56);
}

.la-app-badge {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #17171d;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 2px;
}

.la-app-badge svg {
  width: 11px;
  height: 9px;
  display: block;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: background-color 200ms ease;
}

.live-dot[data-active="true"] {
  background: #30b557;
}

.la-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.la-title {
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.la-meta {
  margin-top: 3px;
  font-size: 12px;
  color: rgba(244, 244, 246, 0.58);
}

.la-timer {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #ffffff;
  white-space: nowrap;
}

.la-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.la-fill {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #9cb4d8;
  transform-origin: left center;
  transform: scaleX(1);
  transition: transform 300ms var(--ease-out);
}

.la-actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.la-chip {
  flex: 1;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 244, 246, 0.88);
  font-size: 12px;
  font-weight: 560;
  transition: transform 140ms var(--ease-out), background-color 150ms ease;
}

.la-chip:active {
  transform: scale(0.96);
}

.iphone-shell {
  position: relative;
  width: 318px;
  padding: 3.5px;
  border-radius: 56px;
  background: linear-gradient(150deg, #8b8892 0%, #444249 14%, #252429 48%, #5e5c64 78%, #2a292f 100%);
  box-shadow:
    inset 0 0 0 0.75px rgba(255, 255, 255, 0.34),
    0 2px 5px rgba(0, 0, 0, 0.14),
    0 16px 34px -10px rgba(0, 0, 0, 0.24),
    0 44px 96px -28px rgba(0, 0, 0, 0.36);
}

:root[data-theme="dark"] .iphone-shell {
  box-shadow:
    inset 0 0 0 0.75px rgba(255, 255, 255, 0.28),
    0 24px 64px -18px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.iphone-btn-action,
.iphone-btn-vol-up,
.iphone-btn-vol-down,
.iphone-btn-power,
.iphone-btn-camera {
  position: absolute;
  width: 3.5px;
  background: linear-gradient(180deg, #74717a 0%, #3a3840 48%, #5c5a62 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.iphone-btn-action {
  left: -3px;
  top: 112px;
  height: 24px;
  border-radius: 2px 0 0 2px;
}

.iphone-btn-vol-up {
  left: -3px;
  top: 152px;
  height: 44px;
  border-radius: 2px 0 0 2px;
}

.iphone-btn-vol-down {
  left: -3px;
  top: 206px;
  height: 44px;
  border-radius: 2px 0 0 2px;
}

.iphone-btn-power {
  right: -3px;
  top: 168px;
  height: 68px;
  border-radius: 0 2px 2px 0;
}

.iphone-btn-camera {
  right: -2px;
  top: 416px;
  width: 2.5px;
  height: 46px;
  border-radius: 0 2px 2px 0;
  opacity: 0.72;
}

.iphone-antenna {
  position: absolute;
  width: 3.5px;
  height: 5px;
  background: rgba(10, 10, 14, 0.55);
  z-index: 2;
}

.iphone-ant-tl {
  left: 0;
  top: 66px;
}

.iphone-ant-tr {
  right: 0;
  top: 66px;
}

.iphone-ant-bl {
  left: 0;
  bottom: 66px;
}

.iphone-ant-br {
  right: 0;
  bottom: 66px;
}

.iphone-bezel {
  position: relative;
  padding: 8.5px;
  border-radius: 52.5px;
  background: #050507;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 1px 2px rgba(255, 255, 255, 0.08);
}

.iphone-speaker {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  border-radius: 999px;
  background: #141418;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.8), 0 0.5px 0 rgba(255, 255, 255, 0.12);
  z-index: 6;
}

.iphone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 616px;
  border-radius: 44px;
  background: var(--ground);
  color: var(--ink);
  overflow: hidden;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

.iphone-glass-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(126deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.015) 26%, transparent 48%);
  pointer-events: none;
  z-index: 5;
}

.iphone-status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 13px 20px 8px;
  font-size: 12.5px;
  font-weight: 640;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.status-time {
  padding-left: 2px;
}

.status-icons {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4.5px;
  opacity: 0.9;
}

.dynamic-island {
  position: relative;
  height: 25px;
  width: 86px;
  border-radius: 999px;
  background: #040406;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: width 320ms var(--ease-out), height 320ms var(--ease-out);
}

.dynamic-island[data-expanded="true"] {
  width: 136px;
  height: 27px;
  padding-inline: 9px;
}

.island-idle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 9px;
  opacity: 1;
  transition: opacity 160ms ease;
}

.dynamic-island[data-expanded="true"] .island-idle {
  opacity: 0;
}

.island-cam {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 36%, #3c5482 0%, #152038 45%, #090b12 80%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.island-live {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 200ms var(--ease-out), transform 220ms var(--ease-out);
}

.dynamic-island[data-expanded="true"] .island-live {
  opacity: 1;
  transform: scale(1);
}

.island-mark {
  width: 15px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  color: #9cb4d8;
}

.island-mark svg {
  width: 15px;
  height: 12px;
}

.island-label {
  color: rgba(255, 255, 255, 0.6);
  margin-right: auto;
}

.island-time {
  color: #ffffff;
}

.iphone-viewport {
  position: relative;
  flex: 1;
  padding: 10px 16px 12px;
  overflow: hidden;
}

.phone-screen {
  position: absolute;
  inset: 10px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 220ms var(--ease-out);
}

.phone-screen[data-active="true"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.p-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.p-kicker {
  font-size: 11px;
  font-weight: 550;
  color: var(--quiet);
}

.p-title {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.p-pill,
.p-status-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--second);
  white-space: nowrap;
}

.p-pill[data-calibrated="true"] {
  background: color-mix(in srgb, var(--steel) 18%, transparent);
  color: var(--steel);
}

.p-status-badge[data-state="ok"] {
  background: color-mix(in srgb, var(--on) 14%, transparent);
  color: var(--on);
}

.p-status-badge[data-state="warn"] {
  background: var(--warn-soft);
  color: var(--warn);
}

.p-guardrail {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 13px;
  background: var(--sheet);
  border: 1px solid var(--line);
  text-align: left;
  transition: transform 140ms var(--ease-out), border-color 160ms ease;
}

.p-guardrail:active {
  transform: scale(0.98);
}

.p-guard-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warn);
  flex-shrink: 0;
}

.p-guard-copy {
  font-size: 11.5px;
  font-weight: 550;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-guard-cta {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--second);
  flex-shrink: 0;
}

.p-card {
  border-radius: 16px;
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.p-ex {
  font-size: 14px;
  font-weight: 620;
  letter-spacing: -0.018em;
}

.p-target {
  font-size: 11px;
  color: var(--quiet);
}

.p-sets {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p-set-row {
  display: grid;
  grid-template-columns: 18px 1fr 1fr 24px;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding-inline: 8px;
  border-radius: 10px;
  background: var(--ground);
  border: 1px solid transparent;
  font-size: 12.5px;
  text-align: left;
  transition: transform 140ms var(--ease-out), background-color 150ms ease, border-color 150ms ease;
}

.p-set-row:active {
  transform: scale(0.98);
}

.p-set-idx {
  color: var(--quiet);
  font-size: 11.5px;
}

.p-set-val {
  font-weight: 600;
  color: var(--ink);
}

.p-set-reps {
  color: var(--second);
}

.p-set-check {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 140ms ease;
}

.p-set-row[data-done="true"] .p-set-check {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
}

.p-next-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--sheet);
  border: 1px solid var(--line);
}

.p-next-row.subtle {
  background: var(--panel);
  border-color: transparent;
}

.p-next-name {
  font-size: 13px;
  font-weight: 580;
}

.p-next-sub {
  font-size: 11px;
  color: var(--quiet);
  margin-top: 1px;
}

.p-next-tag {
  font-size: 11px;
  font-weight: 550;
  color: var(--quiet);
}

.p-week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.p-day-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  border-radius: 11px;
  background: var(--sheet);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: var(--quiet);
}

.p-day-pill[data-today="true"] {
  background: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
}

.p-day-pill[data-warn="true"] {
  border-color: var(--warn);
  background: var(--warn-soft);
  color: var(--warn);
}

.p-day-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.22;
}

.p-day-pill[data-active="true"] i {
  opacity: 0.9;
}

.p-week-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-week-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--sheet);
  border: 1px solid var(--line);
}

.p-week-row[data-warn="true"] {
  border-color: color-mix(in srgb, var(--warn) 55%, transparent);
  background: var(--warn-soft);
}

.p-week-day {
  width: 28px;
  font-size: 11px;
  font-weight: 600;
  color: var(--quiet);
}

.p-week-info {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
}

.p-week-info strong {
  font-weight: 600;
}

.p-week-info span {
  font-size: 11px;
  color: var(--quiet);
}

.p-week-action {
  margin-top: auto;
  height: 36px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font-size: 12px;
  font-weight: 600;
  transition: transform 140ms var(--ease-out);
}

.p-week-action:active {
  transform: scale(0.97);
}

.p-goal-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.p-goal-chip {
  height: 30px;
  border-radius: 10px;
  background: var(--sheet);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 560;
  color: var(--second);
  transition: transform 130ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.p-goal-chip[data-selected="true"] {
  background: var(--ink);
  color: var(--ground);
  border-color: var(--ink);
}

.p-goal-chip:active {
  transform: scale(0.96);
}

.p-plan-preview {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.p-plan-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 11px;
  background: var(--sheet);
  border: 1px solid var(--line);
}

.p-plan-day {
  width: 26px;
  font-size: 11px;
  font-weight: 600;
  color: var(--quiet);
}

.p-plan-info {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.25;
}

.p-plan-info strong {
  font-weight: 600;
}

.p-plan-info span {
  font-size: 10.5px;
  color: var(--quiet);
}

.p-muscle-bars {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  padding: 10px 12px;
  border-radius: 13px;
  background: var(--panel);
}

.p-mbar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 550;
  color: var(--second);
}

.p-mbar-track {
  height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
  overflow: hidden;
}

.p-mbar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--ink);
  transition: width 280ms var(--ease-out);
}

.iphone-tabbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 0 16px 10px;
  padding: 4px;
  border-radius: 999px;
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.08);
}

.p-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 42px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  color: var(--quiet);
  transition: background-color 160ms var(--ease-out), color 160ms ease, transform 130ms var(--ease-out);
}

.p-tab svg {
  width: 16px;
  height: 16px;
}

.p-tab[aria-selected="true"] {
  background: var(--panel);
  color: var(--ink);
}

.p-tab:active {
  transform: scale(0.95);
}

.iphone-home-bar {
  width: 108px;
  height: 4.5px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.25;
  margin: 0 auto 8px;
}

.companion-watch {
  align-items: center;
  text-align: center;
}

.watch-rig {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.watch-band {
  width: 104px;
  height: 26px;
  background: linear-gradient(90deg, #1b1b20 0%, #2a2a31 28%, #1e1e24 68%, #141418 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.watch-band.top {
  border-radius: 14px 14px 4px 4px;
  margin-bottom: -8px;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 68%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 68%);
}

.watch-band.bottom {
  border-radius: 4px 4px 14px 14px;
  margin-top: -8px;
  mask-image: linear-gradient(to top, transparent 0%, #000 68%);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 68%);
}

.watch-shell {
  position: relative;
  z-index: 2;
  width: 186px;
  padding: 3.5px;
  border-radius: 44px;
  background: linear-gradient(150deg, #8b8892 0%, #444249 16%, #242329 52%, #5e5c64 82%, #29282e 100%);
  box-shadow:
    inset 0 0 0 0.75px rgba(255, 255, 255, 0.32),
    0 20px 52px -18px rgba(0, 0, 0, 0.42),
    0 4px 12px rgba(0, 0, 0, 0.18);
}

.watch-bezel {
  padding: 7px;
  border-radius: 40.5px;
  background: #040406;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.watch-crown {
  position: absolute;
  right: -7px;
  top: 48px;
  width: 7px;
  height: 32px;
  border-radius: 2px 3.5px 3.5px 2px;
  background: repeating-linear-gradient(
    180deg,
    #77747e 0px,
    #77747e 1.5px,
    #2b2a30 1.5px,
    #2b2a30 3.2px
  );
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.watch-side-btn {
  position: absolute;
  right: -4px;
  top: 94px;
  width: 4px;
  height: 44px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #6e6b75, #2e2d34);
}

.watch-screen {
  border-radius: 34px;
  background: #060608;
  color: #f4f4f6;
  padding: 15px 14px 13px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  min-height: 198px;
  box-shadow: inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

.watch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
}

.watch-time {
  color: rgba(244, 244, 246, 0.56);
}

.watch-hr {
  color: #9cb4d8;
}

.watch-ex {
  margin-top: 12px;
  font-size: 12px;
  color: rgba(244, 244, 246, 0.62);
}

.watch-load {
  margin-top: 2px;
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: #ffffff;
}

.watch-reps {
  margin-top: 3px;
  font-size: 12px;
  color: rgba(244, 244, 246, 0.64);
}

.watch-log-btn {
  margin-top: auto;
  height: 34px;
  border-radius: 999px;
  background: #ffffff;
  color: #09090b;
  font-size: 12px;
  font-weight: 620;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}

.watch-log-btn[data-complete="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: #f4f4f6;
}

.watch-log-btn:active {
  transform: scale(0.95);
}

.companion-caption {
  font-size: 12px;
  color: var(--quiet);
  max-width: 190px;
  line-height: 1.4;
}

.adapt-mini-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 14px;
}

.amw-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  border-radius: 10px;
  background: var(--ground);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: var(--quiet);
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.amw-day i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.25;
}

.amw-day[data-state="done"] {
  color: var(--ink);
}

.amw-day[data-state="done"] i {
  opacity: 0.9;
}

.amw-day[data-state="edited"] {
  border-color: color-mix(in srgb, var(--steel) 55%, transparent);
  background: color-mix(in srgb, var(--steel) 12%, transparent);
  color: var(--steel);
}

.amw-day[data-state="edited"] i {
  opacity: 1;
}

.amw-day[data-state="removed"] {
  opacity: 0.42;
  text-decoration: line-through;
}

.amw-day[data-state="keep"] {
  color: var(--second);
}

.amw-day[data-state="keep"] i {
  opacity: 0.55;
}

@media (hover: hover) and (pointer: fine) {
  .la-chip:hover {
    background: rgba(255, 255, 255, 0.16);
  }

  .p-guardrail:hover {
    border-color: var(--line-strong);
  }

  .p-set-row:hover {
    border-color: var(--line-strong);
  }

  .p-tab:not([aria-selected="true"]):hover {
    color: var(--ink);
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  animation: heroEnter 380ms var(--ease-out) var(--d, 0ms) both;
}

@keyframes heroEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stage-wrap {
  margin-top: 24px;
}

.stage {
  position: relative;
  border-radius: 26px;
  background: #0a0a0d;
  color: #f4f4f6;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-stage);
  overflow: hidden;
  user-select: none;
}

.stage-rim {
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
}

.stage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.stage-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  white-space: nowrap;
}

.stage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #30b557;
  transition: background-color 200ms ease;
}

.stage-dot[data-state="warn"] {
  background: #f59e0b;
}

.stage-sep {
  color: rgba(255, 255, 255, 0.28);
}

.stage-name {
  color: rgba(255, 255, 255, 0.6);
}

.stage-status {
  color: rgba(255, 255, 255, 0.62);
  font-variant-numeric: tabular-nums;
  transition: color 180ms ease;
}

.stage-status[data-state="warn"] {
  color: #f59e0b;
}

.stage-hint {
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.stage-hint kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: inherit;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: 214px;
}

.day-col {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px 12px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 180ms ease;
}

.day-col:last-child {
  border-right: 0;
}

.day-col[data-selected="true"] {
  background: rgba(255, 255, 255, 0.045);
}

.day-col[data-drop-target="true"] {
  background: rgba(156, 180, 216, 0.12);
}

.day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.46);
  cursor: pointer;
}

.day-col[data-selected="true"] .day-head {
  color: #ffffff;
}

.day-num {
  font-variant-numeric: tabular-nums;
}

.day-col[data-today="true"] .day-num {
  padding: 1px 6px;
  border-radius: 999px;
  background: #ffffff;
  color: #09090b;
  font-weight: 600;
}

.day-slot {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rest-dot {
  margin: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.session-tile {
  position: relative;
  padding: 12px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  touch-action: none;
  transition: transform 180ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.session-tile[data-draggable="true"] {
  cursor: grab;
}

.session-tile[data-dragging="true"] {
  opacity: 0.3;
  cursor: grabbing;
}

.session-tile[data-conflict="true"] {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.09);
}

.session-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(108deg, transparent 22%, rgba(156, 180, 216, 0.34) 50%, transparent 78%);
  transform: translateX(-120%);
  pointer-events: none;
}

.session-tile[data-glint="true"]::after {
  animation: steelSweep 620ms var(--ease-out);
}

@keyframes steelSweep {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sport-mark {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sport-mark svg {
  width: 14px;
  height: 14px;
  display: block;
}

.tile-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: #f4f4f6;
}

.tile-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

.drag-ghost {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  width: 148px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.28);
  background: #18181d;
  transform: scale(1.03);
}

.conflict-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  border-top: 1px solid rgba(245, 158, 11, 0.24);
  background: rgba(245, 158, 11, 0.08);
  font-size: 13px;
  color: #fcd34d;
}

.conflict-bar[hidden] {
  display: none;
}

.conflict-text {
  display: flex;
  align-items: center;
  gap: 10px;
}

.conflict-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  flex-shrink: 0;
}

.stage-action-btn {
  height: 30px;
  padding-inline: 12px;
  border-radius: 999px;
  background: #ffffff;
  color: #09090b;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 140ms var(--ease-out);
}

.stage-action-btn:active {
  transform: scale(0.96);
}

.stage-detail {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.detail-day {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.detail-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.detail-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
}

.detail-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.detail-chip strong {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

.stage-toggle-done {
  height: 34px;
  padding-inline: 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f4f6;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}

.stage-toggle-done[data-done="true"] {
  background: #ffffff;
  color: #09090b;
  border-color: #ffffff;
}

.stage-toggle-done:active {
  transform: scale(0.96);
}

.section {
  padding-block: clamp(64px, 9vw, 118px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 76px;
}

.section-intro {
  max-width: 620px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--quiet);
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.036em;
  font-weight: 650;
}

.section-lead {
  margin: 14px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--second);
}

.bento {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 20px;
  align-items: stretch;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 24px;
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.bento-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.card-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--quiet);
}

.bento-card h3,
.recovery-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 620;
}

.card-badge {
  font-size: 12px;
  font-weight: 500;
  color: var(--quiet);
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--panel);
  white-space: nowrap;
}

.logger-surface {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--ground);
  border: 1px solid var(--line);
  padding: 18px;
  overflow: hidden;
}

.logger-ex-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.logger-ex-name {
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.logger-ex-target {
  font-size: 13px;
  color: var(--quiet);
}

.progression-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--steel);
  animation: fadeUp 220ms var(--ease-out) both;
}

.progression-line[hidden] {
  display: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.inline-link-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--second);
  transition: color 150ms ease, transform 140ms var(--ease-out);
}

.inline-link-btn:active {
  transform: scale(0.96);
}

.set-cols,
.set-row {
  display: grid;
  grid-template-columns: 42px 1fr 1fr 1fr 44px;
  align-items: center;
  gap: 8px;
}

.set-cols {
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--quiet);
  border-bottom: 1px solid var(--line);
}

.set-rows {
  display: flex;
  flex-direction: column;
}

.set-row {
  min-height: 46px;
  padding: 4px;
  border-bottom: 1px solid var(--line);
  transition: opacity 180ms ease;
}

.set-row:last-child {
  border-bottom: 0;
}

.set-idx {
  font-size: 13px;
  color: var(--quiet);
}

.val-cell {
  height: 36px;
  padding-inline: 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 15px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  transition: background-color 140ms ease, transform 140ms var(--ease-out);
}

.val-cell[data-active="true"] {
  background: var(--ink);
  color: var(--ground);
}

.val-cell:active {
  transform: scale(0.96);
}

.set-check {
  width: 30px;
  height: 30px;
  margin-left: auto;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: transform 150ms var(--ease-out), background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 150ms ease;
}

.set-check[data-done="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
}

.set-check:active {
  transform: scale(0.92);
}

.barbell-stage {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.barbell-diagram {
  width: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.bar-shaft {
  height: 5px;
  flex: 1;
  max-width: 140px;
  border-radius: 3px;
  background: var(--line-strong);
}

.bar-collar {
  width: 7px;
  height: 16px;
  border-radius: 2px;
  background: var(--second);
}

.bar-sleeve {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 84px;
}

.bar-sleeve.left {
  justify-content: flex-end;
}

.bar-sleeve.right {
  justify-content: flex-start;
}

.plate {
  width: 7px;
  border-radius: 2.5px;
  background: var(--ink);
  animation: plateDrop 200ms var(--ease-out) both;
}

.plate.light {
  background: var(--second);
}

@keyframes plateDrop {
  from {
    opacity: 0;
    transform: scaleY(0.7);
  }
  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

.barbell-caption {
  font-size: 12px;
  color: var(--quiet);
}

.dial-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--ground);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(115%) scale(0.97);
  pointer-events: none;
  transition: transform 220ms var(--ease-out), opacity 180ms var(--ease-out);
}

.dial-bar[data-open="true"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dial-label {
  font-size: 12px;
  opacity: 0.68;
}

.dial-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dial-step {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ground) 14%, transparent);
  color: var(--ground);
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 130ms var(--ease-out);
}

.dial-step:active {
  transform: scale(0.92);
}

.dial-value {
  min-width: 64px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.dial-done {
  height: 32px;
  padding-inline: 12px;
  border-radius: 999px;
  background: var(--ground);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  transition: transform 130ms var(--ease-out);
}

.dial-done:active {
  transform: scale(0.95);
}

.clip-tabs {
  position: relative;
  display: inline-grid;
  border-radius: 999px;
  padding: 3px;
  background: var(--panel);
  border: 1px solid var(--line);
  width: fit-content;
  max-width: 100%;
}

.clip-tabs-base,
.clip-tabs-active {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
}

.clip-tabs-base button,
.clip-tabs-active span {
  height: 32px;
  padding-inline: 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 550;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clip-tabs-base button {
  color: var(--second);
}

.clip-tabs-active {
  background: var(--ink);
  color: var(--ground);
  border-radius: 999px;
  pointer-events: none;
  clip-path: inset(0 75% 0 0 round 999px);
  transition: clip-path 240ms var(--ease-out);
}

.adapt-summary {
  margin: 12px 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--second);
  min-height: 40px;
}

.diff-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.diff-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
}

.diff-row:last-child {
  border-bottom: 0;
}

.diff-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.diff-name {
  font-size: 14px;
  font-weight: 560;
  color: var(--ink);
}

.diff-row[data-removed="true"] .diff-name {
  color: var(--quiet);
  text-decoration: line-through;
}

.diff-sub {
  font-size: 12px;
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}

.diff-tag {
  font-size: 12px;
  font-weight: 550;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.diff-row[data-removed="true"] .diff-tag {
  color: var(--quiet);
}

.adapt-foot {
  margin-top: 16px;
}

.telemetry-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
}

.trace-card,
.recovery-card {
  padding: clamp(22px, 3vw, 30px);
  border-radius: 24px;
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.trace-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.trace-title {
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.trace-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--quiet);
  margin-top: 3px;
}

.trace-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  font-weight: 550;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--panel);
}

.trace-canvas-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 14px;
  background: var(--ground);
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: crosshair;
  touch-action: none;
}

.trace-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.trace-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--quiet);
}

.recovery-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.ios-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.ios-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.ios-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--chip);
  transition: background-color 200ms var(--ease-out);
}

.ios-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 220ms var(--ease-out);
}

.ios-switch input:checked + .ios-track {
  background: var(--on);
}

.ios-switch input:checked + .ios-track .ios-knob {
  transform: translateX(20px);
}

.recovery-preview {
  border-radius: 16px;
  background: var(--ground);
  border: 1px solid var(--line);
  overflow: hidden;
}

.rec-session {
  padding: 20px;
}

.rec-day {
  font-size: 12px;
  color: var(--quiet);
  margin-bottom: 4px;
}

.rec-name {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.rec-facts {
  margin-top: 8px;
  font-size: 13px;
  color: var(--quiet);
  line-height: 1.45;
}

.rec-advisory {
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  background: var(--sheet);
}

.rec-advisory[hidden],
.rec-clear[hidden] {
  display: none;
}

.rec-advisory-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rec-delta {
  font-size: 13px;
  font-weight: 560;
  color: var(--ink);
}

.rec-adapt-link {
  font-size: 13px;
  font-weight: 550;
  color: var(--second);
  white-space: nowrap;
  transition: color 150ms ease, transform 140ms var(--ease-out);
}

.rec-adapt-link:active {
  transform: scale(0.96);
}

.rec-clear {
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  font-size: 13px;
  color: var(--quiet);
}

.recovery-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--quiet);
}

.metrics-strip {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.metric-figure {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-label {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.metric-copy {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--second);
}

.pricing-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.price-card {
  padding: clamp(24px, 3.2vw, 34px);
  border-radius: 24px;
  background: var(--sheet);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.price-card-plus {
  background: var(--panel);
  border-color: var(--line-strong);
}

.price-tier {
  font-size: 14px;
  font-weight: 600;
  color: var(--second);
}

.price-figure {
  margin-top: 10px;
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-unit {
  font-size: 17px;
  font-weight: 500;
  color: var(--quiet);
  margin-left: 3px;
}

.price-terms {
  margin-top: 8px;
  font-size: 14px;
  color: var(--quiet);
}

.price-list {
  list-style: none;
  margin: 24px 0 26px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14.5px;
  color: var(--second);
  flex: 1;
}

.price-list li {
  padding-left: 16px;
  position: relative;
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.45;
}

.monolith-wrap {
  padding: 20px 8px 28px;
  scroll-margin-top: 72px;
}

.monolith {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  min-height: clamp(540px, 76vh, 780px);
  border-radius: 36px;
  background: #070709;
  color: #f4f4f6;
  overflow: hidden;
  contain: layout paint;
  display: flex;
  align-items: center;
  padding: clamp(64px, 10vw, 136px) clamp(28px, 6vw, 92px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 32px 96px -32px rgba(0, 0, 0, 0.52);
}

.monolith::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  z-index: 3;
  pointer-events: none;
}

:root[data-theme="dark"] .monolith {
  border-color: rgba(255, 255, 255, 0.14);
}

@supports (animation-timeline: view()) {
  .monolith {
    animation: linear both monolithScale view();
    animation-range: entry 8% cover 40%;
  }

  @keyframes monolithScale {
    0% {
      transform: scale(0.91);
    }
    100% {
      transform: scale(1);
    }
  }
}

.monolith-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: layout paint style;
}

.monolith-canvas {
  width: 100%;
  height: 100%;
  display: block;
  transform: translateZ(0);
}

.monolith-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
}

.monolith-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: block;
  margin-bottom: 24px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 16px 36px rgba(0, 0, 0, 0.55);
}

.monolith-title {
  margin: 0;
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.042em;
  font-weight: 650;
  color: #ffffff;
}

.monolith-sub {
  margin: 18px 0 0;
  max-width: 470px;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(244, 244, 246, 0.7);
}

.monolith-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.monolith-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 0;
  font-size: 13px;
  color: rgba(244, 244, 246, 0.48);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
}

.footer-inner {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--quiet);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  transition: transform 140ms var(--ease-out);
}

.footer-brand:active {
  transform: scale(0.96);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--quiet);
  transition: color 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover,
  .inline-link-btn:hover,
  .rec-adapt-link:hover {
    color: var(--ink);
  }

  .val-cell:not([data-active="true"]):hover {
    background: var(--panel);
  }

  .session-tile[data-draggable="true"]:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
  }
}

.toast-host {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: min(440px, calc(100vw - 32px));
}

.toast {
  pointer-events: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--ground);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: transform 280ms var(--ease-out), opacity 220ms var(--ease-out);
}

.toast[data-visible="true"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast-undo {
  font-size: 13px;
  font-weight: 600;
  color: var(--ground);
  opacity: 0.78;
  padding: 4px 8px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--ground) 14%, transparent);
  transition: opacity 150ms ease, transform 130ms var(--ease-out);
}

.toast-undo:active {
  transform: scale(0.95);
}

.subpage-main {
  max-width: 680px;
  margin-inline: auto;
  padding: 48px 24px 96px;
}

.subpage-main h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 650;
}

.subpage-main h2 {
  margin: 36px 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--quiet);
}

.subpage-main p {
  margin: 0 0 16px;
  color: var(--second);
}

.subpage-main a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.subpage-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.subpage-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.subpage-list h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.subpage-list p {
  margin: 0;
}

@media (max-width: 960px) {
  .device-stage {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
  }

  .companion-lock {
    order: 2;
    width: min(318px, 100%);
  }

  .iphone-shell {
    order: 1;
    width: min(318px, 100%);
  }

  .companion-watch {
    order: 3;
  }

  .bento,
  .telemetry-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .stage-detail {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .week-grid {
    grid-template-columns: repeat(7, minmax(116px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .day-col {
    scroll-snap-align: start;
  }

  .stage-hint {
    display: none;
  }

  .metrics-strip {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .stage-bar {
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 14px 16px;
  }

  .stage-status {
    font-size: 12px;
  }

  .conflict-bar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }

  .monolith {
    border-radius: 26px;
    min-height: 460px;
  }

  .monolith::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at 22% 38%, rgba(10, 10, 13, 0.84) 0%, rgba(10, 10, 13, 0.45) 56%, rgba(10, 10, 13, 0) 88%);
    pointer-events: none;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .monolith {
    animation: none;
    transform: none;
  }

  .session-tile[data-glint="true"]::after,
  .plate,
  .progression-line {
    animation: none;
  }
}
