:root {
  --ink: #0b0b0b;
  --paper: #fffaf1;
  --white: #ffffff;
  --orange: #ff7300;
  --orange-dark: #d95100;
  --yellow: #ffd400;
  --muted: #6b675f;
  --line: rgba(11, 11, 11, 0.14);
  --radius: 28px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Segoe Script", "Brush Script MT", "Snell Roundhand", cursive;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
img { max-width: 100%; }
h1, h2, p { margin-top: 0; }

.brand {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  color: var(--orange);
  font-family: var(--script);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 0.9;
  transform: rotate(-3deg);
}
.brand i {
  margin: -0.18em 0 0 0.1em;
  color: var(--yellow);
  font-family: Georgia, serif;
  font-size: 0.4em;
  font-style: normal;
  letter-spacing: 0;
  transform: rotate(12deg);
}
.brand--large { font-size: clamp(4.2rem, 7vw, 6.2rem); }
.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow--dark { color: var(--orange-dark); }
.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: 0.65; transform: none; }
.button--primary {
  color: var(--ink);
  background: linear-gradient(100deg, var(--orange), var(--yellow));
  box-shadow: 0 14px 32px rgba(255, 115, 0, 0.24);
}
.button--primary b { font-size: 1.2rem; }
.button--ghost { border-color: var(--line); background: transparent; }
.button--wide { width: 100%; }
.button--grow { flex: 1; }
.text-button {
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.text-button--light { color: var(--white); }
.pill {
  display: inline-flex;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Login */
.login-page { background: var(--ink); }
.login-shell {
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.55fr) minmax(390px, 0.85fr);
}
.hero-photo { position: relative; min-height: 100svh; overflow: hidden; }
.hero-photo > img { width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.06) 45%, rgba(0,0,0,0.72) 100%),
    linear-gradient(90deg, transparent 68%, rgba(0,0,0,0.28));
}
.hero-caption { position: absolute; left: clamp(1.5rem, 5vw, 5rem); bottom: clamp(2rem, 6vw, 5rem); color: white; }
.hero-caption p { margin: 0.45rem 0 0; font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 750; }
.login-panel {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 5rem);
  color: white;
  background: var(--ink);
}
.login-panel__inner { position: relative; z-index: 2; width: min(100%, 430px); }
.tagline {
  margin: 2.2rem 0 3rem;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  line-height: 1.01;
  letter-spacing: -0.05em;
}
.login-form { display: grid; gap: 1.15rem; }
.login-form label { display: grid; gap: 0.5rem; }
.login-form label span {
  color: rgba(255,255,255,0.62);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.login-form input {
  width: 100%;
  padding: 1rem 0.15rem;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.38);
  border-radius: 0;
  color: white;
  background: transparent;
  font-size: 1.05rem;
}
.login-form input:focus { border-bottom-color: var(--orange); outline: 0; }
.login-form .button { margin-top: 0.7rem; }
.form-error { min-height: 1.2em; margin: 0; color: #ffad7b; font-size: 0.82rem; }
.sun-dot { position: absolute; border-radius: 50%; background: var(--yellow); filter: blur(0.2px); }
.sun-dot--one { width: 115px; height: 115px; right: -48px; top: -34px; opacity: 0.85; }
.sun-dot--two { width: 28px; height: 28px; right: 13%; bottom: 10%; background: var(--orange); }

/* Shared app chrome */
.app-header {
  display: flex;
  width: min(100% - 2.5rem, 1280px);
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 1.6rem 0;
}
.app-header .brand { font-size: 2.5rem; }
.app-header--dark { color: white; }
.dark-page { color: white; background: var(--ink); }

/* Dashboard */
.dashboard-page {
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 92% 8%, rgba(255,212,0,0.8) 0 7%, transparent 7.2%),
    linear-gradient(120deg, var(--paper), white);
}
.dashboard {
  display: grid;
  width: min(100% - 2.5rem, 1280px);
  min-height: calc(100svh - 110px);
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  margin: 0 auto;
  padding: 3rem 0 6rem;
}
.dashboard-heading h1, .page-heading h1 {
  margin: 0.75rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.7rem, 7vw, 7.6rem);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.07em;
}
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.choice-card {
  position: relative;
  display: flex;
  min-height: 450px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
a.choice-card:hover { transform: rotate(-1deg) translateY(-6px); box-shadow: 0 32px 80px rgba(0,0,0,0.2); }
.choice-card--workout { color: var(--ink); background: linear-gradient(145deg, var(--yellow), var(--orange)); }
.choice-card--workout::after {
  position: absolute;
  width: 270px;
  height: 270px;
  right: -110px;
  bottom: -100px;
  border: 2px solid rgba(11,11,11,0.25);
  border-radius: 50%;
  content: "";
}
.choice-card--wedding { color: white; background: var(--ink); }
.choice-card--wedding::after {
  position: absolute;
  inset: 16px;
  border: 1px dashed rgba(255,255,255,0.22);
  border-radius: calc(var(--radius) - 10px);
  content: "";
}
.choice-card__number { position: relative; z-index: 1; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.16em; }
.choice-card p { position: relative; z-index: 1; margin-bottom: 0.8rem; font-size: 0.8rem; font-weight: 800; opacity: 0.72; }
.choice-card h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  font-weight: 500;
  line-height: 0.83;
  letter-spacing: -0.08em;
}
.choice-card__arrow { position: absolute; z-index: 1; right: 1.8rem; top: 1.4rem; font-size: 2rem; }
.choice-card__spark { position: absolute; z-index: 1; right: 2rem; top: 1.5rem; color: var(--yellow); font-size: 2.2rem; }

/* Workout hub */
.workout-hub { width: min(100% - 2.5rem, 1180px); margin: 0 auto; padding: 4rem 0 8rem; }
.mission-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.mission-hero h1, .page-heading--dark h1 {
  margin: 0.75rem 0 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 9vw, 8.5rem);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.08em;
}
.mission-hero h1 em, .page-heading--dark h1 em { color: var(--orange); font-weight: 500; }
.mission-hero p { max-width: 540px; color: rgba(255,255,255,0.66); font-size: 1.05rem; line-height: 1.65; }
.progress-orbit { position: relative; display: grid; width: 190px; height: 190px; place-items: center; }
.progress-orbit svg { position: absolute; inset: 0; overflow: visible; transform: rotate(-90deg); }
.progress-orbit circle { fill: none; stroke: rgba(255,255,255,0.12); stroke-width: 5; }
.progress-orbit .progress-orbit__value {
  stroke: var(--yellow);
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  stroke-linecap: round;
  transition: stroke-dashoffset 600ms ease;
}
.progress-orbit strong { margin-top: -0.15em; font-family: Georgia, serif; font-size: 4rem; line-height: 1; }
.progress-orbit span { margin-top: 4.7rem; color: rgba(255,255,255,0.52); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; }
.next-mission {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin: 5rem 0;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
}
.next-mission h2 { margin: 1rem 0 0.4rem; font-family: Georgia, serif; font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.06em; }
.next-mission p { margin: 0; color: var(--muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.section-heading h2 { margin: 0.6rem 0 0; font-family: Georgia, serif; font-size: clamp(2.6rem, 5vw, 4.6rem); letter-spacing: -0.06em; }
.workout-links { display: flex; gap: 1.3rem; }
.workout-links a { border-bottom: 1px solid rgba(255,255,255,0.45); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.06em; text-transform: uppercase; }
.mission-map { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.65rem; margin-top: 2rem; }
.mission-day {
  position: relative;
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  color: rgba(255,255,255,0.54);
  font-size: 0.78rem;
  font-weight: 850;
  transition: border-color 160ms ease, transform 160ms ease, color 160ms ease;
}
a.mission-day:hover { transform: translateY(-3px); border-color: var(--orange); color: white; }
.mission-day.is-complete { border-color: transparent; color: var(--ink); background: var(--yellow); }
.mission-day.is-current { border-color: var(--orange); color: white; box-shadow: inset 0 0 0 2px var(--orange); }
.mission-day.is-locked { opacity: 0.45; }
.mission-day small { position: absolute; right: 0.42rem; bottom: 0.3rem; font-size: 0.58rem; }

/* Session */
.session-page { min-height: 100svh; background: var(--paper); }
.session-header {
  display: flex;
  width: min(100% - 1.5rem, 950px);
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 1.1rem 0;
}
.session-header > div { display: grid; text-align: center; }
.session-header span { color: var(--orange-dark); font-size: 0.65rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.session-header strong { font-family: Georgia, serif; font-size: 1.15rem; }
.round-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: white;
  cursor: pointer;
  font-weight: 900;
}
.session-shell { width: min(100% - 1.5rem, 950px); margin: 0 auto; padding-bottom: 3rem; }
.step-progress { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; margin: 0.8rem 0 1.2rem; color: var(--muted); font-size: 0.7rem; font-weight: 800; }
.step-progress > div { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(11,11,11,0.1); }
.step-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--yellow)); transition: width 280ms ease; }
.exercise-card { overflow: hidden; border: 1px solid rgba(11,11,11,0.07); border-radius: var(--radius); background: white; box-shadow: var(--shadow); }
.demo-window { position: relative; aspect-ratio: 32 / 8.7; overflow: hidden; background: #f6efe5; }
.demo-window img { position: absolute; left: 0; width: 100%; height: auto; max-width: none; }
.demo-window img[data-half="top"] { top: 0; }
.demo-window img[data-half="bottom"] { top: 0; transform: translateY(-50%); }
.exercise-content { padding: clamp(1.4rem, 4vw, 2.6rem); }
.exercise-title-row { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.exercise-title-row h1 { margin: 0.35rem 0 0; font-family: Georgia, serif; font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 500; line-height: 0.95; letter-spacing: -0.06em; }
.target-badge { flex: 0 0 auto; padding: 0.7rem 0.9rem; border-radius: 16px; color: var(--ink); background: var(--yellow); font-size: 0.85rem; }
.cue-list { display: grid; gap: 0.55rem; margin: 1.8rem 0 1.4rem; padding-left: 1.3rem; color: #403d37; line-height: 1.5; }
.cue-list li::marker { color: var(--orange); font-weight: 900; }
.easier-toggle { padding: 0; border: 0; border-bottom: 1px solid var(--orange-dark); color: var(--orange-dark); background: transparent; cursor: pointer; font-size: 0.8rem; font-weight: 850; }
.easier-copy { margin: 0.8rem 0 0; padding: 0.9rem 1rem; border-radius: 14px; background: #fff3df; color: #5a3a1e; font-size: 0.88rem; line-height: 1.5; }
.session-controls { width: min(100%, 720px); margin: 1.35rem auto 0; }
.session-actions { display: flex; gap: 0.75rem; }
.timer-button {
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  margin: 0 auto 1rem;
  border: 8px solid var(--yellow);
  border-radius: 50%;
  color: white;
  background: var(--ink);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}
.timer-button span { align-self: end; font-family: Georgia, serif; font-size: 2.6rem; line-height: 1; }
.timer-button small { align-self: start; color: rgba(255,255,255,0.65); font-size: 0.58rem; text-transform: uppercase; }
.timer-button.is-running { border-color: var(--orange); }
.safety-line { margin: 1rem 0 0; color: var(--muted); font-size: 0.68rem; text-align: center; }

/* Dialogs and photos */
dialog {
  width: min(100% - 1.5rem, 560px);
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 0;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 100px rgba(0,0,0,0.38);
}
dialog::backdrop { background: rgba(0,0,0,0.72); backdrop-filter: blur(8px); }
.finish-dialog { text-align: center; }
.finish-dialog h2, .upload-dialog h2 { margin: 0.65rem 0 0.8rem; font-family: Georgia, serif; font-size: clamp(2.3rem, 6vw, 4rem); letter-spacing: -0.06em; }
.finish-dialog > p { color: var(--muted); line-height: 1.5; }
.confetti-mark { color: var(--yellow); font-size: 4rem; line-height: 1; }
.photo-capture { display: grid; min-height: 130px; place-items: center; margin: 1.2rem 0; border: 2px dashed rgba(11,11,11,0.24); border-radius: 20px; cursor: pointer; background: white; }
.photo-capture input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-capture span { font-weight: 900; }
.photo-preview { width: 100%; max-height: 360px; margin: 0 0 1rem; border-radius: 18px; object-fit: cover; }
.dialog-actions { display: grid; gap: 1rem; justify-items: center; }
.dialog-close { position: absolute; right: 1rem; top: 1rem; border: 0; background: transparent; cursor: pointer; font-size: 1.8rem; }

/* Gallery */
.gallery-shell { width: min(100% - 2.5rem, 1180px); margin: 0 auto; padding: 4rem 0 8rem; }
.page-heading { max-width: 850px; }
.page-heading > p { max-width: 600px; margin: 1.5rem 0 0; color: var(--muted); line-height: 1.65; }
.photo-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.9rem; margin-top: 4rem; }
.photo-slot {
  position: relative;
  display: grid;
  aspect-ratio: 3 / 4;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(11,11,11,0.28);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255,255,255,0.6);
  cursor: pointer;
}
.photo-slot:hover { border-color: var(--orange); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot span { position: absolute; left: 0.6rem; top: 0.6rem; padding: 0.35rem 0.5rem; border-radius: 999px; color: white; background: rgba(0,0,0,0.72); font-size: 0.62rem; font-weight: 900; text-transform: uppercase; }
.photo-slot b { color: var(--orange); font-size: 1.8rem; }
.gallery-status { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.85rem; text-align: center; }

/* Review */
.review-page { min-height: 100svh; color: white; background: var(--ink); }
.review-shell { width: min(100% - 2.5rem, 1180px); margin: 0 auto; padding: 4rem 0 8rem; }
.page-heading--dark > p { color: rgba(255,255,255,0.6); }
.review-card { margin-top: 4rem; padding: clamp(1.2rem, 4vw, 3rem); border-radius: var(--radius); color: var(--ink); background: var(--paper); }
.review-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 1.4rem; border: 1px solid var(--line); border-radius: 18px; }
.review-stats > div { display: grid; padding: 1rem; text-align: center; }
.review-stats > div + div { border-left: 1px solid var(--line); }
.review-stats strong { font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 4rem); }
.review-stats span { color: var(--muted); font-size: 0.65rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.review-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1rem; }
.review-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 20px; background: #e7dfd4; }
.review-photo img { width: 100%; height: 100%; object-fit: cover; }
.review-photo span { position: absolute; z-index: 1; left: 0.8rem; top: 0.8rem; padding: 0.45rem 0.65rem; border-radius: 999px; color: white; background: rgba(0,0,0,0.7); font-size: 0.68rem; font-weight: 900; text-transform: uppercase; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .hero-photo { min-height: 50svh; }
  .login-panel { min-height: auto; padding: 3rem 1.5rem 4rem; }
  .brand--large { font-size: 5rem; }
  .tagline { font-size: 2.7rem; }
  .dashboard { grid-template-columns: 1fr; align-items: start; padding-top: 4rem; }
  .dashboard-heading h1 { font-size: clamp(4rem, 15vw, 7rem); }
  .choice-card { min-height: 390px; }
  .mission-map { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .app-header { width: min(100% - 1.5rem, 1280px); }
  .login-panel { place-items: start; }
  .hero-photo { min-height: 44svh; }
  .hero-photo > img { object-position: 52% center; }
  .hero-caption { left: 1.25rem; bottom: 1.25rem; }
  .choice-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 320px; }
  .dashboard { width: min(100% - 1.5rem, 1280px); gap: 2.5rem; }
  .mission-hero { grid-template-columns: 1fr; }
  .progress-orbit { width: 145px; height: 145px; justify-self: end; }
  .progress-orbit strong { font-size: 3rem; }
  .progress-orbit span { margin-top: 3.8rem; }
  .next-mission { align-items: stretch; flex-direction: column; }
  .next-mission .button { width: 100%; }
  .section-heading { align-items: start; flex-direction: column; }
  .workout-links { flex-wrap: wrap; }
  .mission-map { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .exercise-title-row { align-items: start; flex-direction: column; }
  .target-badge { order: -1; }
  .exercise-title-row h1 { font-size: 3rem; }
  .demo-window img { width: 100%; left: 0; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-comparison { grid-template-columns: 1fr; }
  .review-photo { aspect-ratio: 4 / 5; }
}

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