/* busabutop.org — bold-color-block skeleton + sticker-collage accents
   prefix: ba-  ·  EN + AR (RTL)  ·  green/coral duo shifted from base palette */

:root {
  --green: #3f9942;
  --green-d: #1c5327;
  --green-dd: #123a1b;
  --green-l: #e7f4e2;
  --coral: #ff6a3d;
  --coral-d: #d84518;
  --yellow: #ffd23e;
  --ink: #14211b;
  --ink-2: #43514a;
  --paper: #f6f8f4;
  --white: #ffffff;
  --line: #14211b;
  --danger: #c23a1c;
  --danger-bg: #fbe7e0;
  --bd: 2.5px solid var(--line);
  --bd-thin: 2px solid var(--line);
  --r: 22px;
  --r-sm: 12px;
  --shadow: 6px 6px 0 0 var(--ink);
  --shadow-sm: 4px 4px 0 0 var(--ink);
  --shadow-coral: 6px 6px 0 0 var(--coral);
  --maxw: 1180px;
  --ff-head: "Archivo", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-hand: "Caveat", "Segoe Script", cursive;
  --ff-ar: "Cairo", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--ink);
  background: var(--paper);
  background-image:
    linear-gradient(rgba(20,33,27,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,33,27,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: var(--ff-ar); line-height: 1.8; letter-spacing: 0; }

img, svg { max-width: 100%; display: block; }
a { color: var(--green-d); }
a:hover { color: var(--green-dd); }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--coral-d); outline-offset: 2px; }

.ba-skip { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; }
.ba-skip:focus { left: 0; }

.ba-wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* ---------- Typography (major-2nd, italic headings, tight) ---------- */
h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 800; font-style: italic; line-height: 1.02; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
html[lang="ar"] :is(h1,h2,h3,h4) { font-family: var(--ff-ar); font-style: normal; font-weight: 800; letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; max-width: 55ch; }
.ba-lede { font-size: 1.16rem; line-height: 1.55; color: var(--ink); max-width: 52ch; }

/* handwritten sticker tag */
.ba-tag {
  display: inline-block; font-family: var(--ff-hand); font-weight: 700; font-size: 1.5rem;
  line-height: 1; color: var(--ink); background: var(--yellow);
  padding: 6px 16px 8px; border: var(--bd); box-shadow: var(--shadow-sm);
  transform: rotate(-2.5deg);
}
html[lang="ar"] .ba-tag { font-family: var(--ff-ar); font-size: 1rem; font-weight: 700; padding: 8px 16px; }
.ba-tag.-coral { background: var(--coral); }
.ba-tag.-rot { transform: rotate(2deg); }

.ba-eyebrow { display: inline-flex; gap: 8px; align-items: center; font-family: var(--ff-body); font-style: normal; font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--green-d); }
html[lang="ar"] .ba-eyebrow { letter-spacing: 0; }
.ba-aster { color: var(--coral-d); font-weight: 700; }

.ba-mark-hl { background: linear-gradient(180deg, transparent 55%, var(--yellow) 55%); padding: 0 .05em; }

/* vertical section label */
.ba-vlabel { position: absolute; top: 28px; inset-inline-start: 6px; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--ff-body); font-weight: 700; font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-2); }
html[lang="ar"] .ba-vlabel { transform: none; letter-spacing: .05em; }
@media (max-width: 980px) { .ba-vlabel { display: none; } }

/* ---------- Buttons (sharp, large, icon-right, squash) ---------- */
.ba-btn {
  --bg: var(--white); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer;
  padding: 17px 26px; min-height: 56px; border: var(--bd); border-radius: 0;
  background: var(--bg); color: var(--fg); box-shadow: var(--shadow-sm);
  transition: transform .08s ease, box-shadow .08s ease, background .12s ease;
}
.ba-btn:hover { text-decoration: none; }
.ba-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 0 var(--ink); }
.ba-btn svg { width: 18px; height: 18px; }
html[dir="rtl"] .ba-btn svg { transform: scaleX(-1); }
.ba-btn.-primary { --bg: var(--coral); --fg: var(--ink); }
.ba-btn.-dark { --bg: var(--ink); --fg: #fff; }
.ba-btn.-green { --bg: var(--green-d); --fg: #fff; }
.ba-btn.-lg { min-height: 64px; padding: 20px 32px; font-size: 1.06rem; }
.ba-btn.-sm { min-height: 44px; padding: 11px 18px; font-size: .9rem; box-shadow: 3px 3px 0 0 var(--ink); }
.ba-btn.-block { display: flex; width: 100%; }

.ba-link { font-weight: 700; color: var(--green-d); text-decoration: none; position: relative; }
.ba-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--coral); transform: scaleX(.35); transform-origin: left; transition: transform .2s ease; }
html[dir="rtl"] .ba-link::after { transform-origin: right; }
.ba-link:hover::after { transform: scaleX(1); }

/* ---------- Header (floating island, sticky shrink) ---------- */
.ba-header { position: sticky; top: 0; z-index: 60; padding: 14px 0; transition: padding .2s ease; }
.ba-header.-shrink { padding: 6px 0; }
.ba-island {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--white); border: var(--bd); box-shadow: var(--shadow-sm);
  padding: 10px 12px 10px 16px; border-radius: 0;
}
.ba-nav { display: inline-flex; gap: 2px; align-items: center; }
.ba-nav a { font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; padding: 9px 12px; }
.ba-nav a:hover, .ba-nav a[aria-current="page"] { background: var(--yellow); }
.ba-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.ba-logo .mk { width: 40px; height: 40px; flex: none; }
.ba-logo .wm { font-family: var(--ff-head); font-style: italic; font-weight: 900; font-size: 1.32rem; letter-spacing: -.02em; text-transform: uppercase; }
html[lang="ar"] .ba-logo .wm { font-family: var(--ff-ar); font-style: normal; }
.ba-hgroup { display: inline-flex; align-items: center; gap: 12px; }
.ba-lang { display: inline-flex; border: var(--bd-thin); }
.ba-lang a { font-weight: 700; font-size: .82rem; padding: 6px 11px; text-decoration: none; color: var(--ink-2); }
.ba-lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.ba-burger { display: none; width: 48px; height: 48px; border: var(--bd-thin); background: var(--white); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.ba-burger svg { width: 24px; height: 24px; }
.ba-desk { display: inline-flex; }
@media (max-width: 900px) { .ba-desk { display: none; } .ba-burger { display: inline-flex; } .ba-nav.-main { display: none; } }

/* ---------- Full-screen drawer (CSS-driven) ---------- */
.ba-drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility 0s linear .3s; }
.ba-drawer.is-open { visibility: visible; opacity: 1; transition: opacity .3s ease, visibility 0s linear 0s; }
.ba-drawer .backdrop { position: absolute; inset: 0; background: rgba(20,33,27,.55); }
.ba-drawer .panel { position: absolute; inset: 0; background: var(--green); color: #fff; padding: 28px 24px; display: flex; flex-direction: column; gap: 8px; transform: translateY(-16px); transition: transform .3s cubic-bezier(.2,.8,.2,1); overflow-y: auto; }
.ba-drawer.is-open .panel { transform: translateY(0); }
.ba-drawer .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.ba-drawer .top button { width: 48px; height: 48px; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; }
.ba-drawer nav { display: grid; gap: 4px; }
.ba-drawer nav a { color: #fff; text-decoration: none; font-family: var(--ff-head); font-style: italic; font-weight: 800; font-size: 1.7rem; text-transform: uppercase; padding: 8px 0; border-bottom: 2px dashed rgba(255,255,255,.35); }
html[lang="ar"] .ba-drawer nav a { font-family: var(--ff-ar); font-style: normal; }
.ba-drawer .foot { margin-top: auto; padding-top: 20px; display: grid; gap: 12px; }
.ba-drawer .foot .langs a { color: #fff; border: 2px solid #fff; padding: 7px 14px; text-decoration: none; font-weight: 700; }
body.ba-noscroll { overflow: hidden; }

/* ---------- Sections & color blocks ---------- */
.ba-sec { position: relative; padding: 72px 0; }
.ba-sec.-tight { padding: 44px 0; }
.ba-sec.-green { background: var(--green); color: #fff; }
.ba-sec.-green :is(h1,h2,h3) , .ba-sec.-green a.ba-link { color: #fff; }
.ba-sec.-ink { background: var(--ink); color: #e7ede9; }
.ba-sec.-ink :is(h1,h2,h3) { color: #fff; }
.ba-sec.-coral { background: var(--coral); color: var(--ink); }
.ba-head { max-width: 60ch; }
.ba-head h2 { margin-top: 12px; }
.ba-head .ba-lede { margin-top: 16px; }

/* barcode divider */
.ba-barcode { height: 26px; border: 0; background-image: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px, var(--ink) 6px 8px, transparent 8px 14px); background-size: 22px 100%; opacity: .8; margin: 0; }

/* ---------- Grid & cards ---------- */
.ba-grid { display: grid; gap: 22px; }
.ba-g2 { grid-template-columns: repeat(2, 1fr); }
.ba-g3 { grid-template-columns: repeat(3, 1fr); }
.ba-g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .ba-g3, .ba-g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ba-g2, .ba-g3, .ba-g4 { grid-template-columns: 1fr; } }

.ba-card { background: var(--white); border: var(--bd); box-shadow: var(--shadow); border-radius: var(--r); padding: 26px; }
.ba-card.-flat { box-shadow: none; border-radius: var(--r-sm); }
.ba-card.-sticker { transition: transform .15s ease, box-shadow .15s ease; }
.ba-card.-sticker:nth-child(2n) { transform: rotate(-1deg); }
.ba-card.-sticker:nth-child(3n) { transform: rotate(1.2deg); }
.ba-card.-sticker:hover { transform: rotate(0) translateY(-4px); box-shadow: 9px 9px 0 0 var(--coral); }

/* ---------- Hero (dual/triple CTA, split color, no form) ---------- */
.ba-hero { position: relative; overflow: hidden; }
.ba-hero .split { position: absolute; inset: 0; z-index: 0; }
.ba-hero .split i { position: absolute; inset-block: 0; inset-inline-end: 0; width: 42%; background: var(--green); border-inline-start: var(--bd); }
@media (max-width: 820px) { .ba-hero .split i { display: none; } }
.ba-hero .inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 60px 0 72px; }
@media (max-width: 820px) { .ba-hero .inner { grid-template-columns: 1fr; gap: 34px; } }
.ba-hero h1 { margin-top: 16px; }
.ba-hero .ba-lede { margin-top: 20px; }
.ba-hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.ba-hero .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.ba-chip { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .84rem; background: var(--white); border: var(--bd-thin); padding: 7px 13px; }
.ba-chip .dot { width: 8px; height: 8px; background: var(--coral); border-radius: 50%; }
.ba-vtext { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--ff-head); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: .8rem; letter-spacing: .3em; color: var(--green-d); }
html[lang="ar"] .ba-vtext { transform: none; letter-spacing: .06em; font-family: var(--ff-ar); }

/* ascii sticker */
.ba-ascii { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; white-space: pre; font-size: .62rem; line-height: 1.05; color: var(--green-d); background: var(--white); border: var(--bd-thin); box-shadow: var(--shadow-sm); padding: 12px; transform: rotate(-3deg); display: inline-block; }

/* hero sticker media panel */
.ba-hero-media { position: relative; }
.ba-hero-media .plate { background: var(--white); border: var(--bd); box-shadow: var(--shadow); border-radius: var(--r); padding: 26px; }
.ba-hero-media .plate h3 { font-size: 1.2rem; }

/* ---------- Steps (how it works, outlined numbers) ---------- */
.ba-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 18px; }
.ba-steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.ba-steps li::before { content: counter(s); font-family: var(--ff-head); font-style: italic; font-weight: 900; font-size: 1.6rem; width: 58px; height: 58px; display: grid; place-items: center; border: var(--bd); background: transparent; color: var(--ink); box-shadow: var(--shadow-sm); }
.ba-sec.-green .ba-steps li::before { color: #fff; border-color: #fff; box-shadow: 4px 4px 0 0 rgba(0,0,0,.25); }
.ba-steps h3 { margin-bottom: 4px; }

/* feature / stat */
.ba-feat .ic { width: 52px; height: 52px; border: var(--bd-thin); display: grid; place-items: center; margin-bottom: 14px; background: var(--green-l); }
.ba-feat .ic svg { width: 26px; height: 26px; color: var(--green-d); }
.ba-feat h3 { margin-bottom: 8px; }
.ba-feat p { color: var(--ink-2); margin: 0; }
.ba-num { font-family: var(--ff-head); font-style: italic; font-weight: 900; font-size: 2.8rem; line-height: 1; }

/* speech-bubble quote */
.ba-quote { position: relative; background: var(--white); border: var(--bd); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); margin: 0 0 18px; }
.ba-quote::after { content: ""; position: absolute; bottom: -14px; inset-inline-start: 34px; width: 24px; height: 24px; background: var(--white); border-right: var(--bd); border-bottom: var(--bd); transform: rotate(45deg); }
.ba-quote p { font-family: var(--ff-head); font-style: italic; font-weight: 700; font-size: 1.15rem; margin: 0; }
html[lang="ar"] .ba-quote p { font-family: var(--ff-ar); font-style: normal; }
.ba-quote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 600; font-size: .86rem; color: var(--ink-2); }

/* ---------- Forms ---------- */
.ba-form { display: grid; gap: 18px; }
.ba-field { display: grid; gap: 7px; }
.ba-field > label { font-weight: 700; font-size: .95rem; }
.ba-field .hint { font-size: .8rem; color: var(--ink-2); }
.ba-field input, .ba-field select, .ba-field textarea { font: inherit; color: var(--ink); width: 100%; padding: 14px 15px; border: var(--bd-thin); border-radius: 0; background: var(--white); }
.ba-field input:focus, .ba-field select:focus, .ba-field textarea:focus { outline: none; border-color: var(--coral-d); box-shadow: var(--shadow-sm); }
.ba-field input::placeholder, .ba-field textarea::placeholder { color: #97a29b; }
.ba-field .err { display: none; color: var(--danger); font-size: .82rem; font-weight: 600; }
.ba-field.-invalid input, .ba-field.-invalid select, .ba-field.-invalid textarea { border-color: var(--danger); background: var(--danger-bg); }
.ba-field.-invalid .err { display: block; }
.ba-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .ba-row2 { grid-template-columns: 1fr; } }

/* amount picker (preset + input) */
.ba-amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.ba-amounts label { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 50px; min-width: 80px; padding: 0 16px; cursor: pointer; border: var(--bd-thin); background: var(--white); font-weight: 700; user-select: none; }
.ba-amounts input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ba-amounts label.is-on, .ba-amounts label:has(input:checked) { background: var(--green-d); color: #fff; border-color: var(--ink); box-shadow: var(--shadow-sm); }

/* balance result */
.ba-balance { margin-top: 18px; padding: 24px; border: var(--bd); border-radius: var(--r); background: var(--green-l); }
.ba-balance .amt { font-family: var(--ff-head); font-style: italic; font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--green-dd); }
html[lang="ar"] .ba-balance .amt { font-family: var(--ff-ar); font-style: normal; }
.ba-balance .amt .ccy { font-size: 1.05rem; margin-inline-end: 8px; color: var(--green-d); }
.ba-balance .meta { font-size: .85rem; color: var(--ink-2); margin-top: 8px; }
.ba-balance .sample { display: inline-block; margin-top: 12px; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 700; background: var(--white); border: var(--bd-thin); padding: 3px 9px; }

/* table (glossary / comparison) */
.ba-tablewrap { overflow-x: auto; border: var(--bd); border-radius: var(--r); background: var(--white); }
.ba-table { width: 100%; border-collapse: collapse; }
.ba-table th, .ba-table td { padding: 14px 18px; text-align: start; border-bottom: var(--bd-thin); font-size: .95rem; }
.ba-table thead th { background: var(--ink); color: #fff; font-weight: 700; }
.ba-table tr:last-child td { border-bottom: 0; }

/* prose (legal) */
.ba-prose { max-width: 60ch; }
.ba-prose h2 { font-size: 1.5rem; margin-top: 38px; }
.ba-prose h3 { margin-top: 24px; }
.ba-prose p, .ba-prose li { color: var(--ink-2); }
.ba-prose ul, .ba-prose ol { padding-inline-start: 22px; }
.ba-prose li { margin-bottom: 8px; }
.ba-prose .updated { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.ba-tldr { border: var(--bd); border-radius: var(--r-sm); background: var(--yellow); padding: 16px 20px; margin: 18px 0 26px; max-width: 60ch; }
.ba-tldr strong { text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; }
.ba-tldr p { margin: 6px 0 0; color: var(--ink); }

/* crumbs (schema only rendered minimal) */
.ba-crumbs { font-size: .82rem; color: var(--ink-2); padding-top: 22px; }
.ba-crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.ba-crumbs span { margin-inline: 6px; }

/* CTA band */
.ba-ctaband { border: var(--bd); border-radius: var(--r); background: var(--ink); color: #fff; padding: 44px; text-align: center; box-shadow: var(--shadow-coral); }
.ba-ctaband h2 { color: #fff; }
.ba-ctaband p { color: #cdd6d0; margin-inline: auto; }
.ba-ctaband .ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* ---------- Footer (6 col-ish) ---------- */
.ba-footer { border-top: var(--bd); background: var(--white); padding: 52px 0 24px; }
.ba-fcols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.3fr; gap: 32px; }
@media (max-width: 860px) { .ba-fcols { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 520px) { .ba-fcols { grid-template-columns: 1fr; } }
.ba-footer h4 { font-family: var(--ff-body); font-style: normal; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
html[lang="ar"] .ba-footer h4 { letter-spacing: 0; }
.ba-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ba-footer a { color: var(--ink); text-decoration: none; }
.ba-footer a:hover { text-decoration: underline; }
.ba-footer .brand p { color: var(--ink-2); max-width: 36ch; margin-top: 12px; font-size: .92rem; }
.ba-footer .contact { display: grid; gap: 7px; margin-top: 12px; font-size: .92rem; }
.ba-news { margin-top: 12px; display: flex; gap: 8px; max-width: 320px; }
.ba-news input { flex: 1; padding: 11px 13px; border: var(--bd-thin); font: inherit; }
.ba-news button { padding: 11px 16px; border: var(--bd-thin); background: var(--coral); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.ba-fbottom { margin-top: 40px; padding-top: 22px; border-top: var(--bd-thin); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.ba-trust { display: inline-flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--ink-2); font-size: .78rem; font-weight: 600; }
.ba-trust span { display: inline-flex; gap: 6px; align-items: center; }
.ba-trust svg { width: 16px; height: 16px; }
.ba-legal-mini { font-size: .8rem; color: var(--ink-2); }
.ba-flag { display: inline-flex; gap: 7px; align-items: center; font-size: .82rem; font-weight: 600; }
.ba-flag svg { width: 22px; height: 15px; border: 1px solid var(--line); }

/* ---------- Modal (bottom sheet) ---------- */
.ba-modal { position: fixed; inset: 0; z-index: 140; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility 0s linear .25s; }
.ba-modal::before { content: ""; position: absolute; inset: 0; background: rgba(20,33,27,.55); }
.ba-modal.is-open { visibility: visible; opacity: 1; transition: opacity .25s ease; }
.ba-modal .sheet { position: relative; width: 100%; max-width: 520px; background: var(--white); border: var(--bd); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; padding: 34px 28px 40px; text-align: center; transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.ba-modal.is-open .sheet { transform: translateY(0); }
@media (min-width: 640px) { .ba-modal { align-items: center; } .ba-modal .sheet { border-bottom: var(--bd); border-radius: var(--r); box-shadow: var(--shadow); } .ba-modal.is-open .sheet { transform: translateY(0); } .ba-modal .sheet { transform: translateY(20px); } }
.ba-modal .close { position: absolute; top: 14px; inset-inline-end: 14px; width: 40px; height: 40px; border: var(--bd-thin); background: transparent; cursor: pointer; }
.ba-modal .check { width: 66px; height: 66px; margin: 0 auto 16px; border: var(--bd); background: var(--green-l); display: grid; place-items: center; }
.ba-modal .check svg { width: 34px; height: 34px; color: var(--green-d); }
.ba-modal h3 { font-size: 1.6rem; }
.ba-modal p { color: var(--ink-2); margin: 10px auto 22px; max-width: 40ch; }

/* spinner overlay */
.ba-overlay { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; background: rgba(246,248,244,.8); visibility: hidden; opacity: 0; transition: opacity .15s ease, visibility 0s linear .15s; }
.ba-overlay.is-open { visibility: visible; opacity: 1; transition: opacity .15s ease; }
.ba-spinner { width: 48px; height: 48px; border: 5px solid var(--green-l); border-top-color: var(--green-d); border-radius: 50%; animation: ba-spin .8s linear infinite; }
@keyframes ba-spin { to { transform: rotate(360deg); } }

/* scroll progress bar */
.ba-progress { position: fixed; top: 0; inset-inline-start: 0; height: 4px; width: 0; background: var(--coral); z-index: 90; }

.ba-noscript { background: var(--yellow); border-bottom: var(--bd); padding: 12px; text-align: center; font-size: .9rem; font-weight: 600; }
.ba-center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ba-spinner { animation: none; }
  .ba-progress { display: none; }
  * { transition-duration: .01ms !important; }
}
