/* ==========================================================================
   MyGymDay website v4 · inner pages (company, support, privacy, terms,
   delete-account, 404, careers). Loaded after mgd.css.

   These pages keep their long-form content markup from v3. Rewriting
   200 paragraphs of reviewed legal copy into new markup would be a risk with
   no reader benefit, so this file restyles the v3 content components in the
   v4 language instead: Clash headings, Satoshi text, 26 px cards, lime spent
   on one thing at a time.

   §1 also re-points the v3 --mgd-* variables at the v4 theme, which is what
   lets careers.css (the application wizard) keep working unchanged.
   ========================================================================== */

/* -- 1 · v3 variable bridge -------------------------------------------------- */
:root {
  --mgd-color-primary: var(--lime);
  --mgd-color-primary-pressed: var(--lime-pressed);
  --mgd-color-primary-wash: var(--lime-wash);
  --mgd-color-secondary: var(--lime-pressed);
  --mgd-color-ink: #050706;
  --mgd-color-text: var(--text);
  --mgd-color-text-secondary: var(--text-2);
  --mgd-color-text-tertiary: var(--text-3);
  --mgd-color-text-inverse: var(--on-lime);
  --mgd-color-bg: var(--canvas);
  --mgd-color-bg-alt: var(--canvas-alt);
  --mgd-color-surface: var(--surface);
  --mgd-color-surface-sunken: var(--surface-raised);
  --mgd-color-surface-strong: var(--surface-pressed);
  --mgd-color-border: #3A423B;
  --mgd-color-divider: #232A25;
  --mgd-color-success: #62D68A;
  --mgd-color-success-wash: #122117;
  --mgd-color-warning: #E8B44F;
  --mgd-color-warning-wash: #241E10;
  --mgd-color-danger: var(--danger);
  --mgd-color-danger-wash: var(--danger-wash);
  --mgd-color-overlay: var(--scrim);
  --mgd-color-white: #FFFFFF;
  --mgd-space-none: 0px; --mgd-space-hair: 2px; --mgd-space-xs: 4px; --mgd-space-sm: 8px; --mgd-space-md: 12px;
  --mgd-space-lg: 16px; --mgd-space-xl: 20px; --mgd-space-xl-2: 24px; --mgd-space-xl-3: 32px; --mgd-space-xl-4: 40px;
  --mgd-space-xl-5: 48px; --mgd-space-xl-6: 64px;
  --mgd-radius-none: 0px; --mgd-radius-sm: 12px; --mgd-radius-md: 16px; --mgd-radius-lg: 18px; --mgd-radius-xl: 24px; --mgd-radius-pill: 999px;
  --mgd-layout-gutter: var(--gutter); --mgd-layout-hairline: 1px; --mgd-layout-min-touch: 44px;
  --mgd-layout-control-sm: 44px; --mgd-layout-control-md: 52px; --mgd-layout-control-lg: 56px;
  --mgd-font-display: var(--font-display);
  --mgd-font-text: var(--font-text);
  --mgd-font: var(--font-text);
  --mgd-type-heading: 700 20px/26px var(--font-text);
  --mgd-type-subheading: 700 17px/24px var(--font-text);
  --mgd-type-body: 400 16px/24px var(--font-text);
  --mgd-type-label: 700 13px/18px var(--font-text);
  --mgd-type-caption: 500 13px/18px var(--font-text);
  --mgd-site-text-quiet: var(--text-3);
  --mgd-site-title: 600 clamp(26px, 3.2vw, 40px) / 1.08 var(--font-display);
  --mgd-site-heading: 700 clamp(19px, 1.6vw, 22px) / 1.3 var(--font-text);
  --mgd-site-lead: 400 clamp(17px, 1.4vw, 20px) / 1.55 var(--font-text);
  --mgd-site-body: 400 16px / 1.65 var(--font-text);
  --mgd-site-eyebrow: 700 12px / 1.3 var(--font-text);
  --mgd-site-caption: 500 13px / 1.45 var(--font-text);
  --mgd-site-track-title: -0.004em;
  --mgd-site-track-heading: -0.005em;
  --mgd-site-track-eyebrow: 0.16em;
  --mgd-site-measure-lead: 46ch;
  --mgd-site-measure-body: 64ch;
  --mgd-site-radius-card: var(--r-field);
  --mgd-site-dur-fast: 160ms;
  --mgd-site-dur-base: 320ms;
  --mgd-site-ease: var(--ease);
}

/* -- 2 · Layout ------------------------------------------------------------- */
.shell { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.shell--narrow { max-width: calc(860px + var(--gutter) * 2); }
main > section:first-child:not(.band--media) { padding-top: calc(var(--header-h) + 48px); }
@media (min-width: 900px) { main > section:first-child:not(.band--media) { padding-top: calc(var(--header-h) + 88px); } }
.section--raised { background: var(--canvas-alt); }
.section--ruled { border-top: 1px solid var(--hairline); }
.section-head { display: grid; gap: 16px; margin-bottom: 40px; max-width: 760px; }
.section-head:last-child { margin-bottom: 0; }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.stack--center { justify-items: center; text-align: center; }

/* -- 3 · v3 type utilities -------------------------------------------------- */
.t-hero, .t-display, .t-title, .t-poster { font-family: var(--font-display); font-weight: 600; color: var(--text); text-wrap: balance; word-spacing: 0.08em; }
.t-poster, .t-hero { font-size: clamp(2.5rem, 1.5rem + 4.6vw, 5.5rem); line-height: 1.02; letter-spacing: -0.012em; }
.t-display { font-size: clamp(2.125rem, 1.4rem + 3vw, 4rem); line-height: 1.05; letter-spacing: -0.008em; }
.t-title { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); line-height: 1.08; letter-spacing: -0.004em; }
.t-heading { font-family: var(--font-display); font-weight: 600; font-size: 1.3125rem; line-height: 1.25; word-spacing: 0.08em; }
.t-lead { font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem); line-height: 1.6; color: var(--text-2); max-width: 46ch; text-wrap: pretty; }
.t-body { font-size: 1.0625rem; line-height: 1.65; color: var(--text-2); max-width: 64ch; }
.t-label { font-size: 0.875rem; font-weight: 700; }
.t-caption { font-size: 0.8125rem; line-height: 1.45; color: var(--text-3); font-weight: 500; }
.t-overline, .t-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.t-dim { color: var(--text-2); }
.t-faint { color: var(--text-3); }
.t-lime { color: var(--lime); }
.t-overline.t-lime, .t-eyebrow.t-lime { color: var(--lime); }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); display: inline-block; }

/* The v3 section label: a hairline with a caps label on it. */
.rule-label { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; font-family: var(--font-text); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); }
.rule-label::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.rule { border: 0; border-top: 1px solid var(--hairline); margin: 24px 0; }

/* -- 4 · Cards ---------------------------------------------------------------- */
.card { padding: 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--hairline); display: grid; gap: 12px; align-content: start; }
.card--tall { min-height: 100%; }
.card--pad-lg { padding: clamp(24px, 4vw, 40px); }
.card__head { display: flex; align-items: center; gap: 14px; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.3125rem; line-height: 1.25; color: var(--text); word-spacing: 0.08em; }
.card__body { color: var(--text-2); font-size: 1rem; line-height: 1.65; }
.card__foot { margin-top: auto; padding-top: 8px; }
a.card--link { text-decoration: none; color: inherit; transition: border-color 160ms var(--ease), background-color 160ms var(--ease), transform 160ms var(--ease); }
a.card--link:hover { border-color: rgba(183, 255, 60, 0.4); background: var(--surface-raised); }
a.card--link:active { transform: scale(0.99); }

/* v3 check lists carry only a <span>; v4 lists carry an <svg> first. */
.checks li:not(:has(> svg)) { grid-template-columns: 22px 1fr; }
.checks li:not(:has(> svg))::before {
  content: ""; width: 20px; height: 20px; margin-top: 3px; background: var(--lime);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.checks--muted li:not(:has(> svg))::before {
  background: var(--text-3);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 12h10'/%3E%3C/svg%3E");
}
.card .checks li:first-child { border-top: 0; }
.card .checks li:last-child { border-bottom: 0; }

/* -- 5 · Notices ---------------------------------------------------------------- */
.notice { background: var(--surface); border-color: var(--hairline); }
.notice--lime { background: var(--lime-wash); border-color: rgba(183, 255, 60, 0.28); }
.notice--warn { background: #1F1A0E; border-color: rgba(232, 180, 79, 0.3); }
.notice--warn .notice__title { color: #F2C978; }
.notice--danger { background: var(--danger-wash); border-color: rgba(240, 138, 142, 0.3); }
.notice--danger .notice__title { color: var(--danger); }

/* -- 6 · Long-form prose ---------------------------------------------------------- */
.prose { max-width: 72ch; color: var(--text-2); font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); line-height: 1.15; word-spacing: 0.08em; margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--hairline); scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-family: var(--font-text); font-weight: 700; color: var(--text); font-size: 1.1875rem; line-height: 1.35; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose strong, .prose b { color: var(--text); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: var(--lime); }
.prose a { color: var(--text); }
.prose code { font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--surface-raised); color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
.prose th { color: var(--text); font-weight: 700; background: var(--surface); }
.prose nav { padding: 20px 22px; border-radius: var(--r-field); background: var(--surface); border: 1px solid var(--hairline); }
.prose nav h2 { margin: 0 0 8px; padding: 0; border: 0; font-family: var(--font-text); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); }
.prose nav p { line-height: 2; }
.prose .notice { margin-block: 1.6em; }

/* -- 7 · Steps (v3: numbered rail) ---------------------------------------------- */
.steps--railed { grid-template-columns: 1fr; gap: 10px; }
.steps--railed .step { grid-template-columns: 48px 1fr; align-items: start; gap: 16px; min-height: 0; padding: 20px; }
.step__num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-wash); color: var(--lime); font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; border: 1px solid rgba(183, 255, 60, 0.28); }
.step__text { display: grid; gap: 6px; }
.step__text .t-heading { font-size: 1.1875rem; }
@media (min-width: 900px) { .steps--railed { grid-template-columns: repeat(2, 1fr); } }

/* -- 8 · Misc v3 components ------------------------------------------------------ */
.storebar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.tile { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-raised); border: 1px solid var(--hairline); flex: none; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: contain; }
/* The v3 glyphs and the partner mark are drawn in lime, so their tiles are wash and ink, never solid lime. */
.tile--lime { background: var(--lime-wash); border-color: rgba(183, 255, 60, 0.32); }
.tile--brand { background: #050706; border-color: var(--edge); padding: 14%; }
.tile img.glyph { width: 26px; height: 26px; }
.tile--lg { width: 88px; height: 88px; border-radius: 22px; }
.glyph { width: 26px; height: 26px; }
.btn--quiet { color: var(--text-2); padding-inline: 4px; min-height: 44px; }
.btn--quiet:hover { color: var(--text); }
.cta-band { display: grid; gap: 20px; justify-items: center; text-align: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--r-sheet); background: var(--surface-raised); border: 1px solid var(--hairline); border-top-color: var(--edge); }

/* Company details list (support.html#company). */
.company { display: grid; border-top: 1px solid var(--hairline); }
.company__row { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.company__label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.company__value { color: var(--text); font-weight: 500; }
@media (min-width: 700px) { .company__row { grid-template-columns: 200px 1fr; gap: 24px; } }

/* -- 9 · company.html ------------------------------------------------------------ */
.band { position: relative; padding-block: var(--section-y); }
.band--ink { background: var(--canvas-alt); }
.band--media { min-height: min(86svh, 760px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding-top: calc(var(--header-h) + 80px); padding-bottom: 56px; }
.band--media > .shell { width: 100%; }
.band__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.band--media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 11, 10, 0.55) 0%, rgba(8, 11, 10, 0) 24%, rgba(8, 11, 10, 0.7) 60%, var(--canvas) 100%); }
.company-hero { display: grid; gap: 18px; max-width: 720px; }
.company-apps { display: grid; gap: 16px; }
@media (min-width: 760px) { .company-apps { grid-template-columns: 1fr 1fr; } }
.company-apps__item { display: grid; gap: 10px; align-content: start; padding: 28px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--hairline); }
.company-apps__name { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.company-apps__kind { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); }
.company-apps__link, .founder-round__link { color: var(--text); font-weight: 700; text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.company-apps__link:hover, .founder-round__link:hover { color: var(--lime); }
.founder-round { display: grid; gap: 24px; align-items: center; padding: 28px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--hairline); }
.founder-round__photo { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 1px solid var(--edge); }
.founder-round__text { display: grid; gap: 6px; }
.founder-round__name { font-family: var(--font-display); font-weight: 600; font-size: 1.625rem; line-height: 1.2; }
.founder-round__role { color: var(--lime); font-weight: 700; font-size: 0.9375rem; }
@media (min-width: 700px) { .founder-round { padding: 36px 40px; } }
.company-explore { display: grid; border-top: 1px solid var(--hairline); }
.company-explore__link { display: flex; align-items: center; justify-content: space-between; min-height: 72px; border-bottom: 1px solid var(--hairline); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; word-spacing: 0.08em; }
.company-explore__link:hover { color: var(--lime); }
.company-explore__arrow { color: var(--text-3); }

/* -- 10 · Careers: keep the wizard on the v4 surfaces ------------------------------ */
.wiz { --panel-accent: var(--lime); }
