/* ============================================================
   omniOne: Module showcase section.
   Eight product modules, each with a concrete on-brand mini-mock.
   ============================================================ */

.module-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.module-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: var(--surface);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--c-300); }
.module-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; }
.module-icon {
  width: 46px; height: 46px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 13px;
  color: #fff;
}
.module-icon svg { width: 23px; height: 23px; }
.module-icon.orange { background: var(--orange); }
.module-icon.green  { background: var(--green); }
.module-icon.violet { background: var(--violet); }
.module-icon.sky    { background: var(--sky); }
.module-title { display: grid; gap: 3px; }
.module-title strong { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.03em; }
.module-desc { margin: 0 0 18px; color: var(--c-600); line-height: 1.6; }
.module-mock {
  margin-top: auto;
  padding: 15px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  background: var(--glass-inset);
  font-size: 13px;
}

/* ---- Training mini-mock ---- */
.mm-train .tp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 4px; }
.mm-train .tp-head b { font-size: 0.84rem; color: var(--c-900); font-weight: 600; white-space: nowrap; }
.mm-chip {
  white-space: nowrap;
  font-size: 0.66rem; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
  background: var(--orange-bg); color: var(--orange-text);
}
.tp-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: center; gap: 4px 11px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
}
.tp-row:first-of-type { border-top: 0; }
.tp-row .n {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: var(--glass-card);
  color: var(--c-500);
  font-size: 0.7rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tp-row .nm { min-width: 0; font-size: 0.82rem; color: var(--c-800); font-weight: 500; }
.tp-pills { grid-column: 2; display: flex; flex-wrap: wrap; gap: 5px; }
.tp-pills > span {
  font-size: 0.64rem; font-weight: 700;
  padding: 3px 7px; border-radius: 6px;
  background: var(--glass-card);
  border: 1px solid var(--glass-border);
  color: var(--c-600);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---- Nutrition mini-mock ---- */
.mm-nut .kcal { display: flex; align-items: baseline; justify-content: space-between; }
.mm-nut .kcal .lab { font-size: 0.72rem; color: var(--c-500); font-weight: 600; }
.mm-nut .kcal b {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.55rem; color: var(--c-900);
  font-variant-numeric: tabular-nums;
}
.mm-nut .kcal b em { font-style: normal; font-size: 0.7rem; color: var(--c-500); }
.macrobar {
  display: flex;
  gap: 2px;
  height: 16px;
  margin: 12px 0 8px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--glass-card);
}
.macrobar i {
  display: block;
  height: 100%;
  color: #fff;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  white-space: nowrap;
}
.macrobar .c { background: var(--sky); }
.macrobar .p { background: var(--green); }
.macrobar .f { background: var(--amber); }
.macro-rows { display: grid; }
.macro-rows > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid var(--hairline);
  color: var(--c-700);
  font-size: 0.74rem;
}
.macro-rows > span:first-child { border-top: 0; }
.macro-rows > span > span::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 7px;
  border-radius: 3px;
}
.macro-rows .lc > span::before { background: var(--sky); }
.macro-rows .lp > span::before { background: var(--green); }
.macro-rows .lf > span::before { background: var(--amber); }
.macro-rows em { color: var(--c-500); font-size: 0.68rem; font-style: normal; font-variant-numeric: tabular-nums; }
.macro-rows b { color: var(--c-900); font-variant-numeric: tabular-nums; }
.nut-more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.nut-more-label { width: 100%; color: var(--c-500); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.nut-tile {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  background: var(--glass-card);
  color: var(--c-600);
  font-size: 0.7rem;
}
.nut-tile b { color: var(--c-900); font-variant-numeric: tabular-nums; }

/* ---- Supplements mini-mock ---- */
.supp-row {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 0;
  border-top: 1px solid var(--hairline);
}
.supp-row:first-of-type { border-top: 0; }
.supp-nm { flex: 1; min-width: 0; }
.supp-nm b { display: block; font-size: 0.82rem; color: var(--c-800); font-weight: 600; }
.supp-nm span { font-size: 0.72rem; color: var(--c-500); font-variant-numeric: tabular-nums; }

/* ---- Check-ins mini-mock ---- */
.chk-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 13px; }
.chk-weight { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.chk-weight .lab { font-size: 0.72rem; color: var(--c-500); font-weight: 600; }
.chk-weight b {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.5rem; color: var(--c-900);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.chk-weight .delta {
  white-space: nowrap;
  font-size: 0.66rem; font-weight: 700;
  padding: 3px 7px; border-radius: 999px;
  background: var(--green-bg); color: var(--green-text);
  font-variant-numeric: tabular-nums;
}
.chk-phase {
  white-space: nowrap;
  font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  background: var(--sky-bg); color: var(--sky-dark);
}
.scale { margin: 9px 0; }
.scale .lab { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.72rem; color: var(--c-600); }
.scale .lab b { color: var(--c-800); font-variant-numeric: tabular-nums; }
.scale .track { height: 6px; border-radius: 999px; background: var(--glass-card); overflow: hidden; }
.scale .fill { height: 100%; border-radius: 999px; background: var(--sky); }

@media (max-width: 1040px) {
  .module-grid { grid-template-columns: 1fr; }
}

/* ---- Goals and measurement progress ---- */
.mm-progress { margin-left: 0; margin-right: 0; margin-bottom: 0; }
.progress-mock-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 9px; }
.progress-mock-title { display: grid; gap: 2px; min-width: 0; }
.progress-mock-title b { color: var(--c-900); font-size: 0.95rem; font-weight: 600; }
.progress-mock-title span { color: var(--c-500); font-size: 0.68rem; }
.progress-mock-phase {
  font-size: 0.64rem; font-weight: 700; white-space: nowrap;
  padding: 4px 9px; border-radius: 999px;
  background: var(--sky-bg); color: var(--sky-dark);
}
.progress-mock-panel {
  padding: 12px 12px 10px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-card);
}
.progress-mock-chart { display: block; width: 100%; height: 60px; overflow: visible; }
.progress-mock-grid { fill: none; stroke: var(--glass-border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.progress-mock-area { fill: var(--sky-bg); }
.progress-mock-line { fill: none; stroke: var(--sky); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.progress-mock-points, .progress-mock-selected, .progress-mock-selected-ring { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.progress-mock-points { stroke: var(--sky); stroke-width: 6; }
.progress-mock-selected-ring { stroke: var(--c-50); stroke-width: 12; }
.progress-mock-selected { stroke: var(--sky-dark); stroke-width: 8; }
.progress-mock-caption { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: var(--c-500); font-size: 0.68rem; }

.mm-goal .goal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.mm-goal .goal-head b { font-size: 0.95rem; color: var(--c-900); font-weight: 600; }
.goal-status {
  font-size: 0.64rem; font-weight: 700; white-space: nowrap;
  padding: 4px 9px; border-radius: 999px;
  background: var(--green-bg); color: var(--green-text);
}
.goal-criterion {
  padding: 12px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-card);
}
.goal-criterion-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.goal-criterion-head strong { color: var(--c-900); font-size: 0.84rem; font-weight: 600; }
.goal-criterion-head span { color: var(--c-500); font-size: 0.7rem; white-space: nowrap; }
.goal-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 0; }
.goal-metrics > span { display: grid; gap: 3px; min-width: 0; }
.goal-metrics .ml { color: var(--c-500); font-size: 0.68rem; line-height: 1.25; }
.goal-metrics b { color: var(--c-900); font-size: 0.92rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---- Questionnaire mini-mock ---- */
.mm-quiz .quiz-q {
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-500);
  margin-bottom: 8px;
}
.mm-quiz .quiz-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.mm-quiz .quiz-opts span {
  font-size: 0.74rem; font-weight: 600;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-card);
  color: var(--c-600);
}
.mm-quiz .quiz-opts span.sel {
  border-color: rgba(34, 197, 94, 0.4);
  background: var(--green-bg);
  color: var(--green-text);
}
.mm-quiz .quiz-ans {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--glass-border);
  background: var(--glass-card);
  font-size: 0.82rem; color: var(--c-800); font-weight: 500;
}
.mm-quiz .quiz-ans svg { width: 15px; height: 15px; color: var(--green-text); flex: none; }

/* ---- Chat mini-mock ---- */
.mm-chatmod { display: grid; gap: 9px; }
.cm-bubble {
  max-width: 86%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--c-800);
}
.cm-bubble.peer { justify-self: start; background: rgba(14,165,233,0.13); border-bottom-left-radius: 4px; }
.cm-bubble.self { justify-self: end; background: rgba(249,115,22,0.16); border-bottom-right-radius: 4px; }

/* Voice message bubble */
.cm-voice { display: flex; align-items: center; gap: 9px; min-width: 190px; }
.cm-play {
  width: 26px; height: 26px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
}
.cm-play svg { width: 12px; height: 12px; margin-left: 2px; }
.cm-wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 22px; }
.cm-wave i { display: block; width: 3px; border-radius: 3px; background: var(--orange-text); opacity: 0.7; }
.cm-wave .w2 { height: 7px; }
.cm-wave .w3 { height: 11px; }
.cm-wave .w4 { height: 15px; }
.cm-wave .w5 { height: 20px; }
.cm-dur { color: var(--c-600); font-size: 0.72rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ============================================================
   Enriched mocks: one or two extra elements per card, as in the app
   ============================================================ */

/* Training: week rhythm rail (training days tinted, rest days hollow) */
.tw-rail { position: relative; display: flex; justify-content: space-between; align-items: center; margin: 12px 2px 4px; }
.tw-rail::before { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 1px; background: var(--glass-border); }
.tw-stop {
  position: relative;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
}
.tw-stop.is-rest { width: 10px; height: 10px; margin: 0 6px; border: 1.5px solid var(--c-300); background: var(--surface); }
.tw-1 { background: var(--sky); }
.tw-2 { background: var(--violet); }
.tw-3 { background: var(--amber); }
.tw-4 { background: #14b8a6; }
.tw-days { display: flex; justify-content: space-between; margin: 0 0 10px; color: var(--c-500); font-size: 0.62rem; font-weight: 600; }
.tw-days span { width: 26px; text-align: center; }
.tp-day { padding-left: 10px; border-left: 3px solid var(--sky); }
.tp-day-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.tp-day-head b { color: var(--c-900); font-size: 0.8rem; }
.tp-day-head span { color: var(--c-500); font-size: 0.68rem; white-space: nowrap; }
.tp-row .nm { display: grid; min-width: 0; }
.tp-row .nm small { color: var(--c-500); font-size: 0.66rem; font-weight: 400; }
.tp-pills .tp-rest { display: inline-flex; align-items: center; gap: 3px; }
.tp-rest span { font: inherit; }
.tp-rest svg { width: 10px; height: 10px; }
.tp-pills .tp-dose { border-color: transparent; background: var(--sky); color: #fff; }

/* Supplements: grouped by timing slot */
.sp-slot { padding-left: 10px; border-left: 3px solid var(--sp-tone); }
.sp-slot + .sp-slot { margin-top: 10px; }
.sp-morning { --sp-tone: var(--amber); --sp-text: var(--amber-text); }
.sp-meal { --sp-tone: var(--green); --sp-text: var(--green-text); }
.sp-night { --sp-tone: var(--violet); --sp-text: var(--violet); }
:root[data-theme="dark"] .sp-night { --sp-text: #c4b5fd; }
.sp-head { display: flex; align-items: center; gap: 6px; color: var(--sp-text); font-size: 0.72rem; font-weight: 700; }
.sp-head svg { width: 14px; height: 14px; }
.mm-supp .supp-row { padding: 6px 0; }
.mm-supp .sp-head + .supp-row { border-top: 0; }
.sp-dose {
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--sp-tone);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Check-ins: comparison line and photo row */
.chk-attach {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-card);
}
.ph-stack { position: relative; width: 74px; height: 46px; flex: none; }
.ph-thumb {
  position: absolute;
  top: 2px;
  width: 34px;
  height: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  border: 2px solid var(--surface);
  border-radius: 7px;
  background: linear-gradient(170deg, color-mix(in srgb, var(--sky) 14%, var(--surface)), color-mix(in srgb, var(--sky) 38%, var(--surface)));
  color: color-mix(in srgb, var(--sky-dark) 70%, transparent);
  box-shadow: var(--shadow-xs);
}
.ph-thumb svg { width: 70%; height: 82%; fill: currentColor; }
.ph-1 { left: 0; transform: rotate(-7deg); }
.ph-2 { left: 18px; top: 0; z-index: 1; }
.ph-3 { left: 36px; z-index: 2; transform: rotate(7deg); }
.chk-attach-text { display: grid; min-width: 0; }
.chk-attach-text b { color: var(--c-900); font-size: 0.8rem; }
.chk-attach-text span { color: var(--c-500); font-size: 0.7rem; }

/* Questionnaire: status, answer type, progress */
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.quiz-top b { color: var(--c-900); font-size: 0.82rem; }
.quiz-status {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--tone-amber-bg);
  color: var(--tone-amber);
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}
.mm-quiz .quiz-q { display: flex; align-items: center; gap: 8px; }
.quiz-type {
  padding: 2px 7px;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  color: var(--c-500);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.quiz-foot { margin-top: 10px; color: var(--c-500); font-size: 0.7rem; font-variant-numeric: tabular-nums; }

/* Chat: thread header, speed chip, document card */
.cm-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--hairline); font-size: 0.72rem; }
.cm-head b { color: var(--c-900); font-size: 0.8rem; }
.cm-head > span:last-child { margin-left: auto; color: var(--c-500); white-space: nowrap; }
.cm-av {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--brand-gradient);
  color: #062033;
  font-size: 0.56rem;
  font-weight: 800;
}
.cm-speed { padding: 1px 6px; border-radius: 6px; background: var(--glass-card); color: var(--c-600); font-size: 0.64rem; font-weight: 700; }
.cm-doc { display: flex; align-items: center; gap: 9px; }
.cm-file { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 8px; background: var(--glass-card); color: var(--orange-text); }
.cm-file svg { width: 15px; height: 15px; }
.cm-doc-text { display: grid; min-width: 0; }
.cm-doc-text b { overflow: hidden; color: var(--c-900); font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.cm-doc-text span { color: var(--c-500); font-size: 0.66rem; }

/* Goals: overview tiles */
.goal-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 2px 0 12px; }
.goal-tiles > span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid var(--glass-border);
  border-radius: 9px;
  background: var(--glass-card);
  color: var(--c-500);
  font-size: 0.64rem;
}
.goal-tiles b { color: var(--c-900); font-size: 0.78rem; overflow-wrap: anywhere; }

/* Phones: denser setting so the full mocks fit without scrolling sideways */
@media (max-width: 560px) {
  .module-mock { padding: 12px; font-size: 12px; }
  .tw-stop { width: 20px; height: 20px; font-size: 0.6rem; }
  .tw-stop.is-rest { margin: 0 5px; }
  .tp-row { gap: 8px; }
  .macro-rows > span { gap: 6px; font-size: 0.7rem; }
  .macro-rows em { font-size: 0.62rem; }
  .cm-voice { min-width: 0; }
  .cm-head > span:last-child { font-size: 0.64rem; }
  .goal-tiles { gap: 5px; }
  .goal-tiles > span { padding: 6px 7px; }
}

/* Chips and badges never break inside; their rows wrap instead */
.goal-status, .quiz-opts span, .quiz-ans span, .supp-nm b, .cm-dur, .cm-speed, .nut-tile { white-space: nowrap; }
@media (max-width: 400px) {
  .chk-weight b { font-size: 1.3rem; }
}

/* Supplement exact timing */
.sp-when { display: inline-flex; align-items: center; gap: 4px; color: var(--c-500); font-size: 0.66rem; }
.sp-when svg { width: 11px; height: 11px; }

/* Desktop: exercise targets sit right of the name; phones keep them underneath */
@media (min-width: 561px) {
  .tp-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .tp-pills { grid-column: auto; flex-wrap: nowrap; justify-content: flex-end; }
}
