/* ============================================================
   omniOne: start page. Hero with the dashboard window and the
   client's phone, the scattered Check-in, the coaching cycle,
   the client rows, the privacy facts and the price card.
   ============================================================ */

/* ----------  Hero: the one centred block besides the closing call  ---------- */
.hero { padding: clamp(32px, 4.4vw, 64px) 0 clamp(36px, 5vw, 64px); text-align: center; }
.hero h1:where(:not(.app *)) {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--c-900);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0.04em 0.14em 0.06em 0.02em;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede {
  max-width: 660px;
  margin: 24px auto 0;
  color: var(--c-600);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.hero .hero-actions,
.hero .hero-proof { justify-content: center; }
.hero .hero-proof { margin-top: 22px; }

/* The coach's dashboard in its window, the client's phone in front of it. */
.stage {
  position: relative;
  margin-top: clamp(36px, 4.4vw, 56px);
  padding-right: clamp(0px, 9vw, 118px);
  text-align: left;
}
.stage .device { position: absolute; right: 0; bottom: -20px; width: 272px; }

/* ----------  Five places today, one page in omniOne  ---------- */
/* Five small pictures of other apps in a row, five lines that run together, the client's page. */
.scatter { display: grid; justify-items: center; margin-top: 44px; }
.places { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
.place { display: grid; justify-items: center; gap: 12px; margin: 0; padding-inline: clamp(4px, 1.2vw, 16px); }
.place figcaption { display: grid; justify-items: center; gap: 1px; color: var(--c-500); font-size: 0.8rem; line-height: 1.3; text-align: center; }
.place figcaption b { color: var(--c-900); font-size: 0.92rem; font-weight: 600; }
.p1 { transform: rotate(-3deg); }
.p2 { transform: translateY(12px) rotate(2deg); }
.p3 { transform: translateY(-2px) rotate(-1deg); }
.p4 { transform: translateY(14px) rotate(3deg); }
.p5 { transform: translateY(2px) rotate(-2deg); }
.place-pic {
  box-sizing: border-box;
  width: min(100%, 196px);
  aspect-ratio: 11 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  font-size: 0.66rem;
  line-height: 1.25;
  text-align: left;
}
.place-pic i { display: block; font-style: normal; }
/* A messenger: bubbles left and right. */
.pic-chat { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 10px; background: #e7ded3; color: #1f2937; }
.pic-chat .b { max-width: 88%; padding: 5px 8px; border-radius: 9px 9px 9px 3px; background: #fff; }
.pic-chat .out { align-self: flex-end; border-radius: 9px 9px 3px 9px; background: #c7ecb4; }
/* A photo gallery: tiles under the day they were taken. */
.pic-photos { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: auto 1.6fr auto 1fr; gap: 3px; padding: 6px 5px 5px; background: #10151d; color: #cbd5e1; }
.pic-photos .day { grid-column: 1 / -1; padding: 1px 2px; font-weight: 600; }
.pic-photos .ph { width: 100%; height: 100%; min-height: 0; border-radius: 3px; object-fit: cover; }
/* A spreadsheet: week and weight. */
.pic-sheet { display: grid; grid-template-columns: 18% 1fr 1fr; grid-auto-rows: 1fr; background: #cfd6de; gap: 1px; color: #1f2937; font-weight: 500; line-height: 1; }
.pic-sheet i { display: grid; place-items: center; background: #fff; }
.pic-sheet .hd { background: #e9f3ec; color: #2f6b47; font-weight: 700; }
.pic-sheet .sel { outline: 2px solid #1f8f4d; outline-offset: -2px; }
/* A note: a title and three lines. */
.pic-note { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: #fff3bf; color: #5c4a00; }
.pic-note b { margin-bottom: 2px; font-size: 0.78rem; font-weight: 700; line-height: 1.1; }
.pic-note i { padding-bottom: 5px; border-bottom: 1px solid #e3cf78; }
/* A document: a title and the rows of a plan. */
.pic-pdf { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 16px 14px 0; background: #fff; color: #334155; }
.pic-pdf em { position: absolute; top: 12px; right: 12px; padding: 2px 5px; border-radius: 4px; background: #dc2626; color: #fff; font-size: 0.625rem; font-style: normal; font-weight: 700; letter-spacing: 0.04em; }
.pic-pdf b { margin-bottom: 4px; color: #0f172a; font-size: 0.78rem; font-weight: 700; line-height: 1.1; }
.pic-pdf i { display: flex; justify-content: space-between; gap: 6px; padding-bottom: 5px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.pic-pdf u { color: #64748b; text-decoration: none; }
:root[data-theme="dark"] .place-pic { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow-card); }
/* The five lines; each starts under the middle of its picture. */
.merge { display: block; width: 100%; height: clamp(56px, 7vw, 92px); margin-top: 26px; overflow: visible; }
.merge path { fill: none; stroke: var(--c-300); stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.merge-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-block: -6px -22px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}
.scatter-card { width: min(100%, 640px); }

/* ----------  The cycle: a rail like the application's week rail  ---------- */
/* Two small points for what happens once, four numbered stations, the way back under them.
   Sizes and tints follow the week rail of the training plan (training-rhythm.css in the app). */
.cycle { margin-top: 44px; }
.cy-rail { position: relative; display: grid; grid-template-columns: 2fr 4fr; row-gap: 6px; }
.cy-rail::before {
  content: "";
  position: absolute;
  top: 21px;
  left: calc(100% / 12);
  right: calc(100% / 12);
  height: 2px;
  border-radius: 2px;
  background: var(--c-200);
}
.cy-pre { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 6px 0; margin: 0; padding: 0; list-style: none; }
.cy-pre li { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; }
.cy-pre i { width: 10px; height: 10px; margin-top: 17px; border-radius: 999px; background: var(--c-400); box-shadow: 0 0 0 6px var(--page-bg); }
.cy-pre b { color: var(--c-600); font-size: 0.86rem; font-weight: 600; line-height: 1.3; }
.cy-pre .cy-pre-note { grid-column: 1 / -1; color: var(--c-500); font-size: 0.78rem; }
.cy-stations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cy-st { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; padding-inline: 8px; text-align: center; }
.cy-st.t1 { --t: #0ea5e9; --t-bg: #e0f2fe; --t-ink: #0c4a6e; }
.cy-st.t2 { --t: #8b5cf6; --t-bg: #ede9fe; --t-ink: #5b21b6; }
.cy-st.t3 { --t: #f59e0b; --t-bg: #fef3c7; --t-ink: #92400e; }
.cy-st.t4 { --t: #0d9488; --t-bg: #ccfbf1; --t-ink: #115e59; }
.cy-n {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border: 2px solid var(--t);
  border-radius: 999px;
  background: var(--t-bg);
  box-shadow: 0 0 0 6px var(--page-bg);
  color: var(--t-ink);
  font-size: 1.05rem;
  font-weight: 700;
  transition: background 150ms ease, color 150ms ease;
}
.cy-st b { color: var(--c-900); font-size: 1rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.cy-st small { max-width: 20ch; color: var(--c-500); font-size: 0.8rem; line-height: 1.4; }
.cy-st:hover .cy-n,
.cy-st[aria-selected="true"] .cy-n { background: var(--t); color: #fff; }
.cy-st[aria-selected="true"] b { color: var(--t-ink); }
.cy-st:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; border-radius: 12px; }
/* The station that repeats carries the sign for it at its corner. */
.cy-rep { position: absolute; top: -17px; right: -17px; width: 32px; height: 32px; padding: 5px; border: 1.5px solid var(--t); border-radius: 999px; background: var(--surface); color: var(--t-ink); }
:root[data-theme="dark"] .cy-st { --t-bg: color-mix(in srgb, var(--t) 22%, transparent); --t-ink: var(--t); }
:root[data-theme="dark"] .cy-st[aria-selected="true"] .cy-n { color: #0b0f14; }
/* The way back runs under the stations, from the end date to the next Goal. */
.cy-back { position: relative; grid-column: 1 / -1; height: 50px; margin: 6px 0 0; }
.cy-back::before {
  content: "";
  position: absolute;
  inset: 0 calc(100% / 12) 14px calc(100% * 5 / 12);
  border: 2px dashed var(--c-300);
  border-top: 0;
  border-radius: 0 0 22px 22px;
}
.cy-back::after {
  content: "";
  position: absolute;
  top: -4px;
  left: calc(100% * 5 / 12 - 5px);
  border: 6px solid transparent;
  border-top: 0;
  border-bottom-color: var(--c-400);
}
.cy-back span {
  position: absolute;
  left: calc(100% * 8 / 12);
  bottom: 2px;
  padding: 2px 14px;
  background: var(--page-bg);
  color: var(--c-600);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  transform: translateX(-50%);
}
.cycle .tab-panel { margin-top: 22px; }

/* ----------  Client rows, privacy facts  ---------- */
#client .device { width: min(300px, 80vw); justify-self: center; }
.cl-rows { margin-top: 26px; }
.cl-rows .rw { padding-block: 14px; }
.cl-rows .m { color: var(--c-600); font-size: 0.93rem; line-height: 1.5; }

/* ----------  Price card: the only check list of the site  ---------- */
.price-card {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--frame);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.price-name { color: var(--c-500); font-weight: 600; }
.price-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; color: var(--c-600); }
.price-amount b {
  color: var(--c-900);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 3.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.price-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; color: var(--c-700); }
.price-list li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.45; }
.price-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--green-text); }
.price-card .btn { justify-self: start; }
.price-note { margin: 0; color: var(--c-500); font-size: 0.84rem; line-height: 1.5; }

@media (max-width: 720px) {
  .stage { padding-right: 0; }
  .stage .device { position: relative; right: auto; bottom: auto; width: 210px; margin: -120px auto 0; }
  /* The five places two in a row, so their words stay readable; the line of the last one runs down into the page. */
  .places { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 22px; }
  .place { grid-column: span 2; padding-inline: 6px; }
  .p5 { grid-column: 2 / span 2; }
  .merge { height: 46px; margin-top: 20px; }
  .merge path:not(:nth-child(3)) { display: none; }
  .cy-rail { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .cy-rail::before { display: none; }
  .cy-pre { grid-template-columns: auto auto; justify-content: start; gap: 4px 18px; }
  .cy-pre li { grid-auto-flow: column; justify-items: start; align-items: center; gap: 8px; text-align: left; }
  .cy-pre i { margin: 0; box-shadow: none; }
  .cy-stations { position: relative; grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cy-stations::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 21px; width: 2px; background: var(--c-200); }
  .cy-st { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; column-gap: 14px; padding: 0; text-align: left; }
  .cy-st .cy-n { grid-row: span 2; margin: 0; }
  .cy-st small { max-width: none; }
  .cy-back { height: auto; margin: 0; }
  .cy-back::before,
  .cy-back::after { display: none; }
  .cy-back span { position: static; display: block; padding: 0; background: none; white-space: normal; transform: none; }
  .price-card .btn { justify-self: stretch; }
}
@media (max-width: 560px) {
  .hero h1:where(:not(.app *)) { font-size: clamp(2.3rem, 11vw, 3rem); }
}
