/* Pricing (/pricing) and the payment page (/upgrade): small additions to vizwalk.css and app.css. Tokens only. */

/* ---- /pricing ---- */
.plans .plan .plan-or{margin:0 0 20px}
@media (min-width:900px){.plans .plan .plan-or{min-height:1.5em}}
.pay-line{display:flex;gap:10px;align-items:flex-start;margin:var(--s5) 0 0;padding:14px 16px;border:1px dashed var(--line-2);border-radius:var(--r);font-size:15px;color:var(--ink-2)}
.pay-line .icon{flex:none;color:var(--accent);margin-top:2px}
.pay-line a{font-weight:600;white-space:nowrap}
.plan-rights .compare{min-width:560px}
@media (max-width:600px){.plan-rights .compare{min-width:500px;font-size:14px}.plan-rights .compare th,.plan-rights .compare td{padding:10px}.plan-rights .compare tbody th{min-width:118px;width:118px}}
.plan-rights .compare td{white-space:normal}
@media (min-width:768px){.plan-rights .compare th[scope=col]{width:22%}}

/* ---- /upgrade ---- */
.pay-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:var(--s4) 0 var(--s2)}
.pay-price .amount{font-size:2.25rem;font-weight:700;line-height:1.1;letter-spacing:-.03em}
.pay-price small{font-size:15px;color:var(--soft)}
.pay-steps{list-style:none;padding:0;margin:var(--s5) 0 0;display:grid;grid-template-columns:minmax(0,1fr);gap:var(--s5)}
.pay-steps>li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;align-items:start}
.pay-steps>li>div{min-width:0}
.pay-steps .button{max-width:100%;white-space:normal}
.pay-steps h2{font-size:1.125rem;margin:8px 0 4px}
.pay-steps p{margin:0 0 var(--s3);color:var(--ink-2);font-size:15px}
.pay-steps .button{margin-top:4px}
.pay-state{display:flex;gap:12px;align-items:flex-start}
.pay-state .icon{flex:none;margin-top:2px}
.pay-state h2{font-size:1.125rem;margin:0 0 4px;color:inherit}
.pay-state p{margin:0 0 6px}
.pay-state p:last-child{margin-bottom:0}
.pay-actions{display:flex;flex-wrap:wrap;gap:var(--s3);align-items:center;margin-top:var(--s4)}
.pay-cancel{margin-top:var(--s4);font-size:15px}
.pay-cancel .link{color:var(--soft);padding:0}
.card .facts{margin-top:var(--s4)}
.currency.small{margin:0 0 var(--s3)}
.currency.small a{min-height:44px;padding:0 12px;font-size:14px}

/* ---- /pricing chapters (redesign) ---- */
/* #30 (owner-approved 7 Oct 2026): a short intro, so a paid price and the buttons are on the first screen */
.pricing-intro{padding-block:clamp(24px,4vh,48px) clamp(24px,3.5vh,40px)}   /* 27 Oct 2026: the lead sat on the edge of the next chapter */
.pricing-intro .chapter-head{margin-bottom:0}
.pricing-intro h1{font-size:clamp(2rem,1.5rem + 2vw,3rem)}
.pricing-intro+#plans{padding-top:clamp(20px,3vh,36px)}
.plans .plan .plan-slots{margin:0;color:var(--soft);font-size:1rem}   /* 29 Oct 2026: "5 slots" under the package name */
.pricing-slots{max-width:560px;margin:var(--s4) auto 0;text-align:center;font-size:1rem}
.pricing-files{max-width:560px;margin:var(--s4) auto 0;text-align:center;font-size:15px}
.pricing-demo{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--s1) var(--s2);margin:var(--s6) 0 0;font-size:15px}
#plans .pay-line{max-width:52rem;margin-inline:auto}
.pricing-context .frows h3{font-weight:400}
/* Our guarantee (the refund policy, owner decision of 4 Oct 2026): a compact list under the plans on /pricing, and one line under "Pay by card". */
.guarantee{max-width:52rem;margin:var(--s6) auto 0;padding:18px 20px;border:1px solid var(--line);border-radius:var(--r);background:linear-gradient(180deg,var(--bg-3),var(--bg-2))}
.guarantee-title{display:flex;align-items:center;gap:10px;margin:0 0 10px;font:600 17px/1.3 Inter,system-ui,sans-serif;letter-spacing:0}
.guarantee-title .icon{color:var(--accent-ink,var(--accent))}
.guarantee ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.guarantee li{display:flex;gap:10px;align-items:flex-start;font-size:15px;line-height:1.45;color:var(--ink-2)}
.guarantee li .icon{flex:none;margin-top:2px;color:var(--accent-ink,var(--accent))}
@media (min-width:900px){.guarantee ul{grid-template-columns:1fr 1fr;column-gap:28px}}
.pay-guarantee{display:flex;gap:8px;align-items:center;margin-top:8px}
.pay-guarantee .icon{flex:none;color:var(--accent)}

/* The packages (owner, 7 Oct 2026): the Monthly / 3 months / 12 months switch, the prices of the period shown, the shared features. */
.packages{display:grid;gap:var(--s5)}
.packages[data-billing=month] [data-show]:not([data-show=month]),.packages[data-billing=quarter] [data-show]:not([data-show=quarter]),.packages[data-billing=year] [data-show]:not([data-show=year]){display:none}
.plan .plan-fine{margin:10px 0 0;font-size:15px;text-align:center}
.plan-risk{max-width:52rem;margin:var(--s2) auto 0;text-align:center;font-size:1rem;line-height:1.6;color:var(--ink-2,inherit)}
.plan-risk>span:not(.plan-risk-dot){display:inline-block}
@media (max-width:640px){.plan-risk-dot{display:none}.plan-risk>span:not(.plan-risk-dot){display:block}}
.plan-includes{max-width:52rem;margin:var(--s6) auto 0;padding:20px 24px;border:1px solid var(--line);border-radius:var(--r-lg);background:linear-gradient(180deg,var(--bg-3),var(--bg-2))}
.plan-includes h3{margin:0 0 12px;font-size:1.125rem}
.plan-includes ul{list-style:none;padding:0;margin:0;display:grid;gap:10px;font-size:1rem}
.plan-includes li{display:flex;gap:10px;align-items:flex-start}
.plan-includes li .icon{flex:none;color:var(--accent-link);margin-top:2px}
@media (min-width:900px){.plan-includes ul{grid-template-columns:1fr 1fr;column-gap:28px}}
.billing-switch{justify-self:center;display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--bg-3)}
.billing-switch a{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:var(--r-pill);color:var(--ink);font:600 15px var(--font);text-decoration:none}
.billing-switch a[aria-checked=true]{background:var(--accent);color:var(--on-accent)}
.billing-switch button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 20px;border:0;border-radius:var(--r-pill);background:transparent;color:var(--ink);font:600 15px var(--font);cursor:pointer}
.billing-switch button[aria-checked=true]{background:var(--accent);color:var(--on-accent)}
.billing-switch button:focus-visible{outline:2px solid var(--accent-link);outline-offset:2px}
.billing-switch .save{padding:2px 8px;border-radius:var(--r-pill);background:rgba(255,255,255,.18);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.billing-switch button[aria-checked=false] .save{background:var(--bg-4);color:var(--accent-link)}
.packages .plans{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
@media (min-width:900px){#plans .packages .plans{max-width:62rem;margin-inline:auto;width:100%}}
@media (min-width:1100px){.card.upgrade[data-state="choose"]{max-width:68rem;margin-inline:auto}}   /* /upgrade packages (review U12) */   /* /pricing, three cards (27 Oct 2026): not stretched across a wide screen */
.plan.quiet{background:transparent}
.stepper{display:flex;align-items:center;gap:8px;margin:12px 0 0}
.stepper button{width:44px;height:44px;border:1px solid var(--line-2);border-radius:var(--r);background:var(--bg-4);color:var(--ink);font:600 20px/1 var(--font);cursor:pointer}
.stepper button:focus-visible{outline:2px solid var(--accent-link);outline-offset:2px}
.stepper label{display:flex;align-items:baseline;gap:8px;flex:1;justify-content:center}
.stepper input{width:64px;min-height:44px;padding:0 8px;border:1px solid var(--line-2);border-radius:var(--r);background:var(--bg-2,transparent);color:var(--ink);font:600 20px var(--font);text-align:center;-moz-appearance:textfield}
.stepper input::-webkit-outer-spin-button,.stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.stepper span{color:var(--soft);font-size:15px}
.package-pick{display:grid;gap:12px;margin:var(--s4) 0}

/* Phones: the three-way switch fits the screen (each choice stacks its saving under its name). */
@media (max-width:600px){
  .packages .billing-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;justify-self:stretch;border-radius:22px}
  .packages .billing-switch button{flex-direction:column;justify-content:center;gap:2px;min-height:56px;padding:6px 4px;border-radius:18px;font-size:15px;line-height:1.15;white-space:nowrap}
  .packages .billing-switch .save{padding:1px 6px;font-size:11px}
}
.pricing-refund{display:flex;justify-content:center;margin:var(--s2) 0 0;font-size:15px}

/* 20 Oct 2026: the period switch of the one-plan view fits a phone (it overflowed: "3 months · $69") */
@media (max-width:520px){.upgrade .billing-switch{display:flex;width:100%}.upgrade .billing-switch a{flex:1 1 0;justify-content:center;text-align:center;padding:4px 6px;font-size:13px;line-height:1.2;min-height:48px}}

/* One-plan view redesign (owner, 20 Oct 2026: "too crowded, everything after each other"): the tag under the title, then one
   framed box (period switch, price with its note, three ticks), then the button and one quiet trust line. */
.upgrade .plan-tag{display:inline-flex;align-items:center;gap:6px;margin:6px 0 0;padding:4px 12px;border-radius:var(--r-pill);background:var(--accent-soft);color:var(--accent);font-size:13px;font-weight:700}
.upgrade .plan-box{margin:var(--s4) 0;padding:18px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--bg-3);display:grid;gap:16px}
.upgrade .plan-box .billing-switch{display:flex;width:100%;justify-self:stretch}
.upgrade .plan-box .billing-switch a{flex:1 1 0;flex-direction:column;justify-content:center;gap:1px;min-height:52px;padding:6px 4px;text-align:center;font-size:13px;line-height:1.15}
.upgrade .plan-box .billing-switch a b{font-size:15px}
.upgrade .plan-price{margin:0;align-items:baseline}
.upgrade .plan-price .amount{font-size:2.75rem}
.upgrade .plan-was{margin-left:auto;padding:3px 10px;border-radius:var(--r-pill);background:var(--bg-4);color:var(--soft);font-size:13px;text-decoration:line-through;text-decoration-thickness:1px}
.upgrade .plan-usd{margin-left:auto;color:var(--soft);font-size:13px}
.upgrade .plan-save{margin:-8px 0 0;color:var(--good-ink,#7fc79b);font-size:14px;font-weight:600}
.upgrade .plan-ticks{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.upgrade .plan-ticks li{display:flex;gap:10px;align-items:flex-start;font-size:15px}
.upgrade .plan-ticks .icon{flex:none;margin-top:2px;color:var(--accent)}
.upgrade .plan-trust{justify-content:center;margin:10px 0 0;font-size:13px;text-align:center}
.upgrade .plan-ask{margin-top:var(--s4);text-align:center}

/* Vodafone Cash / InstaPay (owner-approved 28 Oct 2026, app/wallet.php). On the one-plan view: "or, in Egypt" and one
   outlined button under "Pay securely" (the card stays the main button). The order: one calm status line, then one framed
   panel with the three steps (number + copy, message + copy, Instagram), then the order facts. */
.upgrade .wallet-pick{margin-top:var(--s4)}
.upgrade .wallet-or{margin:0 0 12px}
.upgrade .wallet-note{margin:8px 0 0;text-align:center;font-size:14px}
.upgrade .wallet-status{display:flex;gap:10px;align-items:flex-start;margin:var(--s4) 0 0;padding:12px 14px;border-radius:var(--r);background:var(--info-bg);color:var(--info-ink);font-size:16px;line-height:1.45}
.upgrade .wallet-status .icon{flex:none;margin-top:2px}
.upgrade .wallet-box{margin:var(--s4) 0;padding:18px;border:1px solid rgba(213,181,141,.38);border-radius:var(--r-lg);background:var(--bg-3)}
.upgrade .wallet-box h2{margin:0 0 12px;font-size:1.5rem}
.upgrade .wallet-steps{list-style:none;counter-reset:step;margin:0;padding:0;display:grid;gap:20px}
.upgrade .wallet-steps>li{counter-increment:step}
.upgrade .wallet-steps p{margin:0 0 8px;font-size:16px;line-height:1.45}
.upgrade .wallet-steps>li>p:first-child{display:flex;gap:10px;align-items:flex-start}
.upgrade .wallet-steps>li>p:first-child::before{content:counter(step);flex:none;display:grid;place-items:center;width:26px;height:26px;border:1px solid var(--line-2);border-radius:50%;font-weight:600;font-size:14px;color:var(--accent-link)}
.upgrade .wallet-steps .copy-row .button{padding-inline:14px}
.upgrade .wallet-steps .copy-row input{font-size:19px;font-weight:600;letter-spacing:0;font-variant-numeric:tabular-nums;min-height:48px;padding-inline:12px}
.upgrade .wallet-name{margin:10px 0 0!important;font-size:15px!important;color:var(--ink-2)}
.upgrade .wallet-name bdi{display:table;margin-top:2px;font-size:18px;font-weight:600;color:var(--ink)}
.upgrade .wallet-name small{display:block;margin-top:2px;color:var(--soft);font-size:14px}
@media (max-width:520px){.upgrade .wallet-box{padding:14px}.upgrade .wallet-box h2{font-size:1.375rem}}
.upgrade .copy-message{flex-direction:column}
.upgrade .copy-message textarea{margin:0;width:100%;font-size:15px;line-height:1.45;resize:none;min-height:0}
.upgrade .copy-message .button{align-self:flex-start}
.upgrade .wallet-page{margin:8px 0 0!important;text-align:center;font-size:14px}
/* Review of 28 Oct 2026 (owner: card AND wallet always offered): the two ways to pay sit inside the plan box, right under the
   price, so both show on a 375 x 812 phone without scrolling; the ticks follow. */
.upgrade .pay-choice{display:grid;gap:0}
.upgrade .pay-choice .plan-trust{margin:8px 0 0}
.upgrade .pay-choice .wallet-pick{margin-top:12px}
.upgrade .pay-choice .wallet-or{margin:0 0 10px}
.upgrade .pay-choice .wallet-note{margin:6px 0 0;font-size:13px}
.upgrade .card-switch{margin:var(--s4) 0 0}
.upgrade .wallet-big-text{margin:0 0 14px;font-size:16px;line-height:1.45}
@media (max-width:520px){.upgrade .plan-box{padding:14px;gap:12px}.upgrade .plan-price .amount{font-size:2.4rem}}
.pricing-trial{margin:var(--s5) 0 0}
.upgrade .pay-choice .wallet-main{margin-top:0}
.upgrade .pay-choice .card-second{margin-top:12px}
/* The wallet main button (owner, 5 Nov 2026): "Pay with", the InstaPay logo, "or", and a wallet mark */
.upgrade .wallet-button{gap:8px;flex-wrap:wrap;justify-content:center;padding:9px 12px}
.upgrade .pay-marks{display:inline-flex;gap:8px;align-items:center}
.upgrade .pay-logo{display:block;flex:none;width:42px;height:42px;border-radius:9px;background:#fff}
.upgrade .pay-or{font-size:.9375rem;font-weight:500}
.upgrade .pay-mark{display:inline-flex;align-items:center;gap:6px;height:42px;padding:0 12px;border-radius:9px;background:#fff;color:#14201A;font-size:15px;font-weight:700;line-height:1;white-space:nowrap}
.upgrade .pay-mark svg{flex:none;display:block}
/* UX audit, 29 Oct 2026 (#14): the package chooser sits in the page gutter (.wrap) with air under the header, like the other app pages. */
.upgrade-wrap{padding-block:var(--s5) var(--s7)}
/* Owner, 30 Oct 2026: one package only (1 walkthrough): its single card sits in the middle, at a card's width */
.packages .plans:has(> .plan:only-child){grid-template-columns:minmax(0,26rem);justify-content:center}
/* Owner, 6 Nov 2026: the period was chosen on the step before; one link back to change it. */
.plan-change{margin:calc(var(--s2) * -1) 0 var(--s4);text-align:start}
.plan-change .link{display:inline-flex;align-items:center;min-height:44px}
.upgrade .offer-rows{margin-top:var(--s4)}

/* 7 Nov 2026 review: a price never breaks between "EGP" and the number on a phone (it read "EGP / 2,500") */
.price-table td bdi{white-space:nowrap}

/* 7 Nov 2026, the simple pricing page (owner): three price cards, three steps, one refund line */
.pricing-simple .pay-steps{counter-reset:step;list-style:none;margin:18px 0;padding:0;max-width:640px}
.pricing-simple .pay-steps li{display:block;counter-increment:step;position:relative;padding:4px 0 18px 52px;font-size:17px;line-height:1.5}
.pricing-simple .pay-steps li::before{content:counter(step);position:absolute;inset-inline-start:0;top:0;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-weight:700;background:var(--accent,#d5b58d);color:#111816}
[dir=rtl] .pricing-simple .pay-steps li{padding:4px 52px 18px 0}
.pricing-simple .pay-refund{display:flex;gap:10px;align-items:flex-start;margin:4px 0 22px;font-size:16px;max-width:640px}
.pricing-simple .pay-refund svg{flex:none;margin-top:3px;color:var(--accent,#d5b58d)}
/* the steps follow the prices closely (they were 100 px of padding apart on a phone) */
.fs.fs-when.pricing-simple{padding-top:40px;padding-bottom:40px}
.fs-offer.pricing-simple{padding-bottom:24px}

/* Price screen of a project (owner, 10 Nov 2026): the 360 as a check of the file, then one price block. */
.project .project-lead { margin: 4px 0 20px; color: var(--muted, inherit); }
.project-check { margin: 0 0 28px; }
.project-check h2 { font-size: 1.05rem; margin: 0 0 10px; }
.project-check .project-picture { margin: 0 0 10px; }
.project-check .project-picture img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 12px; display: block; }
.project-check p { margin: 0 0 6px; }
.project-price { border-top: 1px solid var(--line, rgba(127,127,127,.25)); padding-top: 20px; margin-bottom: 14px; }
.project-price .eyebrow { margin: 0 0 2px; }
.project-price .price-big { margin: 0 0 2px; }
.project-more { border-top: 1px solid var(--line, rgba(127,127,127,.25)); padding: 12px 0; }
.project-more summary { cursor: pointer; font-weight: 600; }
.project-more[open] summary { margin-bottom: 10px; }
.project-check .project-picture { position: relative; }
.project-check .pano-canvas { width: 100%; aspect-ratio: 4 / 3; display: block; border-radius: 12px; touch-action: none; cursor: grab; background: #111; }
.project-check .pano-canvas:active { cursor: grabbing; }
.project-check .pano-hint { display: none; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .85rem; pointer-events: none; white-space: nowrap; transition: opacity .3s; }
.project-check .pano-on .pano-hint { display: inline-flex; }
.project-check .pano-moved .pano-hint { opacity: 0; }
.project-price .price-big { font-size: 2.2rem; font-weight: 700; line-height: 1.15; }
/* Steps of a priced project (owner, 10 Nov 2026): the customer sees the Walkthrough has not started yet */
.project-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.project-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted, #9aa59f); font-size: .95rem; }
.project-steps li .num, .project-steps li svg { flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .8rem;
  border: 1px solid currentColor; }
.project-steps li.done { color: var(--text, #e8e2d6); }
.project-steps li.done svg { padding: 3px; background: var(--accent, #d5b58d); color: #15211b; border-color: transparent; box-sizing: border-box; }
.project-steps li.now { color: var(--text, #e8e2d6); font-weight: 700; }
.project-steps li.now .num { background: var(--text, #e8e2d6); color: #15211b; border-color: transparent; }
.project-check .pano-free { position: absolute; top: 10px; inset-inline-start: 10px; padding: 4px 10px; border-radius: 6px; background: var(--accent, #d5b58d);
  color: #15211b; font-weight: 700; font-size: .85rem; pointer-events: none; }
