/* ==========================================================================
   Kopla · Web Landing & Interactive Prototype Styles
   Palette: Deep Midnight (#090D16) + Liquid Glass + Sky (#38BDF8) + Emerald (#10B981) + Ember (#FF6A2B)
   ========================================================================== */

:root {
  --bg-void: #090d16;
  --bg-base: #0b0f19;
  --bg-surface: #131b2e;
  --bg-card: #131823;
  --bg-row: #18233a;
  --bg-input: #0b1120;
  --bg-gorilla: #2a3448;
  --border-subtle: rgba(51, 65, 85, 0.72);
  --border-strong: #38455e;
  --sky: #38bdf8;
  --sky-deep: #0369a1;
  --sky-soft: #bae6fd;
  --emerald: #10b981;
  --emerald-bg: #102b29;
  --ember: #ff6a2b;
  --ember-soft: #ff8a57;
  --rose: #f43f5e;
  --ice: #f5f8fc;
  --ink-dark: #070c12;
  --text: #f8fafc;
  --text-muted: #a3afc1;
  --glass-bg: rgba(23, 32, 51, 0.68);
  --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pg-tab-grow: 2.2;
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse 65% 42% at 12% 6%, rgba(56, 189, 248, 0.16) 0%, transparent 62%),
    radial-gradient(ellipse 58% 38% at 88% 58%, rgba(16, 185, 129, 0.11) 0%, transparent 62%),
    radial-gradient(ellipse 46% 36% at 50% 96%, rgba(255, 106, 43, 0.08) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
dl,
dt,
dd,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
  color: var(--sky-soft);
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 6px;
}

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--ice);
  color: var(--ink-dark);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
}

.skip-link:focus {
  left: 16px;
}

/* ==========================================================================
   NAVBAR LIQUID GLASS
   ========================================================================== */

.site-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 12px 20px 0;
}

.site-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow:
    0 14px 34px -8px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-left: 4px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #141c2f;
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: grid;
  place-items: center;
  padding: 4px;
  transition: transform 0.2s var(--ease-smooth), border-color 0.2s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.06);
  border-color: var(--sky);
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-size: 11px;
  font-weight: 600;
  color: var(--sky);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-nav-primary {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ice);
  color: var(--ink-dark);
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.14s ease, background-color 0.14s ease;
}

.btn-nav-primary:hover {
  background: #ffffff;
}

.btn-nav-primary:active {
  transform: scale(0.97);
}

.btn-nav-menu {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(30, 41, 59, 0.8);
  align-items: center;
  justify-content: center;
}

.mobile-drawer {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 16px;
  border-radius: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  display: grid;
  gap: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-drawer a {
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

/* ==========================================================================
   BUTTONS & SHARED SECTION TYPOGRAPHY
   ========================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 17px;
  background: var(--ice);
  color: var(--ink-dark);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  box-shadow: 0 10px 26px rgba(245, 248, 252, 0.16);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-primary.big {
  min-height: 56px;
  padding: 0 28px;
  font-size: 17px;
}

.btn-primary.full-w {
  width: 100%;
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 17px;
  border: 1px solid rgba(148, 163, 184, 0.38);
  background: rgba(19, 27, 46, 0.85);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.15s ease;
}

.btn-glass:hover {
  background: rgba(30, 41, 59, 0.96);
  border-color: var(--sky);
}

.btn-glass:active {
  transform: scale(0.97);
}

.eyebrow,
.eyebrow-mini {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
}

.eyebrow-mini {
  color: var(--text-muted);
  font-size: 11px;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 84px 20px 0;
  scroll-margin-top: 84px;
}

.hero-stage {
  scroll-margin-top: 84px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin-top: 10px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  font-stretch: 108%;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.55;
}

/* ==========================================================================
   HERO + INTERACTIVE PHONE SIMULATOR
   ========================================================================== */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 420px);
  align-items: center;
  gap: 48px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.pulse-dot,
.live-dot,
.save-dot,
.ws-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.22);
  display: inline-block;
}

.hero-copy h1 {
  margin-top: 18px;
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 900;
  font-stretch: 112%;
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.text-sky {
  color: var(--sky);
}

.hero-lead {
  margin-top: 18px;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.55;
  color: #cbd5e1;
}

.hero-lead strong {
  color: var(--text);
}

.hero-cta-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-specs {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(51, 65, 85, 0.65);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.hero-specs dt {
  font-size: 20px;
  font-weight: 900;
  font-stretch: 108%;
  color: var(--text);
}

.hero-specs dd {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.35;
}

/* SIMULATOR STAGE */
.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.stage-toolbar {
  width: 100%;
  max-width: 396px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}

.stage-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.stage-actions {
  display: flex;
  gap: 6px;
}

.chip-btn {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 12px;
  font-weight: 700;
  color: var(--sky-soft);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--sky);
  background: #1a2540;
}

/* PHONE BEZEL */
.phone-bezel {
  position: relative;
  width: 100%;
  max-width: 396px;
  height: 752px;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(155deg, #273249 0%, #0d1320 48%, #1c263b 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 32px 70px -16px rgba(0, 0, 0, 0.78),
    0 0 0 1px rgba(56, 189, 248, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  height: 24px;
  border-radius: 999px;
  background: #05070c;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  gap: 8px;
}

.notch-speaker {
  width: 34px;
  height: 4px;
  border-radius: 99px;
  background: #1e293b;
}

.notch-cam {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #172554;
  border: 1px solid #1e3a8a;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 80% 45% at 15% 10%, rgba(56, 189, 248, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 75% 45% at 85% 75%, rgba(45, 212, 191, 0.12) 0%, transparent 60%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* BOOT SPLASH INSIDE PHONE */
.pg-boot-sim {
  position: absolute;
  inset: 12px;
  border-radius: 34px;
  z-index: 40;
  display: grid;
  place-items: center;
  background: #0b0f19;
  transition: opacity 280ms ease-out;
}

.pg-boot-sim[hidden] {
  display: none;
}

.pg-boot-sim.out {
  opacity: 0;
  pointer-events: none;
}

.pg-boot-sim svg {
  width: 138px;
  height: 138px;
  overflow: visible;
}

.pg-boot-sim .ring {
  fill: none;
  stroke: #38bdf8;
  stroke-width: 10;
  opacity: 0;
  transform-origin: 500px 520px;
}

.pg-boot-sim.run .ring {
  animation: pg-ring 620ms ease-out 260ms both;
}

.pg-boot-sim.run .ring.r2 {
  animation-delay: 580ms;
}

.pg-boot-sim .body {
  transform-origin: 500px 560px;
}

.pg-boot-sim.run .body {
  animation: pg-beats 720ms ease-out 260ms both;
}

.pg-boot-sim.run .brow {
  animation: pg-brow 360ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms both;
}

.pg-boot-sim.run .eyes {
  animation: pg-eyes 360ms cubic-bezier(0.2, 0.8, 0.2, 1) 120ms both;
}

@keyframes pg-brow {
  to {
    transform: translateY(12px);
  }
}

@keyframes pg-eyes {
  to {
    transform: translateY(4px);
  }
}

@keyframes pg-ring {
  from {
    transform: scale(1);
    opacity: 0.65;
  }
  to {
    transform: scale(1.32);
    opacity: 0;
  }
}

@keyframes pg-beats {
  0%,
  52%,
  100% {
    transform: scale(1);
  }
  17%,
  69% {
    transform: scale(1.06);
  }
}

/* STATUS BAR */
.sim-statusbar {
  flex: none;
  padding: 10px 18px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
  z-index: 15;
}

.sim-save-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

/* SIMULATOR PANELS */
.sim-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 13px 82px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  scrollbar-width: none;
}

.sim-panel::-webkit-scrollbar {
  display: none;
}

.sim-panel[hidden] {
  display: none;
}

/* CALENDARIO PANEL */
.sim-rotating-card {
  background: var(--bg-card);
  border: 1px solid #2b364b;
  border-radius: 22px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-slide-pills {
  display: flex;
  gap: 6px;
}

.sim-slide-pill {
  flex: 1;
  min-height: 30px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: #1c2436;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.sim-slide-pill.active {
  background: var(--sky-deep);
  color: #ffffff;
}

.sim-slide-body h3 {
  margin-top: 4px;
  font-size: 26px;
  font-weight: 900;
  font-stretch: 112%;
  line-height: 1.05;
}

.sim-slide-body p {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.sim-streak-hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sim-streak-big {
  font-size: 56px;
  line-height: 0.92;
  font-weight: 900;
  color: var(--ember);
}

.sim-week-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
  margin-top: 8px;
}

.sim-wbar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-muted);
}

.sim-wbar-fill {
  width: 100%;
  border-radius: 7px;
  background: #2dbbed;
}

.sim-wbar-fill.zero {
  height: 4px !important;
  background: #273145;
}

.sim-primary-cta {
  width: 100%;
  min-height: 48px;
  border-radius: 15px;
  background: var(--ice);
  color: var(--ink-dark);
  font-size: 15px;
  font-weight: 800;
}

.sim-primary-cta:active {
  transform: scale(0.98);
}

.sim-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sim-kpi {
  background: var(--bg-card);
  border: 1px solid #2b364b;
  border-radius: 16px;
  padding: 10px 12px;
}

.sim-kpi strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.sim-kpi span {
  font-size: 11px;
  color: var(--text-muted);
}

.sim-pill-section {
  background: rgba(19, 24, 35, 0.72);
  border: 1px solid #242f42;
  border-radius: 20px;
  padding: 10px;
}

.sim-pill-head {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) 32px;
  gap: 4px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.sim-pill-grid {
  display: grid;
  gap: 4px;
}

.sim-pill-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr)) 32px;
  gap: 4px;
  align-items: center;
}

.sim-day-btn {
  height: 30px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.sim-day-btn.rest {
  background: #1c2333;
  color: #94a3b8;
}

.sim-day-btn.gym {
  background: #2dbbed;
  color: #070c12;
}

.sim-day-btn.cardio {
  background: #e0f2fe;
  color: #070c12;
}

.sim-day-btn.partial {
  background: #131823;
  border: 1.5px solid #38bdf8;
  color: #e0f2fe;
}

.sim-day-btn.future {
  background: transparent;
  border: 1px solid #334155;
  color: #64748b;
}

.sim-day-btn.today {
  outline: 2px solid #f8fafc;
  outline-offset: 1px;
}

.sim-day-btn[aria-pressed='true'] {
  box-shadow: 0 0 0 2px #f8fafc;
  transform: scale(1.06);
}

.sim-week-score {
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  color: var(--text-muted);
}

.sim-week-score.done {
  color: var(--ember-soft);
}

.sim-legend {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  font-size: 10px;
  color: var(--text-muted);
}

.sim-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sim-legend i {
  display: inline-block;
  width: 12px;
  height: 6px;
  border-radius: 999px;
}

.leg-gym {
  background: #2dbbed;
}

.leg-cardio {
  background: #e0f2fe;
}

.leg-partial {
  border: 1px solid #38bdf8;
}

.leg-rest {
  background: #1c2333;
}

.leg-done {
  color: var(--ember-soft);
}

.sim-day-detail {
  background: var(--bg-card);
  border: 1px solid #2b364b;
  border-radius: 18px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.sim-day-detail-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.sim-day-detail strong {
  font-size: 15px;
}

.sim-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.sim-detail-metrics strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.sim-muscle-link {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid #2b364b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #e0f2fe;
}

.sim-muscle-link span:last-child {
  color: var(--ember-soft);
}

/* WORKOUT PANEL INSIDE PHONE */
.sim-workout-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.55);
}

.sim-routine-ctx {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
}

.sim-link-btn {
  color: var(--sky);
  font-weight: 700;
  font-size: 12px;
}

.sim-workout-header h2 {
  font-size: 20px;
  font-weight: 800;
  margin-top: 2px;
}

.sim-vol-line {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 2px;
}

.sim-glass-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(100, 116, 139, 0.45);
  display: grid;
  place-items: center;
}

.sim-save-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #a9b9cc;
}

.sim-session-progress {
  background: var(--bg-card);
  border: 1px solid #2b364b;
  border-radius: 18px;
  padding: 12px;
}

.sim-sp-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.sim-sp-track {
  height: 7px;
  border-radius: 999px;
  background: #263145;
  overflow: hidden;
  margin-top: 8px;
}

.sim-sp-track span {
  display: block;
  height: 100%;
  background: var(--emerald);
  border-radius: 999px;
  transition: width 0.25s var(--ease-smooth);
}

.sim-exercise-list {
  display: grid;
  gap: 10px;
}

.sim-ex-card {
  background: var(--bg-surface);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 20px;
  padding: 12px;
}

.sim-ex-card[data-current='true'] {
  border-color: var(--sky);
  box-shadow: 0 0 0 1px var(--sky), 0 10px 24px -6px rgba(56, 189, 248, 0.25);
}

.sim-ex-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.sim-ex-head h3 {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.sim-ex-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sim-ex-actions {
  display: flex;
  gap: 4px;
}

.sim-mini-btn {
  padding: 4px 8px;
  border-radius: 8px;
  background: #1c263b;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
}

.sim-sets-wrap {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.sim-set-row {
  background: #0f172a;
  border: 1px solid rgba(51, 65, 85, 0.65);
  border-radius: 14px;
  padding: 10px;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.sim-set-row[data-completed='true'] {
  background: var(--emerald-bg);
  border-color: rgba(16, 185, 129, 0.48);
}

.sim-set-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
}

.sim-set-top span {
  font-weight: 700;
}

.sim-set-prev {
  font-size: 11px;
  color: var(--text-muted);
}

.sim-pr-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 800;
  color: #fbbf24;
}

.sim-set-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 48px;
  gap: 8px;
  align-items: end;
}

.sim-field label {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.sim-field input {
  width: 100%;
  height: 44px;
  border-radius: 11px;
  border: 1px solid #475569;
  background: var(--bg-input);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.sim-field input[readonly] {
  background: #090e17;
  color: #94a3b8;
  border-color: rgba(51, 65, 85, 0.45);
}

.sim-check-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #64748b;
  background: #1e293b;
  color: #e2e8f0;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease, background-color 0.14s ease, border-color 0.14s ease;
}

.sim-check-btn:active {
  transform: scale(0.94);
}

.sim-check-btn.done {
  background: #34d399;
  border-color: #6ee7b7;
  color: #06281e;
}

.sim-add-set-btn {
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px dashed #38455e;
  color: var(--sky-soft);
  font-size: 12px;
  font-weight: 700;
}

.sim-dock-wrap {
  padding-top: 6px;
}

.sim-finish-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 18px;
  background: var(--sky-deep);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.sim-finish-btn:hover {
  background: #0284c7;
}

/* HISTORIAL & PERFIL INSIDE PHONE */
.sim-history-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.sim-history-head h2,
.sim-profile-head h2 {
  font-size: 20px;
  font-weight: 800;
}

.sim-history-head span,
.sim-profile-head p {
  font-size: 12px;
  color: var(--text-muted);
}

.sim-history-week,
.sim-profile-card {
  background: var(--bg-card);
  border: 1px solid #2b364b;
  border-radius: 18px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.hw-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.trend-chip {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.trend-chip.good {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.sim-history-week p {
  font-size: 11px;
  color: var(--text-muted);
}

.sim-history-list {
  display: grid;
  gap: 8px;
}

.sim-history-item {
  background: var(--bg-surface);
  border: 1px solid #2b364b;
  border-radius: 16px;
  padding: 10px 12px;
}

.sim-history-item summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
}

.sim-history-item summary::-webkit-details-marker {
  display: none;
}

.sim-history-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.45;
}

.sim-goal-pills {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.sim-goal-pills button {
  min-height: 40px;
  border-radius: 11px;
  background: #1b2436;
  border: 1px solid #2b364b;
  font-size: 13px;
  font-weight: 800;
}

.sim-goal-pills button[aria-pressed='true'] {
  background: var(--sky-deep);
  border-color: var(--sky);
  color: #ffffff;
}

.sim-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.sim-toggle-row strong {
  display: block;
  font-size: 13px;
}

.sim-toggle-row small {
  font-size: 11px;
  color: var(--text-muted);
}

.sim-toggle-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--sky);
}

.sim-cloud-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.sim-pill-action {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sky-deep);
  font-size: 12px;
  font-weight: 700;
}

.sim-export-btn {
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #38455e;
  background: #1a2336;
  font-size: 12px;
  font-weight: 700;
  color: var(--sky-soft);
}

.sim-profile-msg {
  font-size: 11px;
  color: #6ee7b7;
  min-height: 16px;
}

/* IN-PHONE SUMMARY MODAL */
.sim-modal {
  position: absolute;
  inset: 0;
  z-index: 35;
  background: rgba(5, 8, 15, 0.82);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 16px;
}

.sim-modal[hidden] {
  display: none;
}

.sim-modal-card {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid #334155;
  border-radius: 24px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.sim-modal-card h3 {
  font-size: 18px;
  font-weight: 800;
}

.sim-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sim-summary-stats div {
  background: #0f172a;
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
}

.sim-summary-stats strong {
  display: block;
  font-size: 17px;
  color: var(--sky);
}

.sim-summary-stats span {
  font-size: 11px;
  color: var(--text-muted);
}

.sim-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.sim-btn-ghost {
  min-height: 44px;
  border-radius: 12px;
  background: #1e293b;
  font-size: 12px;
  font-weight: 700;
}

.sim-btn-confirm {
  min-height: 44px;
  border-radius: 12px;
  background: var(--emerald);
  color: #06281e;
  font-size: 13px;
  font-weight: 800;
}

/* FLOATING LIQUID GLASS TABBAR INSIDE PHONE */
.pg-tabbar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 20px);
  height: 58px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background-color: rgba(23, 32, 51, 0.72);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  box-shadow:
    0 14px 34px -8px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  z-index: 20;
}

.phone-bezel[data-material='opaque'] .pg-tabbar {
  background-color: #172033;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.pg-tabbar-track {
  position: relative;
  display: flex;
  height: 100%;
}

.pg-tab {
  position: relative;
  z-index: 2;
  flex: 1 1 0;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  transition: flex-grow 260ms var(--ease-smooth), color 120ms ease;
}

.pg-tab[data-lit='true'] {
  flex-grow: var(--pg-tab-grow);
  color: #ffffff;
  font-weight: 800;
}

.pg-tab-label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  white-space: nowrap;
  transition: max-width 260ms var(--ease-smooth), margin-left 260ms var(--ease-smooth);
}

.pg-tab[data-lit='true'] .pg-tab-label {
  max-width: 82px;
  margin-left: 5px;
  opacity: 1;
}

.pg-tab-lens {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(100% * var(--pg-tab-grow) / (3 + var(--pg-tab-grow)));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background-color: var(--sky-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateX(calc(var(--pg-lens-x, 0) * 100% / var(--pg-tab-grow)));
  transition: transform 380ms var(--ease-smooth);
}

/* ==========================================================================
   PILLARS SECTION
   ========================================================================== */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, transform 0.2s var(--ease-smooth);
}

.pillar-card:hover {
  border-color: rgba(56, 189, 248, 0.55);
  transform: translateY(-2px);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
}

.pillar-icon.sky {
  background: rgba(56, 189, 248, 0.14);
  color: var(--sky);
}

.pillar-icon.ember {
  background: rgba(255, 106, 43, 0.15);
  color: var(--ember-soft);
}

.pillar-icon.emerald {
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald);
}

.pillar-icon.slate {
  background: rgba(148, 163, 184, 0.14);
  color: #e2e8f0;
}

.pillar-card h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.pillar-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.pillar-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--sky-soft);
  padding-top: 10px;
  border-top: 1px solid rgba(51, 65, 85, 0.55);
}

/* ==========================================================================
   GORILLA MUSCLE EXPLORER
   ========================================================================== */

.muscle-explorer {
  display: grid;
  grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.muscle-visual-pane {
  background: var(--bg-card);
  border: 1px solid #2b364b;
  border-radius: 26px;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.muscle-view-controls {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  border-radius: 14px;
  background: #0b0f19;
  border: 1px solid #273145;
}

.segmented button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.segmented button[aria-pressed='true'] {
  background: var(--ice);
  color: var(--ink-dark);
}

.gorilla-stage {
  background: var(--bg-gorilla);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  place-items: center;
  gap: 14px;
  position: relative;
}

.gorilla-stage img {
  width: 100%;
  max-width: 245px;
  height: 270px;
  object-fit: contain;
  transition: transform 0.22s var(--ease-smooth);
}

.gorilla-caption {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(11, 15, 25, 0.72);
}

.badge-ember {
  font-size: 20px;
  font-weight: 900;
  color: var(--ember);
}

.honest-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.muscle-data-pane {
  display: grid;
  gap: 16px;
}

.muscle-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.muscle-chip-btn {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 15px;
  background: var(--bg-card);
  border: 1px solid #334155;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.muscle-chip-btn span {
  font-size: 12px;
  color: var(--ember-soft);
}

.muscle-chip-btn[aria-pressed='true'] {
  background: var(--ember);
  border-color: var(--ember);
  color: var(--ink-dark);
}

.muscle-chip-btn[aria-pressed='true'] span {
  color: var(--ink-dark);
}

.muscle-metrics-card,
.muscle-exercises-card {
  background: var(--bg-card);
  border: 1px solid #2b364b;
  border-radius: 24px;
  padding: 20px;
}

.mm-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.mm-top h3 {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 900;
}

.mm-vol {
  text-align: right;
}

.mm-vol strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--sky);
}

.mm-vol span {
  font-size: 12px;
  color: var(--text-muted);
}

.mm-chart {
  margin-top: 18px;
  height: 156px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: end;
}

.mm-bar-btn {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.mm-bar-col {
  width: 100%;
  max-width: 44px;
  border-radius: 10px;
  background: #38455e;
  transition: height 0.25s var(--ease-smooth), background-color 0.2s ease;
}

.mm-bar-btn[aria-pressed='true'] .mm-bar-col {
  background: var(--ember);
}

.mm-bar-btn[aria-pressed='true'] {
  color: var(--text);
}

.mm-bar-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #242f42;
  font-size: 13px;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.mm-ex-list {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.mm-ex-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: #1a2335;
  font-size: 14px;
}

.mm-ex-list strong {
  font-size: 13px;
}

.mm-ex-list span {
  font-size: 13px;
  font-weight: 700;
  color: #6ee7b7;
  white-space: nowrap;
}

/* ==========================================================================
   ROLES SECTION (ATLETA & ENTRENADOR)
   ========================================================================== */

.role-tabs-wrap {
  display: grid;
  gap: 20px;
}

.role-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px;
  border-radius: 18px;
  background: var(--bg-card);
  border: 1px solid #2b364b;
  width: fit-content;
}

.role-switcher button {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-muted);
}

.role-switcher button[aria-selected='true'] {
  background: var(--sky-deep);
  color: #ffffff;
}

.role-panel[hidden] {
  display: none;
}

.athlete-grid,
.trainer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ob-preview-card,
.ob-result-card,
.trainer-card {
  background: var(--bg-card);
  border: 1px solid #2b364b;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ob-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: #1e2636;
  overflow: hidden;
}

.ob-progress-bar span {
  display: block;
  height: 100%;
  background: var(--sky);
  transition: width 0.25s var(--ease-smooth);
}

.ob-step-head h3,
.ob-result-card h3,
.tr-header h3 {
  margin-top: 4px;
  font-size: 21px;
  font-weight: 800;
}

.ob-controls {
  display: grid;
  gap: 16px;
}

.ob-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ob-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ob-pill-group button,
.ob-days-row button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid #2b364b;
  background: #1a2234;
  font-size: 13px;
  font-weight: 700;
}

.ob-days-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.ob-pill-group button[aria-pressed='true'],
.ob-days-row button[aria-pressed='true'] {
  border-color: var(--sky);
  background: #0c2a3d;
  color: #e0f2fe;
}

.ob-result-card p,
.tr-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.ob-week-visual {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.ob-week-cell {
  padding: 10px 4px;
  border-radius: 12px;
  background: #1b2436;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.ob-week-cell.lit {
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #e0f2fe;
}

.ob-summary-dl {
  border-radius: 16px;
  background: #0f172a;
  overflow: hidden;
}

.ob-summary-dl div {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 14px;
}

.ob-summary-dl div + div {
  border-top: 1px solid #1e293b;
}

.ob-summary-dl dt {
  color: var(--text-muted);
}

.ob-summary-dl dd {
  font-weight: 700;
}

/* TRAINER MODE */
.tr-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.tr-badge-sky,
.tr-draft-pill {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tr-badge-sky {
  background: rgba(56, 189, 248, 0.15);
  color: var(--sky);
}

.tr-draft-pill {
  background: rgba(251, 191, 36, 0.16);
  color: #fcd34d;
}

.tr-draft-pill.published {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}

.tr-student-list,
.tr-exercises {
  display: grid;
  gap: 8px;
}

.tr-student-btn {
  width: 100%;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #1a2234;
  border: 1px solid transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.tr-student-btn[aria-pressed='true'] {
  background: #0c2a3d;
  border-color: var(--sky);
}

.tr-student-btn strong {
  display: block;
  font-size: 15px;
}

.tr-student-btn small {
  font-size: 12px;
  color: var(--text-muted);
}

.tr-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #263145;
}

.tr-chip.good {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

.tr-chip.bad {
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
}

.tr-ex-row {
  padding: 10px 14px;
  border-radius: 14px;
  background: #0f172a;
  border: 1px solid #242f42;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.tr-ex-row[data-draft='true'] {
  border-color: rgba(56, 189, 248, 0.65);
  background: #0c2336;
}

.tr-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tr-toast {
  font-size: 13px;
  color: #6ee7b7;
  min-height: 20px;
}

/* ==========================================================================
   PLATFORMS & FINAL CTA & FOOTER
   ========================================================================== */

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.platform-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-step {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--sky);
}

.platform-card h3 {
  font-size: 20px;
  font-weight: 800;
}

.platform-card p {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
}

.platform-cta {
  width: fit-content;
  color: var(--sky);
  font-weight: 800;
  font-size: 14px;
  padding: 6px 0;
}

.platform-meta {
  font-size: 12px;
  font-weight: 700;
  color: #6ee7b7;
}

.final-cta-wrap {
  padding-bottom: 56px;
}

.final-cta-card {
  border-radius: 28px;
  padding: 36px;
  background:
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.18), transparent 52%),
    linear-gradient(135deg, #131b2e 0%, #0e1525 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.final-cta-copy {
  max-width: 600px;
}

.final-cta-copy h2 {
  margin-top: 8px;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  line-height: 1.1;
}

.final-cta-copy p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 16px;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  border-top: 1px solid rgba(51, 65, 85, 0.55);
  padding: 28px 20px 44px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand strong {
  display: block;
  font-size: 15px;
}

.footer-brand span {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* ==========================================================================
   FULLSCREEN WEB INTERFACE SANDBOX MODAL
   ========================================================================== */

.web-sandbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 8, 14, 0.86);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.web-sandbox-backdrop[hidden] {
  display: none;
}

.web-sandbox-shell {
  width: 100%;
  max-width: 1140px;
  height: min(86vh, 780px);
  background: var(--bg-base);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.8);
}

.ws-topbar {
  padding: 14px 20px;
  background: #0f1626;
  border-bottom: 1px solid #253147;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ws-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ws-env-badge,
.ws-save-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.ws-env-badge {
  background: rgba(56, 189, 248, 0.14);
  color: var(--sky);
}

.ws-save-pill {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
}

.ws-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ws-close-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  background: #1e293b;
  font-size: 13px;
  font-weight: 700;
}

.ws-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
}

.ws-sidebar {
  background: #0d1320;
  border-right: 1px solid #222d42;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-nav-item {
  padding: 12px 14px;
  border-radius: 14px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  display: grid;
  gap: 2px;
}

.ws-nav-item span {
  font-size: 14px;
  font-weight: 700;
}

.ws-nav-item small {
  font-size: 12px;
  color: var(--text-muted);
}

.ws-nav-item.active {
  background: #13253c;
  border-color: rgba(56, 189, 248, 0.5);
}

.ws-workspace {
  padding: 24px;
  overflow-y: auto;
  display: grid;
  gap: 18px;
  align-content: start;
}

.ws-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ws-card {
  background: var(--bg-card);
  border: 1px solid #2b364b;
  border-radius: 22px;
  padding: 20px;
  display: grid;
  gap: 12px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy {
    text-align: left;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .muscle-explorer,
  .athlete-grid,
  .trainer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-links,
  .btn-nav-primary {
    display: none;
  }

  .btn-nav-menu {
    display: inline-flex;
  }

  .platforms-grid {
    grid-template-columns: 1fr;
  }

  .ws-body {
    grid-template-columns: 1fr;
  }

  .ws-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #222d42;
  }

  .ws-nav-item {
    flex: none;
  }

  .ws-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-specs,
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .phone-bezel {
    height: 700px;
    border-radius: 36px;
    padding: 9px;
  }

  .phone-screen {
    border-radius: 28px;
  }

  .final-cta-card {
    padding: 24px;
  }
}

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