/* ============================================================
   SummitPace
   Design-System: identisch zu summitflow.li
   Fonts: Syncopate (display) · Onest (body)
   Colors: Navy · Lime-Grün · Hellblau
   ============================================================ */

@layer base, layout, components, animations, utilities;

@layer base {

:root {
  /* ── Farben (OKLCH wie auf summitflow.li) ── */
  --c-primary:       oklch(0.22 0.07 230);       /* #00344C dunkles Navy */
  --c-primary-dark:  oklch(0.15 0.06 230);
  --c-primary-mid:   oklch(0.30 0.08 230);
  --c-primary-light: oklch(0.40 0.08 230);

  --c-secondary:       oklch(0.75 0.09 220);     /* #6EC1E4 Hellblau */
  --c-secondary-light: oklch(0.88 0.05 220);

  --c-accent:      oklch(0.70 0.16 120);         /* #93C01C Lime-Grün */
  --c-accent-dark: oklch(0.58 0.16 120);

  --c-white:       #fff;
  --c-surface:     oklch(0.975 0.005 230);       /* Off-White */
  --c-surface-alt: oklch(0.955 0.01 230);
  --c-text:        oklch(0.15 0.03 230);
  --c-text-muted:  oklch(0.48 0.04 230);
  --c-border:      oklch(0.88 0.02 230);
  --c-border-hi:   oklch(0.78 0.04 230);

  /* ── Gradienten ── */
  --g-hero:   linear-gradient(135deg,
                oklch(0.15 0.06 230) 0%,
                oklch(0.22 0.07 230) 35%,
                oklch(0.28 0.08 220) 65%,
                oklch(0.18 0.07 230) 100%);
  --g-accent: linear-gradient(135deg, oklch(0.70 0.16 120), oklch(0.58 0.16 120));
  --g-card:   linear-gradient(145deg, #fff, oklch(0.975 0.005 230));

  /* ── Typografie ── */
  --font:         'Onest', system-ui, -apple-system, sans-serif;
  --font-display: 'Syncopate', sans-serif;

  --fs-xs:   clamp(0.75rem,  1.2vw, 0.875rem);
  --fs-sm:   clamp(0.875rem, 1.5vw, 0.95rem);
  --fs-base: clamp(1rem,     1.8vw, 1.1rem);
  --fs-lg:   clamp(1.125rem, 2vw,   1.25rem);
  --fs-xl:   clamp(1.25rem,  2.5vw, 1.5rem);
  --fs-2xl:  clamp(1.5rem,   3vw,   2rem);
  --fs-3xl:  clamp(2rem,     4vw,   2.75rem);
  --fs-hero: clamp(1.6rem,   3.5vw, 2.6rem);

  /* ── Abstände ── */
  --sp-2xs: 0.25rem;
  --sp-xs:  0.5rem;
  --sp-sm:  0.75rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;

  /* ── Radien ── */
  --r-sm:   0.5rem;
  --r-md:   0.875rem;
  --r-lg:   1.25rem;
  --r-xl:   2rem;
  --r-full: 9999px;

  /* ── Schatten ── */
  --sh-sm: 0 1px 4px oklch(0.15 0.03 230 / 0.08), 0 1px 2px oklch(0.15 0.03 230 / 0.05);
  --sh-md: 0 4px 16px oklch(0.15 0.03 230 / 0.10), 0 2px 6px oklch(0.15 0.03 230 / 0.07);
  --sh-lg: 0 12px 40px oklch(0.15 0.03 230 / 0.13), 0 4px 12px oklch(0.15 0.03 230 / 0.09);

  /* ── Übergänge ── */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 450ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ── Zonen-Farben ── */
  --z1: oklch(0.55 0.15 240);
  --z2: oklch(0.55 0.14 210);
  --z3: oklch(0.65 0.16 80);
  --z4: oklch(0.62 0.18 45);
  --z5: oklch(0.55 0.20 25);
  --z6: oklch(0.46 0.20 20);
  --z7: oklch(0.38 0.18 18);

  /* ── Sport-Farben ── */
  --swim-color:     oklch(0.60 0.13 220);
  --bike-color:     oklch(0.55 0.15 290);
  --run-color:      oklch(0.58 0.14 145);
  --brick-color:    oklch(0.62 0.16 50);
  --strength-color: oklch(0.58 0.15 330);

  /* ── Layout ── */
  --container-max: 1200px;
  --nav-h: 4rem;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--c-surface);
  color: var(--c-text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
}

} /* @layer base */

/* ============================================================
   Splash
   ============================================================ */
@layer components {

.splash {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--g-hero);
}

.splash-logo {
  width: 220px;
  animation: pulse-brand 1.4s ease-in-out infinite;
}

/* ============================================================
   Auth
   ============================================================ */
.auth-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-hero {
  background: var(--g-hero);
  background-size: 200% 200%;
  animation: hero-gradient 14s ease infinite;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--sp-2xl) var(--sp-2xl);
  position: relative;
  overflow: hidden;
}

/* Dot-Pattern wie auf der Website */
.auth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, oklch(1 0 0 / 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  position: relative;
  z-index: 1;
}

.auth-brand-logo {
  height: 72px;
  width: auto;
}

.auth-brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  color: oklch(0.90 0.03 220);
  text-transform: uppercase;
}

.auth-hero-content {
  position: relative;
  z-index: 1;
}

.auth-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-hero);
  line-height: 1.15;
  letter-spacing: 0.04em;
  color: var(--c-white);
  text-transform: uppercase;
  margin-bottom: var(--sp-lg);
}

.auth-headline em {
  font-style: normal;
  color: oklch(0.70 0.16 120);
}

.auth-tagline {
  font-size: var(--fs-sm);
  color: oklch(0.80 0.04 220);
  max-width: 340px;
  line-height: 1.7;
}

.auth-quote {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: var(--sp-lg) 0 0;
  border-top: 1px solid oklch(0.30 0.03 220 / 0.4);
  max-width: 42ch;
}

.auth-quote p {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-style: italic;
  font-weight: 400;
  line-height: 1.55;
  color: oklch(0.96 0.01 220);
  margin: 0 0 var(--sp-sm);
}

.auth-quote cite {
  font-style: normal;
  font-size: var(--fs-xs);
  color: oklch(0.70 0.16 120);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2xl);
  background: var(--c-white);
  position: relative;
}

.auth-form-box {
  width: 100%;
  max-width: 380px;
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid oklch(0.82 0.01 220);
  border-radius: var(--radius-sm);
  background: white;
  color: oklch(0.25 0.02 220);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.oauth-btn:hover {
  background: oklch(0.97 0.005 220);
  border-color: oklch(0.70 0.02 220);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin: var(--sp-lg) 0;
  color: oklch(0.60 0.02 220);
  font-size: var(--fs-xs);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: oklch(0.88 0.01 220);
}

.auth-form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-xs);
  color: var(--c-primary);
}

.auth-form-subtitle {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-bottom: var(--sp-xl);
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--sp-xl);
  border-bottom: 2px solid var(--c-border);
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: var(--sp-sm) var(--sp-md);
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.auth-tab.active {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: var(--sp-lg); }

.form-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-xs);
}

.form-input {
  width: 100%;
  background: var(--c-white);
  border: 1.5px solid var(--c-border);
  color: var(--c-text);
  font-family: var(--font);
  font-size: var(--fs-sm);
  padding: 0.7em 1em;
  border-radius: var(--r-md);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}

.form-input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px oklch(0.70 0.16 120 / 0.12);
}

.form-input::placeholder { color: var(--c-text-muted); }

.form-hint {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-top: var(--sp-2xs);
  line-height: 1.5;
}

.form-error {
  font-size: var(--fs-xs);
  color: oklch(0.55 0.20 25);
  margin-top: var(--sp-2xs);
  padding: var(--sp-sm) var(--sp-md);
  background: oklch(0.96 0.04 25);
  border: 1px solid oklch(0.80 0.12 25);
  border-radius: var(--r-sm);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.75em 1.75em;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t-base);
  white-space: nowrap;
  min-block-size: 44px;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--g-accent);
  color: var(--c-white);
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(0.92);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border: 1.5px solid var(--c-primary);
}
.btn-outline:hover {
  background: var(--c-primary);
  color: var(--c-white);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid oklch(1 0 0 / 0.5);
}
.btn-outline-light:hover {
  background: oklch(1 0 0 / 0.12);
  border-color: var(--c-white);
}

.btn-ghost {
  background: transparent;
  color: var(--c-text-muted);
  border: 1.5px solid var(--c-border);
}
.btn-ghost:hover {
  border-color: var(--c-border-hi);
  color: var(--c-text);
}

.btn-danger {
  background: transparent;
  color: oklch(0.55 0.20 25);
  border: 1.5px solid oklch(0.80 0.12 25);
}
.btn-danger:hover { background: oklch(0.96 0.04 25); }

.btn-full  { width: 100%; }
.btn-sm    { font-size: var(--fs-xs); padding: 0.55em 1.25em; min-block-size: 36px; }
.btn-large { font-size: var(--fs-base); padding: 0.9em 2.25em; }

.btn-icon  { width: 36px; height: 36px; padding: 0; border-radius: var(--r-sm); min-block-size: unset; }

.btn-loading::after {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid oklch(1 0 0 / 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ============================================================
   Section tag (wie auf summitflow.li)
   ============================================================ */
.section-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-accent);
  padding-bottom: var(--sp-2xs);
  border-bottom: 2px solid currentColor;
  margin-bottom: var(--sp-sm);
}

/* ============================================================
   Onboarding
   ============================================================ */
.onboarding-view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-xl);
  background: var(--c-surface);
}

.onboarding-header {
  text-align: center;
  margin-bottom: var(--sp-2xl);
}

.onboarding-step-indicator {
  display: flex;
  gap: var(--sp-xs);
  justify-content: center;
  margin-bottom: var(--sp-lg);
}

.step-dot {
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  background: var(--c-border);
  transition: all var(--t-base);
}
.step-dot.active { background: var(--c-accent); width: 24px; border-radius: 4px; }
.step-dot.done   { background: var(--c-accent-dark); }

.onboarding-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-primary);
  margin-bottom: var(--sp-xs);
}

.onboarding-subtitle { color: var(--c-text-muted); font-size: var(--fs-sm); }

.onboarding-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-2xl);
  width: 100%;
  max-width: 540px;
  box-shadow: var(--sh-md);
}

/* Sport selection */
.sport-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

.sport-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-lg) var(--sp-md);
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-base);
  font-family: var(--font);
}
.sport-btn:hover { border-color: var(--c-border-hi); box-shadow: var(--sh-sm); }
.sport-btn.selected {
  border-color: var(--c-accent);
  background: oklch(0.70 0.16 120 / 0.07);
}

.sport-icon  { font-size: 2rem; }
.sport-label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-text); }
.sport-btn.selected .sport-label { color: var(--c-accent-dark); }

/* Days selector */
.days-grid {
  display: flex;
  gap: var(--sp-xs);
  flex-wrap: wrap;
  margin-bottom: var(--sp-lg);
}

.day-btn {
  flex: 1;
  min-inline-size: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: var(--sp-sm) var(--sp-xs);
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: var(--font);
}
.day-btn.selected {
  border-color: var(--c-accent);
  background: oklch(0.70 0.16 120 / 0.07);
}

.day-abbr {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
}
.day-btn.selected .day-abbr { color: var(--c-accent-dark); }

/* Range */
.range-group { margin-bottom: var(--sp-lg); }

.range-display {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--c-primary);
  text-align: center;
  margin-bottom: var(--sp-sm);
  letter-spacing: 0.04em;
}
.range-unit { font-size: 1.4rem; font-weight: 400; color: var(--c-text-muted); }

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 4px;
  background: var(--c-border);
  border-radius: 2px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--g-accent);
  cursor: pointer;
  box-shadow: 0 0 0 4px oklch(0.70 0.16 120 / 0.15);
}

/* Goal type */
.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
  margin-bottom: var(--sp-lg);
}

.goal-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
  padding: var(--sp-lg) var(--sp-sm);
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all var(--t-base);
  font-family: var(--font);
  text-align: center;
}
.goal-btn.selected {
  border-color: var(--c-accent);
  background: oklch(0.70 0.16 120 / 0.07);
}
.goal-icon  { font-size: 1.5rem; }
.goal-label { font-size: var(--fs-xs); font-weight: 600; color: var(--c-text-muted); line-height: 1.3; }
.goal-btn.selected .goal-label { color: var(--c-accent-dark); }

/* ============================================================
   App Shell
   ============================================================ */
.app-shell {
  display: grid;
  grid-template-rows: var(--nav-h) 1fr;
  min-height: 100vh;
}

.topbar {
  background: var(--c-primary);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-xl);
  gap: var(--sp-lg);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 12px oklch(0.15 0.06 230 / 0.3);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.topbar-logo {
  height: 22px;
  width: auto;
  flex-shrink: 0;
}

.topbar-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: oklch(0.85 0.03 220);
  text-transform: uppercase;
}

.topbar-sep {
  width: 1px; height: 18px;
  background: oklch(1 0 0 / 0.12);
}

.phase-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 0.3rem 0.75rem;
  background: oklch(1 0 0 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: oklch(0.85 0.04 220);
}
.phase-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

.plan-tag {
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-full);
  background: oklch(1 0 0 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.12);
  color: oklch(0.82 0.04 220);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plan-tag.highlight {
  background: oklch(0.70 0.16 120 / 0.15);
  border-color: oklch(0.70 0.16 120 / 0.35);
  color: oklch(0.75 0.16 120);
}

.topbar-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.avatar-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: oklch(1 0 0 / 0.08);
  border: 1px solid oklch(1 0 0 / 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  color: oklch(0.85 0.04 220);
  cursor: pointer;
  transition: all var(--t-fast);
  letter-spacing: 0.04em;
}
.avatar-btn:hover {
  background: oklch(1 0 0 / 0.14);
  border-color: oklch(1 0 0 / 0.3);
}

/* ============================================================
   Dashboard
   ============================================================ */
.dashboard {
  display: grid;
  grid-template-columns: 1fr 300px;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}

.dashboard-main {
  overflow-y: auto;
  padding: var(--sp-xl) var(--sp-2xl);
  background: var(--c-surface);
}

.dashboard-sidebar {
  background: var(--c-white);
  border-inline-start: 1px solid var(--c-border);
  overflow-y: auto;
  padding: var(--sp-xl) var(--sp-lg);
}

/* Plan header */
.plan-header { margin-bottom: var(--sp-xl); }

.plan-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-sm);
  flex-wrap: wrap;
}

.plan-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c-primary);
  line-height: 1.15;
  margin-bottom: var(--sp-sm);
}

.plan-summary {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: 1.7;
  max-width: 640px;
}

/* Week nav */
.week-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.week-label {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.week-dots { display: flex; gap: var(--sp-xs); }
.week-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-border);
  cursor: pointer;
  transition: background var(--t-fast);
}
.week-dot.active { background: var(--c-accent); }

/* Week grid */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--sp-md);
  margin-bottom: var(--sp-2xl);
}

/* Day column */
.day-col { display: flex; flex-direction: column; gap: var(--sp-xs); }

.day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: var(--sp-sm);
  border-bottom: 2px solid var(--c-border);
  margin-bottom: var(--sp-2xs);
}

.day-name {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text-muted);
}
.day-date {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.1;
  margin-top: 2px;
}

.day-header.today { border-bottom-color: var(--c-accent); }
.day-header.today .day-date { color: var(--c-accent-dark); }
.day-header.today .day-name { color: var(--c-accent); }

/* Workout card */
.workout-card {
  background: var(--g-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: var(--sp-sm) var(--sp-sm) var(--sp-sm) calc(var(--sp-sm) + 3px);
  cursor: pointer;
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-sm);
}

/* Farbiger linker Balken */
.workout-card::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
}

.workout-card[data-sport="Schwimmen"]::before { background: var(--swim-color); }
.workout-card[data-sport="Rad"]::before       { background: var(--bike-color); }
.workout-card[data-sport="Laufen"]::before    { background: var(--run-color); }
.workout-card[data-sport="Brick"]::before     { background: var(--brick-color); }
.workout-card[data-sport="Kraft"]::before     { background: var(--strength-color); }

.workout-card:hover {
  border-color: var(--c-border-hi);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

.workout-card.completed {
  opacity: 0.5;
  filter: saturate(0.4);
}

.workout-card.completed::after {
  content: '✓';
  position: absolute;
  inset-block-start: 5px;
  inset-inline-end: 7px;
  color: var(--c-accent);
  font-size: 0.7rem;
  font-weight: 700;
}

.workout-sport { font-size: 1rem; margin-bottom: 3px; }

.workout-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
  margin-bottom: var(--sp-xs);
}

.workout-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  flex-wrap: wrap;
}

.workout-duration {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--c-text-muted);
  font-variant-numeric: tabular-nums;
}

/* Zone badge — heller Hintergrund mit farbigem Text */
.zone-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.zone-badge[data-zone="Z1"] { background: oklch(0.55 0.15 240 / 0.12); color: var(--z1); }
.zone-badge[data-zone="Z2"] { background: oklch(0.55 0.14 210 / 0.12); color: var(--z2); }
.zone-badge[data-zone="Z3"] { background: oklch(0.65 0.16 80  / 0.15); color: var(--z3); }
.zone-badge[data-zone="Z4"] { background: oklch(0.62 0.18 45  / 0.15); color: var(--z4); }
.zone-badge[data-zone="Z5"] { background: oklch(0.55 0.20 25  / 0.15); color: var(--z5); }
.zone-badge[data-zone="Z6"] { background: oklch(0.46 0.20 20  / 0.15); color: var(--z6); }
.zone-badge[data-zone="Z7"] { background: oklch(0.38 0.18 18  / 0.15); color: var(--z7); }
.zone-badge[data-zone="LOC"],
.zone-badge[data-zone="MIX"] { background: var(--c-surface-alt); color: var(--c-text-muted); }

/* ============================================================
   Sidebar
   ============================================================ */
.sidebar-section { margin-bottom: var(--sp-xl); }

.sidebar-upsell {
  margin-top: var(--sp-xl);
  padding: var(--sp-lg);
  border: 1px solid oklch(0.70 0.16 120 / 0.2);
  border-radius: var(--radius-md);
  background: oklch(0.70 0.16 120 / 0.04);
}

.sidebar-upsell-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: oklch(0.75 0.14 120);
  margin-bottom: var(--sp-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sidebar-upsell-text {
  font-size: var(--fs-xs);
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: var(--sp-md);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: oklch(0.11 0.03 220);
  border-top: 1px solid oklch(0.28 0.03 220);
  padding: var(--sp-lg) var(--sp-2xl);
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  flex-wrap: wrap;
  box-shadow: 0 -4px 30px oklch(0 0 0 / 0.4);
  animation: reveal-up 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cookie-banner-text {
  flex: 1;
  font-size: var(--fs-sm);
  color: oklch(0.75 0.02 220);
  line-height: 1.5;
  margin: 0;

  & a { color: oklch(0.70 0.16 120); text-decoration: underline; text-underline-offset: 2px; }
}

.cookie-banner-actions {
  display: flex;
  gap: var(--sp-sm);
  flex-shrink: 0;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: var(--sp-md);
    gap: var(--sp-md);
  }
}

.sidebar-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--c-accent);
  padding-bottom: var(--sp-2xs);
  border-bottom: 2px solid var(--c-accent);
  margin-bottom: var(--sp-md);
  display: inline-block;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--c-border);
}
.stat-row:last-child { border-bottom: none; }

.stat-key { font-size: var(--fs-sm); color: var(--c-text-muted); }
.stat-val  {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-text);
  font-variant-numeric: tabular-nums;
}

.progress-bar {
  height: 5px;
  background: var(--c-surface-alt);
  border-radius: var(--r-full);
  overflow: hidden;
  margin-top: var(--sp-xs);
}
.progress-fill {
  height: 100%;
  background: var(--g-accent);
  border-radius: var(--r-full);
  transition: width 0.4s ease;
}

/* Generate CTA */
.generate-cta {
  background: var(--c-primary);
  border-radius: var(--r-lg);
  padding: var(--sp-xl) var(--sp-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.generate-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, oklch(1 0 0 / 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
}

.generate-cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-white);
  margin-bottom: var(--sp-xs);
  position: relative;
}
.generate-cta-sub {
  font-size: var(--fs-xs);
  color: oklch(0.75 0.04 220);
  line-height: 1.6;
  margin-bottom: var(--sp-lg);
  position: relative;
}

/* Empty state */
.empty-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 55vh;
  gap: var(--sp-lg);
  padding: var(--sp-2xl);
}

.empty-plan-icon { font-size: 3.5rem; opacity: 0.35; }

.empty-plan-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-primary);
}

.empty-plan-desc {
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  max-width: 340px;
  line-height: 1.7;
}

/* ============================================================
   Workout Drawer
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.15 0.03 230 / 0.55);
  z-index: 50;
  backdrop-filter: blur(3px);
}

.workout-drawer {
  position: fixed;
  inset-inline-end: 0;
  inset-block: 0;
  width: 480px;
  background: var(--c-white);
  border-inline-start: 1px solid var(--c-border);
  z-index: 60;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--sh-xl, -20px 0 60px oklch(0.15 0.03 230 / 0.15));
}
.workout-drawer.open { transform: translateX(0); }

/* Drawer header mit Sportfarbe als Top-Bar */
.drawer-header {
  padding: var(--sp-xl) var(--sp-xl) var(--sp-lg);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  position: relative;
}

.drawer-header::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--g-accent);
}

.drawer-sport-icon { font-size: 2rem; flex-shrink: 0; }

.drawer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xl);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c-primary);
  flex: 1;
  line-height: 1.2;
}

.drawer-close {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--c-text-muted);
  flex-shrink: 0;
  transition: all var(--t-fast);
}
.drawer-close:hover { color: var(--c-text); border-color: var(--c-border-hi); }

.drawer-body { padding: var(--sp-xl); }

.drawer-meta-row {
  display: flex;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
  flex-wrap: wrap;
}

.drawer-meta-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-md) var(--sp-lg);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  min-inline-size: 80px;
}

.drawer-meta-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-xl);
  color: var(--c-primary);
  letter-spacing: 0.04em;
}

.drawer-meta-key {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* Structure blocks */
.structure-block { margin-bottom: var(--sp-md); }

.structure-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-xs);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}
.structure-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--c-border);
}

.structure-content {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: var(--sp-md) var(--sp-lg);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--c-text);
}

.structure-content strong {
  color: var(--c-accent-dark);
  font-weight: 700;
}

.drawer-notes {
  background: oklch(0.70 0.16 120 / 0.07);
  border: 1px solid oklch(0.70 0.16 120 / 0.2);
  border-radius: var(--r-sm);
  padding: var(--sp-md) var(--sp-lg);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-xl);
}
.drawer-notes::before { content: '💡 '; }

.feedback-section {
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-xl);
}

.feedback-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-md);
}

.feedback-buttons {
  display: flex;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.feedback-note-input {
  resize: vertical;
  min-height: 72px;
  font-size: var(--fs-sm);
}

/* ============================================================
   Reschedule section
   ============================================================ */
.reschedule-section {
  border-top: 1px solid var(--c-border);
  padding-top: var(--sp-xl);
  padding-bottom: var(--sp-xl);
}

.reschedule-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-text-muted);
  margin-bottom: var(--sp-md);
}

.reschedule-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--sp-xs);
}

.day-btn {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--c-surface-2, transparent);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm, 6px);
  padding: var(--sp-sm) 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.day-btn:hover:not(:disabled) {
  border-color: var(--lime);
  color: var(--lime);
}

.day-btn.active {
  background: var(--lime);
  color: var(--c-bg);
  border-color: var(--lime);
  cursor: default;
}

.day-btn:disabled {
  opacity: 0.6;
}

/* ============================================================
   Warning dialog (Override-Bestätigungen beim Verschieben)
   ============================================================ */
.warning-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 1001;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  align-self: center;
  display: flex;
  flex-direction: column;
  height: fit-content;
}

.warning-dialog.open {
  transform: scale(1);
  opacity: 1;
}

.warning-dialog.hidden { display: none; }

.warning-dialog-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-xl);
  border-bottom: 1px solid var(--c-border);
}

.warning-dialog-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.warning-dialog-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-text);
}

.warning-dialog-body {
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.warning-item {
  padding: var(--sp-md);
  border-radius: 6px;
  font-size: var(--fs-sm);
  line-height: 1.5;
  border-left: 3px solid;
}

.warning-hard {
  background: oklch(0.3 0.1 20 / 0.25);
  border-color: oklch(0.65 0.2 25);
  color: oklch(0.9 0.05 25);
}

.warning-soft {
  background: oklch(0.35 0.08 85 / 0.25);
  border-color: oklch(0.75 0.15 85);
  color: oklch(0.92 0.04 85);
}

.warning-dialog-hint {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  margin-top: var(--sp-sm);
  font-style: italic;
}

.warning-dialog-actions {
  display: flex;
  gap: var(--sp-sm);
  padding: var(--sp-lg) var(--sp-xl);
  border-top: 1px solid var(--c-border);
  justify-content: flex-end;
}

/* ============================================================
   Toast
   ============================================================ */
.toast-container {
  position: fixed;
  inset-block-end: var(--sp-xl);
  inset-inline-end: var(--sp-xl);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
  pointer-events: none;
}

.toast {
  background: var(--c-primary);
  border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: var(--r-md);
  padding: var(--sp-md) var(--sp-lg);
  font-size: var(--fs-sm);
  color: var(--c-white);
  box-shadow: var(--sh-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  animation: toast-in 0.25s ease;
  pointer-events: auto;
  max-inline-size: 360px;
}
.toast.success { border-color: oklch(0.70 0.16 120 / 0.4); }
.toast.error   { background: oklch(0.50 0.20 25); }

/* ============================================================
   Waitlist Modal
   ============================================================ */
.modal-overlay:not(.hidden) {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: oklch(0.05 0.02 220 / 0.85);
  backdrop-filter: blur(6px);
  z-index: 200;
  padding: var(--sp-xl);
}

.waitlist-modal {
  position: relative;
  background: oklch(0.14 0.02 220);
  border: 1px solid oklch(0.25 0.03 220);
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl);
  max-width: 420px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.waitlist-modal--success {
  border-color: oklch(0.70 0.16 120 / 0.5);
}

.waitlist-modal-close {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  background: none;
  border: none;
  color: oklch(0.55 0.04 220);
  font-size: var(--fs-base);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.15s;
}

.waitlist-modal-close:hover { color: oklch(0.80 0.03 220); }

.waitlist-modal-icon {
  font-size: 2.5rem;
}

.waitlist-modal-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: oklch(0.97 0.01 220);
  letter-spacing: 0.04em;
  margin: 0;
}

.waitlist-modal-sub {
  font-size: var(--fs-sm);
  color: oklch(0.68 0.04 220);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   Paywall
   ============================================================ */
.paywall-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g-hero);
  padding: var(--sp-2xl);
}

.paywall-inner {
  max-width: 860px;
  width: 100%;
  text-align: center;
}

.paywall-logo {
  height: 52px;
  width: auto;
  margin-bottom: var(--sp-xl);
}

.paywall-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: oklch(0.98 0.01 220);
  letter-spacing: 0.04em;
  margin: 0 0 var(--sp-sm);
}

.paywall-sub {
  color: oklch(0.68 0.04 220);
  font-size: var(--fs-base);
  margin: 0 0 var(--sp-2xl);
}

.paywall-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-lg);
  margin-bottom: var(--sp-xl);
}

.paywall-card {
  position: relative;
  background: oklch(0.14 0.02 220);
  border: 1px solid oklch(0.22 0.03 220);
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  text-align: left;
}

.paywall-card--featured {
  border-color: oklch(0.70 0.16 120 / 0.6);
  background: oklch(0.14 0.03 140);
}

.paywall-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: oklch(0.70 0.16 120);
  color: oklch(0.10 0.02 220);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 99px;
}

.paywall-plan-name {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.60 0.04 220);
}

.paywall-price {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: oklch(0.98 0.01 220);
}

.paywall-price span {
  font-size: var(--fs-base);
  font-weight: 400;
  color: oklch(0.60 0.04 220);
}

.paywall-price-sub {
  font-size: var(--fs-xs);
  color: oklch(0.70 0.16 120);
  font-weight: 600;
  margin-top: calc(-1 * var(--sp-sm));
}

.paywall-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  flex: 1;
}

.paywall-features li {
  font-size: var(--fs-sm);
  color: oklch(0.78 0.03 220);
  padding-left: var(--sp-md);
  position: relative;
}

.paywall-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: oklch(0.70 0.16 120);
  font-weight: 700;
}

.paywall-logout {
  background: none;
  border: none;
  color: oklch(0.45 0.03 220);
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: color 0.15s;
}

.paywall-logout:hover { color: oklch(0.65 0.04 220); }

/* ============================================================
   Generating overlay
   ============================================================ */
.generating-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0.15 0.06 230 / 0.88);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xl);
  backdrop-filter: blur(6px);
}

.generating-spinner {
  width: 52px; height: 52px;
  border: 3px solid oklch(1 0 0 / 0.15);
  border-top-color: var(--c-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.generating-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-white);
}

.generating-sub {
  font-size: var(--fs-sm);
  color: oklch(0.72 0.04 220);
  text-align: center;
  max-width: 300px;
  line-height: 1.6;
}

/* ============================================================
   Divider / Utilities
   ============================================================ */
.divider {
  height: 1px;
  background: var(--c-border);
  margin: var(--sp-lg) 0;
}

/* ============================================================
   Landing Page
   ============================================================ */

/* Coming Soon Bar */
.landing-coming-soon-bar {
  background: oklch(0.70 0.16 120);
  color: oklch(0.10 0.02 220);
  text-align: center;
  padding: 10px var(--sp-xl);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
}

.landing-coming-soon-cta {
  background: oklch(0.10 0.02 220);
  color: oklch(0.70 0.16 120);
  border: none;
  border-radius: 99px;
  padding: 4px 14px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
}

.landing-coming-soon-cta:hover { opacity: 0.85; }

/* ── Landing Animations ── */

/* Orb mesh gradient */
.landing-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
  animation: orb-float ease-in-out infinite;
}

.hero-orb-1 {
  width: 700px; height: 700px;
  background: oklch(0.65 0.18 145);
  top: -250px; left: -150px;
  animation-duration: 22s;
}

.hero-orb-2 {
  width: 500px; height: 500px;
  background: oklch(0.50 0.15 220);
  top: 50px; right: -150px;
  animation-duration: 17s;
  animation-direction: reverse;
}

.hero-orb-3 {
  width: 350px; height: 350px;
  background: oklch(0.72 0.20 140);
  bottom: -100px; left: 35%;
  animation-duration: 28s;
  animation-delay: -8s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(40px, -50px) scale(1.07); }
  66%       { transform: translate(-30px, 25px) scale(0.94); }
}

/* Text reveal */
.hero-reveal {
  overflow: hidden;
  display: block;
}

.hero-reveal > span {
  display: block;
  animation: reveal-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.1s;
}

.hero-reveal--delay > span  { animation-delay: 0.28s; }
.hero-reveal--delay2 > span { animation-delay: 0.45s; }

@keyframes reveal-up {
  from { transform: translateY(70px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Scroll-triggered cards */
.landing-feature-card,
.landing-pricing-card {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.landing-feature-card.visible,
.landing-pricing-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card hover lift */
.landing-feature-card:hover {
  transform: translateY(-4px);
  transition: transform 0.25s ease, opacity 0.6s ease;
}

/* Nav */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-md) var(--sp-2xl);
  background: oklch(0.10 0.02 220 / 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(0.25 0.03 220 / 0.5);
}

.landing-nav-logo {
  height: 36px;
  width: auto;
}

.landing-nav-actions {
  display: flex;
  gap: var(--sp-sm);
  align-items: center;
}

@media (max-width: 600px) {
  .landing-nav {
    padding: var(--sp-md) var(--sp-md);
  }
  .landing-nav-logo {
    height: 28px;
  }
  .landing-nav-actions {
    display: none;
  }
}

/* Hero */
.landing-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--g-hero);
  background-size: 300% 300%;
  animation: hero-gradient 12s ease infinite;
  padding: var(--sp-3xl) var(--sp-2xl);
  text-align: center;
}

.landing-hero-inner {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.landing-hero-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.70 0.16 120);
  border: 1px solid oklch(0.70 0.16 120 / 0.4);
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: var(--sp-lg);
}

.landing-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: oklch(0.98 0.01 220);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 var(--sp-lg);
}

.landing-hero-accent {
  color: oklch(0.70 0.16 120);
}

.landing-hero-sub {
  font-size: var(--fs-lg);
  color: oklch(0.75 0.03 220);
  line-height: 1.6;
  max-width: 54ch;
  margin: 0 auto var(--sp-2xl);
}

.landing-hero-cta {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Shared section */
.landing-section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--sp-3xl) var(--sp-2xl);
}

.landing-section-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: oklch(0.95 0.02 220);
  text-align: center;
  margin: 0 0 var(--sp-xl);
  letter-spacing: 0.04em;
}

.landing-section-sub {
  text-align: center;
  color: oklch(0.65 0.04 220);
  font-size: var(--fs-base);
  margin: calc(-1 * var(--sp-lg)) 0 var(--sp-xl);
}

/* Features */
.landing-features {
  background: oklch(0.11 0.02 220);
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-lg);
}

.landing-feature-card {
  background: oklch(0.14 0.02 220);
  border: 1px solid oklch(0.22 0.03 220);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
}

.landing-feature-icon {
  font-size: 2rem;
  margin-bottom: var(--sp-md);
}

.landing-feature-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: oklch(0.95 0.02 220);
  margin: 0 0 var(--sp-sm);
  text-transform: uppercase;
}

.landing-feature-card p {
  font-size: var(--fs-sm);
  color: oklch(0.68 0.04 220);
  line-height: 1.6;
  margin: 0;
}

/* Pricing */
.landing-pricing {
  background: oklch(0.09 0.02 220);
}

.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-lg);
  max-width: 720px;
  margin: 0 auto;
}

.landing-pricing-card {
  position: relative;
  background: oklch(0.14 0.02 220);
  border: 1px solid oklch(0.22 0.03 220);
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.landing-pricing-card--featured {
  border-color: oklch(0.70 0.16 120 / 0.6);
  background: oklch(0.14 0.03 140);
}

.landing-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: oklch(0.70 0.16 120);
  color: oklch(0.10 0.02 220);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 99px;
}

.landing-pricing-name {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(0.65 0.04 220);
}

.landing-pricing-price {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: oklch(0.98 0.01 220);
}

.landing-pricing-price span {
  font-size: var(--fs-base);
  font-weight: 400;
  color: oklch(0.65 0.04 220);
}

.landing-pricing-saving {
  font-size: var(--fs-xs);
  color: oklch(0.70 0.16 120);
  font-weight: 600;
  margin-top: calc(-1 * var(--sp-md));
}

.landing-pricing-flexible {
  color: oklch(0.60 0.04 220);
}

.landing-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  flex: 1;
}

.landing-pricing-features li {
  font-size: var(--fs-sm);
  color: oklch(0.78 0.03 220);
  padding-left: var(--sp-md);
  position: relative;
}

.landing-pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: oklch(0.70 0.16 120);
  font-weight: 700;
}

/* Footer */
.landing-footer {
  background: oklch(0.08 0.02 220);
  border-top: 1px solid oklch(0.18 0.03 220);
  padding: var(--sp-2xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
}

.landing-footer-logo {
  height: 40px;
  width: auto;
  opacity: 0.6;
}

.landing-footer p {
  font-size: var(--fs-xs);
  color: oklch(0.45 0.03 220);
  margin: 0;
}

.landing-footer-sub {
  color: oklch(0.38 0.03 220);
}

.landing-footer-link {
  color: oklch(0.70 0.16 120);
  text-decoration: none;
}

.landing-footer-link:hover {
  text-decoration: underline;
}

.landing-footer-links {
  display: flex;
  gap: var(--sp-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.landing-footer-links a {
  font-size: var(--fs-xs);
  color: oklch(0.45 0.03 220);
  text-decoration: none;
  transition: color 0.15s;
}

.landing-footer-links a:hover {
  color: oklch(0.70 0.16 120);
}

/* ============================================================
   Legal Pages
   ============================================================ */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: oklch(0.09 0.02 220);
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-lg) var(--sp-2xl);
  border-bottom: 1px solid oklch(0.18 0.03 220);
}

.legal-nav-logo img { display: block; }

.legal-back {
  font-size: var(--fs-sm);
  color: oklch(0.60 0.04 220);
  text-decoration: none;
  transition: color 0.15s;
}

.legal-back:hover { color: oklch(0.85 0.03 220); }

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-3xl) var(--sp-2xl);
  flex: 1;
}

.legal-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: oklch(0.97 0.01 220);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 var(--sp-sm);
}

.legal-intro {
  font-size: var(--fs-sm);
  color: oklch(0.55 0.04 220);
  margin: 0 0 var(--sp-2xl);
}

.legal-section {
  margin-bottom: var(--sp-2xl);
  padding-bottom: var(--sp-2xl);
  border-bottom: 1px solid oklch(0.16 0.03 220);
}

.legal-section:last-child {
  border-bottom: none;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.85 0.02 220);
  margin: 0 0 var(--sp-md);
}

.legal-section h3 {
  font-size: var(--fs-base);
  font-weight: 600;
  color: oklch(0.80 0.03 220);
  margin: var(--sp-lg) 0 var(--sp-sm);
}

.legal-section p {
  font-size: var(--fs-sm);
  color: oklch(0.68 0.04 220);
  line-height: 1.7;
  margin: 0 0 var(--sp-sm);
}

.legal-section ul {
  padding-left: var(--sp-lg);
  margin: 0;
}

.legal-section ul li {
  font-size: var(--fs-sm);
  color: oklch(0.68 0.04 220);
  line-height: 1.7;
  margin-bottom: var(--sp-xs);
}

.legal-section a {
  color: oklch(0.70 0.16 120);
  text-decoration: none;
}

.legal-section a:hover { text-decoration: underline; }

.legal-footer {
  border-top: 1px solid oklch(0.16 0.03 220);
  padding: var(--sp-xl) var(--sp-2xl);
  text-align: center;
}

.legal-footer p {
  font-size: var(--fs-xs);
  color: oklch(0.40 0.03 220);
  margin: 0;
}

.legal-footer a {
  color: oklch(0.50 0.03 220);
  text-decoration: none;
  margin: 0 var(--sp-sm);
}

.legal-footer a:hover { color: oklch(0.70 0.16 120); }

/* Buttons */
.btn-primary {
  background: oklch(0.70 0.16 120);
  color: oklch(0.10 0.02 220);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s;
  width: 100%;
}

.btn-primary:hover { opacity: 0.85; }

.btn-ghost {
  background: transparent;
  color: oklch(0.80 0.03 220);
  border: 1px solid oklch(0.30 0.03 220);
  border-radius: var(--radius-sm);
  padding: 10px 22px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover {
  border-color: oklch(0.55 0.04 220);
  color: oklch(0.95 0.02 220);
}

.btn-lg {
  padding: 14px 32px;
  font-size: var(--fs-sm);
  width: auto;
}

/* Auth back button */
.auth-back-btn {
  position: absolute;
  top: var(--sp-lg);
  left: var(--sp-lg);
  background: none;
  border: none;
  color: oklch(0.60 0.04 220);
  font-size: var(--fs-sm);
  cursor: pointer;
  padding: var(--sp-xs) var(--sp-sm);
  transition: color 0.15s;
}

.auth-back-btn:hover { color: oklch(0.85 0.03 220); }

} /* @layer components */

/* ============================================================
   Animations
   ============================================================ */
@layer animations {

@keyframes hero-gradient {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes pulse-brand {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

} /* @layer animations */

/* ============================================================
   Utilities
   ============================================================ */
@layer utilities {
.hidden { display: none !important; }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--sp-sm); }
.gap-md { gap: var(--sp-md); }
.mt-sm  { margin-top: var(--sp-sm); }
.mt-md  { margin-top: var(--sp-md); }
.mb-md  { margin-bottom: var(--sp-md); }
} /* @layer utilities */

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .dashboard {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    height: auto;
    overflow: auto;
  }
  .dashboard-main  { height: auto; }
  .dashboard-sidebar {
    border-inline-start: none;
    border-block-start: 1px solid var(--c-border);
    height: auto;
  }
  .week-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .auth-view { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
  .week-grid { grid-template-columns: repeat(2, 1fr); }
  .workout-drawer { width: 100%; }
  .dashboard-main { padding: var(--sp-lg); }
}
