:root {
  --ink: #2a1b10;
  --ink-soft: #50331d;
  --muted: #806044;
  --paper: #fffaf1;
  --panel: rgba(255,255,255,.88);
  --line: rgba(121,74,28,.14);
  --orange: #ff6a00;
  --orange-2: #ff8a00;
  --yellow: #ffd21c;
  --yellow-soft: #fff0a8;
  --cream: #fff7dc;
  --green: #2f9e68;
  --danger: #d94841;
  --shadow: 0 24px 75px rgba(166,83,11,.15);
  --shadow-soft: 0 16px 44px rgba(166,83,11,.10);
  --radius: 30px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(255,210,28,.34), transparent 28rem),
    radial-gradient(circle at 94% 12%, rgba(255,106,0,.20), transparent 30rem),
    linear-gradient(145deg, #fffdf7, #fff8e6 55%, #fff3d0);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(124,73,23,.08) .7px, transparent .7px);
  background-size: 20px 20px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 75%);
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }

.site-shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 18px; position: relative; z-index: 5; }
.brand img { display: block; width: 210px; max-width: 52vw; }
.brand.small img { width: 165px; }
.auth-brand img { width: 230px; }

.pill, .primary, .secondary, .ghost, .dark-button, .danger-btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 21px;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
}
.pill:hover, .primary:hover, .secondary:hover, .ghost:hover, .dark-button:hover, .danger-btn:hover { transform: translateY(-2px); }
.primary { color: #2a1b10; background: linear-gradient(135deg, var(--orange), var(--yellow)); box-shadow: 0 14px 30px rgba(255,122,0,.26); }
.secondary { color: #a54506; background: rgba(255,143,0,.13); border: 1px solid rgba(255,143,0,.18); }
.ghost { color: var(--ink); background: rgba(255,255,255,.72); border: 1px solid var(--line); }
.dark-button { color: #fff; background: #26170d; box-shadow: 0 14px 30px rgba(38,23,13,.22); }
.danger-btn { color: #a4221f; background: #ffe1dd; }
button:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }
.large-button { padding: 16px 27px; font-size: 1.05rem; }

.eyebrow, .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  border: 1px solid var(--line);
  color: #b94d06;
  font-weight: 900;
  letter-spacing: .025em;
}
.section-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; padding: 7px 11px; }
.eyebrow.centered { margin: 0 auto; }
.light-eyebrow { color: #fff; background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.3); }

h1, h2, h3, p { margin-top: 0; }
h1 { letter-spacing: -.06em; }
h2 { letter-spacing: -.035em; }
.gradient-text { background: linear-gradient(135deg, var(--orange), var(--yellow)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted-copy { color: var(--muted); line-height: 1.65; }

/* Home */
.home-page { overflow-x: hidden; }
.home-hero { min-height: calc(100vh - 104px); display: grid; grid-template-columns: 1.07fr .93fr; align-items: center; gap: 50px; padding: 40px 0 95px; position: relative; }
.home-copy { position: relative; z-index: 2; }
.home-copy h1 { font-size: clamp(3.7rem, 8.5vw, 7.6rem); line-height: .91; margin: 24px 0 22px; max-width: 880px; }
.couple-line { font-size: clamp(1.25rem, 2.4vw, 1.7rem); font-weight: 850; color: var(--muted); margin-bottom: 30px; }
.couple-line span { color: var(--orange); padding: 0 8px; }
.home-mark { min-height: 520px; display: grid; place-items: center; position: relative; }
.home-heart { width: 300px; height: 300px; border-radius: 92px; background: linear-gradient(145deg, #ff7300, #ffc400); box-shadow: 0 38px 100px rgba(255,123,0,.32); display: grid; place-items: center; position: relative; transform: rotate(3deg); animation: homeFloat 4.5s ease-in-out infinite; }
.home-heart::after { content: ""; position: absolute; inset: 14px; border-radius: 78px; border: 2px solid rgba(255,255,255,.5); }
.heart-shape { color: white; font-size: 9rem; line-height: 1; filter: drop-shadow(0 10px 18px rgba(110,42,0,.18)); }
.roof { position: absolute; width: 135px; height: 135px; border-left: 18px solid white; border-top: 18px solid white; transform: rotate(45deg); top: 50px; border-radius: 10px 0 0 0; opacity: .96; }
.sun-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(255,138,0,.19); }
.ring-one { width: 410px; height: 410px; animation: ringPulse 4s ease-in-out infinite; }
.ring-two { width: 520px; height: 520px; animation: ringPulse 4s 1.2s ease-in-out infinite; }
@keyframes homeFloat { 50% { transform: translateY(-12px) rotate(-2deg); } }
@keyframes ringPulse { 50% { transform: scale(1.035); opacity: .45; } }

/* Login */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: min(470px, 100%); padding: 36px; border-radius: 36px; background: rgba(255,255,255,.87); border: 1px solid rgba(255,255,255,.96); box-shadow: var(--shadow); backdrop-filter: blur(18px); display: grid; }
.auth-card .brand { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-card h1 { font-size: clamp(2.4rem, 8vw, 3.8rem); text-align: center; margin: 15px 0 23px; }
.field { display: grid; gap: 8px; margin: 12px 0; }
.field label { font-weight: 850; }
.field input { width: 100%; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.9); padding: 15px 16px; outline: none; }
.field input:focus { border-color: rgba(255,106,0,.55); box-shadow: 0 0 0 4px rgba(255,138,0,.12); }
.auth-card .primary { width: 100%; margin-top: 12px; }
.form-error { min-height: 24px; color: #a4221f; font-weight: 750; text-align: center; margin-top: 12px; }
.centered-card { text-align: center; justify-items: center; }

/* Dashboard */
.dashboard-page { padding-bottom: 70px; }
.page-head { padding: 32px 0 18px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.centered-head { text-align: center; justify-content: center; }
.page-head h1 { font-size: clamp(3rem, 7vw, 5.7rem); margin: 18px 0 4px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 28px 0 50px; }
.app-card { position: relative; min-height: 335px; padding: 31px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.app-card:hover { transform: translateY(-7px); box-shadow: 0 34px 88px rgba(157,76,8,.20); }
.app-card.workout { background: linear-gradient(145deg, #ff7100, #ffad00 65%, #ffd21c); color: #2b1608; }
.app-card.wedding { background: linear-gradient(145deg, #fff6cc, #fffdfa); }
.app-card::after { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; right: -70px; top: -70px; background: rgba(255,255,255,.28); }
.app-card h2 { position: absolute; left: 31px; bottom: 75px; font-size: clamp(2.25rem, 5vw, 3.5rem); margin: 0; z-index: 2; }
.card-meta { position: absolute; left: 31px; right: 31px; bottom: 27px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 900; z-index: 2; }
.status-tag { padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.33); }
.wedding .status-tag { color: #9b4a08; background: rgba(255,169,0,.12); }
.card-art { position: absolute; top: 38px; left: 34px; width: 105px; height: 105px; border-radius: 30px; background: rgba(255,255,255,.35); z-index: 2; }
.dumbbell-art::before, .dumbbell-art::after { content: ""; position: absolute; top: 46px; width: 25px; height: 14px; border-radius: 4px; background: #2a1b10; }
.dumbbell-art::before { left: 17px; box-shadow: 47px 0 #2a1b10; }
.dumbbell-art::after { width: 47px; height: 8px; left: 29px; top: 49px; }
.camera-art::before { content: ""; position: absolute; left: 21px; top: 31px; width: 62px; height: 46px; border: 6px solid #a54d09; border-radius: 14px; }
.camera-art::after { content: ""; position: absolute; left: 43px; top: 42px; width: 21px; height: 21px; border: 6px solid #a54d09; border-radius: 50%; box-shadow: 27px -22px 0 -8px #a54d09; }

/* Workout hub */
.workout-hub { padding-bottom: 70px; }
.workout-hero-card { min-height: 315px; border-radius: 38px; padding: 40px; background: linear-gradient(135deg, #ff6900, #ff9800 52%, #ffd21c); box-shadow: var(--shadow); color: white; display: flex; justify-content: space-between; align-items: end; gap: 30px; position: relative; overflow: hidden; margin: 28px 0; }
.workout-hero-card::before { content: ""; position: absolute; width: 390px; height: 390px; border-radius: 50%; background: rgba(255,255,255,.15); right: -100px; top: -180px; }
.workout-hero-card::after { content: ""; position: absolute; width: 180px; height: 180px; border: 2px solid rgba(255,255,255,.3); border-radius: 50%; right: 165px; bottom: -95px; }
.workout-hero-card > * { position: relative; z-index: 2; }
.workout-hero-card h1 { font-size: clamp(3.2rem, 8vw, 6rem); line-height: .92; max-width: 680px; margin: 18px 0 16px; }
.workout-hero-card h1 span { color: #2a1b10; }
.workout-hero-card p { font-size: 1.15rem; font-weight: 750; margin-bottom: 0; }
.progress-panel, .days-panel, .photo-panel, .review-panel { background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.96); border-radius: var(--radius); padding: 27px; box-shadow: var(--shadow-soft); margin-bottom: 26px; }
.progress-top, .section-heading, .review-lock, .review-ready { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.progress-top h2, .section-heading h2, .review-panel h2 { margin: 12px 0 0; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.progress-percent { font-size: clamp(2.2rem, 5vw, 4.2rem); color: var(--orange); letter-spacing: -.05em; }
.progress-track { height: 15px; background: rgba(112,64,18,.09); border-radius: 999px; overflow: hidden; margin-top: 22px; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--orange), var(--yellow)); border-radius: inherit; transition: width .55s ease; }
.days-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.day-chip { aspect-ratio: 1; min-height: 48px; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: var(--ink); font-weight: 900; cursor: pointer; position: relative; transition: transform .16s ease, background .16s ease; }
.day-chip:hover:not(:disabled) { transform: translateY(-2px); }
.day-chip.current { color: #2a1b10; background: linear-gradient(135deg, var(--orange), var(--yellow)); border-color: transparent; box-shadow: 0 9px 22px rgba(255,133,0,.22); }
.day-chip.completed { color: white; background: var(--green); border-color: transparent; }
.day-chip.completed::after { content: "✓"; position: absolute; right: 5px; top: 3px; font-size: .65rem; }
.day-chip.locked { opacity: .38; cursor: not-allowed; }
.photo-count { font-weight: 900; color: #b94d06; }
.photo-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 11px; margin-top: 22px; }
.photo-tile { aspect-ratio: .78; border: 1px dashed rgba(134,76,20,.25); border-radius: 16px; background: rgba(255,248,226,.8); position: relative; overflow: hidden; display: grid; place-items: center; color: var(--muted); font-weight: 850; cursor: pointer; }
.photo-tile.has-photo { border-style: solid; background: #20150d; }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-day { position: absolute; left: 7px; bottom: 7px; padding: 4px 7px; border-radius: 999px; background: rgba(30,20,12,.72); color: white; font-size: .7rem; backdrop-filter: blur(5px); }
.photo-add { font-size: 1.45rem; color: var(--orange); }
.photo-message { min-height: 24px; margin-top: 15px; color: var(--muted); font-weight: 750; }
.review-panel { background: linear-gradient(145deg, #2b1b10, #4a2a12); color: white; }
.review-panel .section-label { background: rgba(255,255,255,.08); color: var(--yellow); border-color: rgba(255,255,255,.14); }
.review-panel p { color: rgba(255,255,255,.7); margin: 9px 0 0; }
.review-icon { flex: 0 0 88px; width: 88px; height: 88px; border-radius: 28px; display: grid; place-items: center; font-size: 2.3rem; font-weight: 950; color: #2a1b10; background: linear-gradient(135deg, var(--orange), var(--yellow)); }
.review-ready { align-items: end; }

/* Workout session */
.workout-shell { width: min(860px, calc(100% - 24px)); margin: 0 auto; padding-bottom: 55px; }
.workout-top { padding: 19px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.step-card { background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.96); border-radius: 34px; box-shadow: var(--shadow); padding: clamp(22px, 5vw, 42px); min-height: 650px; }
.loading-card { text-align: center; padding: 90px 20px; }
.step-kicker { display: flex; justify-content: space-between; gap: 15px; color: #a64a0b; font-weight: 900; font-size: .88rem; text-transform: uppercase; letter-spacing: .08em; }
.step-card > h1 { font-size: clamp(3rem, 8vw, 5.5rem); margin: 20px 0 13px; line-height: .96; }
.target { display: inline-flex; align-items: center; gap: 11px; border-radius: 999px; background: #fff4cf; border: 1px solid rgba(255,171,0,.18); padding: 9px 14px; margin-bottom: 20px; }
.target span { color: var(--muted); font-weight: 750; }
.target strong { color: #a74305; }
.demo-stage { border-radius: 26px; background: linear-gradient(145deg, #fff8e4, #fff); border: 1px solid var(--line); padding: 14px; overflow: hidden; margin: 6px 0 21px; }
.motion-demo { width: 100%; height: auto; display: block; }
.motion-demo .pose-a { animation: poseA 3.2s ease-in-out infinite; }
.motion-demo .pose-b { animation: poseB 3.2s ease-in-out infinite; }
.motion-demo .motion-arrow { animation: arrowMove 1.6s ease-in-out infinite; }
@keyframes poseA { 0%,43% { opacity: 1; } 55%,92% { opacity: .16; } 100% { opacity: 1; } }
@keyframes poseB { 0%,43% { opacity: .16; } 55%,92% { opacity: 1; } 100% { opacity: .16; } }
@keyframes arrowMove { 50% { transform: translateX(7px); } }
.demo-caption { text-align: center; color: var(--muted); font-weight: 750; font-size: .9rem; margin-top: 6px; }
.cues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cue { padding: 14px; background: #fffaf0; border: 1px solid var(--line); border-radius: 17px; color: var(--ink-soft); line-height: 1.5; }
.cue strong { color: var(--orange); }
.action-row { display: flex; justify-content: flex-end; gap: 11px; margin-top: 22px; flex-wrap: wrap; }
.timer-box { display: none; align-items: center; justify-content: center; gap: 18px; padding: 16px; background: #2b1b10; color: white; border-radius: 21px; margin: 19px 0; }
.timer-box.active { display: flex; }
.timer-number { font-size: 2.2rem; color: var(--yellow); }
.safety-note { color: var(--muted); font-size: .83rem; line-height: 1.55; margin: 23px 0 0; }
.rest-card, .complete-card { min-height: 560px; display: grid; place-items: center; text-align: center; align-content: center; }
.rest-card h1, .complete-card h1 { font-size: clamp(3rem, 8vw, 5rem); margin: 16px 0; }
.rest-number { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; margin: 20px auto; background: linear-gradient(145deg, #ff7400, #ffd21c); color: #2a1b10; font-size: 4rem; font-weight: 950; box-shadow: 0 24px 50px rgba(255,120,0,.25); }
.trophy { width: 112px; height: 112px; border-radius: 35px; display: grid; place-items: center; font-size: 3.2rem; background: linear-gradient(135deg, var(--orange), var(--yellow)); }
.photo-capture-card { width: 100%; max-width: 610px; margin: 25px auto 0; padding: 22px; border-radius: 25px; background: #fff8df; border: 1px solid rgba(255,170,0,.22); }
.photo-preview { width: min(260px, 100%); aspect-ratio: .78; border-radius: 20px; overflow: hidden; margin: 17px auto; background: #2c1b10; display: none; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-status { min-height: 23px; color: var(--muted); font-weight: 750; }

.coming-soon { min-height: calc(100vh - 105px); display: grid; place-items: center; text-align: center; padding-bottom: 80px; }
.coming-soon h1 { font-size: clamp(4rem, 10vw, 8rem); margin: 18px 0; }
.ring-icon { width: 100px; height: 100px; border-radius: 32px; display: grid; place-items: center; margin: 0 auto 20px; font-size: 3.4rem; background: linear-gradient(135deg, var(--orange), var(--yellow)); }

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; text-align: center; padding-top: 60px; }
  .home-mark { min-height: 390px; order: -1; }
  .home-heart { width: 230px; height: 230px; border-radius: 68px; }
  .heart-shape { font-size: 7rem; }
  .roof { width: 105px; height: 105px; border-width: 14px 0 0 14px; top: 42px; }
  .ring-one { width: 310px; height: 310px; }
  .ring-two { width: 380px; height: 380px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .workout-hero-card { align-items: flex-start; flex-direction: column; }
  .days-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .site-shell { width: min(100% - 22px, 1160px); }
  .topbar { padding: 14px 0; }
  .brand img { width: 165px; }
  .brand.small img { width: 132px; }
  .home-hero { min-height: auto; padding: 36px 0 70px; }
  .home-copy h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .home-mark { min-height: 300px; }
  .home-heart { width: 185px; height: 185px; border-radius: 56px; }
  .heart-shape { font-size: 5.8rem; }
  .roof { width: 82px; height: 82px; border-width: 11px 0 0 11px; top: 34px; }
  .ring-one { width: 245px; height: 245px; }
  .ring-two { width: 290px; height: 290px; }
  .auth-card { padding: 27px 21px; border-radius: 28px; }
  .page-head { padding-top: 18px; }
  .page-head h1 { font-size: clamp(2.7rem, 14vw, 4.6rem); }
  .app-card { min-height: 275px; }
  .app-card h2 { bottom: 72px; }
  .workout-hero-card { min-height: 330px; padding: 28px 23px; border-radius: 29px; }
  .workout-hero-card h1 { font-size: clamp(3rem, 14vw, 4.8rem); }
  .progress-panel, .days-panel, .photo-panel, .review-panel { padding: 20px; border-radius: 24px; }
  .progress-top, .section-heading, .review-lock, .review-ready { align-items: flex-start; }
  .review-lock, .review-ready { flex-direction: column; }
  .days-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .day-chip { min-height: 46px; }
  .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step-card { padding: 21px 16px; border-radius: 27px; min-height: 620px; }
  .step-kicker { flex-direction: column; gap: 5px; }
  .step-card > h1 { font-size: clamp(2.8rem, 14vw, 4.4rem); }
  .cues { grid-template-columns: 1fr; }
  .action-row > * { flex: 1 1 100%; }
  .timer-box { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Human-form demo refinement */
.motion-demo .pose-a,
.motion-demo .pose-b { transform-origin: center; }
.motion-demo .pose-a { animation: poseAReal 3.4s cubic-bezier(.45,0,.2,1) infinite; }
.motion-demo .pose-b { animation: poseBReal 3.4s cubic-bezier(.45,0,.2,1) infinite; }
@keyframes poseAReal {
  0%, 40% { opacity: 1; transform: translate(10px,16px) scale(1); }
  52%, 92% { opacity: .18; transform: translate(10px,16px) scale(.985); }
  100% { opacity: 1; transform: translate(10px,16px) scale(1); }
}
@keyframes poseBReal {
  0%, 40% { opacity: .18; transform: translate(330px,16px) scale(.985); }
  52%, 92% { opacity: 1; transform: translate(330px,16px) scale(1); }
  100% { opacity: .18; transform: translate(330px,16px) scale(.985); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
