/* =====================================================================
   Ghana Vouchers homepage — bold & colourful
   ===================================================================== */
:root { --amber: #ffc53d; --amber-ink: #3b2600; --hero-1: #071a4a; --hero-2: #0f3bb5; }

/* dark header on the homepage */
.has-dark-header .site-header { background: var(--hero-1); border-bottom-color: rgba(255,255,255,.08); backdrop-filter: none; -webkit-backdrop-filter: none; }
.has-dark-header .site-header .brand { color: #fff; }
.has-dark-header .site-header .brand small { color: #9fb3e6; }
.has-dark-header .nav-links a { color: #c9d6f5; }
.has-dark-header .nav-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.has-dark-header .nav-cta .btn-ghost { color: #c9d6f5; }
.has-dark-header .nav-cta .btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.has-dark-header .nav-cta .btn-primary { --b-bg: var(--amber); --b-ink: var(--amber-ink); --b-line: var(--amber); }
.has-dark-header .nav-cta .btn-primary:hover { background: #ffb81a; }
@media (max-width: 860px) { .has-dark-header .nav-links { background: var(--hero-1); border-bottom-color: rgba(255,255,255,.1); } }

.b-btn-amber { --b-bg: var(--amber); --b-ink: var(--amber-ink); --b-line: var(--amber); font-weight: 700; box-shadow: 0 10px 24px -10px rgba(255,197,61,.8); }
.b-btn-amber:hover { background: #ffb81a; }
.b-btn-outline { --b-bg: transparent; --b-ink: #fff; --b-line: rgba(255,255,255,.4); box-shadow: none; }
.b-btn-outline:hover { background: rgba(255,255,255,.1); }

/* hero */
.b-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--hero-1) 0%, #0b2a86 55%, var(--hero-2) 100%); padding: 72px 0 150px; }
.b-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.b-hero-bg::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 90%); mask-image: linear-gradient(180deg, #000 0%, transparent 90%); }
.orb { position: absolute; border-radius: 50%; }
.orb.o1 { width: 420px; height: 420px; right: -120px; top: -140px; background: radial-gradient(closest-side, rgba(255,197,61,.45), transparent); }
.orb.o2 { width: 520px; height: 520px; left: -220px; bottom: -260px; background: radial-gradient(closest-side, rgba(56,189,248,.35), transparent); }
.orb.o3 { width: 260px; height: 260px; right: 30%; bottom: 40px; background: radial-gradient(closest-side, rgba(167,139,250,.35), transparent); }
.b-hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.b-hero-grid > * { min-width: 0; }
.b-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 13.5px; font-weight: 500; color: #dbe5ff; }
.b-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.25); }
.b-hero h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -.04em; font-weight: 800; margin: 22px 0 20px; color: #fff; }
.b-hero h1 span { color: var(--amber); }
.b-hero-copy > p { font-size: 18.5px; line-height: 1.6; color: #c9d6f5; max-width: 540px; }
.b-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.b-actions .btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; border-radius: 10px; }
.b-facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); }
.b-facts div { display: flex; flex-direction: column; }
.b-facts strong { font-size: 18px; font-weight: 700; color: #fff; }
.b-facts span { font-size: 13.5px; color: #9fb3e6; }

/* phone illustration */
.b-phone-wrap { position: relative; display: grid; place-items: center; min-height: 460px; }
.b-phone { position: relative; width: 270px; height: 520px; border-radius: 42px; background: #0b1220; padding: 12px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.08); transform: rotate(3deg); }
.b-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; background: #0b1220; border-radius: 0 0 16px 16px; z-index: 2; }
.b-screen { height: 100%; border-radius: 32px; background: #eef2f8; padding: 44px 14px 14px; overflow: hidden; color: #0b1220; }
.b-sms-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #d9e0ea; margin-bottom: 14px; }
.b-sms-head strong { display: block; font-size: 13.5px; }
.b-sms-head small { font-size: 11.5px; color: #6b7280; }
.b-avatar { display: grid; place-items: center; }
.b-bubble { background: #fff; border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-size: 12.5px; line-height: 1.5; box-shadow: 0 1px 2px rgba(0,0,0,.06); animation: bubble-in .6s ease-out both; }
.b-bubble p + p { margin-top: 6px; }
.b-bubble .mono { font-size: 12px; background: #eef3ff; border-radius: 8px; padding: 6px 8px; color: #1e3a8a; }
.b-bubble-sm { margin-top: 10px; animation-delay: .5s; }
@keyframes bubble-in { from { opacity: 0; transform: translateY(10px); } }
.b-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: #fff; color: #0b1220; font-size: 13.5px; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(0,0,0,.45); }
.b-float svg { color: #fff; background: #16a34a; border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.b-float.f1 { left: -6px; top: 58%; }
.b-float.f2 { right: 0; bottom: 70px; }
.b-float.f2 svg { background: #f59e0b; }
@media (max-width: 960px) { .b-hero-grid { grid-template-columns: 1fr; } .b-phone-wrap { min-height: 0; margin-top: 8px; } .b-float.f1 { left: 4%; } .b-float.f2 { right: 4%; } }
@media (max-width: 520px) { .b-hero { padding: 44px 0 120px; } .b-phone { transform: none; width: 240px; height: 470px; } .b-float { display: none; } }
@media (prefers-reduced-motion: reduce) { .b-bubble { animation: none; } }

/* colourful voucher cards overlapping the hero */
.b-products { position: relative; margin-top: -96px; padding-bottom: 24px; }
.b-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.b-cards > * { min-width: 0; }
.b-card { --c1: #3b82f6; --c2: #1d4ed8; --soft: #eff4ff; position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: 20px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(7,26,74,.35); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.b-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.b-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -24px rgba(7,26,74,.45); }
.b-card.t-blue { --c1: #3b82f6; --c2: #1d4ed8; --soft: #eff4ff; }
.b-card.t-violet { --c1: #a855f7; --c2: #6d28d9; --soft: #f5efff; }
.b-card.t-orange { --c1: #fb923c; --c2: #ea580c; --soft: #fff3ea; }
.b-card.t-teal { --c1: #2dd4bf; --c2: #0f766e; --soft: #ecfdf8; }
.b-card.t-pink { --c1: #f472b6; --c2: #be185d; --soft: #fdf0f6; }
:root[data-theme="dark"] .b-card { --soft: rgba(255,255,255,.05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .b-card { --soft: rgba(255,255,255,.05); } }
.b-card-top { display: flex; align-items: center; justify-content: space-between; }
.b-card-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 10px 20px -10px var(--c2); }
.b-tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.b-tag.out { background: var(--err-bg); color: var(--err); }
.b-card h3 { font-size: 22px; font-weight: 750; letter-spacing: -.02em; margin-top: 18px; }
.b-card-desc { color: var(--ink-3); font-size: 14px; margin-top: 2px; }
.b-price { display: flex; align-items: baseline; gap: 6px; margin-top: 14px; }
.b-price span { font-size: 15px; font-weight: 700; color: var(--c2); }
.b-price strong { font-size: 46px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.b-price em { font-style: normal; color: var(--ink-3); font-size: 14px; }
.b-tiers { list-style: none; margin: 18px 0 22px; padding: 12px 14px; border-radius: 12px; background: var(--soft); display: grid; gap: 6px; }
.b-tiers li { display: flex; justify-content: space-between; font-size: 13.5px; }
.b-tiers li span { color: var(--ink-3); }
.b-tiers li strong { font-weight: 600; }
.b-card-btn { margin-top: auto; --b-bg: var(--c2); --b-ink: #fff; --b-line: var(--c2); border-radius: 10px; font-weight: 600; }
.b-card-btn:hover { background: var(--c1); border-color: var(--c1); }

/* steps */
.b-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.b-step { padding: 28px; border-radius: 20px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.b-step-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.b-step.s1 .b-step-ic { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.b-step.s2 .b-step-ic { background: linear-gradient(135deg, #fbbf24, #d97706); }
.b-step.s3 .b-step-ic { background: linear-gradient(135deg, #34d399, #059669); }
.b-step-n { display: block; margin-top: 18px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.b-step h3 { font-size: 19px; font-weight: 700; margin-top: 4px; }
.b-step p { color: var(--ink-2); margin-top: 8px; font-size: 15px; }
@media (max-width: 860px) { .b-steps { grid-template-columns: 1fr; } }

/* USSD + help duo */
.b-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.b-duo > * { min-width: 0; }
.b-ussd { padding: 32px; border-radius: 20px; background: linear-gradient(135deg, #ffd166 0%, #ffb81a 100%); color: var(--amber-ink); position: relative; overflow: hidden; }
.b-ussd::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255,255,255,.25); }
.b-ussd-label { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.b-ussd-code { font-size: clamp(40px, 6vw, 58px); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 10px; line-height: 1; }
.b-ussd p { font-size: 15.5px; max-width: 380px; position: relative; z-index: 1; }
.b-help { padding: 32px; border-radius: 20px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.b-help-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.b-help h2 { font-size: 24px; font-weight: 750; margin-top: 16px; letter-spacing: -.02em; }
.b-help p { color: var(--ink-2); margin: 8px 0 20px; font-size: 15.5px; }
@media (max-width: 860px) { .b-duo { grid-template-columns: 1fr; } }

/* final call to action */
.b-final { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 40px 44px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 100%); position: relative; overflow: hidden; }
.b-final::after { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,197,61,.4), transparent); }
.b-final > * { position: relative; z-index: 1; }
.b-final h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.03em; }
.b-final p { color: #c9d6f5; margin-top: 6px; font-size: 16px; }
@media (max-width: 560px) { .b-final { padding: 30px 24px; } }

/* CMS layout variants */
.b-hero.no-overlap { padding-bottom: 80px; }
.b-products.no-overlap { margin-top: 0; padding-top: 56px; }
.b-hero-grid.no-phone { grid-template-columns: 1fr; max-width: 820px; }
.b-duo.single { grid-template-columns: 1fr; }
.b-ussd-codes { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 8px 0 12px; position: relative; z-index: 1; }
.b-ussd-codes .b-ussd-code { margin: 0; }
.b-ussd-code.two { font-size: clamp(32px, 4.4vw, 44px); }
.b-ussd-or { font-size: 15px; font-weight: 700; opacity: .7; }

/* =====================================================================
   Retrieve vouchers page
   ===================================================================== */
.r-hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--hero-1) 0%, #0b2a86 60%, var(--hero-2) 100%); padding: 56px 0 140px; text-align: center; }
.r-hero-inner { position: relative; max-width: 760px; }
.r-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.04em; line-height: 1.06; margin: 20px 0 16px; color: #fff; }
.r-hero h1 span { color: var(--amber); }
.r-hero p { font-size: 18px; color: #c9d6f5; max-width: 620px; margin: 0 auto; line-height: 1.6; }
.r-main { position: relative; margin-top: -100px; padding-bottom: 40px; }
.r-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 22px; align-items: start; }
.r-grid > * { min-width: 0; }
.r-card { --c1: #3b82f6; --c2: #1d4ed8; position: relative; padding: 28px; border-radius: 20px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: 0 30px 60px -28px rgba(7,26,74,.45); overflow: hidden; }
.r-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, #3b82f6, #ffc53d); }
.r-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.r-card-head h2 { font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.r-card-head p { color: var(--ink-3); font-size: 14px; }
.r-ic { --c1: #3b82f6; --c2: #1d4ed8; }
.input-lg { min-height: 52px; font-size: 17px; }
.r-btn { --c1: #3b82f6; --c2: #1d4ed8; margin-top: 22px; min-height: 54px; font-size: 16px; }
.r-safe { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; font-size: 13px; color: var(--ink-3); text-align: center; }
.r-side { display: grid; gap: 16px; }
.r-where { padding: 24px; border-radius: 20px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: 0 20px 40px -28px rgba(7,26,74,.35); }
.r-where h3 { font-size: 17px; font-weight: 700; }
.r-where > p { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }
.r-sms { margin-top: 14px; padding: 14px 16px; border-radius: 16px 16px 16px 4px; background: #eef2f8; color: #1f2937; font-size: 13.5px; line-height: 1.55; }
:root[data-theme="dark"] .r-sms { background: #1b2436; color: #d6deeb; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .r-sms { background: #1b2436; color: #d6deeb; } }
.r-sms-from { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #6b7280; margin-bottom: 6px; }
.r-hl { background: #ffe58a; color: #3b2600; padding: 1px 5px; border-radius: 5px; font-weight: 700; font-family: var(--mono); font-size: 12.5px; box-shadow: 0 0 0 2px #ffc53d; }
.r-tips { display: grid; gap: 10px; }
.r-tip { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--line); color: var(--ink); }
.r-tip strong { font-size: 14.5px; font-weight: 650; }
.r-tip p { color: var(--ink-3); font-size: 13.5px; margin-top: 1px; }
.r-tip-link { align-items: center; }
.r-tip-link:hover { text-decoration: none; border-color: var(--line-2); box-shadow: var(--shadow); }
.r-tip-link > svg:last-child { margin-left: auto; color: var(--ink-3); }
.r-tip-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.r-tip-ic.t1 { background: linear-gradient(135deg, #fbbf24, #d97706); }
.r-tip-ic.t2 { background: linear-gradient(135deg, #a855f7, #6d28d9); }
.r-tip-ic.t3 { background: linear-gradient(135deg, #34d399, #059669); }
@media (max-width: 900px) { .r-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .r-hero { padding: 40px 0 120px; } .r-card { padding: 22px; } }

/* results */
.r-results { margin-top: 28px; }
.r-found { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: var(--ok-bg); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); margin-bottom: 18px; }
.r-found-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; flex-shrink: 0; }
.r-found h2 { font-size: 19px; font-weight: 700; }
.r-found p { color: var(--ink-2); font-size: 14px; }
.r-vouchers { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.r-voucher { padding: 22px 22px 16px; }
.r-v-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; color: var(--c2); }
.r-v-n { color: var(--ink-3); font-weight: 600; }
.r-v-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.r-v-val { font-size: 19px; font-weight: 700; letter-spacing: .05em; margin-top: 2px; word-break: break-all; }
.r-v-foot { padding-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.r-keep { margin-top: 16px; text-align: center; color: var(--ink-3); font-size: 13.5px; }
@media print { .r-hero { display: none; } .r-main { margin-top: 0; } .r-found { background: none; border: 0; } .r-voucher { box-shadow: none; border: 1px solid #000; } }

/* after-payment page */
.p-hero { padding-bottom: 120px; }
.p-status-ic { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff; }
.p-status-ic.ok { background: #16a34a; border-color: #16a34a; box-shadow: 0 0 0 10px rgba(22,163,74,.2); }
.p-status-ic.err { background: #dc2626; border-color: #dc2626; box-shadow: 0 0 0 10px rgba(220,38,38,.2); }
.p-spinner { width: 30px; height: 30px; border: 3px solid rgba(255,255,255,.35); border-top-color: var(--amber); border-radius: 50%; animation: spin .9s linear infinite; }
.p-wait { max-width: 620px; margin: 0 auto; }
.p-steps { display: grid; gap: 18px; }
.p-step { display: flex; gap: 14px; align-items: flex-start; opacity: .5; }
.p-step.done, .p-step.active { opacity: 1; }
.p-step strong { font-size: 15.5px; }
.p-step p { color: var(--ink-3); font-size: 14px; }
.p-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.p-step.done .p-dot { background: #16a34a; border-color: #16a34a; }
.p-step.active .p-dot { border-color: var(--brand); border-top-color: transparent; animation: spin 1s linear infinite; }
.p-after { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* My orders */
.pin-input { letter-spacing: .4em; font-size: 22px; text-align: center; }
.mo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 22px; border-radius: 18px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: 0 24px 48px -28px rgba(7,26,74,.4); margin-bottom: 18px; }
.mo-stats { display: flex; gap: 32px; }
.mo-stats div { display: flex; flex-direction: column; }
.mo-stats strong { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.mo-stats span { font-size: 13px; color: var(--ink-3); }
.mo-list { display: grid; gap: 12px; }
.mo-order { border-radius: 16px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.mo-order > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 20px; flex-wrap: wrap; }
.mo-order > summary::-webkit-details-marker { display: none; }
.mo-order[open] > summary { border-bottom: 1px solid var(--line); }
.mo-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #3b82f6, #1d4ed8); flex-shrink: 0; }
.mo-ic.v { background: linear-gradient(135deg, #a855f7, #6d28d9); }
.mo-main { display: flex; flex-direction: column; flex: 1; min-width: 180px; }
.mo-main strong { font-size: 16px; font-weight: 650; }
.mo-main span { font-size: 13px; color: var(--ink-3); }
.mo-amt { font-size: 16px; font-weight: 700; min-width: 80px; text-align: right; }
.mo-body { padding: 16px 20px 18px; }
.mo-table { border: 1px solid var(--line); border-radius: 12px; }
.muted-order { opacity: .85; }
.muted-order .mo-ic { background: var(--line-2); }
.mo-table .copy-btn { display: inline-grid; vertical-align: middle; margin-left: 4px; }

/* Policy / support pages */
.lg-hero { padding-bottom: 110px; }
.lg-main { position: relative; margin-top: -80px; padding-bottom: 40px; }
.lg-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: start; }
.lg-wrap > * { min-width: 0; }
.lg-nav { position: sticky; top: 84px; display: grid; gap: 4px; padding: 10px; border-radius: 16px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.lg-nav a { padding: 9px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.lg-nav a:hover { background: var(--bg-sunken); text-decoration: none; }
.lg-nav a.on { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.lg-doc { padding: 32px 36px; border-radius: 20px; background: var(--bg-elev); border: 1px solid var(--line); box-shadow: 0 24px 48px -28px rgba(7,26,74,.35); }
.lg-doc .lg-date { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.lg-doc h2 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; letter-spacing: -.01em; }
.lg-doc h2:first-of-type { margin-top: 6px; }
.lg-doc p, .lg-doc li { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.lg-doc p + p { margin-top: 10px; }
.lg-doc ul { margin: 8px 0 0; padding-left: 20px; }
.lg-doc li + li { margin-top: 4px; }
.lg-doc table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.lg-doc th, .lg-doc td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lg-doc th { background: var(--bg-sunken); font-weight: 600; color: var(--ink-2); }
.sp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
@media (max-width: 860px) { .lg-wrap { grid-template-columns: 1fr; } .lg-nav { position: static; display: flex; overflow-x: auto; } .lg-nav a { white-space: nowrap; } .lg-doc { padding: 24px 20px; } .sp-grid { grid-template-columns: 1fr; } }

/* App store download buttons (top banner; links set in Admin → Homepage editor → Mobile app download) */
.b-apps { margin-top: 18px; }
.b-apps-label { display: block; font-size: 13px; font-weight: 600; color: #a8b6d3; margin-bottom: 8px; }
.b-apps-row { display: flex; flex-wrap: wrap; gap: 10px; }
.app-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; min-height: 50px; border-radius: 10px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.35); text-decoration: none; line-height: 1.1; transition: transform .12s, border-color .12s; }
.app-badge:hover { color: #fff; border-color: #fff; transform: translateY(-1px); }
.app-badge span { display: flex; flex-direction: column; font-size: 18px; font-weight: 600; letter-spacing: -.2px; }
.app-badge small { font-size: 10.5px; font-weight: 500; letter-spacing: .3px; }
.b-card.is-out > * { opacity: .5; filter: saturate(.7); } /* card stays solid; only its content is dimmed */
