/* Home page sections (2026-10-20 design). Shared colours, buttons, header, footer and the
   questionnaire form are in site.css. */

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 28px 64px; }
.hero .kick { font-size: clamp(20px, 2.1vw, 25px); font-weight: 500; color: var(--dim); max-width: 30ch; line-height: 1.4; }
.hero .kick strong { color: var(--ink); font-weight: 700; background: linear-gradient(transparent 62%, var(--soft-2) 62%); }
.hero h1 { font-size: clamp(44px, 5.8vw, 74px); font-weight: 800; letter-spacing: -0.02em; margin-top: 14px; }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 30px; }
.media { aspect-ratio: 4/5; border-radius: 36px; background: url("/assets/img/michael-gym.webp") center top / cover no-repeat, var(--deep); }

/* Section spacing that used to sit in style="" attributes: the security policy allows no inline
   styles (style-src 'self' in _headers, headers.test.mjs keeps the pages free of them). */
#how { padding-bottom: 20px; }
.sec.tight-top { padding-top: 20px; }
#reviews, #faq { padding-top: 0; }
.sec.soft { background: var(--soft); }
.row .go { margin-top: 22px; }
.spec-title { margin-top: 72px; }
.spec-title .h2 { font-size: clamp(26px, 3vw, 36px); }

/* feature rows */
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 44px; }
.row:nth-child(even) .vis { order: -1; }
/* a row with text only (no picture beside it) */
.row.solo { grid-template-columns: minmax(0, 1fr); text-align: center; }
.row.solo p { margin-inline: auto; }
/* the four questions, one per line */
.row .qlist { margin: 14px 0 0; padding-inline-start: 1.3em; color: var(--dim); font-size: 19px; display: grid; gap: 4px; }
.row .qlist li::marker { color: var(--ac-ink); font-weight: 700; }
.row h3 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.01em; }
.row p { color: var(--dim); margin-top: 14px; font-size: 19px; max-width: 44ch; }
.row .eb { font-size: 20px; font-weight: 700; color: var(--ac-ink); margin-bottom: 10px; display: block; }
.vis { background: var(--soft); border-radius: 36px; padding: clamp(22px, 3vw, 40px); min-height: 320px; display: grid; place-items: center; align-content: center; }
.phone { width: 100%; max-width: 300px; background: var(--deep); border-radius: 36px; padding: 10px; box-shadow: 0 30px 60px -30px rgba(22, 20, 43, 0.6); }
.scr { background: var(--scr-bg); color: var(--scr-ink); border-radius: 28px; overflow: hidden; }
.scr header { display: flex; gap: 10px; align-items: center; background: var(--scr-head); padding: 12px 14px; border-bottom: 1px solid var(--scr-line); }
.scr .av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(140deg, var(--ac-hi), var(--ac)); flex: none; }
.scr header b { display: block; font-size: 14px; line-height: 1.2; }
.scr header small { font-size: 12px; color: var(--scr-ok); }
.msgs { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px 8px; font-size: 14px; line-height: 1.45; }
.bub { max-width: 86%; padding: 9px 12px; border-radius: 16px; }
.me { align-self: flex-start; background: var(--scr-bubble); border-start-start-radius: 4px; box-shadow: 0 1px 0 var(--scr-line); }
.them { align-self: flex-end; background: var(--scr-them); border-start-end-radius: 4px; }
.vid { display: flex; align-items: center; gap: 10px; }
.vid i { width: 42px; height: 42px; border-radius: 12px; background: var(--scr-vid); color: var(--scr-vid-ink); display: grid; place-items: center; font-style: normal; flex: none; }
.ex { font-size: 11px; color: var(--scr-dim); text-align: center; padding: 2px 0 10px; }
.scr .ex { color: var(--scr-dim); }
.quizmini { width: 100%; max-width: 440px; display: grid; gap: 12px; }
.quizmini .q { background: var(--card); outline: 1px solid var(--edge); outline-offset: -1px; border-radius: 22px; padding: 14px 16px; box-shadow: 0 1px 0 var(--rule); }
.quizmini .q b { display: block; font-size: 15px; margin-bottom: 8px; }
.quizmini .chips span { padding: 6px 12px; font-size: 14px; }
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 420px; }
.places div { background: var(--card); outline: 1px solid var(--edge); outline-offset: -1px; border-radius: 22px; padding: 22px 12px; text-align: center; font-weight: 600; box-shadow: 0 1px 0 var(--rule); }
.places svg { display: block; width: 34px; height: 34px; margin: 0 auto 8px; color: var(--ac-ink); }
/* motion.js: on a 6-second loop the example quiz ticks its answers and the example chat shows its
   messages one by one, both hold, then clear together at 5.4s for the next round */
.wait .chips .on { background-color: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.wait .bub { opacity: 0; }
.play { animation: cycle 6s; }
.play .on { animation: tick 0.35s calc(var(--i) * 0.3s + 0.2s) backwards, untick 0.4s 5.4s forwards; }
.play .bub { animation: rise 0.4s calc(var(--i) * 0.9s + 0.2s) backwards, sink 0.4s 5.4s forwards; }
@keyframes cycle { to { visibility: visible; } }
@keyframes tick { from { background-color: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); scale: 0.9; } 60% { scale: 1.08; } }
@keyframes untick { to { background-color: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); } }
@keyframes rise { from { opacity: 0; translate: 0 10px; } }
@keyframes sink { to { opacity: 0; } }
.vis .stop, .rv-ctl button { margin-top: 14px; padding: 10px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--dim); box-shadow: inset 0 0 0 1.5px var(--field-line); font: 600 14px/1 var(--f); cursor: pointer; touch-action: manipulation; }
/* With scripts on, the stop buttons and the reviews arrows take their place from the first paint, so
   nothing jumps when motion.js and reviews.js arrive (no buttons for visitors who ask for less motion). */
@media (prefers-reduced-motion: no-preference) { .js .vis .stop[hidden] { display: inline-block; } }
.js .rv-ctl[hidden] { display: flex; }

/* stats */
.stats { background: var(--deep); color: var(--on-deep); border-radius: 40px; padding: clamp(36px, 5vw, 64px); --focus: #f6d44a; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
/* the stage photo beside the about text; it stays in view while the text is read */
.stats .pic { aspect-ratio: 4/5; border-radius: 32px; background: url("/assets/img/michael-stage.webp") center top / cover no-repeat, var(--soft); position: sticky; top: 32px; }
.stats .h2 { max-width: 20ch; }
/* about me, in Michael's own words, inside the dark box */
.about { margin-top: 36px; border-top: 2px solid var(--ac); padding-top: 24px; max-width: 66ch; }
.about h3 { font-size: clamp(24px, 2.6vw, 32px); color: var(--ac); }
.about p { color: var(--on-deep-dim); font-size: 18px; line-height: 1.6; margin-top: 10px; }
.stats .ctas { margin-top: 36px; display: flex; gap: 10px; flex-wrap: wrap; }
.stats .btn.g { color: var(--on-deep); }

/* reviews: a strip of client screenshots, edge to edge (reviews.js moves it and opens the full-size view) */
.vh { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#reviews .lead { text-wrap: balance; }
/* the controls come first for keyboards and screen readers (stop before nine screenshots) but show under the strip */
.rv { margin-top: 36px; --shot: #111b21; display: flex; flex-direction: column; }
.rv-ctl { order: 1; }
.rv-track { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding-block: 8px; scroll-padding-inline: 16px; }
.rv-track::-webkit-scrollbar { display: none; }
.rv-list { display: flex; gap: 16px; width: max-content; margin: 0; padding: 0 16px; list-style: none; }
.rv-list figure { margin: 0; position: relative; }
/* every card is the same height; tall screenshots show their top and fade, the full view has the rest */
.rv-card { display: grid; place-items: center; position: relative; width: 340px; height: 420px; padding: 0; border: 0; border-radius: 22px; overflow: hidden; background: var(--shot); box-shadow: 0 0 0 1px var(--edge); cursor: zoom-in; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.rv-card.wide { width: 460px; }
.rv-card.tall { place-items: start center; }
.rv-card.tall::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, var(--shot)); }
.rv-card img { display: block; width: 100%; height: auto; pointer-events: none; }
.rv-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.rv-ctl { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.rv-ctl button { min-height: 44px; min-width: 44px; }
.rv-ctl .rv-prev, .rv-ctl .rv-next { padding: 0; font-size: 20px; }
.rv-next-step { margin-top: 18px; color: var(--dim); }
.rv-dlg { width: min(720px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 18px; background: var(--shot); color: #e9edef; overflow: auto; overscroll-behavior: contain; }
.rv-dlg::backdrop { background: rgba(3, 8, 15, 0.82); }
.rv-dlg img { display: block; width: 100%; height: auto; }
.rv-bar { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 10px; background: linear-gradient(var(--shot) 40%, transparent); }
.rv-close { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: #fff; font: 600 15px/1 var(--f); cursor: pointer; }
.rv-close:focus-visible { outline: 3px solid #f6d44a; outline-offset: 2px; }
.rv-tr { padding: 16px 20px 24px; white-space: pre-line; font-size: 16px; line-height: 1.6; }

/* phases */
.phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.phase { border-radius: 28px; padding: 30px; box-shadow: inset 0 0 0 1.5px var(--rule); background: var(--card); }
.phase .n { display: inline-block; font-size: 44px; font-weight: 800; line-height: 1; color: var(--ac-ink); }
.phase h3 { font-size: 24px; margin-top: 14px; }
.phase p { color: var(--dim); margin-top: 10px; font-size: 17px; }

/* specialties */
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.pills span { background: var(--card); outline: 1px solid var(--edge); outline-offset: -1px; box-shadow: 0 1px 0 var(--rule); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 17px; }

/* pricing */
/* the two monthly plans side by side, the three one-time services under them */
.plans { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 44px; max-width: 1040px; margin-inline: auto; }
.plans .plan { grid-column: span 2; }
.plans .plan.monthly { grid-column: span 3; }
/* every card gold (Michael, 2026-10-29); text stays full strength: faded, it fell below 4.5:1 */
.plan { border-radius: 28px; padding: 26px 22px; display: flex; flex-direction: column; gap: 12px; background: var(--ac); color: var(--on-ac); --focus: #0a1a2f; }
.plan h3 { font-size: 21px; }
.plan .pr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: clamp(34px, 3.4vw, 42px); font-weight: 800; line-height: 1; }
.plan .pr small { font-size: 15px; font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15.5px; align-content: start; flex-grow: 1; }
.plan li { position: relative; padding-inline-start: 20px; }
.plan li::before { content: "✓"; content: "✓" / ""; position: absolute; inset-inline-start: 0; font-weight: 800; }
.plan .alt { font-size: 15px; }
/* the 10% deal on a plan: words carry the price comparison, the crossed-out price only repeats it */
.deal { display: grid; gap: 6px; justify-items: start; padding: 12px 14px; border-radius: 16px; font-size: 15px; background: rgba(10, 26, 47, 0.1); }
.deal p { margin: 0; }
.deal p span.num { font-weight: 800; }
.deal .off { padding: 3px 12px; border-radius: 999px; font-size: 15px; font-weight: 800; background: var(--on-ac); color: var(--ac); }
.deal .save { font-weight: 700; }
.plan .btn { width: 100%; padding: 14px; background: var(--on-ac); color: var(--ac); }
.plan .btn::after { content: none; }
/* light version: navy cards with the yellow button (Michael, 2026-10-29) */
:root[data-theme="light"] .plan { background: #133a6b; color: #ffffff; --focus: #f6d44a; }
:root[data-theme="light"] .plan .btn { background: var(--ac); color: var(--on-ac); }
:root[data-theme="light"] .deal { background: rgba(255, 255, 255, 0.12); }
:root[data-theme="light"] .deal .off { background: var(--ac); color: var(--on-ac); }
.fine { text-align: center; color: var(--dim); font-size: 15px; margin-top: 20px; }
/* how to cancel: the law wants this on the home page itself, together and prominent (s.14ט) */

/* faq */
.faq { max-width: 820px; margin: 40px auto 0; }
details { border-bottom: 1px solid var(--rule); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 4px; font-size: 19px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "⌄"; content: "⌄" / ""; color: var(--ac-ink); font-size: 22px; line-height: 1; transition: rotate 0.2s; }
details[open] summary::after { rotate: 180deg; }
details p { padding: 0 4px 22px; color: var(--dim); }

/* questionnaire section */
.contact { background: var(--soft); }
.ways { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.ways .btn:not(.p) { background: var(--card); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }

@media (max-width: 960px) {
  .hero, .row, .stats { grid-template-columns: minmax(0, 1fr); }
  .stats .pic { order: -1; position: static; width: min(100%, 420px); }
  .row:nth-child(even) .vis { order: 0; }
  .media { aspect-ratio: 16/11; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans .plan, .plans .plan.monthly { grid-column: auto; }
  .phases { grid-template-columns: minmax(0, 1fr); }
  .row { gap: 28px; padding-block: 28px; }
}
@media (max-width: 600px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .media { aspect-ratio: 4/5; }
  .vis { min-height: 0; }
  .places div { padding: 16px 6px; font-size: 15px; }
  .hero .ctas .btn.p { flex: 1 1 100%; }
  .rv-card { width: min(72vw, 340px); height: 340px; }
  .rv-card.wide { width: min(86vw, 460px); }
}

/* the questionnaire's phone and email, under one question: a little room between the two */
.reach { gap: 14px; }
.reach legend { margin-bottom: 6px; }
.reach .field label { font-weight: 500; }
