/* ============================================================
   FYL — Forge Your Lift · marketing site
   "Forge" identity: steel graphite + green energy, on a light
   base tuned to the real app palette (src/constants/theme.ts).
   Green carries the structural and brand accents.
   ============================================================ */

:root {
  /* Surfaces (app light) */
  --bg:        #ffffff;
  --bg-soft:   #f7f8fa;   /* app card */
  --bg-soft-2: #eef0f4;
  --border:    #e2e4e9;   /* app border */
  --border-2:  #d5d9e1;

  /* Ink / text (app) */
  --text:   #11181c;
  --text-2: #60646c;
  --muted:  #9097a1;

  /* Forge graphite (dark bands only — backdrops, never the product) */
  --ink:    #0e1116;
  --ink-2:  #161b22;
  --ink-3:  #1f2630;

  /* Brand green (structural accent) */
  --brand:     #16a34a;
  --brand-600: #15803d;
  --brand-700: #166534;
  --brand-400: #4ade80;
  --brand-50:  #ecfdf5;
  --brand-100: #bbf7d0;

  /* Green signature accent */
  --ember:        #16a34a;
  --ember-bright: #22c55e;
  --ember-deep:   #15803d;
  --ember-50:     #ecfdf5;
  --ember-100:    #bbf7d0;
  --ember-200:    #86efac;

  /* Gradients */
  --forge:  linear-gradient(102deg, #22c55e 0%, #16a34a 46%, #15803d 100%);
  --steel:  linear-gradient(160deg, #20262f 0%, #0e1116 70%);

  /* Semantic */
  --success: #16a34a;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
  --shadow:    0 14px 34px -16px rgba(16,24,40,.22);
  --shadow-lg: 0 44px 90px -32px rgba(14,17,22,.40);
  --shadow-ember: 0 24px 60px -22px rgba(22,163,74,.5);

  --radius: 16px;
  --maxw: 1200px;
  --nav-h: 70px;

  --font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(22,163,74,.4);
  outline-offset: 3px;
}
img { max-width: 100%; display: block; }
.icon { width: 1em; height: 1em; flex: none; display: block; }
h1, h2, h3, h4, h5 {
  margin: 0; line-height: 1.04; font-family: var(--font-display);
  font-weight: 800; letter-spacing: -.02em;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sec { padding: 104px 0; position: relative; }
.lead { color: var(--text-2); font-size: clamp(16px, 1.5vw, 19px); font-weight: 400; line-height: 1.65; }
.g { background: var(--forge); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Eyebrow / kicker — a forged tag with a green tick */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ember-deep);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--forge); border-radius: 2px;
}
.eyebrow--green { color: var(--brand-700); }
.eyebrow--green::before { background: var(--brand); }

.sec__head { max-width: 760px; margin: 0 0 60px; }
.sec__head.ctr { margin-inline: auto; text-align: center; }
.sec__head h2 { font-size: clamp(32px, 4.6vw, 52px); margin: 16px 0 0; }
.sec__head .lead { margin-top: 18px; max-width: 600px; }
.sec__head.ctr .lead { margin-inline: auto; }

/* Grid motif (engineering / forge plan) */
.grid-fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.grid-fx::before {
  content: ""; position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, rgba(17,24,28,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17,24,28,.05) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(120% 100% at 78% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(120% 100% at 78% 0%, #000 0%, transparent 70%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(80px); z-index: 0; pointer-events: none; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  padding: 12px 22px; border-radius: 11px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(14,17,22,.7); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(14,17,22,.8); }
.btn--ember { background: var(--forge); color: #fff; box-shadow: var(--shadow-ember); }
.btn--ember:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn--ghost { background: #fff; color: var(--text); border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--ember-200); color: var(--ember-deep); background: var(--ember-50); }
.btn--block { width: 100%; }

/* ---------------- Store badges ---------------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff;
  padding: 10px 18px 10px 16px; border-radius: 13px;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .15s ease, box-shadow .2s ease; box-shadow: 0 12px 26px -16px rgba(14,17,22,.8);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -16px rgba(14,17,22,.9); }
.store svg { width: 24px; height: 24px; flex: none; }
.store__txt { display: flex; flex-direction: column; line-height: 1.05; }
.store__txt small { font-size: 10.5px; opacity: .8; font-weight: 500; letter-spacing: .02em; }
.store__txt strong { font-family: var(--font-display); font-size: 17px; font-weight: 700; }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: rgba(255,255,255,.74); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(255,255,255,.9); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: 0; }
.logo__mark {
  width: 54px; height: auto; flex: none;
  filter: drop-shadow(0 9px 12px rgba(21,128,61,.22));
  transition: transform .15s ease, filter .2s ease;
}
.logo:hover .logo__mark { transform: translateY(-1px); filter: drop-shadow(0 12px 16px rgba(21,128,61,.28)); }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a { padding: 8px 14px; border-radius: 9px; font-weight: 500; font-size: 15px; color: var(--text-2); transition: color .15s, background .15s; }
.nav__links a:hover { color: var(--text); background: var(--bg-soft); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); background: #fff; border-radius: 10px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav__toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* Signed-in account menu (mounted by js/main.js when an auth token exists):
   the Login button becomes a hamburger (#navMenuBtn) whose dropdown holds the
   app links. While it's mounted (.nav--authed) the public drawer toggle and
   the navbar theme icon hide — the menu carries both jobs. */
.nav__toggle.nav__toggle--menu { display: inline-flex; }
.nav--authed #navToggle { display: none !important; }
.nav--authed #navTheme { display: none !important; }
.nav__menuwrap { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 12px); right: 0; z-index: 70;
  display: none; flex-direction: column; gap: 2px;
  min-width: 232px; padding: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.nav__menu.open { display: flex; }
.nav__menu a,
.nav__menu .nav__menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  margin: 0; padding: 10px 12px; border: 0; border-radius: 9px;
  background: none; font: inherit; font-weight: 500; font-size: 15px;
  color: var(--text-2); text-align: left; cursor: pointer;
  transition: color .15s, background .15s;
}
.nav__menu a:hover,
.nav__menu .nav__menu-item:hover { color: var(--text); background: var(--bg-soft); }
.nav__menu a[aria-current='page'] { color: var(--text); background: var(--bg-soft); }
.nav__menu .nav__menu-item svg { width: 16px; height: 16px; flex: none; }
.nav__menu-sep { height: 1px; background: var(--border); margin: 6px 4px; }
/* Marketing links ride inside the menu only once the inline nav row is gone
   (<=980px) — desktop already shows them in the navbar. */
.nav__menu .nav__menu-mobile { display: none; }

/* Resources dropdown (mounted by js/main.js — without JS the plain link stays
   and simply navigates to /resources). Desktop: caret + floating panel.
   <=980px: the caret hides and the sub-links sit inline in the drawer. */
.nav__dd { position: relative; display: flex; align-items: center; }
.nav__dd-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 30px; margin-left: -8px; padding: 0; border: 0;
  background: none; color: var(--text-2); cursor: pointer; border-radius: 7px;
  transition: color .15s, background .15s;
}
.nav__dd-btn:hover { color: var(--text); background: var(--bg-soft); }
.nav__dd-btn svg { width: 14px; height: 14px; transition: transform .15s ease; }
.nav__dd.open .nav__dd-btn svg { transform: rotate(180deg); }
.nav__dd-menu {
  position: absolute; top: calc(100% + 14px); left: 0; z-index: 70;
  display: none; flex-direction: column; gap: 2px;
  min-width: 216px; padding: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg);
}
.nav__dd.open .nav__dd-menu { display: flex; }
.nav__dd-menu a {
  display: flex; width: 100%; padding: 10px 12px; border-radius: 9px;
  font-weight: 500; font-size: 15px; color: var(--text-2);
  transition: color .15s, background .15s;
}
.nav__dd-menu a:hover { color: var(--text); background: var(--bg-soft); }

/* ---------------- Device frame ---------------- */
.device {
  position: relative;
  background: linear-gradient(155deg, #2a313b, #0b0d10);
  border-radius: 42px; padding: 9px;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.07);
}
.device::after { content: ""; position: absolute; right: -2px; top: 132px; width: 3px; height: 54px; background: #1a1e24; border-radius: 0 3px 3px 0; }
.device__screen { position: relative; background: #fff; border-radius: 34px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.device__screen img { width: 100%; height: auto; display: block; }

/* Floating chips */
.floaty {
  position: absolute; z-index: 8; background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
  padding: 10px 14px; display: flex; align-items: center; gap: 11px; font-weight: 700;
}
.floaty .fi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 17px; }
.floaty .fi .icon { width: 19px; height: 19px; color: var(--ember-deep); }
.floaty small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.floaty b { font-family: var(--font-display); font-size: 15px; }

/* ---------------- Hero (asymmetric phone stack + green accent) ---------------- */
.hero { position: relative; padding: clamp(44px, 6vw, 84px) 0 92px; overflow: hidden; }
.hero .glow.a { width: 600px; height: 600px; top: -280px; right: -120px; background: radial-gradient(circle, rgba(34,197,94,.32), transparent 64%); }
.hero .glow.b { width: 480px; height: 480px; bottom: -240px; left: -180px; background: radial-gradient(circle, rgba(22,163,74,.18), transparent 66%); }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.12fr .88fr; gap: 48px; align-items: center; }

.hero h1 { font-size: clamp(44px, 6.8vw, 78px); font-weight: 900; letter-spacing: -.035em; margin: 22px 0 0; line-height: .96; text-transform: uppercase; }
.hero h1 .g { display: inline-block; position: relative; line-height: 1.2; }
.hero .lead { margin-top: 22px; max-width: 500px; }
.hero__actions { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.hero__note { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.hero__note .stars { color: var(--ember-bright); display: inline-flex; gap: 2px; }
.hero__note .stars .icon { width: 15px; height: 15px; fill: currentColor; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-2); }

.hero__media { position: relative; display: flex; justify-content: center; align-items: center; isolation: isolate; }
.hero__media .device { width: min(330px, 78vw); position: relative; z-index: 3; }
.hero-phone {
  position: absolute; top: 51%; z-index: 1;
  width: min(270px, 58vw); aspect-ratio: 390 / 844;
  padding: 8px; border-radius: 38px;
  background: linear-gradient(155deg, #2a313b, #0b0d10 72%);
  box-shadow: 0 44px 86px -38px rgba(14,17,22,.65), inset 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden;
}
.hero-phone::after {
  content: ""; position: absolute; inset: 8px; border-radius: 30px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  pointer-events: none;
}
.hero-phone__screen { width: 100%; height: 100%; overflow: hidden; border-radius: 30px; background: #fff; }
.hero-phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.hero-phone--left { left: 2%; transform: translate(-20%, -48%) rotate(-7deg); }
.hero-phone--right {
  right: 0; transform: translate(22%, -48%) rotate(7deg);
  box-shadow: 0 44px 86px -38px rgba(14,17,22,.65), 34px 52px 74px -48px rgba(34,197,94,.62), inset 0 0 0 1px rgba(255,255,255,.08);
}
.floaty--pr  { top: 9%;  left: -42px; }
.floaty--vol { bottom: 13%; right: -40px; }

/* ---------------- Apple Watch companion (real device mockup) ---------------- */
.hero-watch {
  position: absolute; z-index: 6; left: -9%; bottom: -6%;
  width: min(172px, 40vw); height: auto; transform: rotate(-8deg);
  filter: drop-shadow(0 20px 34px rgba(14,17,22,.4));
}

/* ---------------- Stat strip ---------------- */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat .n { font-family: var(--font-display); font-size: 30px; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.stat .n.em { color: var(--ember-deep); }
.stat .n.bl { color: var(--brand-600); }
.stat .l { color: var(--text-2); font-size: 13.5px; font-weight: 500; margin-top: 8px; }

/* ---------------- Feature block (left copy / phone + callouts) ---------------- */
.feat { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(36px, 6vw, 84px); align-items: center; }
.feat.rev .feat__media { order: 2; }
.feat__copy h3 { font-size: clamp(28px, 3.6vw, 42px); text-transform: uppercase; letter-spacing: -.025em; }
.feat__copy .lead { margin-top: 18px; max-width: 480px; }
.flist { margin-top: 28px; display: grid; gap: 14px; }
.flist li { display: flex; gap: 13px; align-items: flex-start; font-weight: 500; color: var(--text); font-size: 15.5px; }
.tick { flex: none; width: 23px; height: 23px; border-radius: 7px; background: var(--ember-50); color: var(--ember-deep); display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 1px; border: 1px solid var(--ember-100); }
.tick.y { background: #eafaf0; color: var(--success); border-color: #c7eed6; }

.feat__media { position: relative; display: flex; justify-content: center; }
.feat__media .device { width: min(300px, 74vw); position: relative; z-index: 2; }
.feat__media .glow { width: 360px; height: 360px; top: 50%; left: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(34,197,94,.18), transparent 66%); }
/* callout chip pinned to a screenshot */
.callout {
  position: absolute; z-index: 4; background: #fff; border: 1px solid var(--border);
  border-left: 3px solid var(--ember); border-radius: 11px; box-shadow: var(--shadow);
  padding: 9px 13px; font-weight: 700; font-size: 13.5px; font-family: var(--font-display);
  letter-spacing: -.01em; max-width: 190px; line-height: 1.25;
}
.callout small { display: block; font-family: var(--font); font-size: 11.5px; font-weight: 500; color: var(--text-2); letter-spacing: 0; margin-top: 2px; }
.callout.bl { border-left-color: var(--brand); }

/* ---------------- Forge band (dark backdrop, light product) ---------------- */
.forge {
  position: relative; overflow: hidden; color: #fff;
  background: var(--ink);
  padding: clamp(72px, 9vw, 120px) 0;
}
.forge::before { /* grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(110% 100% at 20% 0%, #000, transparent 72%);
          mask-image: radial-gradient(110% 100% at 20% 0%, #000, transparent 72%);
}
.forge .fglow { position: absolute; width: 640px; height: 640px; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.forge .fglow.a { top: -240px; right: -160px; background: radial-gradient(circle, rgba(22,163,74,.5), transparent 62%); }
.forge .fglow.b { bottom: -300px; left: -200px; background: radial-gradient(circle, rgba(22,163,74,.28), transparent 64%); }
.forge__word { position: absolute; right: -2%; bottom: -6%; font-family: var(--font-display); font-weight: 900; font-size: clamp(140px, 24vw, 360px); letter-spacing: -.04em; color: rgba(255,255,255,.035); pointer-events: none; z-index: 0; text-transform: uppercase; }
.forge__grid { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.forge__media { display: flex; justify-content: center; position: relative; }
.forge__media .device { width: min(290px, 72vw); }
.forge .eyebrow { color: var(--ember-bright); }
.forge h2 { font-size: clamp(32px, 4.6vw, 52px); text-transform: uppercase; letter-spacing: -.025em; }
.forge .lead { color: rgba(255,255,255,.66); margin-top: 18px; max-width: 460px; }
.forge__stats { margin-top: 34px; display: grid; grid-template-columns: repeat(3, auto); gap: 30px; justify-content: start; }
.forge__stat .n { font-family: var(--font-display); font-weight: 900; font-size: 32px; letter-spacing: -.03em; line-height: 1; }
.forge__stat .n.em { color: var(--ember-bright); }
.forge__stat .l { color: rgba(255,255,255,.55); font-size: 13px; font-weight: 500; margin-top: 7px; }

/* ---------------- Device gallery ---------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.gcard { position: relative; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 24px; padding: 30px 26px 28px; text-align: center; transition: border-color .2s, box-shadow .2s, transform .2s; }
.gcard:hover { border-color: var(--ember-100); box-shadow: var(--shadow); transform: translateY(-4px); }
.gcard .device { width: 100%; max-width: 230px; margin: 0 auto 22px; transition: transform .35s ease; }
.gcard:hover .device { transform: translateY(-4px); }
.gcard h4 { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; letter-spacing: -.01em; }
.gcard p { color: var(--text-2); font-size: 14.5px; font-weight: 400; margin-top: 8px; max-width: 280px; margin-inline: auto; }
.badge { display: inline-block; font-family: var(--font-display); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ember-deep); background: var(--ember-50); border: 1px solid var(--ember-100); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.badge.bl { color: var(--brand-700); background: var(--brand-50); border-color: var(--brand-100); }

/* ---------------- Bento ---------------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 18px; }
.tile { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 22px; padding: 28px; position: relative; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tile:hover { border-color: var(--ember-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.tile .ic { width: 46px; height: 46px; border-radius: 13px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; margin-bottom: 16px; box-shadow: var(--shadow-sm); font-size: 21px; }
.tile .ic .icon { width: 22px; height: 22px; color: var(--ember-deep); }
.tile h4 { font-family: var(--font-display); font-size: 19px; text-transform: uppercase; letter-spacing: -.01em; }
.tile p { color: var(--text-2); font-size: 14.5px; font-weight: 400; margin-top: 8px; }
.tile.col-3 { grid-column: span 3; }
.tile.col-2 { grid-column: span 2; }
.tile--brand { background: var(--ink); border: none; color: #fff; }
.tile--brand::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 100% 0%, rgba(22,163,74,.5), transparent 55%); }
.tile--brand > * { position: relative; z-index: 1; }
.tile--brand h4, .tile--brand p { color: #fff; }
.tile--brand p { opacity: .82; }
.tile--brand .ic { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.22); }
.tile--brand .ic .icon { color: #fff; }
.lvlbar { margin-top: 20px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.lvlbar > span { display: block; height: 100%; width: 62%; background: var(--forge); border-radius: 999px; }
.lvlrow { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-family: var(--font-display); font-weight: 700; font-size: 13px; }

/* ---------------- Pricing ---------------- */
.toggle { display: inline-flex; flex-wrap: wrap; justify-content: center; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 5px; margin: 28px auto 0; gap: 4px; }
.toggle button { border: none; background: transparent; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--text-2); padding: 9px 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: .2s; }
.toggle button.on { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.toggle .save { font-size: 11px; font-weight: 800; color: var(--ember-deep); background: var(--ember-50); padding: 2px 8px; border-radius: 999px; }
.toggle button.on .save { color: #fff; background: rgba(255,255,255,.18); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 880px; margin: 50px auto 0; }
.plan { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 34px; position: relative; }
.plan--pro { border-color: transparent; box-shadow: var(--shadow-ember); outline: 2px solid var(--ember); outline-offset: -2px; }
.plan__tag { position: absolute; top: 20px; right: 20px; font-family: var(--font-display); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--forge); padding: 5px 12px; border-radius: 999px; }
.plan__name { font-family: var(--font-display); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.plan--pro .plan__name { color: var(--ember-deep); }
.plan__desc { color: var(--text-2); font-size: 14.5px; font-weight: 400; margin-top: 8px; min-height: 42px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 12px; }
.price .amt { font-family: var(--font-display); font-size: 50px; font-weight: 900; letter-spacing: -.03em; }
.price .per { color: var(--muted); font-weight: 500; font-size: 15px; }
.price__sub { color: var(--text-2); font-size: 13px; font-weight: 400; margin-top: 2px; min-height: 18px; }
.plan ul { margin-top: 24px; display: grid; gap: 13px; }
.plan li { display: flex; gap: 11px; align-items: flex-start; font-weight: 500; font-size: 14.5px; }
.plan li.off { color: var(--muted); }
.tick.n { background: #f3f4f6; color: var(--muted); border-color: var(--border); }
.pay-note { text-align: center; color: var(--muted); font-size: 13px; font-weight: 400; margin: 28px auto 0; max-width: 560px; }

/* ---------------- Feature comparison (Free vs Pro) ---------------- */
.cmp-sec { --cmp-col: 118px; --cmp-nav-h: 50px; --cmp-head-h: 52px; }

/* sticky category quick-nav */
.cmp-nav {
  position: sticky; top: var(--nav-h); z-index: 50;
  display: flex; align-items: center; gap: 6px;
  height: var(--cmp-nav-h); margin: 46px 0 0; padding: 0 4px;
  overflow-x: auto; scrollbar-width: none;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.cmp-nav::-webkit-scrollbar { display: none; }
.cmp-nav a {
  flex: none; font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--text-2); padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  transition: color .2s, background .2s;
}
.cmp-nav a:hover { color: var(--text); background: var(--bg-soft); }
.cmp-nav a.active { color: #fff; background: var(--ink); }

/* comparison matrix */
.cmp { margin-top: 4px; }
.cmp-head, .cmp-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--cmp-col) var(--cmp-col);
}
.cmp-head {
  position: sticky; top: calc(var(--nav-h) + var(--cmp-nav-h)); z-index: 40;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-2);
}
.cmp-head__feat {
  display: flex; align-items: center; padding: 14px 14px 14px 6px;
  font-family: var(--font-display); font-weight: 800; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.cmp-head__plan {
  display: grid; place-items: center; padding: 14px 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 14.5px;
  text-transform: uppercase; letter-spacing: .03em; color: var(--text);
}
.cmp-head__plan--pro { color: var(--ember-deep); background: rgba(22,163,74,.08); border-radius: 12px 12px 0 0; }

.cmp-cat {
  font-family: var(--font-display); font-weight: 800; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .09em; color: var(--ember-deep);
  background: var(--bg-soft); border-radius: 10px; padding: 11px 14px; margin: 16px 0 0;
  scroll-margin-top: calc(var(--nav-h) + var(--cmp-nav-h) + var(--cmp-head-h) + 14px);
}
.cmp-row { border-top: 1px solid var(--border); transition: background .15s; }
.cmp-row:hover { background: var(--bg-soft); }
.cmp-feat {
  display: flex; align-items: center; padding: 13px 14px 13px 6px;
  font-size: 14.5px; font-weight: 500; line-height: 1.4; color: var(--text);
}
.cmp-cell { display: grid; place-items: center; padding: 12px 8px; }
.cmp-row > .cmp-cell:last-child { background: rgba(22,163,74,.045); }
.cmp-row:last-child > .cmp-cell:last-child { border-radius: 0 0 12px 12px; }
.cmp-val { font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--text-2); text-align: center; }
.cmp-val.em { color: var(--ember-deep); }
.cmp-dash { color: var(--muted); font-weight: 700; }

.cmp-foot { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

@media (max-width: 760px) {
  .cmp-sec { --cmp-col: 76px; }
  .cmp-nav { margin-top: 34px; }
  .cmp-feat { font-size: 13px; padding-left: 4px; }
  .cmp-head__feat { font-size: 11px; }
  .cmp-head__plan { font-size: 12.5px; }
  .cmp-val { font-size: 12px; }
}
@media (max-width: 460px) {
  .cmp-sec { --cmp-col: 62px; }
  .cmp-feat { font-size: 12.5px; }
}

/* ---------------- Real app walkthrough demo ---------------- */
.live { position: relative; padding: clamp(28px, 5vw, 68px) 0 clamp(56px, 9vw, 120px); overflow: clip; }
.live__aura { position: absolute; top: 6%; left: 50%; transform: translateX(-50%); width: min(880px, 92%); height: 520px; background: radial-gradient(58% 58% at 50% 40%, rgba(34,197,94,.13), transparent 70%); pointer-events: none; z-index: 0; }
.live__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(272px, 344px) 1fr; gap: clamp(28px, 6vw, 88px); align-items: start; }

.live__viz { position: sticky; top: calc(var(--nav-h) + 26px); }
.live__phone { position: relative; width: min(288px, 80%); margin: 0 auto; }
.live__glow { position: absolute; inset: -12% -10%; background: radial-gradient(circle at 50% 42%, rgba(34,197,94,.30), transparent 62%); filter: blur(22px); z-index: -1; }
.live .device { width: 100%; }
.live .device__screen { aspect-ratio: 1260 / 2736; background: #f6f7f4; }
.live__screens { position: absolute; inset: 0; background: #f6f7f4; }
.live .device__screen .live__screen {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; transform: scale(1.012);
  transition: opacity .45s ease, transform .75s cubic-bezier(.2,.7,.2,1);
}
.live__phone[data-step="1"] .live__screen--1,
.live__phone[data-step="2"] .live__screen--2,
.live__phone[data-step="3"] .live__screen--3,
.live__phone[data-step="4"] .live__screen--4 {
  opacity: 1; transform: none;
}
.live__dots { display: flex; justify-content: center; gap: 8px; margin-top: 15px; }
.live__dots span {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--border-2);
  transition: width .25s ease, background .25s ease;
}
.live__phone[data-step="1"] .live__dots [data-dot="1"],
.live__phone[data-step="2"] .live__dots [data-dot="2"],
.live__phone[data-step="3"] .live__dots [data-dot="3"],
.live__phone[data-step="4"] .live__dots [data-dot="4"] {
  width: 22px; background: var(--ember);
}
@media (prefers-reduced-motion: reduce) {
  .live__screen,
  .live__dots span { transition: none; }
}

.live__rail { display: grid; }
.live__intro { min-height: 36vh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 6px; }
.live__intro h2 { font-size: clamp(30px, 4.4vw, 52px); text-transform: uppercase; letter-spacing: -.025em; margin-top: 14px; }
.live__intro .lead { margin-top: 16px; max-width: 440px; }
.live__step { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; }
.live__num { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .14em; color: var(--ember-deep); }
.live__step h3 { font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; letter-spacing: -.02em; margin-top: 12px; max-width: 15ch; }
.live__step p { margin-top: 14px; color: var(--text-2); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.65; max-width: 42ch; }

/* ---------------- Finale: price rail ---------------- */
.pricerail { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: clamp(12px, 2.4vw, 26px); max-width: 720px; margin: 46px auto 0; }
.pricelane { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 22px; padding: 32px 26px 28px; text-align: center; position: relative; display: flex; flex-direction: column; }
.pricelane--pro { background: #fff; border-color: transparent; outline: 2px solid var(--ember); outline-offset: -2px; box-shadow: var(--shadow-ember); }
.pricelane__tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--forge); padding: 5px 13px; border-radius: 999px; }
.pricelane__name { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.pricelane--pro .pricelane__name { color: var(--ember-deep); }
.pricelane__amt { font-family: var(--font-display); font-weight: 900; font-size: clamp(36px, 6vw, 52px); letter-spacing: -.03em; margin-top: 8px; line-height: 1; }
.pricelane__u { font-family: var(--font); font-weight: 500; font-size: 15px; color: var(--muted); margin-left: 4px; }
.pricelane__per { color: var(--text-2); font-size: 13px; margin: 9px 0 20px; min-height: 18px; }
.pricelane .btn { margin-top: auto; }
.pricerail__vs { align-self: center; font-family: var(--font-display); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

@media (max-width: 900px) {
  .live__grid { grid-template-columns: 1fr; gap: 4px; }
  .live__viz { position: sticky; top: calc(var(--nav-h) + 8px); z-index: 3; display: flex; justify-content: center; padding: 6px 0 4px; }
  .live__phone { width: min(172px, 46vw); margin: 0; }
  .live__intro { min-height: auto; text-align: center; padding: 12px 0 2px; }
  .live__intro .lead { margin-inline: auto; }
  .live__step { min-height: 62vh; text-align: center; }
  .live__step h3 { max-width: none; margin-inline: auto; }
  .live__step p { margin-inline: auto; max-width: 46ch; }
}
@media (max-width: 760px) {
  .pricerail { grid-template-columns: 1fr; max-width: 340px; }
  .pricerail__vs { padding: 2px 0; }
}

/* ---------------- CTA (forged) ---------------- */
.cta { position: relative; overflow: hidden; text-align: center; background: var(--ink); color: #fff; border-radius: 30px; padding: clamp(54px, 7vw, 92px) 28px; box-shadow: var(--shadow-lg); }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 120% at 50% -10%, rgba(22,163,74,.52), transparent 58%); }
.cta .grid-fx::before {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.08) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(100% 100% at 50% 0%, #000, transparent 68%);
          mask-image: radial-gradient(100% 100% at 50% 0%, #000, transparent 68%);
}
.cta__in { position: relative; z-index: 2; max-width: 660px; margin: 0 auto; }
.cta .app-icon {
  width: 76px; height: 76px; border-radius: 22px; overflow: hidden;
  display: grid; place-items: center; margin: 0 auto 24px;
  box-shadow: 0 26px 64px -20px rgba(22,163,74,.72);
}
.cta .app-icon img { width: 100%; height: 100%; object-fit: cover; }
.cta h2 { font-size: clamp(34px, 5vw, 56px); text-transform: uppercase; letter-spacing: -.03em; }
.cta p { margin: 18px auto 32px; color: rgba(255,255,255,.74); font-size: 18px; font-weight: 400; max-width: 480px; }
.cta .stores { justify-content: center; }
.cta .store { background: #fff; color: var(--ink); border-color: transparent; }
.cta .store__txt small { opacity: .6; }

/* ---------------- Footer ---------------- */
footer { border-top: 1px solid var(--border); padding: 72px 0 40px; background: var(--bg-soft); }
.foot { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.15fr 1fr 1fr; gap: 28px; }
.foot__brand p { color: var(--text-2); font-size: 14.5px; font-weight: 400; margin-top: 16px; max-width: 300px; }
.foot h5 { font-family: var(--font-display); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 15px; font-weight: 700; }
.foot ul { display: grid; gap: 10px; }
.foot a { color: var(--text-2); font-weight: 500; font-size: 14.5px; }
.foot a:hover { color: var(--ember-deep); }
.foot__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; font-weight: 400; }

/* Breadcrumb line above tool/reference page headings (same look as the
   edge-rendered exercise pages, which carry their own copy of this rule). */
.crumbs { font-family: var(--mono, monospace); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; opacity: .75; margin-bottom: 18px; }
.crumbs a { text-decoration: none; }

/* ---------------- Reveal ---------------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .08s; }
[data-delay="2"] { transition-delay: .16s; }
[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1 !important; transform: none !important; } html { scroll-behavior: auto; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .hero h1, .hero .lead { margin-inline: auto; }
  .hero__actions { align-items: center; }
  .hero__media { width: min(100%, 560px); margin: 52px auto 0; }
  .floaty--pr { left: 0; } .floaty--vol { right: 0; }
  .feat { grid-template-columns: 1fr; gap: 44px; }
  .feat.rev .feat__media { order: 0; }
  .feat__copy { text-align: center; }
  .feat__copy .lead { margin-inline: auto; }
  .flist { max-width: 420px; margin-inline: auto; text-align: left; }
  .forge__grid { grid-template-columns: 1fr; text-align: center; gap: 44px; }
  .forge .lead { margin-inline: auto; }
  .forge__stats { justify-content: center; }
  .gallery { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; gap: 22px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile.col-3, .tile.col-2 { grid-column: span 2; }
  .callout { display: none; }
  /* The inline link row is gone from here down, so the hamburger must appear
     at the same width (it used to wait until 760px, leaving a dead zone). */
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 2px;
    background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border); padding: 12px 16px 18px;
  }
  .nav__links.open { display: flex; }
  .nav__links a { width: 100%; padding: 12px 14px; }
  /* Resources sub-links sit inline in the drawer, indented under the parent. */
  .nav__dd { width: 100%; flex-direction: column; align-items: stretch; }
  .nav__dd-btn { display: none; }
  .nav__dd-menu {
    position: static; display: flex; min-width: 0; padding: 0 0 2px 14px;
    background: none; border: 0; border-radius: 0; box-shadow: none;
  }
  .nav__dd-menu a { font-size: 14px; padding: 10px 14px; }
  .foot { grid-template-columns: repeat(3, 1fr); }
  .foot__brand { grid-column: 1 / -1; }
  /* Signed-in: the dropdown becomes the single full-width drawer and the
     marketing links merge into it. */
  .nav__menuwrap { position: static; }
  .nav__menu {
    top: var(--nav-h); left: 0; right: 0;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    border-left: 0; border-right: 0; border-radius: 0 0 16px 16px;
    padding: 12px 16px 18px;
  }
  .nav__menu a.nav__menu-mobile { display: flex; }
  .nav__menu-sep.nav__menu-mobile { display: block; }
}
@media (max-width: 760px) {
  .sec { padding: 76px 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
  .forge__stats { grid-template-columns: repeat(3, auto); gap: 20px; }
  .plans { grid-template-columns: 1fr; max-width: 440px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: span 2; }
  .nav__cta .btn--ghost { display: none; }
}
@media (max-width: 460px) {
  .bento { grid-template-columns: 1fr; }
  .tile.col-3, .tile.col-2 { grid-column: span 1; }
  .stores { width: 100%; justify-content: center; }
  .store { width: min(100%, 230px); justify-content: center; }
  .floaty { display: none; }
  .forge__stats { grid-template-columns: 1fr; gap: 16px; }
  .toggle { gap: 6px; }
  .toggle button { padding: 8px 14px; font-size: 13px; }
}

/* ---------------- Legal pages ---------------- */
.legal { max-width: 840px; margin: 0 auto; padding: 56px 24px 88px; }
.legal__head { margin-bottom: 8px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.legal__head .eyebrow { margin-bottom: 16px; }
.legal h1 { font-size: clamp(32px, 4.6vw, 48px); text-transform: uppercase; letter-spacing: -.025em; }
.legal__meta { color: var(--muted); font-weight: 500; font-size: 14px; margin-top: 14px; }
.legal__body h2 { font-size: 22px; margin: 44px 0 6px; scroll-margin-top: 90px; text-transform: none; letter-spacing: -.015em; }
.legal__body h3 { font-family: var(--font-display); font-size: 17px; margin: 26px 0 4px; color: var(--text); }
.legal__body p, .legal__body li { color: var(--text-2); font-size: 15.5px; font-weight: 400; line-height: 1.75; }
.legal__body p { margin: 12px 0; }
.legal__body ul { margin: 12px 0; padding-left: 24px; list-style: disc; display: grid; gap: 9px; }
.legal__body a { color: var(--ember-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal__body strong { color: var(--text); font-weight: 700; }
.legal__note { background: var(--ember-50); border: 1px solid var(--ember-100); border-radius: 14px; padding: 16px 18px; margin: 22px 0; font-size: 14.5px; color: var(--text-2); font-weight: 400; }
.legal__note strong { color: var(--ember-deep); }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 11px 13px; border: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
.legal th { background: var(--bg-soft); font-weight: 700; color: var(--text); white-space: nowrap; }
.legal__back { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font-family: var(--font-display); font-weight: 700; color: var(--ember-deep); font-size: 14px; }
.legal__back:hover { color: var(--ember); }

/* ============================================================
   Interior pages (features / challenges / leagues / resources / support)
   ============================================================ */

/* ---------- Interior hero (light, left-aligned) ---------- */

/* ---------- Dark search / topic hero (support, resources, leagues) ---------- */
.help-hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: clamp(56px,8vw,96px) 0 clamp(40px,5vw,60px); text-align: center; }
.help-hero .grid-fx::before {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(100% 100% at 50% 0%, #000, transparent 70%);
          mask-image: radial-gradient(100% 100% at 50% 0%, #000, transparent 70%);
}
.help-hero__in { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.help-hero .eyebrow { color: var(--ember-bright); }
.help-hero h1 { font-size: clamp(34px,5vw,54px); text-transform: uppercase; letter-spacing: -.03em; margin-top: 12px; }
.help-hero__lead { color: rgba(255,255,255,.66); font-size: clamp(15px,1.6vw,18px); margin: 16px auto 0; max-width: 560px; }

.help-search { position: relative; max-width: 560px; margin: 28px auto 0; }
.help-search__ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: rgba(255,255,255,.55); }
.help-search input { width: 100%; height: 56px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; padding: 0 18px 0 48px; font-size: 16px; font-family: var(--font); }
.help-search input::placeholder { color: rgba(255,255,255,.5); }
.help-search input:focus { outline: none; border-color: var(--ember-bright); background: rgba(255,255,255,.1); }

.help-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; cursor: pointer; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: rgba(255,255,255,.82); transition: .15s; }
.chip .icon { width: 15px; height: 15px; }
.chip:hover { background: rgba(255,255,255,.12); color: #fff; }
.chip.on { background: var(--forge); border-color: transparent; color: #fff; }

/* ---------- FAQ (support) ---------- */
.faq-cat { margin-bottom: 40px; scroll-margin-top: 90px; }
.faq-cat__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 14px; }
.faq-cat__ic { display: inline-flex; color: var(--ember-deep); }
.faq-cat__ic .icon { width: 23px; height: 23px; }
.faq-cat__items { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); overflow: hidden; transition: border-color .2s, background .2s; }
.faq-item.open { border-color: var(--ember-100); background: #fff; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; background: none; border: none; cursor: pointer; padding: 17px 20px; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--text); }
.faq-caret { width: 20px; height: 20px; flex: none; color: var(--muted); transition: transform .2s, color .2s; }
.faq-item.open .faq-caret { transform: rotate(180deg); color: var(--ember-deep); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a__in { overflow: hidden; padding: 0 20px; }
.faq-item.open .faq-a__in { padding-bottom: 18px; }
.faq-a__in { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.faq-a__in a { color: var(--ember-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.faq-empty { text-align: center; padding: 30px 20px 10px; }
.faq-empty__ic { display: block; width: 42px; height: 42px; margin: 0 auto; color: var(--muted); }
.faq-empty h3 { font-family: var(--font-display); text-transform: uppercase; margin-top: 8px; }
.faq-empty p { color: var(--text-2); margin-top: 6px; }
.help-contact { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding: 28px 30px; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--border); }
.help-contact h3 { font-family: var(--font-display); font-size: 20px; text-transform: uppercase; letter-spacing: -.01em; }
.help-contact p { color: var(--text-2); margin-top: 6px; font-size: 15px; }
.help-contact__email { color: var(--ember-deep); font-weight: 700; }
.help-contact__email:hover { text-decoration: underline; }

/* ---------- Exercise library (resources) ---------- */
.ex-controls { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ex-search { position: relative; flex: 1 1 280px; }
.ex-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.ex-search input { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--border-2); background: #fff; padding: 0 16px 0 44px; font-size: 15px; font-family: var(--font); color: var(--text); }
.ex-select { height: 48px; border-radius: 12px; border: 1px solid var(--border-2); background: #fff; padding: 0 14px; font-size: 14.5px; font-family: var(--font); color: var(--text); cursor: pointer; }
.ex-search input:focus, .ex-select:focus { outline: none; border-color: var(--ember); }
.ex-count { color: var(--text-2); font-size: 14px; margin-bottom: 16px; min-height: 20px; }
.ex-status { color: var(--text-2); padding: 30px 0; text-align: center; }
.ex-status[hidden] { display: none; }
.ex-status--error { color: #b42318; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.ex-card { display: flex; flex-direction: column; gap: 10px; text-align: left; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px; padding: 12px; cursor: pointer; font-family: var(--font); transition: border-color .2s, box-shadow .2s, transform .2s; }
.ex-card:hover { border-color: var(--ember-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.ex-card__media { position: relative; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; }
.ex-card__media img { width: 100%; height: 100%; object-fit: contain; }
.ex-card__media.is-empty::after { content: attr(data-letter); font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--border-2); text-transform: uppercase; }
.ex-card__name { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--text); line-height: 1.25; }
.ex-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.ex-tag { font-size: 11px; font-weight: 600; color: var(--text-2); background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 3px 9px; }
.ex-tag--muscle { color: var(--ember-deep); background: var(--ember-50); border-color: var(--ember-100); }
.ex-more { text-align: center; margin-top: 26px; }

/* ---------- Routine templates & guides (resources) ---------- */
.rz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.rz-card { position: relative; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 20px; padding: 26px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.rz-card:hover { border-color: var(--ember-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.rz-tag { display: inline-block; font-family: var(--font-display); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ember-deep); background: var(--ember-50); border: 1px solid var(--ember-100); padding: 4px 11px; border-radius: 999px; margin-bottom: 14px; }
.rz-card h3 { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: -.01em; }
.rz-card > p { color: var(--text-2); font-size: 14.5px; margin-top: 8px; }
.rz-list { margin: 16px 0 18px; display: grid; gap: 8px; }
.rz-list li { position: relative; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.rz-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }
.rz-list b { color: var(--text); }
.rz-link { font-family: var(--font-display); font-weight: 700; color: var(--ember-deep); font-size: 14px; }
.rz-link:hover { color: var(--ember); }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.guide-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 20px; padding: 26px; }
.guide-card .ic { width: 46px; height: 46px; border-radius: 13px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; margin-bottom: 14px; box-shadow: var(--shadow-sm); font-size: 21px; }
.guide-card .ic .icon { width: 22px; height: 22px; color: var(--ember-deep); }
.guide-card h4 { font-family: var(--font-display); font-size: 18px; text-transform: uppercase; letter-spacing: -.01em; }
.guide-card p { color: var(--text-2); font-size: 14.5px; margin-top: 8px; line-height: 1.65; }
.guide-note { color: var(--muted); font-size: 13px; margin-top: 20px; font-style: italic; }

/* ---------- Coming soon (challenges) ---------- */
.cta.soon { padding: clamp(60px,9vw,110px) 28px; }
.soon__badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ember-bright); background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.3); padding: 7px 16px; border-radius: 999px; margin-bottom: 22px; }
.soon__badge .icon { width: 16px; height: 16px; }
.cta.soon h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(40px,6vw,72px); text-transform: uppercase; letter-spacing: -.03em; color: #fff; }
.soon__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.soon__ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.2); box-shadow: none; }
.soon__ghost:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.32); }

/* ---------- Modals (exercise detail, league forms) ---------- */
.ex-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ex-modal[hidden] { display: none; }
.ex-modal__backdrop { position: absolute; inset: 0; background: rgba(14,17,22,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ex-modal__card { position: relative; z-index: 1; width: 100%; max-width: 460px; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg); }
.ex-modal__close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font-size: 22px; line-height: 1; color: var(--text-2); cursor: pointer; }
.ex-modal__close:hover { background: var(--bg-soft); }
body.modal-open { overflow: hidden; }
.ex-detail__media { aspect-ratio: 16/12; border-radius: 14px; overflow: hidden; background: var(--bg-soft); border: 1px solid var(--border); display: grid; place-items: center; margin-bottom: 18px; }
.ex-detail__media img { width: 100%; height: 100%; object-fit: contain; }
.ex-detail__media.is-empty::after { content: attr(data-letter); font-family: var(--font-display); font-weight: 800; font-size: 60px; color: var(--border-2); text-transform: uppercase; }
.ex-detail__head h3 { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; letter-spacing: -.01em; }
.ex-detail__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ex-detail__also { color: var(--text-2); font-size: 13.5px; margin-top: 10px; }
.ex-detail__body { margin: 18px 0 22px; }
.ex-detail__body h4 { font-family: var(--font-display); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin-bottom: 8px; }
.ex-detail__text { color: var(--text-2); font-size: 15px; line-height: 1.7; margin: 0 0 8px; }
.ex-detail__loading { color: var(--muted); }

/* ---------- Login (auth) ---------- */
.auth-wrap { max-width: 420px; margin: 0 auto; }
.auth-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 22px; padding: 32px; }
.auth-card h2 { font-family: var(--font-display); font-size: 24px; text-transform: uppercase; letter-spacing: -.01em; text-align: center; }
.auth-sub { color: var(--text-2); font-size: 14.5px; text-align: center; margin-top: 6px; }
.auth-providers { display: grid; gap: 10px; margin-top: 24px; }
.auth-provider { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--border-2); background: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--text); cursor: pointer; transition: .15s; }
.auth-provider:hover { border-color: var(--ember-200); box-shadow: var(--shadow-sm); }
.auth-provider svg { width: 20px; height: 20px; flex: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.auth-form { display: grid; gap: 14px; }
.fld { display: grid; gap: 6px; }
.fld > span { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--text-2); }
.fld input { width: 100%; height: 46px; border-radius: 11px; border: 1px solid var(--border-2); background: #fff; padding: 0 14px; font-size: 15px; font-family: var(--font); color: var(--text); }
.fld input:focus { outline: none; border-color: var(--ember); }
.auth-msg { font-size: 13.5px; color: #b42318; }
.auth-msg:empty { display: none; }
.auth-msg--ok { color: var(--ember-deep); }
.auth-toggle { text-align: center; color: var(--text-2); font-size: 14px; margin-top: 18px; }
.auth-toggle button { background: none; border: none; color: var(--ember-deep); font-weight: 700; font-family: var(--font-display); cursor: pointer; font-size: 14px; }
.auth-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.auth-note a { color: var(--ember-deep); font-weight: 600; }


@media (max-width: 760px) {
  .rz-grid, .guide-grid { grid-template-columns: 1fr; }
  .help-contact { flex-direction: column; align-items: flex-start; }
}

