/* ============================================================
   IN THE RING FITNESS — Shared site styles
   Base, theme, header/footer, shared pieces and the design-system
   components (Button, Eyebrow, Card, StatTile, Input) rendered as CSS.
   Tokens come from design-system.css.
   ============================================================ */
:root {
  --text-on-dark-soft: #c9d0d8;
  --radius-panel: 16px;
  --frame: 12px;                            /* outer inset of the red/paper panels on Home */
  --gutter-x: clamp(20px, 2.1vw, 56px);
  --section-gap: clamp(56px, 5.2vw, 140px);
  --page-max: 1360px;                       /* inner pages: masthead + content width */
  --photo-fallback: var(--ink-800) radial-gradient(80% 60% at 30% 30%, rgba(217, 29, 33, 0.35), transparent 70%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--paper-050);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: var(--paper-050); text-decoration: none; }
a:hover { color: #fff; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; }
dl, dd, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }
em { font-style: normal; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }

/* Paper-background inner pages */
body.page-inner { background: var(--paper-050); color: var(--ink-800); }
.page-inner :where(a) { color: var(--ink-800); }          /* :where() keeps this at class specificity so component colors (nav, buttons) win */
.page-inner :where(a):hover { color: var(--red-500); }
.page-inner :focus-visible { outline-color: var(--ink-800); }
.page-inner .masthead :focus-visible,
.page-inner .band :focus-visible,
.page-inner .footer :focus-visible,
.page-inner .on-dark :focus-visible { outline-color: #fff; }
.page-inner [id] { scroll-margin-top: 100px; }   /* anchors land below the sticky masthead */

.wrap { max-width: var(--page-max); margin-left: auto; margin-right: auto; }
.span-2 { grid-column: span 2; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: #fff; color: var(--ink-900); font-weight: 600;
  padding: 10px 14px; border-radius: var(--radius-md);
}
.skip-link:focus { top: 16px; color: var(--ink-900); }

@keyframes itr-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes itr-rise-sm { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes itr-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Shared pieces ---------- */
.eyebrow {
  font-family: var(--font-heading); font-weight: 700; font-size: 13px;
  letter-spacing: 0.28em; text-transform: uppercase;
}
.eyebrow--red { color: var(--red-500); }
.eyebrow--xs { font-size: 12px; }

/* "No. 02 — Build the frame" section index label */
.index-label {
  font-family: var(--font-heading); font-weight: 700; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-500);
}
/* "Why go monthly" style mega-tracked label */
.mega-label {
  font-family: var(--font-heading); font-weight: 700; font-size: 11px;
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--red-500);
}
.meta-label {
  font-family: var(--font-heading); font-weight: 600; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
}

.tag {
  display: inline-block;
  font-family: var(--font-body); font-weight: 500; font-size: 14px; line-height: 1.2;
  color: #fff; padding: 9px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.7); border-radius: var(--radius-pill);
}
.tag--glass {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(12, 14, 18, 0.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tag--soft { border-color: rgba(255, 255, 255, 0.5); }

/* Header call-to-action */
.btn-solid {
  display: inline-block;
  background: var(--ink-900); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(15px, 0.97vw, 26px); line-height: 1.2;
  letter-spacing: 0.04em; padding: clamp(11px, 0.82vw, 22px) clamp(18px, 1.34vw, 36px); border-radius: var(--radius-md); white-space: nowrap;
  transition: transform 200ms var(--ease-punch);
}
.btn-solid:hover { transform: scale(1.04); color: #fff; }
.btn-solid--red { background: var(--red-500); }

/* Square outline chip (page-head jump links) */
.chip-btn {
  display: inline-block;
  font-family: var(--font-heading); font-weight: 700; font-size: 13px; line-height: 1.2;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-800);
  padding: 12px 18px; border: 2px solid var(--ink-800); border-radius: var(--radius-xs);
  transition: background var(--dur-base), color var(--dur-base);
}
.chip-btn:hover { background: var(--ink-800); color: #fff; }

/* Red-underlined text link */
.link-rule {
  display: inline-block;
  font-family: var(--font-heading); font-weight: 700; font-size: 13px; line-height: 2.4;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-800);
  padding: 0 10px; border-bottom: 2px solid var(--red-500);
}
.link-rule--light { color: #fff; }

/* Red corner accent bar (signature motif) */
.corner-bar { position: absolute; top: 0; left: 0; width: 80px; height: 5px; background: var(--red-500); }

/* ---------- Design-system components ---------- */
/* Button */
.ds-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--control-h); padding: 0 24px;
  font-family: var(--font-heading); font-weight: 700; font-size: 14px; line-height: 1;
  letter-spacing: var(--ls-wide); text-transform: uppercase; white-space: nowrap;
  border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-punch), filter var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.ds-btn--sm { height: var(--control-h-sm); padding: 0 16px; font-size: 12px; }
.ds-btn--lg { height: var(--control-h-lg); padding: 0 34px; font-size: 15px; }
.ds-btn--block { width: 100%; }
.ds-btn--primary, .ds-btn--primary:hover { background: var(--red-500); color: #fff; border-color: var(--red-500); box-shadow: var(--shadow-red); }
.ds-btn--dark, .ds-btn--dark:hover { background: var(--ink-800); color: var(--paper-050); border-color: var(--ink-800); box-shadow: var(--shadow-sm); }
.ds-btn--outline, .ds-btn--outline:hover { background: transparent; color: var(--ink-800); border-color: var(--ink-800); }
.ds-btn:hover { filter: brightness(1.06); }
.ds-btn:active { transform: scale(0.97); }

/* Eyebrow with flanking rules */
.ds-eyebrow { display: flex; align-items: center; gap: 12px; }
.ds-eyebrow__rule { flex: 0 0 28px; height: 2px; background: var(--red-500); opacity: 0.9; }
.ds-eyebrow__label {
  font-family: var(--font-heading); font-weight: 700; font-size: var(--fs-overline); line-height: 1;
  letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--red-500);
}

/* Card (dark variant with red accent bar) */
.ds-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-md); padding: var(--sp-6);
  background: var(--surface-dark); color: var(--text-on-dark);
  border: 1px solid var(--ink-600); box-shadow: var(--shadow-dark);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.ds-card--accent::before { content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 56px; background: var(--red-500); }
.ds-card--interactive:hover { transform: translateY(-3px); }

/* StatTile (md, on dark) */
.ds-stat__value {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 1.5vw, 40px); line-height: 0.9;
  letter-spacing: var(--ls-tight); color: var(--paper-050); font-variant-numeric: tabular-nums;
}
.ds-stat--accent .ds-stat__value { color: var(--red-500); }
.ds-stat__label {
  margin-top: 6px;
  font-family: var(--font-heading); font-weight: 600; font-size: 11px;
  letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-on-dark-muted);
}

/* Input */
.ds-field { display: block; }
.ds-field__label {
  display: block; margin-bottom: 7px;
  font-family: var(--font-heading); font-weight: 700; font-size: 11px;
  letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--text-faint);
}
.ds-field__control {
  display: flex; align-items: center; gap: 10px;
  height: var(--control-h); padding: 0 14px;
  background: var(--paper-000); border: 2px solid var(--border-soft); border-radius: var(--radius-sm);
  transition: border-color var(--dur-base) var(--ease-out);
}
.ds-field__control:focus-within { border-color: var(--ink-800); }
.ds-field__input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--text-strong);
}
.ds-field__input::placeholder { color: var(--text-faint); }
.ds-field__hint { display: block; margin-top: 6px; font-family: var(--font-body); font-size: 12px; color: var(--text-faint); }

/* ---------- Site header ---------- */
.site-header {
  position: relative; z-index: 6;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 0.9vw, 24px);
  padding: clamp(14px, 1.2vw, 32px) var(--gutter-x);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: #fff; }
.brand__mark { height: clamp(40px, 2.7vw, 72px); width: auto; }
.brand__name {
  font-family: var(--font-heading); font-weight: 700; font-size: clamp(13px, 0.82vw, 22px);
  letter-spacing: 0.28em; text-transform: uppercase; color: #fff; white-space: nowrap;
}
.site-nav { display: flex; justify-content: center; gap: clamp(18px, 2.1vw, 56px); flex-wrap: nowrap; min-width: 0; }
.site-nav__link {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 1.42vw, 38px); line-height: 1.2;
  letter-spacing: 0.08em; text-transform: uppercase; color: #fff; white-space: nowrap; opacity: 0.92;
  text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.site-nav__link:hover { opacity: 1; color: #fff; text-decoration: underline; }
.site-nav__link--current { opacity: 1; text-decoration: underline; text-decoration-color: var(--ink-900); }
.site-nav__cta { display: none; }
.nav-toggle {
  display: none; position: relative; z-index: 12;
  width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--ink-900);
  justify-self: end;
}
.nav-toggle__bar {
  position: absolute; left: 14px; right: 14px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out), top var(--dur-base) var(--ease-out);
}
.nav-toggle__bar:nth-child(1) { top: 18px; }
.nav-toggle__bar:nth-child(2) { top: 28px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { top: 23px; transform: rotate(-45deg); }

/* Sticky dark masthead (inner pages). The blur lives on a pseudo-element so the
   fixed-position mobile menu is not trapped inside the masthead's box. */
.masthead { position: sticky; top: 0; z-index: 40; }
.masthead::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(12, 14, 18, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.masthead .site-nav__link { opacity: 0.85; }
.masthead .site-nav__link:hover, .masthead .site-nav__link--current { opacity: 1; }
.masthead .site-nav__link--current { text-decoration-color: var(--red-500); }
.masthead .nav-toggle { background: var(--red-500); }

/* ---------- Inner page head ---------- */
.page-head { padding: clamp(36px, 3.3vw, 88px) var(--gutter-x) 0; }
.page-head__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 1px solid var(--ink-800);
  font-family: var(--font-heading); font-weight: 600; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--steel-500);
}
.page-head__bar b { color: var(--red-500); font-weight: 700; }
.page-head__title {
  margin-top: clamp(20px, 1.8vw, 48px);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(56px, 7.8vw, 210px); line-height: 0.84; letter-spacing: -0.02em;
  text-transform: uppercase; color: var(--ink-800); text-wrap: balance;
  animation: itr-rise-sm 600ms var(--ease-out) both;
}
.page-head__title em, .accent { color: var(--red-500); }
.page-head__lede {
  margin-top: clamp(20px, 1.8vw, 48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; align-items: end;
}
.page-head__lede p { max-width: 560px; font-size: clamp(16px, 0.7vw, 19px); line-height: 1.55; color: var(--text-body); text-wrap: pretty; }
.page-head__aside { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* Section head with index label + spanning title */
.index-head {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(20px, 2.4vw, 64px); padding-bottom: clamp(18px, 1.5vw, 40px); border-bottom: 1px solid var(--ink-800);
}
.index-head__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 3.13vw, 84px); line-height: 0.9; letter-spacing: -0.02em;
  text-transform: uppercase; color: var(--ink-800); text-wrap: balance;
}
.index-head--dark { border-bottom-color: var(--slate-500); }
.index-head--dark .index-head__title { color: #fff; }

/* Dark bands */
.band { color: var(--paper-050); }
.band--ink { background: var(--ink-800); }
.band--black { background: var(--ink-900); }
.band a { color: #fff; }

/* Q. / A. list rows */
.qa { padding: 22px 0; border-bottom: 1px solid var(--paper-200); }
.qa__q {
  display: flex; gap: 12px;
  font-family: var(--font-heading); font-weight: 700; font-size: 18px; line-height: 1.2;
  letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-800);
}
.qa__q b { color: var(--red-500); font-weight: 700; }
.qa__a { margin: 10px 0 0 30px; font-size: 15px; line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.qa--dark { padding: 24px 0; border-bottom-color: var(--ink-600); }
.qa--dark .qa__q { color: #fff; }
.qa--dark .qa__a { color: var(--text-on-dark-muted); }

/* ---------- Footer ---------- */
.footer { background: var(--ink-900); color: var(--paper-050); padding: clamp(32px, 2.7vw, 72px) var(--gutter-x) 28px; }
.footer__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; align-items: start;
  padding-bottom: 40px; border-bottom: 1px solid var(--ink-600);
}
.footer__logo { height: clamp(64px, 4.1vw, 110px); width: auto; }
.footer__nav { display: grid; gap: 8px; justify-items: start; }
.footer__nav a { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.05vw, 28px); line-height: 1.2; text-transform: uppercase; color: #fff; }
.footer__nav a:hover { color: var(--red-500); }
.footer__find { display: grid; gap: 10px; }
.footer__address { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 0.9vw, 24px); line-height: 1.1; text-transform: uppercase; color: #fff; }
.footer__note { font-size: 15px; line-height: 1.6; color: var(--text-on-dark-muted); }
.footer__address a { color: #fff; }
.footer__address a:hover { color: var(--red-500); }
.footer__contact { font-size: 15px; line-height: 1.6; color: var(--text-on-dark-muted); overflow-wrap: anywhere; }
.footer__contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__contact a:hover { color: var(--red-500); }
.cta__text a, .pricing-cta__aside a, .book-form__note a, .book-aside__text a, .book-aside__where a { text-decoration: underline; text-underline-offset: 3px; }
.footer__values { display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.footer__bottom {
  padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-heading); font-weight: 600; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-on-dark-muted);
}

/* ============================================================
   Responsive (shared)
   ============================================================ */
@media (max-width: 1199.98px) {
  .brand__name { display: inline; }
  .site-header__cta { display: none; }
  .nav-toggle { display: block; grid-column: 3; }
  .site-nav {
    position: fixed; inset: 0; z-index: 11;
    display: none; flex-direction: column; justify-content: center; align-items: flex-start; gap: 18px;
    padding: 120px var(--gutter-x) 40px;
    background: rgba(12, 14, 18, 0.96);
    backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass);
  }
  .site-nav.is-open { display: flex; }
  .site-nav__link { font-size: clamp(32px, 6vw, 56px); opacity: 1; }
  .site-nav__link--current { text-decoration-color: var(--red-500); }
  .site-nav__cta { display: inline-block; margin-top: 24px; background: var(--red-500); font-size: 18px; padding: 14px 22px; }
  .page-inner [id] { scroll-margin-top: 130px; }
}
@media (max-width: 1099.98px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639.98px) {
  .span-2 { grid-column: auto; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .brand__mark { height: 40px; }
  .brand__name { font-size: 14px; }
  .page-inner [id] { scroll-margin-top: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
