/* Guided manual-payment steps; component primitives and themes live in /assets/site.css. */
.funnel-progress ol { display: flex; padding: 0; margin: 0 0 var(--space-8); list-style: none; border-block: 1px solid var(--line); }
.funnel-progress li { flex: 1; min-inline-size: 0; margin: 0; }
.funnel-progress button { display: flex; align-items: center; gap: var(--space-2); justify-content: center; inline-size: 100%; min-block-size: 68px; padding: var(--space-2); background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: var(--text-sm); }
.funnel-progress button span { font-variant-numeric: tabular-nums; }
.funnel-progress [aria-current=step] { color: var(--primary); font-weight: 700; box-shadow: inset 0 -2px var(--primary); }
.funnel-progress button:disabled { opacity: .65; cursor: default; }
.funnel-page .card { margin-block: var(--space-6); padding: var(--space-8); }
.funnel-page .card > h2 { margin-block-start: 0; }
.funnel-page .who .btn { min-block-size: 48px; }
#signin-card { max-inline-size: 39rem; margin-inline: auto; }
#google-button { min-block-size: 48px; }
#google-wrap { margin-block: var(--space-6); }
#email-form .btn, .full-width { inline-size: 100%; margin-block-start: var(--space-6); }
.account-options { display: flex; align-items: flex-start; flex-direction: column; margin-block-start: var(--space-3); }
.text-button { color: var(--primary); background: transparent; border: 0; padding: var(--space-3) 0; min-block-size: 48px; min-inline-size: 48px; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; text-align: start; }
.password-control { display: flex; gap: var(--space-2); align-items: stretch; }
.password-control input { min-inline-size: 0; }
.signed-account { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding-block: var(--space-4); border-block-end: 1px solid var(--line); }
.signed-account bdi { min-inline-size: 0; overflow-wrap: anywhere; }
.funnel-page .plans { gap: var(--space-4); margin-block: var(--space-6); }
.funnel-page .plan { border-radius: var(--radius-md); padding: var(--space-6); }
.funnel-page .plan .price { font-size: 2rem; }
.funnel-page .energy-option { grid-column: 1 / -1; padding: var(--space-4) var(--space-6); }
.funnel-page .energy-option .price { font-size: var(--text-lg); }
.pay-sub { font-size: 1.05em; margin-block: var(--space-4) 0; }
#pay-online { margin-block: var(--space-4) var(--space-6); }
.pay-to, .amount-box { background: var(--surface2); padding: var(--space-6); border-radius: var(--radius-sm); margin-block: var(--space-6); }
.amount-box strong { display: block; font-size: var(--text-2xl); margin-block-end: var(--space-4); }
.copy-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-block-end: var(--space-4); }
.copy-line code { font: 600 var(--text-lg)/1.6 var(--font-body); direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; min-inline-size: 0; }
.btn.copy { min-block-size: 48px; font-size: var(--text-sm); }
.copied { color: var(--success); font-size: var(--text-sm); }
.preview { display: block; max-inline-size: 100%; max-block-size: 320px; inline-size: auto; margin-block: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-sm); object-fit: contain; }
.payer-details { margin-block: var(--space-6); padding-block-end: var(--space-6); }
.download-panel { display: flex; align-items: center; gap: var(--space-8); background: var(--lime); color: var(--charcoal); padding: var(--space-8); border-radius: var(--radius-md); margin-block: var(--space-8); --primary: #B6371C; --primary-deep: #922C17; --on-primary: #fff; }
.download-panel > img { flex: none; inline-size: 144px; block-size: 180px; }
.download-panel h2 { margin-block: 0 var(--space-4); }
.download-panel .note { color: #3B472B; margin-block: var(--space-4) 0; }
.empty-state { text-align: center; }
.empty-state img { margin-inline: auto; }
.requests { list-style: none; margin: 0; padding: 0; }
.request { border-block-start: 1px solid var(--line); padding-block: var(--space-6); }
.request-top { display: flex; justify-content: space-between; gap: var(--space-4); align-items: flex-start; flex-wrap: wrap; }
.chip { border-radius: var(--radius-sm); padding: var(--space-1) var(--space-3); font-size: var(--text-sm); font-weight: 700; }
.chip.pending { background: var(--surface2); }
.chip.approved { background: color-mix(in srgb,var(--success) 12%,var(--surface)); color: var(--success); }
.chip.rejected { background: color-mix(in srgb,var(--error) 12%,var(--surface)); color: var(--error); }
.requests .empty { color: var(--muted); padding-block: var(--space-4); }
.request .note { margin-block: var(--space-3); }
.request .detail { font-size: var(--text-sm); overflow-wrap: anywhere; }
.funnel-page input[type=file] { max-inline-size: 100%; min-inline-size: 0; }
@media(max-width:600px) {
  .funnel-page main { padding: var(--space-6) var(--space-4) var(--space-12); }
  .funnel-page .card { padding: var(--space-6); }
  .funnel-progress button { flex-direction: column; gap: 0; font-size: var(--text-xs); min-block-size: 68px; }
  .funnel-page .plans { grid-template-columns: 1fr; }
  .signed-account { align-items: flex-start; flex-direction: column; gap: 0; }
  .download-panel { flex-direction: column; text-align: center; padding: var(--space-6); gap: var(--space-3); }
  .download-panel > img { inline-size: 112px; block-size: 140px; }
  .download-panel .btn { inline-size: 100%; }
  .amount-box strong { font-size: var(--text-xl); }
}

.funnel-faq { margin-block: var(--space-8); }
.funnel-faq details { border-block-start: 1px solid var(--line); padding-block: var(--space-3); }
.funnel-faq summary { cursor: pointer; min-block-size: 48px; display: flex; align-items: center; }

/* /pay persuades first, then hands off to the existing account and transfer flow.
   Night stage (2026-11-07): this file keeps the /pay layout (hero grid, steps, plans, Salma, checkout hand-off);
   /assets/night.css owns the theme and the shared motion components, /assets/fx.js the behaviour. */
/* Night tokens, CTA shine, progress line and shared components: /assets/night.css (loaded before this file). */


.funnel-page main { max-inline-size: 70rem; }

/* Hero */
.sales-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-areas: "promise stage" "actions stage" "trust stage"; column-gap: var(--space-12); align-items: start; align-content: center; margin-block: 0 var(--space-8); padding-block: var(--space-12) var(--space-8); }
.sales-hero::before { content: ""; position: absolute; z-index: -1; inset: -8rem calc(50% - 50vw) -6rem; pointer-events: none; background: radial-gradient(36rem 26rem at 78% 40%, #F2542D40, transparent 70%), radial-gradient(30rem 24rem at 15% 25%, #D9EF7818, transparent 70%); animation: glow-drift 16s ease-in-out infinite alternate; }
[dir=rtl] .sales-hero::before { scale: -1 1; }
.sales-hero::after { content: ""; position: absolute; z-index: -1; inset-inline: calc(50% - 50vw); inset-block-end: -5rem; block-size: 22rem; pointer-events: none; background-image: linear-gradient(#ffffff0f 1px,transparent 1px), linear-gradient(90deg,#ffffff0f 1px,transparent 1px); background-size: 56px 56px; transform: perspective(420px) rotateX(62deg) translateY(-56px); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(to top,#000 0%,transparent 85%); mask-image: linear-gradient(to top,#000 0%,transparent 85%); animation: floor-run 2.4s linear infinite; }
.sales-promise { grid-area: promise; }
.sales-eyebrow { display: flex; inline-size: fit-content; align-items: center; gap: var(--space-2); margin: 0 0 var(--space-6); padding: var(--space-1) var(--space-4); border: 1px solid #D9EF7840; border-radius: 999px; background: #D9EF7810; color: var(--lime); font-size: var(--text-sm); font-weight: 700; }
.sales-eyebrow i { inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 #D9EF7899; animation: ping 2s infinite; }
.sales-promise h1 { position: relative; display: inline-block; font-size: clamp(2.75rem,6vw,5.25rem); font-weight: 900; line-height: 1.12; margin: 0 0 var(--space-6); color: var(--chalk); }
.sales-promise h1:lang(ar) { line-height: 1.32; }
.sales-promise h1::after { content: ""; position: absolute; inset-inline-end: 0; inset-block-end: .02em; inline-size: 42%; block-size: .1em; border-radius: .1em; background: linear-gradient(90deg,var(--lime),var(--hot)); transform-origin: right; animation: underline 1s .9s var(--ease-out) both; }
[dir=rtl] .sales-promise h1::after { transform-origin: left; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .sales-promise h1 { background: linear-gradient(100deg,var(--chalk) 0 40%,var(--lime) 47%,#fff 50%,var(--hot) 53%,var(--chalk) 60% 100%); background-size: 280% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s 1.6s ease-in-out infinite; }
}
.sales-promise > p:not(.sales-eyebrow) { color: var(--muted); font-size: var(--text-lg); line-height: 1.8; margin: 0 0 var(--space-8); max-inline-size: 42ch; }
/* 2026-11-28: the hero's text and buttons have no entrance animation and no delay: they are complete in the first paint. */
#hero-actions { grid-area: actions; min-inline-size: 0; }
#hero-actions .btn { inline-size: 100%; max-inline-size: 26rem; min-block-size: 64px; font-size: var(--text-lg); border-radius: 1rem; }
#hero-subscribe { animation: cta-breathe 3.2s 2s ease-in-out infinite; }
.price-anchor { font-size: var(--text-sm); line-height: 1.8; margin-block: var(--space-3) 0; }
.price-anchor strong { font-weight: 700; color: var(--lime); }
/* Proof line (2026-12-02): one short line under the price anchor, before the app link. Centred, muted, icon in lime. */
.hero-proof { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-block: var(--space-1) 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.6; text-align: center; }
.hero-proof svg { flex: none; color: var(--lime); }
.sales-trust { grid-area: trust; display: flex; flex-wrap: wrap; gap: var(--space-2); padding: 0; margin: var(--space-6) 0 0; list-style: none; font-size: var(--text-xs); color: var(--muted); }
.sales-trust li { display: inline-flex; align-items: center; gap: var(--space-2); min-block-size: 44px; margin: 0; padding-inline: var(--space-3); border: 1px solid var(--edge); border-radius: 999px; background: #ffffff06; }
.sales-trust svg { color: var(--lime); flex: none; }
.sales-trust a { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--ink); }

.sales-stage { grid-area: stage; }

/* Sections */
.sales-section { padding-block: var(--space-16); border: 0; }
.sales-section h2, .funnel-faq h2 { font-size: clamp(2rem,4.4vw,3.25rem); font-weight: 900; line-height: 1.2; margin-block: 0 var(--space-8); }
.sales-section h2:lang(ar), .funnel-faq h2:lang(ar) { line-height: 1.4; }

.sales-benefits h3, .sales-start h3 { font-size: var(--text-xl); margin: 0 0 var(--space-2); }
.sales-benefits p, .sales-start p { color: var(--muted); margin: 0; }

/* Comparison (2026-12-02): guessing vs a personal trainer vs Tafra, right after the benefits. The Tafra column is tinted with the
   existing lime token; yes/no are tick/cross SVGs that each carry a visually hidden word. Phones keep it on one screen (no scroll). */
.visually-hidden { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sales-compare { max-inline-size: 52rem; margin-inline: auto; }
.compare-table { inline-size: 100%; min-inline-size: 0; table-layout: fixed; border-collapse: collapse; font-size: var(--text-sm); } /* a site-wide table minimum (560 px) pushed the Tafra column off a phone screen */
.compare-table th, .compare-table td { padding: var(--space-3) var(--space-2); border-block-end: 1px solid var(--line); text-align: center; vertical-align: middle; }
.compare-table thead th { color: var(--muted); font-size: var(--text-xs); font-weight: 700; }
.compare-table tbody th { min-inline-size: 7.5rem; text-align: start; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.compare-table td, .compare-table thead th:not(:first-child) { min-inline-size: 4rem; overflow-wrap: anywhere; }
.compare-table thead th:first-child { inline-size: 7.5rem; }
.compare-table .compare-tafra { background: color-mix(in srgb, var(--lime) 9%, transparent); border-inline: 1px solid color-mix(in srgb, var(--lime) 40%, transparent); }
.compare-table thead .compare-tafra { color: var(--lime); border-block-start: 1px solid color-mix(in srgb, var(--lime) 40%, transparent); }
.compare-table tbody tr:last-child .compare-tafra { border-block-end: 1px solid color-mix(in srgb, var(--lime) 40%, transparent); }
.compare-table svg { vertical-align: middle; }
.compare-yes { color: var(--lime); }
.compare-no { color: var(--muted); }
@media (max-width: 600px) {
  .compare-table th, .compare-table td { padding: var(--space-2) 2px; }
  .compare-table tbody th { min-inline-size: 6.5rem; }
  .compare-table td, .compare-table thead th:not(:first-child) { min-inline-size: 3rem; }
  .compare-table thead th:first-child { inline-size: 6.5rem; }
}

/* Start steps: badges pop along a drawn line */
.sales-start { position: relative; display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-6); list-style: none; padding: 0; margin: 0; }
.sales-start::before { content: ""; position: absolute; z-index: 0; inset-block-start: 27px; inset-inline-start: 28px; inline-size: calc((100% - 3rem) * 2 / 3 + 3rem); block-size: 2px; background: repeating-linear-gradient(90deg,var(--lime) 0 10px,transparent 10px 18px); transform-origin: left; transition: scale 1.4s .3s var(--ease-out); }
[dir=rtl] .sales-start::before { transform-origin: right; }
.fx .sales-start:not(.in)::before { scale: 0 1; }
.sales-start li { position: relative; z-index: 1; margin: 0; min-inline-size: 0; }
.sales-start li > span { display: grid; place-items: center; inline-size: 56px; block-size: 56px; margin-block-end: var(--space-4); border-radius: 50%; background: radial-gradient(circle at 35% 30%,#F0FBB8,var(--lime) 60%); color: #1d2610; font-size: var(--text-xl); font-weight: 900; box-shadow: 0 0 0 6px var(--bg), 0 0 30px #D9EF7855; transition: scale .6s cubic-bezier(.34,1.56,.64,1) calc(var(--i) * .35s + .4s), opacity .4s calc(var(--i) * .35s + .4s); }
.fx .sales-start:not(.in) li > span { scale: .3; opacity: 0; }
.sales-start p { font-size: var(--text-sm); }

/* Plans */
.sales-pricing > p { color: var(--muted); }
.sales-plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-block: var(--space-12) var(--space-6); align-items: stretch; }
.sales-plan { position: relative; display: flex; flex-direction: column; min-inline-size: 0; padding: var(--space-8); border-radius: 1.75rem; background: var(--card); border: 1px solid var(--edge); }
.sales-yearly { border: 2px solid transparent; background: linear-gradient(180deg,#1F3D31,#122820) padding-box, conic-gradient(from var(--ang),var(--lime),var(--hot),#27614E,var(--lime)) border-box; color: var(--chalk); box-shadow: 0 40px 90px -40px #D9EF7870; animation: ang-spin 6s linear infinite; --cta-a: #EEF8B4; --cta-b: var(--lime); --cta-ink: #1d2610; --cta-glow: #D9EF78; }
.sales-ribbon { position: absolute; inset-block-start: -16px; inset-inline-end: var(--space-6); margin: 0; padding: 4px 14px; border-radius: 999px; background: linear-gradient(135deg,var(--cta-a),var(--hot)); color: #1B0F0A; font-size: var(--text-xs); font-weight: 800; box-shadow: 0 10px 24px -8px #FF6B3D99; animation: ribbon 2.6s ease-in-out infinite; }
.sales-plan-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); }
.sales-plan h3 { margin: 0; font-size: var(--text-xl); }
.sales-yearly .pill { background: var(--lime); color: #1d2610; }
.sales-price { margin-block: var(--space-6) var(--space-2); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.sales-price strong { margin-inline-end: var(--space-2); font-size: clamp(3rem,6vw,4rem); font-weight: 900; line-height: 1.15; }
.sales-saving { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.sales-yearly .sales-saving { color: var(--lime); font-weight: 700; }
.sales-plan ul { list-style: none; margin-block: var(--space-6) var(--space-8); padding: 0; font-size: var(--text-sm); }
.sales-plan li { display: flex; align-items: flex-start; gap: var(--space-3); margin-block: var(--space-3); transition: opacity .5s var(--ease-out) calc(var(--j) * 90ms + .45s), translate .5s var(--ease-out) calc(var(--j) * 90ms + .45s); }
.sales-plan li svg { flex: none; margin-block-start: .3em; color: var(--lime); }
.fx .sales-plan:not(.in) li { opacity: 0; translate: calc(var(--dir) * -14px) 0; }
.sales-plan .btn { inline-size: 100%; margin-block-start: auto; min-block-size: 58px; border-radius: 1rem; }


/* Her mode */
.sales-salma { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); margin-block: var(--space-8); padding: var(--space-8); border-radius: 2rem; background: linear-gradient(120deg,#36202B,#181316 55%,#2A1A12); border: 1px solid var(--edge); overflow: hidden; }
.sales-salma::before { content: ""; position: absolute; z-index: -1; inset: -30%; background: radial-gradient(circle at 70% 50%,#FF8FB144,transparent 45%), radial-gradient(circle at 30% 60%,#F2542D2e,transparent 45%); animation: glow-drift 12s ease-in-out infinite alternate; }
.sales-salma h2 { margin-block: 0 var(--space-3); font-size: clamp(1.5rem,3vw,2.25rem); font-weight: 900; }
.sales-salma p { margin: 0; color: var(--muted); }
.sales-salma .salma-toggle { display: inline-flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-4); padding: 4px 12px; border-radius: 999px; background: #ffffff10; color: var(--ink); font-size: var(--text-xs); font-weight: 700; }
.salma-toggle i { position: relative; inline-size: 44px; block-size: 24px; border-radius: 24px; background: #ffffff24; }
.salma-toggle i::after { content: ""; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; inline-size: 18px; block-size: 18px; border-radius: 50%; background: #FF8FB1; translate: calc(var(--dir) * 20px) 0; animation: knob 7s ease-in-out infinite; }
.salma-art { position: relative; flex: none; inline-size: 140px; block-size: 175px; }
.salma-art img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; }
.coach-sami { opacity: 0; animation: coach-a 7s ease-in-out infinite; }
.coach-salma { animation: coach-b 7s ease-in-out infinite; }

/* FAQ, checkout hand-off and the guided steps on the night stage */
.funnel-faq { padding-block: var(--space-12); margin: 0; }
.pay-night .funnel-faq details { margin-block: var(--space-3); padding: 0 var(--space-6); border: 1px solid var(--edge); border-radius: 1rem; background: #ffffff05; transition: background .3s, border-color .3s; }
.pay-night .funnel-faq details[open] { background: #ffffff0a; border-color: #D9EF7838; }
.funnel-faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-block-size: 60px; font-weight: 700; cursor: pointer; list-style: none; }
.funnel-faq summary::-webkit-details-marker { display: none; }
.funnel-faq summary::after { content: "+"; flex: none; color: var(--lime); font-size: 1.5rem; font-weight: 400; line-height: 1; transition: rotate .3s var(--ease-out); }
.funnel-faq details[open] > summary::after { rotate: 45deg; }
.funnel-faq p { color: var(--muted); max-inline-size: 70ch; }
.pay-night .funnel-faq details > :last-child { margin-block-end: var(--space-4); }
@supports selector(::details-content) {
  .funnel-faq { interpolate-size: allow-keywords; }
  .funnel-faq details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
  .funnel-faq details[open]::details-content { block-size: auto; }
}
.faq-contact { margin-block-start: var(--space-8); padding: var(--space-6); border: 1px solid var(--edge); border-radius: 1.25rem; background: linear-gradient(135deg,#1C2A22,#121A15); }
.faq-contact p { margin-block: 0 var(--space-3); font-weight: 700; color: var(--ink); }
.transfer-help { display: flex; align-items: center; min-block-size: 48px; color: var(--muted); margin-block: var(--space-2); }
.checkout-intro { position: relative; padding-block: var(--space-16) var(--space-6); border-block-start: 1px solid var(--edge); text-align: center; }
.checkout-intro::before { content: ""; position: absolute; z-index: -1; inset: 0 10%; background: radial-gradient(50% 60% at 50% 30%,#F2542D33,transparent 70%); }
.checkout-intro h2 { margin: 0; font-size: clamp(2.5rem,6vw,4.5rem); font-weight: 900; }
.checkout-intro p { color: var(--muted); margin-block: var(--space-3) 0; }
.pay-night #checkout { position: relative; isolation: isolate; }
.pay-night .card { border-color: var(--edge); border-radius: 1.5rem; }
#checkout { scroll-margin-block-start: var(--space-4); }
#signin-card { scroll-margin-block-start: var(--space-4); }
.pay-sticky { display: none; }

@media(max-width:860px) {
  .sales-benefits, .sales-plans { grid-template-columns: 1fr; }
}
@media(max-width:600px) {
  /* Low-end phones: keep the transform/opacity motion, drop the paint-heavy loops. */
  .sales-promise h1 { animation: none; }
  .sales-yearly { animation: none; }
  .sales-hero::after { display: none; }
  .funnel-page main { padding-block-start: var(--space-2); }
  .sales-hero { grid-template-columns: minmax(0,1fr) 148px; grid-template-areas: "promise promise" "actions stage" "trust trust"; column-gap: var(--space-3); padding-block: var(--space-6) 0; margin-block-end: 0; }
  .sales-eyebrow { margin-block-end: var(--space-4); font-size: var(--text-xs); }
  .sales-promise h1 { font-size: 2.5rem; margin-block-end: var(--space-4); }
  .sales-promise > p:not(.sales-eyebrow) { font-size: var(--text-sm); margin-block-end: var(--space-6); }
  #hero-actions { align-self: center; }
  #hero-actions .btn { min-block-size: 56px; font-size: var(--text-base); padding-inline: var(--space-2); }
  .price-anchor { font-size: var(--text-xs); }
  .hero-proof { font-size: var(--text-xs); }
  .sales-stage { min-block-size: 290px; padding: var(--space-4) 4px 40px; border-radius: 1.25rem; }
  .sales-trust { margin-block-start: var(--space-4); }
  .sales-trust li { padding-inline: var(--space-2); }
  .sales-section { padding-block: var(--space-12); }
  .sales-section h2 { margin-block-end: var(--space-6); }
  .sales-start { grid-template-columns: 1fr; gap: var(--space-6); }
  .sales-start::before { inset-block: 28px; inset-inline-start: 27px; inline-size: 2px; block-size: auto; background: repeating-linear-gradient(180deg,var(--lime) 0 10px,transparent 10px 18px); transform-origin: top; }
  .fx .sales-start:not(.in)::before { scale: 1 0; }
  .sales-start li { display: flex; gap: var(--space-4); }
  .sales-start li > span { flex: none; margin: 0; }
  .sales-plans { gap: var(--space-8); margin-block-start: var(--space-8); }
  .sales-plan { padding: var(--space-6); }
  .sales-salma { gap: var(--space-3); padding: var(--space-6); align-items: flex-start; }
  .salma-art { inline-size: 88px; block-size: 110px; }
  .sales-salma p { font-size: var(--text-sm); }
  .checkout-intro { padding-block-start: var(--space-12); }
  .pay-sticky { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); position: fixed; z-index: 20; inset-inline: 0; inset-block-end: 0; padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom,0px)); background: #0E1411f5; border-block-start: 1px solid var(--edge); box-shadow: 0 -10px 30px #0008; }
  .pay-sticky > span { font-size: var(--text-xs); max-inline-size: 46%; }
  .pay-sticky .btn { min-block-size: 48px; font-size: var(--text-sm); padding-inline: var(--space-3); }
  /* The measurement prompt owns this space until it is dismissed. */
  body:has(#ad-consent:not([hidden])) .pay-sticky { display: none; }
  /* Fallback for browsers without :has() (Chrome < 105, iOS < 15.4): track.js toggles this on <html>. */
  .consent-open .pay-sticky { display: none; }
}


/* geo.js sets data-pay-returning before first paint (an email one-step link). The page has one offer since 2026-11-08, so
   nothing waits on data-pay-offer any more: the hero headline, lead, button and price are never masked (2026-11-28). */
html[data-pay-returning="pending"] :is(#sales-hero,#sales-sections,#sales-faq,#signin-card,.funnel-progress) { display: none !important; }
html[data-pay-returning="pending"] #returning-loading { display: block !important; }

.sticky-actions { display: flex; align-items: center; gap: var(--space-3); }
.sticky-actions .text-button { font-size: var(--text-sm); min-block-size: 44px; min-inline-size: 44px; padding: var(--space-2); line-height: 1.5; text-align: center; }
@media(max-width:600px) {
  .sticky-actions { flex: 1; min-inline-size: 0; gap: var(--space-2); }
  .sticky-actions .btn { flex: 1; }
  .sticky-actions .text-button { flex: 1; }
}

/* Returning payers: running-trial status and plan notices come before the plan picker. */
#plan-notice.callout, .trial-banner { padding: var(--space-4) var(--space-6); border: 1px solid var(--line); border-inline-start: 4px solid var(--primary); border-radius: var(--radius-sm); background: var(--surface2); color: var(--ink); font-size: var(--text-base, 1rem); font-weight: 700; line-height: 1.8; }
/* Sign-in card: what the visitor is about to buy (filled by pay.js from the selected plan). */
.signin-plan { margin-block: var(--space-4); padding: var(--space-3) var(--space-4); border-inline-start: 4px solid var(--primary); border-radius: var(--radius-sm); background: var(--surface2); }
.signin-plan .plan-line { margin: 0; font-weight: 700; color: var(--ink); }
.signin-plan .note { margin: var(--space-1) 0 0; font-size: var(--text-sm, .875rem); }
/* Pay screen top: the selected plan (name and price, per-plan sub text) and the "Change plan" toggle for the collapsed list. */
.pay-summary { margin-block: var(--space-4); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface2); }
.summary-main { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.summary-name { font-size: var(--text-lg); }
.summary-price { font-size: 1.6rem; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.summary-sub { color: var(--muted); font-size: var(--text-sm); }
.summary-foot .text-button { padding-block: var(--space-1); min-block-size: 44px; flex: none; }
/* Tafra Plus 3 months suggestion (pay.js renderNudge): one compact row under the summary foot, text then button, wrapping to two lines when narrow. */
.summary-upsell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); margin-block-start: var(--space-2); padding-block-start: var(--space-2); border-block-start: 1px solid var(--line); }
.summary-upsell[hidden] { display: none; }
.summary-upsell .upsell-go:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.summary-upsell .upsell-text { flex: 1 1 14rem; color: var(--chalk); font-size: var(--text-sm); line-height: 1.6; }
.summary-upsell .upsell-go { flex: 0 1 auto; min-block-size: 44px; padding-inline: var(--space-4); border: 0; border-radius: .75rem; background: var(--lime); color: #1d2610; font: inherit; font-size: var(--text-sm); font-weight: 900; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.funnel-page .plans[hidden] { display: none; }
#use-transfer, #use-online { display: block; margin-block: var(--space-2) 0; text-align: start; }
/* Pay screen: the prepaid line and the refund link sit right under the pay / transfer button. */
.pay-reassure { margin-block-start: var(--space-4); }
.pay-reassure .note { margin-block: 0 var(--space-2); }
.funnel-faq ol { color: var(--muted); max-inline-size: 70ch; padding-inline-start: 1.4rem; margin-block: 0 var(--space-3); }
#account-pay-now { display: block; }

/* Kelviq billing outside Egypt (pay.js enterKelviq; the rules at the end of this file gate it with html[data-kelviq]). Reuses .plans / .plan. */
.kelviq-plan { display: flex; flex-direction: column; gap: var(--space-2); cursor: default; }
.kelviq-plan .price { font-size: var(--text-lg, 1.25rem); font-weight: 700; }
.kelviq-plan .sub { color: var(--muted); font-size: var(--text-sm); }
.kelviq-plan .btn { margin-block-start: auto; }
.kelviq-success { border-color: var(--primary); margin-block-end: var(--space-6); }
/* Kelviq website billing outside Egypt (geo.js sets data-kelviq on /pay only). The Egypt funnel stays hidden (data-pay off); the sign-in card and the Kelviq step show. */
html:not([data-kelviq="on"]) [data-kelviq-only] { display: none !important; }
html[data-kelviq="on"] [data-store-only] { display: none !important; }
html[data-kelviq="on"] #pay-content[data-pay-only] { display: block !important; }
html[data-kelviq="on"] :is(#sales-hero, #sales-sections, #sales-faq, #unavailable, #page-status, #retry-info, #step-pay, #step-proof, #step-done, #history-card, #download-panel, #access-now, #plan-notice, #signin-plan, #returning-loading, .funnel-progress, .checkout-trust, .checkout-secure) { display: none !important; }
/* Kelviq Plus trial choice (2026-11-13b): terms under the trial button, "Pay now instead" as a quiet text button, the Google Play trial line stays secondary. */
.kelviq-plan .trial-terms { margin: 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.5; }
.kelviq-plan .pay-now { align-self: center; margin-block-start: 0; font-size: var(--text-sm); }
.play-trial-note { color: var(--muted); font-size: var(--text-sm); margin-block: var(--space-3) 0; }

/* Sign-in card, email first (2026-11-28): chip, heading, the email field and its button, then "or" with Sign in with Apple and Google
   (inside in-app browsers the note stands in Google's place), the two text links, and the account hint as small print at the bottom.
   pay.js shows one thing at a time (signinView): the code step and the password step hide the rest and leave one way back. */
.signin-alt { display: flex; flex-direction: column; margin-block-start: var(--space-4); }
/* One "or" line, drawn above whichever of Apple / Google / the placeholder / the in-app note is showing, and not at all when none is
   (it sits last in the markup so a sibling selector can see them; /checkout/checkout.css hides #apple-divider by default). */
#signin-card :is(#apple-wrap, #google-wrap, #google-loading, #google-inapp-note):not([hidden]) ~ #apple-divider { display: flex; order: -1; margin-block: 0 var(--space-3); }
#signin-card #google-wrap { margin-block: var(--space-2); }
#signin-card .google-loading { margin-block: var(--space-2); }
#signin-card #google-inapp-note { margin-block: var(--space-2); font-size: var(--text-sm); }
#signin-card .apple-btn { margin-block: var(--space-2); }
#account-hint { margin-block: var(--space-3) 0; font-size: var(--text-sm); line-height: 1.7; }
#email-form label, #signin-form label { display: block; }
#signin-form .btn, #code-form .btn.full-width { margin-block-start: var(--space-4); }
/* Code step: the address the code went to, with the way back to the email step. */
.code-sent { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); margin-block: var(--space-2) var(--space-3); color: var(--ink); line-height: 1.6; }
.code-sent bdi { min-inline-size: 0; font-weight: 700; overflow-wrap: anywhere; }
.code-sent .text-button { min-block-size: 44px; padding-block: var(--space-1); }
#code-resend, #password-back { display: block; margin-block-start: var(--space-2); }
#code-resend:disabled { color: var(--muted); text-decoration: none; cursor: default; }
#code-hint:empty { display: none; }
/* Sign-in card: Google's button is loaded late (pay.js wantGoogle); while its script loads, a placeholder of the button's size holds the place. */
.google-loading { display: flex; align-items: center; justify-content: center; box-sizing: border-box; inline-size: min(100%, 280px); min-block-size: 44px; margin-block: var(--space-6) var(--space-2); padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: var(--text-sm); background: linear-gradient(90deg,#ffffff08 25%,#ffffff1c 50%,#ffffff08 75%); background-size: 200% 100%; animation: google-wait 1.4s linear infinite; }
.google-loading[hidden] { display: none; }
@keyframes google-wait { to { background-position: -200% 0; } }
/* iPhone / iPad only (pay.js): one line under the pay button. */
.apple-pay-note { margin-block: var(--space-2) 0; text-align: center; font-size: var(--text-sm); }
.apple-pay-note[hidden] { display: none; }

/* ---------- Checkout sheet (2026-11-28) ----------
   Every subscribe button opens the checkout where the visitor is. pay.js sets <html data-pay-sheet="open"> and the #checkout
   section ITSELF (no copy, nothing moved) is shown as a bottom sheet over a dimmed page on phones, or as a centred dialog from
   760px up. Without the attribute it sits in the page flow at the bottom as before, so the plain #signin-card anchors still
   reach it without JS. Never set in Kelviq mode or the store-only view. --sheet-kb is the on-screen keyboard's height when
   the keyboard covers the page instead of resizing it (pay.js, from visualViewport). */
.sheet-backdrop, .sheet-plan, .sheet-guarantee, .sheet-close { display: none; }
html[data-pay-sheet="open"], html[data-pay-sheet="open"] body { overflow: hidden; }
html[data-pay-sheet="open"] { scrollbar-gutter: stable; }
html[data-pay-sheet="open"] .sheet-backdrop { display: block; position: fixed; z-index: 50; inset: 0; background: #040705cc; touch-action: none; animation: sheet-fade .2s ease-out both; }
html[data-pay-sheet="open"] #checkout { position: fixed; z-index: 51; inset: auto 0 var(--sheet-kb, 0px) 0; box-sizing: border-box; max-block-size: 92vh; max-block-size: min(92dvh, calc(100dvh - var(--sheet-kb, 0px) - 12px)); margin: 0; padding: 0 max(var(--space-4), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) calc(var(--space-6) + env(safe-area-inset-bottom, 0px)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scroll-padding-block: 7.5rem var(--space-4); border: 1px solid var(--edge); border-block-end: 0; border-radius: 1.5rem 1.5rem 0 0; background: #0E1411; box-shadow: 0 -24px 60px #000c; animation: sheet-up .28s var(--ease-out) both; }
/* Grabber: says "this is a sheet"; the close button, the dimmed page, Escape and the Back button close it. */
html[data-pay-sheet="open"] #checkout::before { content: ""; display: block; inline-size: 40px; block-size: 4px; margin: 8px auto 0; border-radius: 4px; background: #ffffff38; }
/* Compact header: title and close button, then the chosen plan and the guarantee. It stays in view while the sheet scrolls. */
html[data-pay-sheet="open"] .checkout-intro { position: sticky; z-index: 3; inset-block-start: 0; display: grid; grid-template-columns: minmax(0,1fr) 44px; align-items: center; column-gap: var(--space-3); row-gap: 2px; margin-inline: calc(var(--space-4) * -1); padding: var(--space-2) var(--space-4) var(--space-3); border: 0; border-block-end: 1px solid var(--edge); background: #0E1411; text-align: start; }
html[data-pay-sheet="open"] .checkout-intro::before, html[data-pay-sheet="open"] .checkout-lead { display: none; }
html[data-pay-sheet="open"] .checkout-intro h2 { grid-area: 1 / 1; margin: 0; font-size: 1.25rem; line-height: 1.6; }
html[data-pay-sheet="open"] .sheet-close { grid-area: 1 / 2; display: grid; place-items: center; box-sizing: border-box; inline-size: 44px; block-size: 44px; padding: 0; border: 1px solid var(--edge); border-radius: 50%; background: #ffffff0d; color: var(--chalk); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html[data-pay-sheet="open"] .sheet-close:hover { background: #ffffff1a; }
html[data-pay-sheet="open"] .sheet-close:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
html[data-pay-sheet="open"] .sheet-plan { display: block; grid-column: 1 / -1; margin: 0; color: var(--lime); font-size: var(--text-base, 1rem); font-weight: 800; line-height: 1.6; }
html[data-pay-sheet="open"] .sheet-plan[hidden] { display: none; }
html[data-pay-sheet="open"] .sheet-guarantee { display: flex; align-items: center; gap: 6px; grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: var(--text-xs); line-height: 1.6; }
html[data-pay-sheet="open"] .sheet-guarantee svg { flex: none; color: var(--lime); }
/* Inside the sheet everything is tighter: the header already names the plan, so the card's own plan box is not repeated. */
html[data-pay-sheet="open"] .funnel-progress ol { margin-block: var(--space-3) 0; }
html[data-pay-sheet="open"] .funnel-progress button { flex-direction: row; gap: 6px; min-block-size: 48px; padding: var(--space-1); font-size: var(--text-xs); }
html[data-pay-sheet="open"] .funnel-progress button span { inline-size: 26px; block-size: 26px; font-size: .75rem; box-shadow: none; animation: none; }
html[data-pay-sheet="open"] #checkout .card { margin-block: var(--space-3); padding: var(--space-4); }
html[data-pay-sheet="open"] #checkout .card > h2 { font-size: 1.35rem; line-height: 1.5; }
/* Step headings take focus by script only (tabindex -1, for screen readers); in the sheet they show no ring. */
html[data-pay-sheet="open"] #checkout h2[tabindex="-1"]:focus { outline: none; }
html[data-pay-sheet="open"] #signin-card { max-inline-size: none; }
html[data-pay-sheet="open"] #signin-plan { display: none; }
html[data-pay-sheet="open"] #email-form .btn, html[data-pay-sheet="open"] #checkout .full-width { margin-block-start: var(--space-4); }
html[data-pay-sheet="open"] .checkout-trust { margin-block-start: var(--space-4); }
/* The sheet owns the screen: the sticky bar and the help pill wait behind it (the consent bar sits under the dimmed page). */
html[data-pay-sheet="open"] :is(.pay-sticky, .ask-pill) { display: none !important; }
@media (max-width: 759.98px) {
  /* Phones, account step: no steps row (the header already says what is being bought), so the email field is near the top of the sheet.
     The row is back on the pay and proof steps; the desktop dialog keeps it throughout. */
  html[data-pay-sheet="open"] #checkout[data-step="account"] .funnel-progress { display: none; }
}
@media (max-height: 560px) {
  /* A short screen (keyboard open on a browser that resizes the page): the header scrolls away with the content. */
  html[data-pay-sheet="open"] .checkout-intro { position: static; }
  html[data-pay-sheet="open"] #checkout { scroll-padding-block-start: var(--space-4); }
}
@media (min-width: 760px) {
  html[data-pay-sheet="open"] #checkout { inset: 0 0 var(--sheet-kb, 0px) 0; margin: auto; inline-size: min(40rem, calc(100vw - 2rem)); block-size: fit-content; max-block-size: min(92vh, 56rem); max-block-size: min(92dvh, 56rem, calc(100dvh - var(--sheet-kb, 0px) - 12px)); padding: 0 var(--space-6) var(--space-6); border-block-end: 1px solid var(--edge); border-radius: 1.5rem; box-shadow: 0 40px 100px #000d; animation-name: sheet-pop; }
  html[data-pay-sheet="open"] #checkout::before { display: none; }
  html[data-pay-sheet="open"] .checkout-intro { margin-inline: calc(var(--space-6) * -1); padding: var(--space-4) var(--space-6) var(--space-3); border-radius: 1.5rem 1.5rem 0 0; }
}
@keyframes sheet-up { from { translate: 0 100%; } }
@keyframes sheet-pop { from { opacity: 0; scale: .97; } }
@keyframes sheet-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html[data-pay-sheet="open"] #checkout, html[data-pay-sheet="open"] .sheet-backdrop, .google-loading { animation: none; }
}
/* First paint (2026-11-28): the sales sections under the hero are laid out and painted only when they come near the screen, as the home
   and trainers pages already do (night.css, trainers.css). The hero and the checkout (which is also the sheet) are never skipped. */
#sales-sections > .sales-section, #sales-faq { content-visibility: auto; contain-intrinsic-size: auto 900px; }
/* 2026-12-02 hero for ads whose utm_content names the logging hook: pay-ad.js sets html[data-pay-hook="logging"] in <head>, before first paint.
   Both texts are in the page; the other one is display:none (not just hidden), so one h1 is ever in the accessibility tree. No attribute: today's hero. */
.sales-promise .hero-hook { display: none; }
html[data-pay-hook="logging"] .sales-promise h1.hero-hook { display: inline-block; }
html[data-pay-hook="logging"] .sales-promise p.hero-hook { display: block; }
html[data-pay-hook="logging"] #sales-heading, html[data-pay-hook="logging"] .sales-promise > p:last-child { display: none; }
/* The phone plays the real app clip (pay-wow.js creates the video only when allowed); it fills the same box as the still image, so nothing moves. */
html[data-pay-hook="logging"] .stage-phone .phone { position: relative; }
.stage-phone .hero-video { position: absolute; inset: 0; display: block; inline-size: 100%; block-size: 100%; object-fit: cover; background: transparent; pointer-events: none; }
/* 2026-12-02 first checkout screen: one line on what happens next, and how they will pay. Both only on the email step. */
#email-note { margin-block: var(--space-2) 0; font-size: var(--text-sm); line-height: 1.7; }
.pay-how { display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-block: var(--space-3) 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }
.pay-how svg { flex: none; color: var(--lime); }
#signin-card[data-view="password"] .email-first { display: none; }
/* 2026-12-02 "Payment not finished?" notice on the pay step: shown after a visitor comes back from the payment page without paying. */
.pay-recover { margin-block: 0 var(--space-4); padding: var(--space-4); border: 1px solid var(--edge); border-color: #FF8A5E55; border-radius: 1rem; background: #FF8A5E14; }
.pay-recover[hidden] { display: none; }
.pay-recover-title { margin: 0 0 var(--space-2); font-size: var(--text-base); font-weight: 700; line-height: 1.5; }
.pay-recover-text { margin: 0 0 var(--space-1); line-height: 1.7; }
.pay-recover-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-5, 1.25rem); }
