/* =========================================================================
   MAA product page. Loaded by maa/index.html only.
   Colours come from ~/maa_flutter/lib/core/theme/app_theme.dart and
   belt_colors.dart; every phone shows a golden render of the real widgets.
   ========================================================================= */
body[data-product="maa"] {
  --app-bg: #F5F0E6;        /* AppColors.bg */
  --app-surface: #F2EDE4;   /* AppColors.surface */
  --app-s2: #E8E2D6;        /* AppColors.surface2 */
  --app-s3: #DDD6C8;        /* AppColors.surface3 */
  --app-border: rgba(90, 70, 40, 0.12);  /* AppColors.border */
  --app-border2: rgba(90, 70, 40, 0.22); /* AppColors.border2 */
  --app-text: #1A1408;
  --app-muted: #7A6A52;
  --app-dim: #B0A090;
  --role-admin: #C45A1A;
  --role-prof: #6B4FA8;
  --role-student: #1A7A5A;
  --role-auth: #1A5A9A;
  --app-gold: #B8860B;
  --app-danger: #CC2222;
}

/* ---------- Phone frame ----------
   The frame is device chrome. The screen inside is always a render. */
.m-phone {
  --w: 280px;
  position: relative; margin: 0; flex: none;
  width: var(--w);
  padding: calc(var(--w) * 0.032);
  border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(145deg, #3A3226 0%, #15100A 38%, #2A2219 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.10),
    inset 0 0 0 calc(var(--w) * 0.01) #0E0A05,
    0 2px 2px rgba(26, 20, 8, 0.10),
    0 30px 60px -28px rgba(26, 20, 8, 0.55),
    0 60px 90px -60px rgba(26, 20, 8, 0.45);
}
.m-screen {
  position: relative; overflow: hidden; container-type: inline-size;
  border-radius: calc(var(--w) * 0.135);
  background: var(--app-surface);
  aspect-ratio: 390 / 844;
  isolation: isolate;
}
.m-screen img { width: 100%; height: auto; display: block; }
.m-screen img[hidden] { display: none; }
.m-status {
  height: 12.05cqw; display: flex; align-items: center; justify-content: space-between;
  padding: 1.6cqw 7.5cqw 0 8.5cqw; color: #1A1408;
  font: 600 4.1cqw/1 -apple-system, "SF Pro Text", "DM Sans", system-ui, sans-serif; letter-spacing: 0.01em;
}
.m-status::after {
  content: ""; width: 17cqw; height: 3.4cqw;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 13'%3E%3Cg fill='%231A1408'%3E%3Crect x='0' y='8' width='3' height='4' rx='.8'/%3E%3Crect x='5' y='6' width='3' height='6' rx='.8'/%3E%3Crect x='10' y='3.5' width='3' height='8.5' rx='.8'/%3E%3Crect x='15' y='1' width='3' height='11' rx='.8'/%3E%3Cpath d='M30 3.2a10 10 0 0 1 13 0l-1.6 1.7a7.6 7.6 0 0 0-9.8 0zM32.6 6a6.2 6.2 0 0 1 7.8 0l-1.6 1.7a3.8 3.8 0 0 0-4.6 0zM36.5 11.5l-2-2.1a2.6 2.6 0 0 1 4 0z'/%3E%3Crect x='49' y='1' width='16' height='10' rx='3' fill='none' stroke='%231A1408' stroke-opacity='.45'/%3E%3Crect x='50.8' y='2.8' width='12.4' height='6.4' rx='1.6'/%3E%3Crect x='66' y='4.3' width='1.6' height='3.4' rx='.8' fill-opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
}
.m-island {
  position: absolute; top: 2.9cqw; left: 50%; transform: translateX(-50%);
  width: 31cqw; height: 9cqw; border-radius: 99px; background: #050403; z-index: 2;
}
.m-screen::after {
  content: ""; position: absolute; left: 50%; bottom: 2.1cqw; transform: translateX(-50%);
  width: 35cqw; height: 1.3cqw; border-radius: 99px; background: rgba(26, 20, 8, 0.82); z-index: 2;
}

/* ---------- Hero ---------- */
.m-hero {
  background:
    radial-gradient(46rem 32rem at 82% 30%, rgba(184, 134, 11, 0.16), transparent 62%),
    radial-gradient(30rem 22rem at 10% 100%, rgba(26, 122, 90, 0.06), transparent 60%),
    var(--paper);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.m-hero .p-hero-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.m-hero-facts { display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-6); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.m-hero-facts li { display: grid; gap: 0.15rem; max-width: 12rem; }
.m-hero-facts strong { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--accent); }
.m-hero-facts span { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.m-hero-stage { position: relative; height: clamp(560px, 50vw, 660px); display: grid; place-items: center; }
.m-hero-ring {
  position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%; left: 6%; top: 50%; transform: translateY(-50%);
  border: 1px solid rgba(184, 134, 11, 0.28);
  background: radial-gradient(circle, rgba(184, 134, 11, 0.10), transparent 64%);
}
.m-hero-ring::after { content: ""; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(122, 106, 82, 0.22); }
.m-hero-stage .m-phone { position: absolute; }
.m-phone--hero { --w: clamp(250px, 23vw, 300px); z-index: 3; }
.m-phone--side { --w: clamp(205px, 18.5vw, 245px); z-index: 1; filter: saturate(0.95); }
.m-phone--left { transform: translateX(-62%) rotate(-7deg) translateY(4%); }
.m-phone--right { transform: translateX(62%) rotate(7deg) translateY(4%); }
@media (prefers-reduced-motion: no-preference) {
  .m-phone--hero { animation: m-float 7s ease-in-out infinite; }
  .m-hero-stage .m-phone { transition: transform 0.6s var(--ease); }
  .m-hero-stage:hover .m-phone--left { transform: translateX(-70%) rotate(-9deg) translateY(4%); }
  .m-hero-stage:hover .m-phone--right { transform: translateX(70%) rotate(9deg) translateY(4%); }
}
@keyframes m-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.m-truth {
  display: flex; gap: 0.6rem; align-items: baseline; margin-top: var(--space-6);
  font-size: 0.82rem; color: var(--muted); max-width: 46rem;
}
.m-truth::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--role-student); transform: translateY(-1px); }

/* ---------- Demos ---------- */
.m-demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.m-demo + .m-demo { margin-top: clamp(4rem, 8vw, 6.5rem); }
.m-demo--flip .m-demo-copy { order: 2; }
.m-demo-copy { display: grid; gap: var(--space-4); max-width: 30rem; }
.m-demo-copy h3 { font-family: var(--font-serif); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; }
.m-demo-copy p { color: var(--muted); }
.m-demo-copy .lead { margin-top: 0; }
.m-demo--arts .m-demo-copy h2 { font-size: var(--fs-h2); }
.m-step-k { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; color: var(--accent); }
.m-muted-p { font-size: 0.95rem; }

.m-app {
  position: relative; justify-self: center; width: min(100%, 384px);
  background: var(--app-surface); color: var(--app-text);
  border: 1px solid var(--app-border2); border-radius: 34px;
  padding: 30px 18px 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 40px 70px -40px rgba(26, 20, 8, 0.45), 0 10px 24px -18px rgba(26, 20, 8, 0.3);
  font-family: "DM Sans", system-ui, sans-serif;
}
.m-app--wide { width: min(100%, 520px); }
.m-sample-tag {
  position: absolute; top: -13px; left: 22px; margin: 0;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--app-text); color: var(--app-bg); padding: 0.38rem 0.75rem; border-radius: 999px;
}
.m-sample-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--app-gold); }
[dir="rtl"] .m-sample-tag { left: auto; right: 22px; }
.m-app-body { display: grid; gap: 12px; }
.m-app-title { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 30px; line-height: 1.05; letter-spacing: -0.005em; }
.m-app-title--q { font-size: 27px; margin-top: 4px; }
.m-muted { color: var(--app-muted); font-size: 14px; margin-top: -6px; }
.m-label { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--app-muted); }
.m-label--out { margin: 4px 0 -4px; }
.m-card { background: var(--app-bg); border: 1px solid var(--app-border2); border-radius: 14px; padding: 14px 16px; }

/* chips, as in the app: stadium, ink when chosen */
.m-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.m-chips button, .m-chips span {
  border: 1px solid var(--app-border2); background: transparent; color: var(--app-text);
  border-radius: 999px; padding: 7px 14px; font: 500 14px/1.2 "DM Sans", system-ui, sans-serif; cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
  min-height: 36px;
}
.m-chips button:hover { border-color: var(--app-text); }
.m-chips button:active { transform: scale(0.97); }
.m-chips [aria-checked="true"], .m-chips [aria-pressed="true"] { background: var(--app-text); border-color: var(--app-text); color: #fff; font-weight: 600; }
.m-chips--sq { gap: 6px; }
.m-chips--sq button { border-radius: 9px; padding: 6px 0; min-width: 36px; font-family: "DM Mono", ui-monospace, monospace; font-size: 13.5px; }
.m-chips--static span { cursor: default; font-family: "DM Mono", ui-monospace, monospace; font-size: 12.5px; letter-spacing: 0.04em; }
.m-rounds { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.m-x { color: var(--app-muted); font-size: 14px; }

.m-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.m-btn {
  border: 0; border-radius: 999px; padding: 12px 20px; min-height: 46px;
  font: 600 15px/1.2 "DM Sans", system-ui, sans-serif; color: #fff; cursor: pointer;
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease), opacity 0.2s;
}
.m-btn:hover { filter: brightness(1.08); }
.m-btn:active { transform: scale(0.98); }
.m-btn:disabled { opacity: 0.45; cursor: default; filter: none; transform: none; }
.m-btn--student { background: var(--role-student); }
.m-btn--prof { background: var(--role-prof); }
.m-btn--wide { width: 100%; padding-block: 15px; font-size: 16px; }
.m-btn[hidden] { display: none; }

/* belt bar, as drawn by the app: the belt colour, a black rank tab, white stripes */
.m-beltbar {
  --belt: #E8E4DC; --tab: #1A1408; --stripe: #fff;
  position: relative; height: 30px; border-radius: 6px; background: var(--belt);
  box-shadow: inset 0 0 0 1px rgba(26, 20, 8, 0.10); overflow: hidden;
  transition: background-color 0.45s var(--ease);
}
.m-beltbar .tab { position: absolute; left: 0; top: 0; bottom: 0; width: 24%; background: var(--tab); transition: background-color 0.45s var(--ease); }
.m-beltbar .stripes { position: absolute; left: 7%; top: 22%; bottom: 22%; display: flex; gap: 5px; }
.m-beltbar .stripes b { width: 5px; background: #fff; border-radius: 1px; animation: m-pop 0.35s var(--ease) both; }
.m-beltbar .stripes b.pending { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85); }
@keyframes m-pop { from { transform: scaleY(0.2); opacity: 0; } to { transform: none; opacity: 1; } }
.m-belt-card { text-align: center; display: grid; gap: 8px; padding: 18px 18px 16px; }
.m-belt-name { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 26px; line-height: 1.1; margin-top: 6px; }
.m-belt-sub { color: var(--app-muted); font-size: 13.5px; }
.m-meter { height: 6px; border-radius: 3px; background: var(--app-s2); overflow: hidden; margin: 2px 8px 0; }
.m-meter i { display: block; height: 100%; width: 0; background: var(--role-student); border-radius: 3px; transition: width 0.45s var(--ease), background-color 0.3s; }
.m-belt-state { padding: 14px 16px 16px; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
.m-belt-state[data-state="ready"] { border-color: rgba(107, 79, 168, 0.55); background: #F3EEF6; }
.m-belt-state[data-state="done"] { border-color: rgba(26, 122, 90, 0.45); }
.m-state-text { font-size: 14.5px; line-height: 1.45; margin-top: 6px; }
.m-history { padding: 0; overflow: hidden; }
.m-history li { padding: 11px 16px; border-top: 1px solid var(--app-border2); font-size: 13px; color: var(--app-muted); line-height: 1.4; }
.m-history li:first-child { border-top: 0; }
.m-history li.new { animation: m-in 0.4s var(--ease) both; }
.m-history b { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 17px; color: var(--app-text); margin-right: 6px; }
.m-history .ok { color: var(--role-student); font-weight: 600; white-space: nowrap; }
.m-history .empty { font-style: normal; }
@keyframes m-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.m-jump { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 2px; }
.m-jump button {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; background: transparent; cursor: pointer;
  padding: 5px 10px; border-radius: 999px; font: 500 12.5px/1 "DM Sans", system-ui, sans-serif; color: var(--app-muted); min-height: 32px;
}
.m-jump button:hover { color: var(--app-text); }
.m-jump button[aria-pressed="true"] { border-color: var(--app-border2); color: var(--app-text); background: var(--app-bg); }
.m-jump i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(26, 20, 8, 0.25); }

/* log demo */
.m-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-seg span { text-align: center; border: 1px solid var(--app-border2); border-radius: 999px; padding: 10px 0; font-weight: 600; font-size: 15px; color: var(--app-muted); }
.m-seg .on { background: var(--app-text); color: #fff; border-color: var(--app-text); }
.m-pos-cards { display: grid; gap: 10px; }
.m-pos-cards:empty { display: none; }
.m-pos {
  border: 1.5px solid var(--app-border2); border-radius: 14px; padding: 12px 14px; background: var(--app-bg);
  display: grid; gap: 10px; animation: m-in 0.3s var(--ease) both; transition: border-color 0.2s;
}
.m-pos[data-out="well"] { border-color: rgba(26, 122, 90, 0.45); }
.m-pos[data-out="stuck"] { border-color: rgba(196, 90, 26, 0.55); }
.m-pos-top { display: flex; justify-content: space-between; align-items: center; }
.m-pos-top strong { font-size: 17px; font-weight: 600; }
.m-pos-x { border: 0; background: transparent; cursor: pointer; width: 34px; height: 34px; margin: -6px -8px -6px 0; border-radius: 50%; color: var(--app-muted); font-size: 20px; line-height: 1; }
.m-pos-x:hover { background: var(--app-s2); color: var(--app-text); }
.m-pos-row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.m-pos-row .m-chips button { padding: 6px 14px; min-height: 34px; font-size: 14px; }
.m-chips [data-o="well"][aria-checked="true"] { background: var(--role-student); border-color: var(--role-student); }
.m-chips [data-o="stuck"][aria-checked="true"] { background: var(--role-admin); border-color: var(--role-admin); }
.m-summary { display: grid; gap: 8px; border-color: rgba(26, 122, 90, 0.45); animation: m-in 0.35s var(--ease) both; }
.m-summary:focus { outline: none; }
.m-summary .big { font-family: "Cormorant Garamond", Georgia, serif; font-size: 24px; font-weight: 600; line-height: 1.15; }
.m-summary ul { display: grid; gap: 4px; font-size: 14px; }
.m-summary li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--app-border2); padding-top: 6px; }
.m-summary li em { font-style: normal; font-weight: 600; }
.m-summary li em.well { color: var(--role-student); }
.m-summary li em.stuck { color: var(--role-admin); }
.m-summary .note { font-size: 12.5px; color: var(--app-muted); }

/* arts demo */
.m-chips--arts button { font-size: 13.5px; padding: 7px 13px; }
.m-arts-out { display: grid; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--app-border2); }
.m-ladder { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px 8px; min-height: 52px; }
.m-rung { display: grid; gap: 5px; animation: m-in 0.35s var(--ease) both; }
.m-rung i { height: 14px; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(26, 20, 8, 0.12); }
.m-rung span { font-size: 12px; color: var(--app-muted); line-height: 1.25; }
.m-noranks { grid-column: 1 / -1; font-size: 14px; line-height: 1.5; padding: 12px 14px; border-radius: 12px; background: var(--app-s2); }
.m-arts-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 4px; }
.m-arts-cols > div { display: grid; gap: 8px; align-content: start; }
.m-blocks { border: 1px solid var(--app-border2); border-radius: 12px; background: var(--app-bg); }
.m-blocks li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--app-border2); font-size: 13.5px; }
.m-blocks li:first-child { border-top: 0; }
.m-blocks strong { font-weight: 600; letter-spacing: 0.02em; }
.m-blocks span { color: var(--app-muted); white-space: nowrap; }

/* ---------- Gym owners ---------- */
.m-gyms { background: radial-gradient(40rem 30rem at 85% 40%, rgba(196, 90, 26, 0.16), transparent 60%), radial-gradient(30rem 24rem at 0% 0%, rgba(184, 134, 11, 0.12), transparent 60%), var(--ink); overflow: hidden; }
.m-gyms-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.m-gyms-copy { display: grid; gap: var(--space-4); }
.m-gyms h2 { font-size: var(--fs-h2); color: #fff; }
.m-gyms h2 .serif { color: var(--maa-bright); }
.m-ofeat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-5); margin: var(--space-4) 0 var(--space-3); }
.m-ofeat li { display: grid; gap: 0.25rem; padding-top: var(--space-3); border-top: 1px solid rgba(217, 166, 50, 0.35); }
.m-ofeat strong { color: #fff; font-size: 1rem; }
.m-ofeat span { color: var(--muted-on-ink); font-size: 0.92rem; line-height: 1.5; }
.m-gyms .btn-primary { --btn-bg: var(--maa-bright); --btn-fg: #1A1408; }
.m-gyms .btn-primary:hover { --btn-bg: #fff; }
.m-gyms-phones { position: relative; height: clamp(520px, 46vw, 600px); }
.m-gyms-phones .m-phone { position: absolute; --w: clamp(220px, 21vw, 270px); }
.m-phone--back { right: 2%; top: 0; transform: rotate(6deg); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.m-phone--front { left: 4%; bottom: 0; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.16); }

/* ---------- Download ---------- */
.m-download { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-4); }
.m-download-main, .m-download-gym { border-radius: var(--radius-l); padding: clamp(1.75rem, 4vw, 3rem); }
.m-download-main { background: var(--surface); border: 1px solid var(--line); display: grid; gap: var(--space-4); align-content: start; position: relative; overflow: hidden; }
.m-download-main::after { content: ""; position: absolute; right: -12%; top: -30%; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(184, 134, 11, 0.18), transparent 65%); pointer-events: none; }
.m-dl-icon { width: 88px; height: 88px; border-radius: 20px; box-shadow: 0 16px 30px -16px rgba(26, 20, 8, 0.6), 0 0 0 1px rgba(26, 20, 8, 0.08); margin-bottom: var(--space-2); }
.m-download h2 { font-size: var(--fs-h2); font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.02em; }
.m-dl-p { color: var(--muted); max-width: 32rem; }
.m-stores { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); position: relative; z-index: 1; }
.m-store {
  display: inline-flex; align-items: center; gap: 0.75rem; min-width: 190px; min-height: 58px;
  padding: 0.55rem 1.3rem 0.55rem 1rem; border-radius: 14px; text-decoration: none;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.m-store svg { width: 26px; height: 26px; flex: none; }
.m-store span { display: grid; line-height: 1.15; }
.m-store small { font-size: 0.72rem; letter-spacing: 0.04em; opacity: 0.75; }
.m-store strong { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
.m-store:not([aria-disabled="true"]):hover { transform: translateY(-2px); }
.m-store[aria-disabled="true"] { background: transparent; color: var(--muted); border: 1px dashed rgba(90, 70, 40, 0.35); cursor: default; }
.m-store[aria-disabled="true"] strong { color: var(--text); opacity: 0.7; }
.m-avail { margin-top: var(--space-3); position: relative; z-index: 1; }
.m-avail div { border-top-color: var(--line); }
.m-avail dt { color: var(--muted); }
.m-download-gym { background: var(--ink); color: #fff; display: grid; gap: var(--space-4); align-content: center; position: relative; overflow: hidden; }
.m-download-gym::before { content: ""; position: absolute; inset: auto -20% -40% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(196, 90, 26, 0.3), transparent 65%); }
.m-download-gym > * { position: relative; }
.m-download-gym .m-label { color: var(--maa-bright); }
.m-download-gym h3 { font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -0.01em; }
.m-download-gym p { color: var(--muted-on-ink); }
.m-download-gym .btn-primary { --btn-bg: var(--maa-bright); --btn-fg: #1A1408; justify-self: start; }
.m-download-gym .btn-primary:hover { --btn-bg: #fff; }
.m-download-gym .email-text { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted-on-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .m-roles { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); }
  .m-role-phone { grid-column: 1; grid-row: 2; justify-self: center; }
  .m-role-panels { grid-row: 1 / span 2; grid-column: 2; align-self: start; }
}
@media (max-width: 1020px) {
  .m-hero .p-hero-layout { grid-template-columns: 1fr; }
  .m-hero-stage { height: 600px; }
  .m-phone--hero { --w: 280px; } .m-phone--side { --w: 230px; }
  .m-journey { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--space-7); }
  .m-gyms-grid { grid-template-columns: 1fr; }
  .m-gyms-phones { height: 560px; max-width: 560px; width: 100%; justify-self: center; }
  .m-download { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .m-demo { grid-template-columns: 1fr; }
  .m-demo--flip .m-demo-copy { order: 0; }
  .m-head-row { display: block; }
  .m-strip-nav { display: none; }
  .m-roles { grid-template-columns: 1fr; }
  .m-role-phone, .m-role-panels { grid-column: auto; grid-row: auto; }
  .m-trio { grid-template-columns: 1fr; gap: var(--space-8); }
  .m-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .m-hero-stage { height: 470px; margin-inline: calc(var(--gutter) * -1); overflow: hidden; }
  .m-phone--hero { --w: 214px; } .m-phone--side { --w: 168px; }
  .m-phone--left { transform: translateX(-66%) rotate(-7deg) translateY(5%); }
  .m-phone--right { transform: translateX(66%) rotate(7deg) translateY(5%); }
  .m-hero-facts { gap: var(--space-4); }
  .m-hero-facts strong { font-size: 2.1rem; }
  .m-strip-track li { width: 216px; } .m-strip-track .m-phone { --w: 216px; }
  .m-app { padding: 28px 14px 18px; border-radius: 28px; }
  .m-arts-cols { grid-template-columns: 1fr; }
  .m-journey { grid-template-columns: 1fr; row-gap: var(--space-6); }
  .m-ofeat { grid-template-columns: 1fr; }
  .m-gyms-phones { height: 460px; }
  .m-gyms-phones .m-phone { --w: 200px; }
  .m-phone--back { right: 0; } .m-phone--front { left: 0; }
  .m-store { width: 100%; }
  .m-download-gym .btn-primary { justify-self: stretch; }
}

/* ---------- Fixes after review ---------- */
.m-app [hidden] { display: none !important; }
.m-app { width: min(100%, 404px); }
.m-app--wide { width: min(100%, 520px); }
.m-chips--sq { gap: 5px; }
.m-chips--sq button { min-width: 31px; padding: 6px 4px; font-size: 13px; min-height: 34px; }
.m-rounds { gap: 6px; }
.m-jump { gap: 2px; }
.m-jump button { padding: 5px 8px; gap: 5px; }
.m-ofeat li, .m-roles .role-panel li { align-content: start; }
.m-trio-item .m-phone { --w: 262px; }
.m-hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.m-hero-facts strong { font-family: var(--font-sans); font-weight: 700; font-size: 2.3rem; letter-spacing: -0.04em; font-variant-numeric: lining-nums; }
.m-demo-copy { align-self: center; }
@media (max-width: 560px) {
  .m-trio-item .m-phone { --w: 240px; }
  .m-hero-facts { gap: var(--space-3); }
  .m-hero-facts strong { font-size: 1.9rem; }
  .m-hero-facts span { font-size: 0.82rem; }
}

/* =========================================================================
   Round 2: five signature features, the volume calculator and the dame board.
   ========================================================================= */

/* ---------- Chapters ---------- */
.m-chapters { border-block: 1px solid var(--line); background: var(--paper); position: relative; z-index: 2; }
.m-chapters ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.m-chapters li + li { border-inline-start: 1px solid var(--line); }
.m-chapters a {
  display: grid; gap: 0.3rem; padding: 1.35rem clamp(0.75rem, 1.6vw, 1.4rem); text-decoration: none; color: var(--text);
  transition: background-color 0.25s var(--ease);
}
.m-chapters a:hover { background: var(--surface); }
.m-chapters span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--accent); }
.m-chapters strong { font-family: var(--font-serif); font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }

/* ---------- Signature sections ---------- */
.m-sig { scroll-margin-top: 4.5rem; }
.m-sig .m-demo-copy { max-width: 33rem; gap: var(--space-4); }
.m-sig-h { font-family: var(--font-serif); font-size: clamp(2.3rem, 4.4vw, 3.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.02; }
.m-sig .lead { color: var(--muted); }
.m-points { display: grid; gap: 0; margin-top: var(--space-2); }
.m-points li { display: grid; gap: 0.2rem; padding: 0.9rem 0; border-top: 1px solid var(--line); }
.m-points li:last-child { border-bottom: 1px solid var(--line); }
.m-points strong { font-size: 1rem; font-weight: 650; color: var(--text); }
.m-points span { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.m-sig-phone { justify-self: center; }
.m-sig-phone .m-phone { --w: clamp(250px, 24vw, 290px); }

/* ---------- 02 Strength ---------- */
.m-str-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.m-duo { position: relative; height: clamp(560px, 50vw, 640px); }
.m-duo .m-phone { position: absolute; --w: clamp(230px, 21vw, 275px); }
.m-phone--a { left: 4%; top: 0; z-index: 2; }
.m-phone--b { right: 2%; bottom: 0; transform: rotate(4deg); filter: saturate(0.95); }
.m-calc-wrap { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.m-calc-head { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-5) clamp(2rem, 5vw, 4rem); align-items: end; margin-bottom: var(--space-7); }
.m-calc-head h3 { font-family: var(--font-serif); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.05; }
.m-calc-head p { color: var(--muted); }
.m-calc {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  background: var(--app-surface); color: var(--app-text); font-family: "DM Sans", system-ui, sans-serif;
  border: 1px solid var(--app-border2); border-radius: 30px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 50px 90px -50px rgba(26, 20, 8, 0.5), 0 10px 24px -18px rgba(26, 20, 8, 0.3);
}
.m-calc [hidden] { display: none !important; }
.m-calc-log { padding: 34px 22px 22px; display: grid; gap: 12px; align-content: start; border-inline-end: 1px solid var(--app-border2); }
.m-calc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.m-chips--unit button { min-width: 48px; padding: 6px 12px; font-family: "DM Mono", ui-monospace, monospace; font-size: 13px; min-height: 34px; }
.m-chips--unit [aria-checked="true"] { background: var(--role-student); border-color: var(--role-student); }
.m-calc-list { display: grid; gap: 12px; }
.m-ex { background: var(--app-bg); border: 1px solid var(--app-border2); border-radius: 16px; padding: 12px 14px 12px; display: grid; gap: 8px; }
.m-ex-head { display: flex; align-items: center; gap: 10px; }
.m-ex-head .m-label { font-size: 10px; }
.m-ex-vol { margin-inline-start: auto; font-family: "DM Mono", ui-monospace, monospace; font-size: 12.5px; font-weight: 500; color: var(--role-admin); }
.m-ex-x, .m-set-x { border: 0; background: transparent; color: var(--app-muted); cursor: pointer; width: 30px; height: 30px; border-radius: 50%; font-size: 18px; line-height: 1; flex: none; }
.m-ex-x:hover:not(:disabled), .m-set-x:hover:not(:disabled) { background: var(--app-s2); color: var(--app-text); }
.m-ex-x:disabled, .m-set-x:disabled { opacity: 0.3; cursor: default; }
.m-ex-name-row { display: flex; gap: 8px; align-items: center; }
.m-ex-name {
  flex: 1; min-width: 0; border: 0; border-bottom: 1px dashed transparent; background: transparent; padding: 2px 0;
  font: 650 18px/1.25 "DM Sans", system-ui, sans-serif; color: var(--app-text);
}
.m-ex-name:hover, .m-ex-name:focus { border-bottom-color: var(--app-border2); outline: none; }
.m-ex-name:focus-visible { box-shadow: 0 2px 0 var(--app-gold); }
.m-bw, .m-addset {
  border: 1px solid var(--app-border2); background: transparent; color: var(--app-muted); border-radius: 999px;
  padding: 5px 11px; font: 500 12.5px/1.2 "DM Sans", system-ui, sans-serif; cursor: pointer; min-height: 30px; white-space: nowrap;
}
.m-bw[aria-pressed="true"] { border-color: var(--app-gold); color: var(--app-gold); background: rgba(184, 134, 11, 0.08); font-weight: 600; }
.m-addset { color: var(--role-student); border-style: dashed; }
.m-addset:disabled { opacity: 0.4; cursor: default; }
.m-ex-sum { font-family: "DM Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--app-muted); margin-top: -4px; }
.m-sets { display: grid; gap: 6px; }
.m-set { display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr) 30px 30px; gap: 6px; align-items: center; }
.m-set-n { font-family: "DM Mono", ui-monospace, monospace; font-size: 12px; color: var(--app-muted); text-align: center; }
.m-set.is-warm .m-set-n { color: var(--app-gold); font-weight: 600; }
.m-set.is-warm .m-step input { color: var(--app-muted); }
.m-step {
  display: flex; align-items: center; gap: 2px; border: 1px solid var(--app-border2); border-radius: 10px; background: var(--app-surface);
  padding: 3px; min-width: 0; height: 40px;
}
.m-step button {
  flex: none; width: 26px; height: 26px; border: 0; border-radius: 7px; background: var(--app-s2); color: var(--app-text);
  font: 500 15px/1 "DM Sans", system-ui, sans-serif; cursor: pointer;
}
.m-step button:hover { background: var(--app-s3); }
.m-step input {
  width: 100%; min-width: 0; border: 0; background: transparent; text-align: end; padding: 0 2px;
  font: 600 16px/1 "DM Mono", ui-monospace, monospace; color: var(--app-text);
}
.m-step input:focus { outline: none; }
.m-step:focus-within { border-color: var(--app-text); }
.m-step-u { flex: none; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--app-muted); padding-inline-end: 3px; }
.m-step--bw { justify-content: center; font-size: 12.5px; color: var(--app-muted); background: transparent; border-style: dashed; }
.m-warm {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--app-border2); background: transparent; color: var(--app-dim);
  font: 600 12px/1 "DM Mono", ui-monospace, monospace; cursor: pointer;
}
.m-warm[aria-pressed="true"] { background: rgba(184, 134, 11, 0.14); border-color: var(--app-gold); color: var(--app-gold); }
.m-ex-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 2px; }
.m-quick { display: flex; gap: 4px; align-items: center; }
.m-quick input {
  width: 108px; border: 1px solid var(--app-border2); border-radius: 999px; background: var(--app-surface); padding: 6px 12px;
  font: 500 13px/1.2 "DM Mono", ui-monospace, monospace; color: var(--app-text); min-height: 30px;
}
.m-quick input:focus { outline: none; border-color: var(--app-text); }
.m-quick button { border: 0; background: transparent; color: var(--role-student); font: 600 13px/1 "DM Sans", system-ui, sans-serif; cursor: pointer; padding: 6px 8px; }
.m-ex-err { font-size: 12.5px; color: var(--role-admin); }
.m-add-ex {
  border: 1px dashed var(--app-border2); background: transparent; border-radius: 14px; padding: 13px; cursor: pointer;
  font: 600 14.5px/1.2 "DM Sans", system-ui, sans-serif; color: var(--role-student);
}
.m-add-ex:hover:not(:disabled) { background: var(--app-bg); }
.m-add-ex:disabled { opacity: 0.4; cursor: default; }
.m-calc-out { padding: 34px 26px 26px; display: grid; gap: 10px; align-content: start; position: sticky; top: 80px; align-self: start; }
.m-calc-total {
  font-family: "DM Mono", ui-monospace, monospace; font-weight: 500; color: var(--role-admin);
  font-size: clamp(2.4rem, 4.4vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.m-calc-sub { font-size: 13.5px; color: var(--app-muted); }
.m-calc-rows { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--app-border2); }
.m-calc-rows li { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--app-border2); }
.m-row-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.m-row-top strong { font-weight: 650; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-row-top em { font-style: normal; font-family: "DM Mono", ui-monospace, monospace; font-size: 14px; color: var(--role-admin); white-space: nowrap; }
.m-calc-rows li.is-bw .m-row-top em { color: var(--app-gold); }
.m-row-sum { font-family: "DM Mono", ui-monospace, monospace; font-size: 12px; color: var(--app-muted); }
.m-row-note { font-size: 12px; color: var(--app-muted); }
.m-bar { display: block; height: 6px; border-radius: 3px; background: var(--app-s2); overflow: hidden; margin-top: 2px; }
.m-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, rgba(196, 90, 26, 0.55), var(--role-admin)); transition: width 0.45s var(--ease); }
.m-calc-formula { margin-top: 8px; padding: 12px 14px; border-radius: 12px; background: var(--app-bg); border: 1px solid var(--app-border2); font-family: "DM Mono", ui-monospace, monospace; font-size: 12.5px; color: var(--app-text); }
.m-calc-note { font-size: 12px; color: var(--app-muted); }

/* ---------- 03 Habits and recovery ---------- */
.m-recover { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: clamp(3.5rem, 7vw, 5.5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--line); }
.m-rec { margin: 0; display: grid; justify-items: center; gap: var(--space-5); align-content: start; }
.m-rec .m-phone { --w: min(240px, 100%); }
.m-rec figcaption, .m-rec-cap { display: grid; gap: 0.25rem; text-align: center; max-width: 18rem; }
.m-rec figcaption strong, .m-rec-cap strong { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600; }
.m-rec figcaption span, .m-rec-cap span { color: var(--muted); font-size: 0.93rem; }
.m-rec--journal { align-self: stretch; }
.m-journal-card {
  width: min(240px, 100%); aspect-ratio: 390 / 844; border-radius: 30px; padding: 34px 22px;
  background: var(--app-bg); border: 1px solid var(--app-border2); color: var(--app-text);
  display: flex; flex-direction: column; gap: 14px; justify-content: center;
  box-shadow: 0 30px 60px -36px rgba(26, 20, 8, 0.45);
}
.m-journal-q { font-family: "Cormorant Garamond", Georgia, serif; font-size: 27px; font-weight: 600; line-height: 1.12; }
.m-journal-alt { font-size: 13px; color: var(--role-student); font-weight: 600; }
.m-journal-foot { margin-top: auto; font-size: 12px; color: var(--app-muted); }

/* ---------- 04 Games ---------- */
.m-games { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-2); }
.m-games li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.m-games strong { font-weight: 650; font-size: 0.95rem; }
.m-gi { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #F5F0E6; display: grid; place-items: center; font-size: 19px; line-height: 1; }
.m-gi--dame i { width: 16px; height: 16px; border-radius: 50%; background: #CC3333; box-shadow: inset 0 0 0 2px #FF7070, 0 0 0 2px #1A1408; }
.m-gi--domino i { width: 11px; height: 19px; border-radius: 3px; background: #F5F0E6; background-image: radial-gradient(circle, #1A1408 1.4px, transparent 1.6px), radial-gradient(circle, #1A1408 1.4px, transparent 1.6px); background-size: 11px 9.5px; background-position: 0 0, 0 9.5px; background-repeat: no-repeat; box-shadow: inset 0 -0.5px 0 0 #1A1408; }
.m-roll { margin-top: var(--space-4); padding: var(--space-5); border-radius: var(--radius-m); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 0.35rem; }
.m-roll .m-label { color: var(--accent); }
.m-roll h3 { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; letter-spacing: -0.01em; }
.m-roll p:not(.m-label) { color: var(--muted); font-size: 0.95rem; }
.m-app--dame { width: min(100%, 404px); }
.m-board {
  display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1; width: 100%;
  border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(26, 20, 8, 0.25), 0 18px 30px -20px rgba(26, 20, 8, 0.6);
}
.m-sq { position: relative; display: grid; place-items: center; border: 0; padding: 0; margin: 0; background: #8B5E3C; cursor: pointer; aspect-ratio: 1; }
.m-sq--light { background: #EDD9B2; cursor: default; }
.m-sq[aria-disabled="true"] { cursor: default; }
.m-sq.is-last { background: color-mix(in srgb, #8B5E3C 78%, #B8860B); }
.m-sq.is-sel { background: color-mix(in srgb, #8B5E3C 45%, #B8860B); }
.m-sq.is-target::after { content: ""; width: 30%; height: 30%; border-radius: 50%; background: rgba(184, 134, 11, 0.8); }
.m-sq:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.m-pc { width: 76%; height: 76%; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); }
.m-pc::before { content: ""; width: 65%; height: 65%; border-radius: 50%; }
.m-pc--r { background: #CC3333; border: 2px solid #FF7070; }
.m-pc--r::before { background: #AA1A1A; }
.m-pc--b { background: #1E1E2E; border: 2px solid #5A5A80; }
.m-pc--b::before { background: #0D0D1A; }
.m-pc.is-king::before { background: none; content: "♛"; display: grid; place-items: center; font-size: clamp(11px, 3cqw, 16px); color: #F5D58A; width: auto; height: auto; line-height: 1; }
.m-btns--two { display: grid; grid-template-columns: 1fr 1fr; margin-top: 2px; }
.m-btn--ghost { background: var(--app-s2); color: var(--app-text); }
.m-fine { font-size: 12px; color: var(--app-muted); text-align: center; line-height: 1.45; }
.m-moves { list-style: decimal inside; padding: 10px 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 10px; max-height: 120px; overflow: auto; font-family: "DM Mono", ui-monospace, monospace; font-size: 12.5px; }
.m-moves li.empty { list-style: none; grid-column: 1 / -1; color: var(--app-muted); font-family: "DM Sans", system-ui, sans-serif; }
.m-link { justify-self: center; border: 0; background: transparent; color: var(--role-student); font: 600 14px/1 "DM Sans", system-ui, sans-serif; cursor: pointer; padding: 8px 12px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- For the school ---------- */
.m-gyms .m-gyms-copy { max-width: 46rem; }
.m-school { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4.5rem); margin: clamp(2.5rem, 5vw, 3.5rem) 0 var(--space-6); }
.m-school h3 { font-family: var(--font-serif); color: #fff; font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.01em; }
.m-school .m-ofeat { margin-top: var(--space-4); }

/* ---------- Supporting grid ---------- */
.m-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.m-more li { background: var(--paper); padding: clamp(1.25rem, 2.2vw, 1.75rem); display: grid; gap: 0.4rem; align-content: start; }
.m-more strong { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.m-more span { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }

/* ---------- Round 2 responsive ---------- */
@media (max-width: 1020px) {
  .m-str-grid { grid-template-columns: 1fr; }
  .m-duo { max-width: 600px; width: 100%; justify-self: center; }
  .m-calc { grid-template-columns: 1fr; }
  .m-calc-log { border-inline-end: 0; border-bottom: 1px solid var(--app-border2); }
  .m-calc-out { position: static; }
  .m-calc-head { grid-template-columns: 1fr; }
  .m-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .m-chapters ol { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .m-chapters { overflow: hidden; }
  .m-recover { grid-template-columns: 1fr; gap: var(--space-8); }
  .m-school { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .m-duo { height: 470px; }
  .m-duo .m-phone { --w: 200px; }
  .m-phone--a { left: 0; } .m-phone--b { right: 0; }
  .m-calc { border-radius: 24px; }
  .m-calc-log { padding: 30px 12px 16px; }
  .m-calc-out { padding: 22px 16px 20px; }
  .m-ex { padding: 10px 10px; }
  .m-set { grid-template-columns: 16px minmax(0, 1fr) minmax(0, 1fr) 28px 24px; gap: 4px; }
  .m-step { height: 38px; }
  .m-step button { width: 22px; height: 24px; }
  .m-step-u { display: none; }
  .m-step input { font-size: 15px; text-align: center; }
  .m-warm { width: 28px; height: 28px; }
  .m-set-x { width: 24px; }
  .m-more { grid-template-columns: 1fr; }
  .m-moves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.m-sig .m-step-k { text-transform: uppercase; }
.m-journal-more { display: grid; gap: 8px; border-top: 1px solid var(--app-border2); padding-top: 12px; }
.m-journal-more li { font-family: "Cormorant Garamond", Georgia, serif; font-size: 18px; font-weight: 500; line-height: 1.2; color: var(--app-muted); }
.m-gi { font-size: 22px; }
.m-hero { overflow-x: clip; }
.m-strength, .m-sig { overflow-x: clip; }


/* ---- Shared from the earlier site: films, Instagram band, app icons ---- */
.p-film { overflow-x: clip; }
.p-film-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: var(--space-8); align-items: center; }
.p-film-copy { display: grid; gap: 1rem; max-width: 34rem; }
.p-film-copy h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.05; }
.p-film-copy .lead { color: var(--muted); }
.p-film-toggle { justify-self: start; gap: 0.6rem; width: auto !important; }
.p-film-ico { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.p-film-toggle[aria-pressed="true"] .p-film-ico { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.p-film-frame { position: relative; margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 9 / 16; max-height: 78vh;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.55); justify-self: center; width: 100%; }
.p-film-frame::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(closest-side, var(--accent-soft), transparent); }
.p-film-video { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .p-film-layout { grid-template-columns: 1fr; gap: var(--space-6); }
  .p-film-frame { max-width: 340px; }
}
.follow-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 22px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit; transition: border-color .3s, transform .3s; }
.follow-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.follow-icon { width: 56px; height: 56px; border-radius: 13px; }
.follow-text { display: grid; gap: 0.25rem; }
.follow-handle { font-size: clamp(1.3rem, 2.4vw, 1.75rem); letter-spacing: -0.01em; }
.follow-sub { color: var(--muted); font-size: 0.95rem; }
.follow-btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .follow-card { grid-template-columns: auto 1fr; } .follow-btn { grid-column: 1 / -1; } }
.app-icon { border-radius: 22%; }
.app-badge { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08); }
.wordmark { font-weight: 800; letter-spacing: 0.04em; font-size: 1.5rem; display: inline-flex; align-items: center; gap: 0.9rem; }
.eco-card .e-top .app-icon { width: 34px; height: 34px; border-radius: 8px; }
