/* ============================================================
   LANDING PAGE — signup/marketing page specific styles
   Extends style.css's tokens. The signature element here is the
   animated rotation-track mock in the hero: the same A-B-C-D-E
   track from the real app, but auto-advancing on its own so a
   visitor sees the core mechanic before they've even signed up.
   ============================================================ */

.landing-body {
  padding-bottom: 0;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 242, 233, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.landing-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-login-link {
  font-weight: 700;
  font-size: 0.9rem;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 2px solid var(--line-deep);
  transition: all 0.2s var(--ease-out);
}
.nav-login-link:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.landing-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero { padding: 56px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blade); }

.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero-title-accent {
  color: var(--blade);
  position: relative;
  display: inline-block;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 22px;
  max-width: 520px;
}

.hero-trust-row {
  display: flex;
  gap: 28px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.trust-stat { display: flex; flex-direction: column; }
.trust-stat .num { font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1; }
.trust-stat .label { font-size: 0.76rem; color: var(--ink-soft); font-weight: 600; margin-top: 3px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.floating-card-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.demo-today-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 22px;
  position: relative;
  animation: heroFloat 5s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-10px) rotate(0.4deg); }
}

.demo-card-head { display: flex; align-items: center; gap: 12px; }
.demo-letter-badge {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: white;
  transition: background 0.5s var(--ease-out);
  flex-shrink: 0;
}
.demo-card-titles { flex: 1; min-width: 0; }
.demo-workout-name {
  font-weight: 800;
  font-size: 1.15rem;
  transition: opacity 0.25s;
}
.demo-workout-sub { font-size: 0.82rem; color: var(--ink-soft); margin-top: 2px; transition: opacity 0.25s; }

.demo-ring-mini { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.demo-ring-mini svg { transform: rotate(-90deg); }
.demo-ring-mini .track { fill: none; stroke: var(--line); stroke-width: 7; }
.demo-ring-mini .fill { fill: none; stroke: var(--blade); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 0.6s var(--ease-out); }
.demo-ring-mini .pct { position: absolute; inset: 0; display: grid; place-items: center; font-size: 0.7rem; font-weight: 800; }

.demo-exercise-rows { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.demo-ex-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--cream-deep);
  border-radius: var(--r-md);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.3s, opacity 0.3s;
}
.demo-ex-row.done { background: var(--boathouse-wash); }
.demo-ex-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-deep);
  background: var(--paper);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-bounce);
}
.demo-ex-row.done .demo-ex-check { background: var(--success); border-color: var(--success); }
.demo-ex-check svg { width: 12px; height: 12px; color: white; opacity: 0; transition: opacity 0.2s; }
.demo-ex-row.done .demo-ex-check svg { opacity: 1; }
.demo-ex-name { flex: 1; }
.demo-ex-name.strike { text-decoration: line-through; color: var(--ink-faint); }

.demo-rotation-strip {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.demo-rotation-dot {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--cream-deep);
  color: var(--ink-faint);
  transition: all 0.4s var(--ease-bounce);
}
.demo-rotation-dot.current {
  transform: scale(1.18);
  color: white;
}
.demo-rotation-arrow { color: var(--line-deep); }

.hero-deco-dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
}

.signup-section {
  padding: 30px 0 70px;
  display: flex;
  justify-content: center;
}

.signup-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  width: 100%;
  max-width: 460px;
}

.signup-card-head h2 { font-size: 1.5rem; }
.signup-card-head p { margin-top: 6px; font-size: 0.92rem; }

.field-group { margin-top: 18px; }
.field-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field-group input {
  width: 100%;
  border: 2px solid var(--line);
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}
.field-group input:focus { outline: none; border-color: var(--blade); background: var(--paper); }
.field-group input.field-invalid { border-color: var(--danger); }
.field-group input.field-valid { border-color: var(--success); }

.field-hint { font-size: 0.74rem; color: var(--ink-faint); margin-top: 5px; }
.field-hint.error { color: var(--danger); font-weight: 600; }
.field-hint.success { color: var(--success); font-weight: 600; }

.password-strength {
  height: 5px;
  background: var(--cream-deep);
  border-radius: var(--r-pill);
  margin-top: 8px;
  overflow: hidden;
}
.password-strength-fill {
  height: 100%;
  width: 0%;
  background: var(--danger);
  border-radius: var(--r-pill);
  transition: width 0.25s var(--ease-out), background 0.25s;
}

.signup-submit-btn { margin-top: 22px; font-size: 1rem; padding: 15px; }
.signup-submit-btn:disabled { opacity: 0.6; }

.form-fineprint {
  font-size: 0.72rem;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}

.form-error-banner {
  background: var(--bow-pink-wash);
  color: var(--danger);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 16px;
  display: none;
}
.form-error-banner.show { display: block; }

.signup-success { text-align: center; padding: 10px 0; }
.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--boathouse-wash);
  color: var(--boathouse-deep);
  display: grid; place-items: center;
  margin: 0 auto 16px;
}
.signup-success h3 { font-size: 1.25rem; }
.signup-success p { margin-top: 8px; font-size: 0.92rem; }

.features-section { padding: 20px 0 70px; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 6px; }
.section-head .hero-eyebrow { justify-content: center; display: flex; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon-wrap {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }

.demo-section {
  background: var(--ink);
  border-radius: var(--r-xl);
  margin: 10px 0 70px;
  padding: 56px 40px;
  overflow: hidden;
}
.demo-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .demo-inner { grid-template-columns: 1fr; }
  .demo-section { padding: 40px 24px; }
}
.demo-copy h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.2; margin-top: 8px; }
.demo-copy p { margin-top: 14px; line-height: 1.6; font-size: 0.98rem; }

.demo-widget {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.final-cta-section {
  text-align: center;
  padding: 30px 0 80px;
}
.final-cta-section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 600px; margin: 0 auto; }
.final-cta-section p { margin-top: 10px; font-size: 1rem; }
.final-cta-btn {
  margin-top: 26px;
  font-size: 1.05rem;
  padding: 16px 32px;
}

.landing-footer {
  text-align: center;
  padding: 36px 24px 48px;
  border-top: 2px solid var(--line);
}

/* ---- Login page ---- */
.login-main {
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.login-card { max-width: 420px; }
.text-center { text-align: center; }

.login-banner {
  background: var(--buoy-wash);
  border: 2px solid var(--buoy-deep);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-top: 18px;
  font-size: 0.85rem;
}
.login-banner strong { color: var(--buoy-deep); }
.login-banner p { margin-top: 4px; color: var(--ink-soft); }

.fade-up {
  animation: fadeUp 0.7s var(--ease-out) backwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .demo-today-card { animation: none; }
}
