/* Page composition: header, hero, sections, and primary grids. */
/* Header */
.topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 74px;
  gap: clamp(12px, 2vw, 28px);
  padding: 0 max(clamp(18px, 4vw, 52px), calc((100% - 1320px) / 2));
  border-bottom: 3px solid var(--ink);
  background: rgba(246, 201, 40, .94);
  backdrop-filter: blur(14px);
}
.brand { display: flex; flex: 0 1 auto; align-items: center; max-width: min(300px, 28vw); min-width: 0; min-height: 44px; overflow: hidden; color: var(--ink); text-decoration: none; font-family: "Russo One", Impact, sans-serif; font-size: 22px; letter-spacing: -.5px; white-space: nowrap; }
.brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 auto; margin-right: 8px; filter: drop-shadow(2px 2px 0 rgba(255,255,255,.42)); }
.brand b { margin-left: 5px; padding: 3px 5px; transform: skew(-7deg); color: var(--yellow); background: var(--ink); font-size: 15px; }
.main-nav { display: flex; align-items: center; gap: clamp(12px, 1.7vw, 22px); min-width: 0; margin-left: 8px; }
.main-nav a, .main-nav button, .main-nav summary { position: relative; display: flex; align-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 0; color: var(--ink); background: transparent; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
.main-nav a::after, .main-nav button::after { content: ""; position: absolute; right: 100%; bottom: 8px; left: 0; height: 2px; background: var(--ink); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav button:hover::after { right: 0; }
.nav-group { position: relative; }
.nav-group summary { list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: "⌄"; position: static; width: auto; height: auto; margin-left: 5px; background: none; font-size: 12px; line-height: 1; }
.nav-dropdown { position: absolute; top: calc(100% - 2px); left: -14px; display: grid; width: max-content; min-width: 210px; max-width: 300px; padding: 8px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 6px 6px 0 rgba(23,23,20,.25); }
.nav-dropdown a { display: grid; min-height: 0; padding: 10px 12px; white-space: normal; }
.nav-dropdown a:hover { color: var(--yellow); background: var(--ink); }
.nav-dropdown a::after { display: none; }
.nav-dropdown small { display: block; margin-top: 3px; color: inherit; font-size: 9px; font-weight: 600; letter-spacing: 0; opacity: .68; text-transform: none; }
.mobile-nav { position: relative; display: none; flex: 0 0 auto; }
.mobile-nav > summary { display: grid; width: 44px; height: 44px; place-items: center; border: 2px solid var(--ink); list-style: none; font-size: 22px; font-weight: 900; cursor: pointer; }
.mobile-nav > summary::-webkit-details-marker { display: none; }
.mobile-nav-panel { position: absolute; top: calc(100% + 12px); left: 0; display: grid; width: min(300px, calc(100vw - 28px)); padding: 8px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 7px 7px 0 rgba(23,23,20,.26); }
.mobile-nav-panel a { padding: 11px 12px; color: var(--ink); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.mobile-nav-panel a:hover { color: var(--yellow); background: var(--ink); }
.mobile-nav-panel a.is-child { padding-left: 25px; border-left: 3px solid var(--yellow); }
.mobile-nav-panel small { display: block; margin-top: 3px; font-size: 9px; font-weight: 600; letter-spacing: 0; opacity: .66; text-transform: none; }
.today-pill { display: flex; align-items: center; min-width: 0; gap: 8px; margin-right: auto; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.live-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(238,85,72,.18); }
.member-switcher { display: flex; align-items: center; max-width: min(245px, 25vw); min-width: 0; padding: 4px 3px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; }
.member-switcher::-webkit-scrollbar { display: none; }
.switch-member { width: 44px; height: 44px; flex: 0 0 44px; margin-left: -6px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); font-size: 16px; font-weight: 900; transition: transform .2s var(--ease), background .2s ease; }
.switch-member:first-child { margin-left: 0; }
.switch-member:hover { z-index: 2; transform: translateY(-3px); }
.switch-member.active { z-index: 3; color: #fff; background: var(--ink); outline: 3px solid var(--yellow-soft); }
.header-login { min-width: 68px; min-height: 44px; flex: 0 0 auto; padding: 9px 13px; border: 2px solid var(--ink); color: var(--yellow); background: var(--ink); font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.header-logout { border-color: var(--red); color: var(--red); background: var(--ink); }
.header-profile { display: flex; align-items: center; min-width: 0; min-height: 48px; gap: 8px; padding: 3px 10px 3px 3px; border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.58); text-decoration: none; }
.header-profile[hidden] { display: none; }
.header-profile > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; font-size: 15px; }
.header-profile > b { max-width: 110px; overflow: hidden; font-size: 9px; letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.icon-button, .music-toggle { width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); background: transparent; font-weight: 900; }
body.is-guest .member-switcher { display: none; }
body.is-guest .header-profile { display: none; }
body.is-guest .header-login { margin-left: auto; }

/* Hero */
main { width: 100%; max-width: var(--content); min-width: 0; margin: 0 auto; }
body.is-guest main { max-width: none; }
.hero-shell {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 650px;
  padding: 84px max(clamp(24px, 5vw, 56px), calc((100% - 1180px) / 2)) 72px;
  overflow: hidden;
  border-bottom: 4px solid var(--ink);
  color: #fff;
  background: linear-gradient(90deg, rgba(15,15,13,.99) 0%, rgba(15,15,13,.94) 38%, rgba(15,15,13,.34) 65%, rgba(15,15,13,.08) 100%), url("../hero-training-v2.png") 58% center / cover no-repeat, #1c1b17;
}
.hero-shell::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .25; pointer-events: none; background: radial-gradient(circle at 70% 20%, var(--yellow) 0 2px, transparent 3px), repeating-radial-gradient(circle at 90% 100%, transparent 0 34px, rgba(255,255,255,.16) 35px, transparent 37px); background-size: 23px 23px, auto; }
.hero-copy { position: relative; z-index: 2; width: min(620px, 58%); min-width: 0; }
.eyebrow, .kicker { font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { display: flex; width: fit-content; align-items: center; gap: 14px; margin-bottom: 20px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.34); background: rgba(10,10,9,.5); transform: skew(-3deg); }
.eyebrow > b { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.3); color: var(--yellow); font-style: normal; }
.eyebrow i { font-style: normal; }
.hero-copy h1 { margin: 0; font-family: "Russo One", Impact, sans-serif; font-size: clamp(43px, 4.55vw, 68px); line-height: 1.01; letter-spacing: -2px; overflow-wrap: anywhere; text-transform: uppercase; text-shadow: 4px 4px 0 rgba(0,0,0,.26); }
.hero-copy h1 em { color: var(--yellow); font-style: normal; }
.hero-copy p { max-width: 570px; margin: 22px 0 27px; color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 24px; }
.hero-proof { display: flex; width: min(570px, 100%); min-width: 0; gap: 0; margin: 34px 0 0; padding: 19px 0 0; border-top: 1px solid rgba(255,255,255,.22); list-style: none; }
.hero-proof li { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; min-width: 0; flex: 1 1 0; gap: 9px; padding-right: 13px; }
.hero-proof b { color: var(--yellow); font-family: "Russo One", Impact, sans-serif; font-size: 18px; }
.hero-proof span { color: rgba(255,255,255,.68); font-size: 8px; font-weight: 800; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }
/* Shared sections */
.dashboard, .squad-section, .progress-section { width: 100%; min-width: 0; padding: 56px clamp(18px, 4vw, 56px) 0; }
body.is-authenticated .dashboard { padding-top: 32px; }
body.is-authenticated .squad-section { padding-top: 58px; }
body.is-authenticated .progress-section { padding-top: 40px; }
body.is-authenticated .hero-shell { display: none; }
body.is-guest .hero-shell { min-height: calc(100dvh - 74px); }
body.is-guest #memberCabinet,
body.is-guest :is(.dashboard, .squad-section, .progress-section) { display: none; }
body.is-authenticated .public-landing { display: none; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; min-width: 0; gap: 14px 20px; margin-bottom: 19px; }
.section-heading > * { min-width: 0; }
.section-heading h2 { margin: 6px 0 0; font-family: "Russo One", Impact, sans-serif; font-size: clamp(27px, 2.5vw, 38px); line-height: 1.05; letter-spacing: -1px; overflow-wrap: anywhere; text-transform: uppercase; }
.section-heading.compact h2 { font-size: clamp(23px, 2.2vw, 29px); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.82fr) minmax(272px, .62fr); align-items: start; min-width: 0; gap: 16px; }
.public-landing-section { --landing-gutter: max(clamp(20px, 4vw, 48px), calc((100% - 1180px) / 2)); position: relative; isolation: isolate; width: 100%; min-width: 0; padding-inline: var(--landing-gutter); }
.landing-section-intro { width: min(760px, 100%); min-width: 0; }
.landing-section-intro--wide { width: min(920px, 100%); }
.landing-live-stats { padding-block: clamp(72px, 8vw, 108px); }
.landing-live-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); align-items: stretch; min-width: 0; gap: clamp(24px, 3.4vw, 44px); margin-top: clamp(34px, 4.5vw, 54px); }
.landing-onboarding { padding-block: clamp(76px, 8vw, 112px); }
.landing-cabinet-story { width: min(920px, 100%); min-width: 0; margin: clamp(44px, 5.5vw, 68px) auto 0; }
.landing-smart-swaps { display: grid; grid-template-columns: minmax(320px, .88fr) minmax(0, 1.12fr); align-items: stretch; min-width: 0; gap: clamp(24px, 3.4vw, 44px); padding-block: clamp(76px, 8vw, 112px); }
.landing-smart-swaps > .landing-section-intro { grid-column: 1 / -1; }
.landing-smart-swaps > .landing-focus-card { grid-column: 1 / -1; }
.landing-hero-mode { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .38fr); align-items: start; min-width: 0; gap: clamp(24px, 3.4vw, 44px); padding-block: clamp(76px, 8vw, 112px); }
.landing-hero-mode > .landing-section-intro { grid-column: 1 / -1; }
.landing-weight-story { padding-block: clamp(76px, 8vw, 112px); }
.landing-weight-layout { display: grid; grid-template-columns: minmax(340px, .9fr) minmax(0, 1.1fr); align-items: stretch; min-width: 0; gap: clamp(24px, 3.4vw, 44px); margin-top: clamp(38px, 5vw, 58px); }
.landing-final-cta { width: min(1180px, calc(100% - 2 * clamp(16px, 4vw, 48px))); margin: clamp(64px, 8vw, 104px) auto; padding-inline: clamp(24px, 5vw, 66px); }
footer { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--content); min-width: 0; gap: 18px; margin: 0 auto; padding: 27px clamp(18px,5vw,75px); border-top: 3px solid var(--ink); color: var(--muted); font-size: 10px; }
footer > * { min-width: 0; }
footer p { overflow-wrap: anywhere; }
