/* ============================================================
   RUTINN — Minimalista premium
   Paleta: blanco / grises / negro / acento sutil verde lima
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,800&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg: #fafaf9;
  --surface: #ffffff;
  --surface-2: #f4f4f3;
  --border: #e7e6e3;
  --border-2: #d4d3cf;
  --ink: #0a0a0a;
  --ink-2: #2a2a2a;
  --muted: #6b6b68;
  --muted-2: #9a9a96;
  --accent: #c9f24e;        /* verde lima sutil pero distintivo */
  --accent-ink: #1a2a08;
  --danger: #d64545;
  --gold: #d4a548;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  /* Spacing */
  --container: 1200px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; }

/* ------------- Layout ------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ------------- Header ------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-bottom: 4px; }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s;
}
.nav a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ------------- Buttons ------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transition: all .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: white;
}
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-accent:hover { filter: brightness(0.95); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--border-2);
}
.btn-danger:hover { background: #fef2f2; border-color: var(--danger); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-block { width: 100%; }

/* ------------- Hero ------------- */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero-eyebrow .pulse {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin-bottom: 24px;
  font-variation-settings: 'opsz' 144;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted-2);
}
.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-stat .label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-card-float {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
}
.hero-card-float .avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.hero-card-float .name { font-weight: 700; font-size: 14px; }
.hero-card-float .meta { font-size: 12px; color: var(--muted); }
.hero-card-float .stars { font-size: 12px; color: var(--gold); margin-left: auto; }

/* ------------- Section headers ------------- */
.section { padding: 80px 0; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  max-width: 600px;
}
.section-header h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted-2);
}
.section-header p {
  color: var(--muted);
  max-width: 360px;
}

/* ------------- Filter chips ------------- */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.chip {
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: all .15s;
}
.chip:hover { border-color: var(--border-2); color: var(--ink); }
.chip.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

/* ------------- Cards: trainers ------------- */
.trainers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.trainer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.trainer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.trainer-card .cover {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.trainer-card .cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.trainer-card:hover .cover img { transform: scale(1.05); }
.trainer-card .avatar {
  position: absolute;
  bottom: -28px;
  left: 20px;
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 4px solid var(--surface);
  object-fit: cover;
}
.trainer-card .body {
  padding: 36px 20px 20px;
}
.trainer-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.trainer-card .handle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.trainer-card .specialties {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 14px;
}
.trainer-card .tag {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--surface-2);
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 500;
}
.trainer-card .stats {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.trainer-card .stats span strong {
  color: var(--ink);
  font-weight: 700;
}

/* ------------- Cards: routines ------------- */
.routines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.routine-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.routine-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.routine-card .cover {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.routine-card .cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.routine-card:hover .cover img { transform: scale(1.05); }
.routine-card .level-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0,0,0,0.75);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}
.routine-card .price-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}
.routine-card .body { padding: 18px 20px 20px; }
.routine-card .category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.routine-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.2;
}
.routine-card .meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
}
.routine-card .meta .dot { width: 3px; height: 3px; background: var(--border-2); border-radius: 50%; }
.routine-card .rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
  margin-top: 10px;
}
.routine-card .rating .star { color: var(--gold); }
.routine-card .rating .reviews { color: var(--muted); font-weight: 400; }

/* ------------- Trainer profile page ------------- */
.profile-cover {
  aspect-ratio: 4/1;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-cover::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.5));
}
.profile-header {
  position: relative;
  margin-top: -80px;
  padding-bottom: 40px;
}
.profile-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.profile-card .avatar-lg {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--surface);
}
.profile-card h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.profile-card .meta-row {
  display: flex; gap: 20px; align-items: center;
  color: var(--muted); font-size: 14px;
  margin-bottom: 12px;
}
.profile-card .bio { color: var(--ink-2); max-width: 600px; line-height: 1.6; }
.profile-card .price-cta { text-align: right; }
.profile-card .price-cta .price {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.profile-card .price-cta .per {
  font-size: 13px; color: var(--muted);
  margin-bottom: 12px;
}

/* ------------- Routine detail page ------------- */
.routine-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding: 60px 0 40px;
}
.routine-hero .video-wrap {
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
}
.routine-hero iframe { width: 100%; height: 100%; border: 0; }
.routine-hero h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.routine-hero .meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 24px;
}
.routine-hero .meta .pill {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
}
.routine-hero .desc { color: var(--muted); margin-bottom: 24px; line-height: 1.6; }
.routine-hero .by-trainer {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 24px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.routine-hero .by-trainer img {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}
.routine-hero .by-trainer .name { font-weight: 700; font-size: 14px; }
.routine-hero .by-trainer .label { font-size: 12px; color: var(--muted); }

.purchase-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.purchase-box .opt {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color .2s;
}
.purchase-box .opt strong { font-size: 15px; }
.purchase-box .opt .small { font-size: 12px; color: var(--muted); }
.purchase-box .opt .price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

/* ------------- Weekly plan ------------- */
.weekly-plan {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.weekly-plan:last-child { border-bottom: 0; }
.weekly-plan .day {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.weekly-plan .focus {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.weekly-plan ul { list-style: none; }
.weekly-plan li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink-2);
  position: relative;
  padding-left: 20px;
}
.weekly-plan li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.weekly-plan li.completed { text-decoration: line-through; color: var(--muted-2); }
.weekly-plan li.completed::before { background: var(--muted-2); }

/* Locked state */
.locked-overlay {
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-lg);
  padding: 60px 30px;
  text-align: center;
}
.locked-overlay .icon {
  font-size: 36px;
  margin-bottom: 16px;
  display: inline-block;
}
.locked-overlay h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.locked-overlay p { color: var(--muted); margin-bottom: 24px; max-width: 460px; margin-left: auto; margin-right: auto; }

/* ------------- Auth pages ------------- */
.auth-wrap {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-side {
  background: var(--ink);
  color: white;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute;
  top: 50%; right: -20%;
  width: 600px; height: 600px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  transform: translateY(-50%);
}
.auth-side h2 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  position: relative;
  margin-bottom: 16px;
}
.auth-side h2 em { font-style: italic; color: var(--accent); }
.auth-side p { color: rgba(255,255,255,0.6); max-width: 380px; position: relative; }
.auth-side .testimonial {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
}
.auth-side .testimonial blockquote {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.auth-side .testimonial cite {
  font-style: normal;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.auth-form-side {
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-form {
  width: 100%;
  max-width: 400px;
}
.auth-form h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.auth-form .subtitle { color: var(--muted); margin-bottom: 32px; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--surface-2);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}
.role-toggle button {
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  color: var(--muted);
  transition: all .15s;
}
.role-toggle button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.auth-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.auth-tabs button {
  padding: 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: all .15s;
}
.auth-tabs button.active {
  color: var(--ink);
  border-color: var(--ink);
}
.alert {
  padding: 12px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #991b1b;
  margin-bottom: 16px;
}
.alert.success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* ------------- Dashboard user ------------- */
.dash {
  padding: 40px 0 80px;
}
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}
.dash-header h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.dash-header h1 em { font-style: italic; color: var(--muted-2); }
.dash-header p { color: var(--muted); margin-top: 6px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.stat-card.feature {
  background: var(--ink);
  color: white;
}
.stat-card .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}
.stat-card.feature .label { color: rgba(255,255,255,0.5); }
.stat-card .value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-card .value-suffix { font-size: 18px; color: var(--muted); margin-left: 4px; }
.stat-card.feature .value-suffix { color: rgba(255,255,255,0.5); }
.stat-card .sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.stat-card.feature .sub { color: rgba(255,255,255,0.6); }
.stat-card .icon-deco {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 22px;
  opacity: 0.5;
}

.dash-section { margin-bottom: 48px; }
.dash-section h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-lg);
  padding: 48px 30px;
  text-align: center;
  color: var(--muted);
}

/* Calendar heatmap */
.heatmap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(28, 1fr);
  gap: 4px;
  margin-top: 16px;
}
.heatmap-day {
  aspect-ratio: 1;
  background: var(--surface-2);
  border-radius: 3px;
}
.heatmap-day.active { background: var(--accent); }
.heatmap-day.today { outline: 2px solid var(--ink); outline-offset: 1px; }
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.heatmap-legend .swatch {
  width: 12px; height: 12px; border-radius: 2px;
}

/* ------------- Modal ------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-backdrop.show { display: flex; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp .25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.modal p.modal-sub { color: var(--muted); margin-bottom: 24px; }
.modal-actions { display: flex; gap: 8px; margin-top: 24px; }

/* ------------- Reviews ------------- */
.review {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.review:last-child { border: 0; }
.review-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 8px;
}
.review-head .name { font-weight: 700; font-size: 14px; }
.review-head .date { font-size: 12px; color: var(--muted); margin-left: auto; }
.review .stars { color: var(--gold); font-size: 13px; }
.review .text { font-size: 14px; color: var(--ink-2); margin-top: 8px; }

.star-input {
  display: flex; gap: 4px;
  margin-bottom: 12px;
}
.star-input button {
  font-size: 22px;
  color: var(--border-2);
  transition: color .15s;
}
.star-input button.active, .star-input button:hover { color: var(--gold); }

/* ------------- Footer ------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; font-size: 14px; color: var(--ink-2); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ------------- Demo banner ------------- */
.demo-banner {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 0;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ------------- Responsive ------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 4/3; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .routine-hero { grid-template-columns: 1fr; gap: 24px; }
  .profile-card { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .profile-card .avatar-lg { margin: 0 auto; }
  .profile-card .price-cta { text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .weekly-plan { grid-template-columns: 1fr; gap: 8px; }
  .nav { display: none; }
  .heatmap-grid { grid-template-columns: repeat(14, 1fr); }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero { padding: 50px 0 30px; }
  .hero-stats { gap: 20px; }
  .hero-stat .num { font-size: 24px; }
}
