/* ============================================================
   BIG SESSIONS · /links · brutalist link hub
   Mobile-first. Single column. Big tap targets.
   ============================================================ */

:root {
  --black:        #0A0A0A;
  --black-2:      #141414;
  --grey-1:       #1A1A1A;
  --grey-2:       #2A2A2A;
  --grey-3:       #4A4A4A;
  --grey-4:       #7A7A7A;
  --white:        #F2F2F2;
  --white-pure:   #FFFFFF;
  --red:          #E50914;

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
*::selection { background: var(--red); color: var(--white-pure); }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   HUB SHELL
   ============================================================ */

.hub {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 100vh;
}

/* ============================================================
   IDENTITY
   ============================================================ */

.hub__id {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
}

.hub__mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.mark__big {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: var(--red);
  line-height: 1;
}
.mark__sessions {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--white);
  line-height: 1;
}

.hub__avatar {
  margin: 0;
  width: 128px;
  height: 128px;
  border: 2px solid var(--white);
  overflow: hidden;
  position: relative;
}
.hub__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(100%) contrast(108%);
}

.hub__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  margin: 0.25rem 0 0;
  color: var(--white);
}

.hub__tag {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--white);
  max-width: 36ch;
}

.hub__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--grey-4);
  text-transform: uppercase;
}

/* ============================================================
   PRIMARY LINK CARDS
   ============================================================ */

.hub__links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.link {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'tag    arrow'
    'title  arrow'
    'sub    arrow';
  align-items: center;
  gap: 0.25rem 1rem;
  padding: 1.25rem 1.4rem;
  background: var(--grey-1);
  border: 2px solid var(--white);
  transition: background 160ms, transform 160ms, border-color 160ms;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
button.link { font-family: inherit; }
.link:hover {
  background: var(--white);
  color: var(--black);
  transform: translateX(2px);
}
.link:hover .link__tag { color: var(--red); }
.link:hover .link__sub { color: var(--grey-2); }
.link:hover .link__arrow { color: var(--red); }

.link__tag {
  grid-area: tag;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--red);
  text-transform: uppercase;
}
.link__title {
  grid-area: title;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5.5vw, 1.7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.link__sub {
  grid-area: sub;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--grey-4);
  margin-top: 0.25rem;
}
.link__arrow {
  grid-area: arrow;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--white);
  line-height: 1;
  align-self: center;
  transition: color 160ms, transform 160ms;
}

/* Featured (red) variant */
.link--feature {
  background: var(--red);
  border-color: var(--red);
  color: var(--white-pure);
}
.link--feature .link__tag { color: var(--white-pure); opacity: 0.85; }
.link--feature .link__sub { color: rgba(255,255,255,0.85); }
.link--feature .link__arrow { color: var(--white-pure); }
.link--feature:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}
.link--feature:hover .link__tag { color: var(--red); opacity: 1; }
.link--feature:hover .link__sub { color: var(--grey-2); }
.link--feature:hover .link__arrow { color: var(--red); }

/* ============================================================
   SOCIALS
   ============================================================ */

.hub__socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.social {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    'platform arrow'
    'handle   arrow';
  align-items: center;
  gap: 0.2rem 0.5rem;
  padding: 0.95rem 1rem;
  background: var(--black);
  border: 1px solid var(--grey-3);
  transition: background 160ms, border-color 160ms, transform 160ms;
}
.social:hover {
  background: var(--grey-1);
  border-color: var(--white);
  transform: translateY(-1px);
}

.social__platform {
  grid-area: platform;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--red);
}
.social__handle {
  grid-area: handle;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.015em;
  color: var(--white);
  line-height: 1;
}
.social__arrow {
  grid-area: arrow;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--grey-4);
}

/* ============================================================
   SECONDARY / FOOTER
   ============================================================ */

.hub__secondary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--grey-2);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--grey-4);
}
.hub__secondary a:hover { color: var(--red); }

.hub__footer {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--grey-3);
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.hub__legal {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.hub__legal a {
  color: var(--grey-4);
  text-decoration: none;
  letter-spacing: 0.18em;
}
.hub__legal a:hover { color: var(--red); }

/* ============================================================
   GUIDE FORMS — Klaviyo expanding email-capture forms
   Used by arms guide, glutes guide, etc.
   ============================================================ */

.guide-form {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.25rem 1.4rem 1.4rem;
  background: var(--red);
  border: 2px solid var(--red);
  color: var(--white-pure);
  animation: guide-open 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.guide-form--open { display: flex; }

@keyframes guide-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.guide-form__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.2rem;
}
.guide-form__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--white-pure);
}
.guide-form__close {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white-pure);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition: background 140ms, border-color 140ms;
}
.guide-form__close:hover { background: rgba(255,255,255,0.12); border-color: var(--white-pure); }

.guide-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.guide-form__field > span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.guide-form__field input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.18);
  color: var(--white-pure);
  outline: none;
  transition: border-color 140ms, background 140ms;
  border-radius: 0;
}
.guide-form__field input::placeholder { color: rgba(255,255,255,0.55); }
.guide-form__field input:focus {
  border-color: var(--white-pure);
  background: rgba(0,0,0,0.32);
}

.guide-form__submit {
  margin-top: 0.4rem;
  padding: 0.95rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  background: var(--white-pure);
  color: var(--red);
  border: none;
  cursor: pointer;
  transition: background 140ms, color 140ms, transform 140ms;
}
.guide-form__submit:hover {
  background: var(--black);
  color: var(--white-pure);
}
.guide-form__submit:disabled { opacity: 0.7; cursor: progress; }

.guide-form__legal {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding-top: 0.2rem;
}

.guide-form__error {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  background: rgba(0,0,0,0.28);
  padding: 0.55rem 0.7rem;
  border-left: 3px solid var(--white-pure);
}

/* Success */
.guide-success {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 1.3rem;
  background: var(--grey-1);
  border: 2px solid var(--red);
  color: var(--white);
  animation: guide-open 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.guide-success[hidden] { display: none; }
.guide-success__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--red);
  color: var(--white-pure);
  font-family: var(--font-display);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.guide-success__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.guide-success__body strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--white);
  font-weight: 400;
}
.guide-success__body span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--grey-4);
}

/* ============================================================
   MOTION
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .hub__id, .link, .social {
    animation: rise 600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .link:nth-child(1) { animation-delay: 60ms; }
  .link:nth-child(2) { animation-delay: 130ms; }
  .link:nth-child(3) { animation-delay: 200ms; }
  .social:nth-child(1) { animation-delay: 280ms; }
  .social:nth-child(2) { animation-delay: 340ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
  }
}

/* ============================================================
   HEADLINER · 8 WEEK SUMMER SHRED BUY TILE
   ============================================================ */

.buy-tile {
  position: relative;
  background: var(--black-2);
  border: 1px solid var(--grey-2);
  border-left: 4px solid var(--red);
  padding: 1.4rem 1.4rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
}
.buy-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 40%, transparent 100%);
}

.buy-tile__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.buy-tile__kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--red);
  padding-top: 0.4rem;
}
.buy-tile__price {
  font-family: var(--font-display);
  font-size: 4.6rem;
  line-height: 0.85;
  color: var(--red);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 0 var(--black);
}
.buy-tile__price-sym {
  font-size: 0.55em;
  vertical-align: 0.35em;
  letter-spacing: 0;
  margin-right: 0.05em;
}

.buy-tile__title {
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 0;
  text-transform: uppercase;
  font-weight: 400;
}
.buy-tile__sub {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--grey-4);
  margin: 0;
}

.buy-tile__bullets {
  list-style: none;
  padding: 0;
  margin: 0.15rem 0 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.buy-tile__bullets li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--white);
}
.buy-tile__bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--red);
  font-family: var(--font-mono);
  font-weight: 600;
}

.buy-tile__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.05rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 140ms, color 140ms, border-color 140ms, transform 140ms;
  width: 100%;
  font-family: var(--font-mono);
}
.buy-tile__cta--full { margin-top: 0.35rem; }
.buy-tile__cta--primary {
  background: var(--red);
  color: var(--white-pure);
  border-color: var(--red);
}
.buy-tile__cta--primary:hover {
  background: var(--white-pure);
  color: var(--red);
  border-color: var(--white-pure);
}

.buy-tile__assure {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--grey-4);
  text-align: center;
  margin-top: 0.25rem;
}

/* ============================================================
   BUY-CHOICE MODAL
   ============================================================ */

.buy-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.buy-modal--open { display: flex; }
.buy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: bm-fade 180ms ease-out;
}
.buy-modal__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--black-2);
  border: 1px solid var(--grey-2);
  border-left: 4px solid var(--red);
  padding: 1.6rem 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  animation: bm-rise 220ms cubic-bezier(.2,.7,.3,1);
}
.buy-modal__panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 40%, transparent 100%);
}

.buy-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.85rem;
  background: transparent;
  border: 1px solid var(--grey-2);
  color: var(--grey-4);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 120ms, border-color 120ms;
}
.buy-modal__close:hover { color: var(--red); border-color: var(--red); }

.buy-modal__kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--red);
}
.buy-modal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--white);
  margin: 0 0 0.4rem 0;
  text-transform: none;
}

.buy-modal__option {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label  arrow"
    "sub    arrow";
  align-items: center;
  column-gap: 0.7rem;
  row-gap: 0.2rem;
  padding: 1rem 1rem 1rem 1.1rem;
  border: 2px solid var(--grey-2);
  background: var(--black);
  cursor: pointer;
  transition: background 140ms, border-color 140ms, color 140ms, transform 140ms;
  text-align: left;
  color: var(--white);
}
.buy-modal__option-label {
  grid-area: label;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: inherit;
}
.buy-modal__option-sub {
  grid-area: sub;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--grey-4);
  line-height: 1.4;
}
.buy-modal__option-arrow {
  grid-area: arrow;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--grey-3);
  transition: color 140ms, transform 140ms;
}

.buy-modal__option--primary {
  background: var(--red);
  border-color: var(--red);
  color: var(--white-pure);
}
.buy-modal__option--primary .buy-modal__option-sub { color: rgba(255,255,255,0.88); }
.buy-modal__option--primary .buy-modal__option-arrow { color: var(--white-pure); }
.buy-modal__option--primary:hover,
.buy-modal__option--primary:focus-visible {
  background: var(--white-pure);
  border-color: var(--white-pure);
  color: var(--red);
}
.buy-modal__option--primary:hover .buy-modal__option-sub,
.buy-modal__option--primary:focus-visible .buy-modal__option-sub { color: var(--grey-3); }
.buy-modal__option--primary:hover .buy-modal__option-arrow,
.buy-modal__option--primary:focus-visible .buy-modal__option-arrow { color: var(--red); transform: translateX(4px); }

.buy-modal__option--ghost:hover,
.buy-modal__option--ghost:focus-visible {
  border-color: var(--red);
  color: var(--red);
}
.buy-modal__option--ghost:hover .buy-modal__option-arrow,
.buy-modal__option--ghost:focus-visible .buy-modal__option-arrow {
  color: var(--red);
  transform: translateX(4px);
}

.buy-modal__assure {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--grey-4);
  text-align: center;
  margin-top: 0.35rem;
}

@keyframes bm-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bm-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   DIVIDER between paid + free
   ============================================================ */

.hub__divider {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.6rem 0 0.2rem;
  margin: 0.3rem 0 -0.2rem;
}
.hub__divider::before,
.hub__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--grey-2);
}
.hub__divider span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  color: var(--grey-4);
  padding: 0 0.9rem;
}

/* ============================================================
   COMPACT VIEWPORTS
   ============================================================ */

@media (max-width: 380px) {
  .hub { padding: 1.5rem 1rem 2rem; gap: 1.5rem; }
  .hub__avatar { width: 112px; height: 112px; }
  .link { padding: 1.1rem 1.2rem; }
  .hub__socials { grid-template-columns: 1fr; }

  .buy-tile { padding: 1.2rem 1.1rem 1rem; }
  .buy-tile__price { font-size: 3.8rem; }
  .buy-tile__title { font-size: 2rem; }
  .buy-tile__ctas { grid-template-columns: 1fr; }
}
