/* Max Guru public site: landing and coaches pages. Tokens match the 2.0 app and app.css. */
  /* Fonts: Big Shoulders Display (condensed signage, echoes the MG emblem's forward lean) for display;
     IBM Plex Sans for reading and numbers (tabular figures, a Devanagari sibling for a Nepali cut). Both OFL, self-hosted. */
  @font-face { font-family: "Big Shoulders"; font-style: normal; font-weight: 500 900; font-display: swap;
    src: url("../fonts/BigShouldersDisplay-500-900.woff2") format("woff2"); }
  @font-face { font-family: "Plex"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/IBMPlexSans-400.woff2") format("woff2"); }
  @font-face { font-family: "Plex"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/IBMPlexSans-500.woff2") format("woff2"); }
  @font-face { font-family: "Plex"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/IBMPlexSans-600.woff2") format("woff2"); }
  @font-face { font-family: "Plex"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/IBMPlexSans-700.woff2") format("woff2"); }

  /* Tokens: the Max Guru 2.0 app palette (black lacquer, silver, gold from the MG emblem). The site matches the app it sells. */
  :root {
    --bg: #0A0A0B; --surface: #141416; --surface-2: #1C1C20; --surface-3: #26262B; --line: #2C2C31; --line-strong: #3A3A40;
    --text: #F5F5F7; --text-2: #A7A9AE; --text-3: #8E9096;
    --gold: #E0AA2E; --gold-hi: #EDBE4C; --gold-deep: #B8861B; --gold-soft: rgba(224, 170, 46, 0.14); --on-gold: #141009;
    --silver: #D9DCE0; --silver-2: #C9CDD2; --silver-line: #AEB3B9; --ink: #141416; --ink-2: #3F4248;
    --ok: #32D583;
    --display: "Big Shoulders", "Arial Narrow", "Helvetica Neue", sans-serif;
    --body: "Plex", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
    --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-shot: 18px;
    --shadow-shot: 0 30px 60px -28px rgba(0, 0, 0, 0.9), 0 8px 18px -10px rgba(0, 0, 0, 0.7);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --z-nav: 20;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
  body { overflow-x: clip; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); accent-color: var(--gold); caret-color: var(--gold); }
  ::selection { background: var(--gold); color: var(--on-gold); }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; height: auto; }
  h1, h2, h3, .num { font-family: var(--display); font-weight: 800; line-height: 0.95; letter-spacing: 0; text-wrap: balance; overflow-wrap: anywhere; min-width: 0; }
  p, li, figcaption, dd { text-wrap: pretty; }
  .wrap { width: min(1160px, 100% - 2 * var(--s5)); margin-inline: auto; }
  :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--r-sm); }
  .skip { position: absolute; left: var(--s4); top: -60px; background: var(--gold); color: var(--on-gold); padding: var(--s2) var(--s4); font-weight: 600; border-radius: var(--r-sm); z-index: 99; }
  .skip:focus-visible { top: var(--s4); }

  /* Buttons: two shapes, one accent. The gold is spent on actions and key numbers, nowhere else. */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 48px; padding: 0 22px; border-radius: var(--r-md);
    font: 600 16px/1 var(--body); white-space: nowrap; border: 1px solid transparent; cursor: pointer;
    transition: background-color 120ms var(--ease-out), border-color 120ms var(--ease-out), transform 100ms var(--ease-out); }
  .btn:active { transform: scale(0.97); }
  .btn-gold { background: var(--gold); color: var(--on-gold); }
  .btn-gold:hover { background: var(--gold-hi); }
  .btn-line { background: transparent; color: var(--text); border-color: var(--line-strong); }
  .btn-line:hover { border-color: var(--text-2); background: var(--surface); }
  .btn-ink { background: var(--ink); color: var(--silver); }
  .btn-ink:hover { background: #26262B; }
  .btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
  .btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
  .btn svg { width: 18px; height: 18px; flex: none; }

  /* Nav */
  .nav { position: sticky; top: 0; z-index: var(--z-nav); background: rgba(10, 10, 11, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
  .nav-in { display: flex; align-items: center; gap: var(--s5); height: 64px; }
  .brand { display: flex; align-items: center; gap: var(--s3); font: 700 18px/1 var(--body); letter-spacing: -0.2px; }
  .brand img { width: 36px; height: 36px; border-radius: 9px; }
  .nav-links { display: flex; gap: var(--s5); margin-left: var(--s3); font-size: 15px; font-weight: 500; color: var(--text-2); }
  .nav-links a { padding: var(--s2) 0; border-bottom: 2px solid transparent; transition: color 120ms var(--ease-out); }
  .nav-links a:hover { color: var(--text); }
  .nav-cta { margin-left: auto; display: flex; gap: var(--s2); }

  /* Hero: text left, the real product right. One authored motion: the screens settle on load. */
  .hero { padding: var(--s8) 0 var(--s7); }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: center; }
  .hero h1 { font-size: clamp(56px, 8.6vw, 112px); font-weight: 900; line-height: 0.9; max-width: 11ch; }
  .hero h1 .gold-rule { display: block; width: 88px; height: 8px; margin: var(--s4) 0 0; background: var(--gold); transform: skewX(-24deg); transform-origin: left; }
  .hero .lead { margin: var(--s5) 0 var(--s6); font-size: 19px; max-width: 48ch; color: var(--text-2); }
  .hero .lead b { color: var(--text); font-weight: 600; }
  .hero-ctas { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
  .hero-note { margin-top: var(--s4); font-size: 14px; color: var(--text-3); }
  .hero-note a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  .hero-note a:hover { color: var(--text); }
  .shots { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: start; padding-top: var(--s6); }
  .shot { margin: 0; border-radius: var(--r-shot); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-shot); background: var(--surface); }
  .shot img { width: 100%; aspect-ratio: 720 / 1564; object-fit: cover; }
  .shots .shot:nth-child(2) { margin-top: var(--s8); }
  .shots .shot { opacity: 0; transform: translateY(18px); animation: settle 700ms var(--ease-out) forwards; }
  .shots .shot:nth-child(2) { animation-delay: 120ms; }
  @keyframes settle { to { opacity: 1; transform: none; } }

  /* Sections */
  section { padding: var(--s9) 0; }
  .sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5) var(--s7); align-items: end; margin-bottom: var(--s7); }
  .sec-head h2 { font-size: clamp(40px, 5.6vw, 72px); }
  .sec-head p { font-size: 18px; color: var(--text-2); max-width: 52ch; }
  h2 .gold { color: var(--gold); }

  /* Filmstrip of real screens: scrolls, snaps, no identical cards (captions differ, widths differ) */
  .strip { display: flex; gap: var(--s5); overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--s1) var(--s1) var(--s5); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
  .strip::-webkit-scrollbar { height: 6px; }
  .strip::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
  .strip figure { flex: 0 0 212px; scroll-snap-align: start; margin: 0; }
  .strip figure:first-child { flex-basis: 236px; }
  .strip .shot img { aspect-ratio: 720 / 1564; }
  .strip figcaption { margin-top: var(--s3); font-size: 14px; color: var(--text-2); line-height: 1.45; }
  .strip figcaption b { display: block; color: var(--text); font-weight: 600; font-size: 15px; }

  /* A week with a coach: a real sequence, so the numbers are earned */
  .week { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6) var(--s5); }
  .step { padding-top: var(--s4); border-top: 1px solid var(--line-strong); }
  .step .num { font-size: 64px; font-weight: 900; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
  .step h3 { font-size: 26px; margin: var(--s3) 0 var(--s2); }
  .step p { color: var(--text-2); font-size: 16px; }

  /* Gym-floor facts: a definition list, not icon tiles */
  .facts { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: start; }
  .facts dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--s6); }
  .facts div { padding: var(--s4) 0; border-top: 1px solid var(--line); }
  .facts dt { font-weight: 600; font-size: 17px; }
  .facts dd { color: var(--text-2); font-size: 15.5px; margin-top: var(--s1); }
  .facts dd code { font: 500 14px var(--body); color: var(--text); background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }
  .pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); align-items: start; }
  .pair figcaption { margin-top: var(--s2); font-size: 13.5px; color: var(--text-3); }

  /* Coaches: the silver band. Silver is the emblem's second metal; the register changes for the other audience. */
  .coaches { background: var(--silver); color: var(--ink); }
  .coaches .sec-head p { color: var(--ink-2); }
  .coaches .gold-rule { width: 64px; height: 6px; background: var(--gold); transform: skewX(-24deg); transform-origin: left; margin: 0 0 var(--s5); }
  .ledger { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--s7); align-items: start; }
  .ledger ol { list-style: none; counter-reset: none; }
  .ledger li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--silver-line); font-size: 16px; }
  .ledger li:last-child { border-bottom: 1px solid var(--silver-line); }
  .ledger li b { font-weight: 600; }
  .ledger li span { color: var(--ink-2); }
  .ledger .shot { border-color: rgba(20, 20, 22, 0.18); box-shadow: 0 30px 60px -30px rgba(20, 20, 22, 0.55); }
  .coach-ctas { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s6); }
  .coaches .btn-line { color: var(--ink); border-color: rgba(20, 20, 22, 0.35); }
  .coaches .btn-line:hover { background: rgba(20, 20, 22, 0.06); border-color: var(--ink); }

  /* Gyms + membership: two panels of different weight on one row */
  .biz { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5); align-items: stretch; }
  .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); }
  .panel h2 { font-size: clamp(34px, 4vw, 48px); margin-bottom: var(--s3); }
  .panel p { color: var(--text-2); max-width: 56ch; }
  .panel ul { margin: var(--s5) 0 0; padding: 0; list-style: none; columns: 2; column-gap: var(--s5); }
  .panel li { break-inside: avoid; padding: var(--s2) 0; border-top: 1px solid var(--line); font-size: 15.5px; }
  .panel .btn { margin-top: var(--s5); }
  .pay { margin-top: var(--s5); display: flex; flex-wrap: wrap; gap: var(--s2); }
  .pay .tag { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; font-size: 14px; color: var(--text-2); }

  /* Download */
  .download { background: var(--surface); border-top: 1px solid var(--line); }
  .dl-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: center; }
  .dl-grid h2 { font-size: clamp(48px, 7vw, 96px); font-weight: 900; }
  .stores { display: flex; gap: var(--s3); flex-wrap: wrap; margin: var(--s6) 0 var(--s4); }
  .dl-note { color: var(--text-2); font-size: 15px; max-width: 46ch; }
  .dl-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  .dl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .dl-pair figcaption { margin-top: var(--s2); font-size: 13.5px; color: var(--text-3); }

  footer { padding: var(--s6) 0 var(--s7); border-top: 1px solid var(--line); font-size: 14px; color: var(--text-3); }
  .foot { display: flex; gap: var(--s4) var(--s5); flex-wrap: wrap; align-items: center; }
  .foot-links { display: flex; gap: var(--s4) var(--s5); flex-wrap: wrap; margin-left: auto; }
  .foot-links a { color: var(--text-2); padding: var(--s1) 0; }
  .foot-links a:hover { color: var(--text); }

  /* Responsive: verified at 320, 375, 414, 768 */
  @media (max-width: 980px) {
    .hero-grid, .sec-head, .facts, .ledger, .biz, .dl-grid { grid-template-columns: minmax(0, 1fr); }
    .hero { padding: var(--s7) 0 var(--s6); }
    .shots { padding-top: 0; max-width: 520px; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    section { padding: var(--s8) 0; }
    .ledger li { grid-template-columns: 124px minmax(0, 1fr); }
  }
  @media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-in { gap: var(--s3); }
    .brand span { display: none; }
    .facts dl { grid-template-columns: minmax(0, 1fr); }
    .panel ul { columns: 1; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .hero h1 { font-size: clamp(44px, 15vw, 76px); }
    .strip figure, .strip figure:first-child { flex-basis: 184px; }
  }
  @media (max-width: 420px) {
    .ledger li { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
    .shots { gap: var(--s3); }
    .shots .shot:nth-child(2) { margin-top: var(--s6); }
    .btn-lg { min-height: 50px; padding: 0 20px; font-size: 16px; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .shots .shot { animation: none; opacity: 1; transform: none; }
    .btn, .nav-links a { transition: none; }
    .btn:active { transform: none; }
  }

/* ---------- coaches and creators page ---------- */
.hero-wide h1 { font-size: clamp(56px, 9vw, 120px); font-weight: 900; line-height: 0.9; max-width: 12ch; }
.hero-wide .lead { font-size: 20px; max-width: 54ch; }
.funnel { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: stretch; --slop-allow: hero-three-cards; }
.funnel li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.funnel .num { font-size: 56px; font-weight: 900; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.funnel h3 { font-size: 28px; }
.funnel p { color: var(--text-2); font-size: 16px; }
.code { display: inline-flex; align-items: center; gap: var(--s3); margin-top: auto; padding: var(--s3) var(--s4); border: 1px dashed var(--line-strong); border-radius: var(--r-md); font: 600 20px/1 "Plex", ui-monospace, monospace; letter-spacing: 0.14em; color: var(--text); background: var(--surface-2); }
.code small { font: 500 12px/1 var(--body); letter-spacing: 0; color: var(--text-3); }
.manage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s7); align-items: center; }
.manage .shot { max-width: 300px; }
.sell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4) var(--s7); }
.sell div { padding: var(--s4) 0; border-top: 1px solid var(--line); }
.sell dt { font-weight: 600; font-size: 18px; }
.sell dd { color: var(--text-2); font-size: 16px; margin-top: var(--s1); }
.earn { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s7); align-items: center; }
.earn .shot { max-width: 320px; margin-left: auto; }
.earn ul { list-style: none; margin-top: var(--s5); }
.earn li { padding: var(--s3) 0; border-top: 1px solid var(--silver-line); font-size: 17px; }
.earn li b { font-weight: 600; }
.start { background: var(--surface); border-top: 1px solid var(--line); }
.start .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); --slop-allow: hero-three-cards; }
.start .step p { font-size: 17px; }
@media (max-width: 980px) {
  .funnel, .manage, .sell, .earn { grid-template-columns: minmax(0, 1fr); }
  .manage .shot, .earn .shot { max-width: 280px; margin-left: 0; }
  .start .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .hero-wide h1 { font-size: clamp(46px, 15vw, 80px); }
  .hero-wide .lead { font-size: 18px; }
}
