/* The price proposal page: amounts first, three capacity cards, add-ons, a live summary with accept, promises, a note box
   and a short FAQ. A bar at the bottom keeps the chosen total in view until the summary is on screen. */
:root{--navy:#072331;--ink:#0f2230;--gold:#c98a1c;--gold-d:#a26d0e;--sun:#fcb856;--tint:#fbf3e2;--paper:#fffdf8;--soft:#f4f1ea;--line:#e3ddd0;--muted:#66625a;--ok:#1d7a4a}
html{scroll-behavior:smooth;scroll-padding-top:64px}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
*{box-sizing:border-box}
body{margin:0;background:var(--soft);font-family:"Zain",system-ui,sans-serif;color:var(--ink);font-size:18px;line-height:1.9}
bdi{direction:ltr;unicode-bidi:isolate;white-space:nowrap}
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px;background:rgba(7,35,49,.95);backdrop-filter:blur(8px)}
.top img{height:30px;width:auto;display:block}
.top a{color:var(--navy);background:var(--sun);text-decoration:none;font-weight:700;padding:6px 16px;border-radius:999px;font-size:14px;line-height:1.7;white-space:nowrap}
a:focus-visible,button:focus-visible,textarea:focus-visible,summary:focus-visible,.add:focus-within,.tier:focus-within,.bill label:focus-within{outline:2px solid var(--gold);outline-offset:2px}
.wrap{max-width:1040px;margin:0 auto;padding:8px 16px 24px}
section{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:24px;margin-top:18px}
h1,h2{margin:0;font-weight:700;color:var(--navy)}
h1{font-size:clamp(28px,6vw,40px);line-height:1.5}
h2{font-size:22px;line-height:1.55;margin-bottom:10px}
p{margin:0}
.lead{color:var(--muted);margin-bottom:16px;line-height:1.9}
.note{color:var(--muted);font-size:14.5px;line-height:1.85;margin-top:12px}

/* hero: the two amounts before anything else */
.hero{background:var(--navy);border:0;color:#fff}
.hero h1{color:#fff;margin:8px 0 6px}
.hero p{color:#d7dee3;line-height:1.9;max-width:720px}
.tag{display:inline-block;background:var(--sun);color:var(--navy);font-weight:700;font-size:13px;line-height:1.7;padding:2px 12px;border-radius:999px}
.hero-pay{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:18px}
.hero-pay div{background:rgba(255,255,255,.07);border:1px solid rgba(252,184,86,.35);border-radius:14px;padding:10px 18px;display:flex;flex-direction:column}
.hero-pay b{font-size:clamp(24px,5vw,32px);line-height:1.5;color:var(--sun)}
.hero-pay span{font-size:14px;color:#d7dee3;line-height:1.7}
.hero-pay i{font-style:normal;font-size:26px;color:var(--sun);line-height:1.5}
.hero .hero-s{margin-top:12px;font-size:15px}

/* capacity cards: price first, the recommended one raised */
.tiers{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;align-items:stretch}
.tier{position:relative;display:flex;flex-direction:column;gap:4px;border:1.5px solid var(--line);border-radius:16px;padding:20px 18px 18px;background:#fff;cursor:pointer;transition:border-color .15s,box-shadow .15s}
.tier input{position:absolute;opacity:0;pointer-events:none}
.tier.rec{border-color:var(--gold)}
.tier:has(input:checked){border-color:var(--gold);box-shadow:0 0 0 3px rgba(201,138,28,.18);background:var(--tint)}
.badge{align-self:flex-start;background:var(--gold);color:#fff;font-size:12.5px;font-weight:700;line-height:1.7;padding:1px 10px;border-radius:999px}
.badge.soft{background:var(--soft);color:var(--muted)}
.t-name{font-size:21px;font-weight:700;color:var(--navy);line-height:1.6;margin-top:4px}
.t-price{font-weight:600;line-height:1.5}
.t-price b{font-size:34px;color:var(--navy)}
.t-price em{font-style:normal;font-size:13.5px;color:var(--gold-d);font-weight:700;margin-inline-start:4px}
.t-mo{font-size:15px;color:var(--muted);line-height:1.7}
.t-cap{margin-top:8px;padding-top:10px;border-top:1px dashed var(--line);font-weight:700;font-size:15px;line-height:1.75}
.tier ul{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:2px}
.tier li{position:relative;padding-inline-start:22px;font-size:15px;line-height:1.8}
.tier li::before{content:"✓";position:absolute;inset-inline-start:0;color:var(--ok);font-weight:700}
.t-up{margin-top:auto;padding-top:10px;font-size:13.5px;color:var(--gold-d);line-height:1.75}
.t-pick{margin-top:12px;border-radius:999px;text-align:center;font-weight:700;font-size:15px;line-height:1.7;padding:7px 12px;border:1.5px solid var(--navy);color:var(--navy)}
.t-pick::before{content:"اختيار هذه السعة"}
.tier:has(input:checked) .t-pick{background:var(--navy);color:#fff}
.tier:has(input:checked) .t-pick::before{content:"✓ السعة المختارة"}
.tier:not(:has(.t-up)) .t-pick{margin-top:auto}

/* add-ons */
.add{display:grid;grid-template-columns:auto 1fr auto;gap:2px 12px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin-top:10px;cursor:pointer;background:#fff}
.add:has(input:checked){border-color:var(--gold);background:var(--tint)}
.add input{width:20px;height:20px;accent-color:var(--gold-d);margin:0;grid-row:span 2}
.add-t{font-weight:700;line-height:1.65}
.add-p{font-weight:700;color:var(--gold-d);line-height:1.65;white-space:nowrap}
.add-d{grid-column:2/4;color:var(--muted);font-size:14.5px;line-height:1.85}
.save{margin-top:12px;background:#e8f5ee;color:var(--ok);border-radius:10px;padding:8px 12px;font-size:15px;font-weight:600;line-height:1.8}

/* summary */
.total{border:2px solid var(--gold)}
.bill{display:inline-flex;background:var(--soft);border-radius:999px;padding:4px;gap:4px;margin-bottom:14px;flex-wrap:wrap}
.bill input{position:absolute;opacity:0;pointer-events:none}
.bill label{cursor:pointer;border-radius:999px}
.bill span{display:block;padding:6px 16px;border-radius:999px;font-weight:600;font-size:15px;line-height:1.7;color:var(--muted)}
.bill small{color:var(--ok);font-weight:700}
.bill label:has(input:checked) span{background:var(--navy);color:#fff}
.bill label:has(input:checked) small{color:var(--sun)}
.lines{margin:0;display:grid;gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.lines div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:12px 16px;border-top:1px solid var(--line)}
.lines div:first-child{border-top:0}
.lines dt{line-height:1.7}
.lines dd{margin:0;font-weight:700;font-size:20px;line-height:1.5;color:var(--navy);white-space:nowrap}
.lines dd small{font-size:13px;color:var(--gold-d);font-weight:700}
.lines .muted dt,.lines .muted dd{color:var(--ok);font-size:15px}
.lines .first{background:var(--tint)}
.lines .first dt{font-weight:700}
.lines .first dd{font-size:24px}
.sum-l{margin-top:10px;color:var(--muted);line-height:1.85}
button{font:inherit;cursor:pointer;border-radius:999px;border:0;line-height:1.7}
.accept{display:block;width:100%;margin-top:16px;background:var(--gold);color:#fff;font-weight:700;font-size:18px;padding:12px 20px}
.accept:hover{background:var(--gold-d)}
.ghost{background:var(--navy);color:#fff;font-weight:700;padding:9px 22px;margin-top:10px}
button:disabled{opacity:.6;cursor:default}
.done{margin-top:16px;background:#e8f5ee;border:1px solid #b9e0c9;border-radius:12px;padding:12px 14px;color:var(--ok);font-weight:600;line-height:1.85}
.msg{margin-top:8px;font-size:15px;line-height:1.85}
.msg.ok{color:var(--ok);font-weight:600}.msg.err{color:#b3261e}

/* promises, note, FAQ */
.promise ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px}
.promise li{background:var(--soft);border-radius:12px;padding:12px 14px;line-height:1.85;font-size:15.5px}
.promise b{color:var(--navy)}
textarea{width:100%;font:inherit;font-size:16px;line-height:1.85;border:1px solid var(--line);border-radius:12px;padding:10px 12px;background:#fff;color:var(--ink);resize:vertical}
.faq details{border-top:1px solid var(--line);padding:10px 0}
.faq details:first-of-type{border-top:0}
.faq summary{cursor:pointer;font-weight:700;color:var(--navy);line-height:1.65;list-style-position:inside}
.faq p{margin-top:6px;color:var(--muted);line-height:1.9}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* bottom bar with the chosen total */
.dock{position:fixed;inset-inline:0;bottom:0;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(7,35,49,.97);color:#fff;font-size:15px;line-height:1.7;transform:translateY(110%);transition:transform .25s}
.dock.show{transform:none}
.dock b{color:var(--sun);font-size:17px}
.dock a{background:var(--gold);color:#fff;text-decoration:none;font-weight:700;border-radius:999px;padding:6px 16px;white-space:nowrap}
.foot{text-align:center;color:var(--muted);font-size:13px;line-height:1.9;padding:4px 16px 84px;margin:0}
@media (min-width:600px){.lead,.hero p,.faq p{text-align:justify}}
@media (max-width:860px){.tiers{grid-template-columns:1fr}.tier.rec{order:-1}}
@media (max-width:520px){
  body{font-size:16px}
  section{padding:18px 16px;border-radius:16px}
  .promise ul{grid-template-columns:1fr}
  .add{grid-template-columns:auto 1fr}.add-p{grid-column:2}.add-d{grid-column:1/3}
  .lines div{padding:10px 12px}.lines dd{font-size:18px}.lines .first dd{font-size:21px}
  .dock{font-size:13.5px}.dock b{font-size:15px}
}
@media (prefers-reduced-motion:reduce){.dock{transition:none}}
@media print{.top,.dock,#answer,#noteForm{display:none}}
[hidden]{display:none!important}
