/*
  Public website: landing page (resources/views/portal/site/landing.blade.php) and site pages (privacy, terms, refund,
  delivery, contact, about: portal/site/page.blade.php), shell <x-portal.site-layout>. On top of lms.css (the approved
  design tokens: cream page, teal primary, amber accent, Sora + DM Sans). Brand colours from admin Settings are
  injected after this file as CSS variables (App\Domain\Portal\View\Theme), so every colour below goes through a token.
*/

:root { --on-primary: #fff; --amber-ink: #b97800; }
.btn-primary { color: var(--on-primary); }
.chip.amber { color: var(--amber-ink); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.center { text-align: center; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.site-header .logo { padding: 0; color: var(--ink); }
/* The brand in the header and footer (x-portal.brand): an uploaded logo, else the ProBankershub mark. The public site
   loads lms.css and this file only, so these rules (the same as portal.css) must be here too. It is always light. */
.brand-img { max-height: 38px; max-width: 180px; width: auto; height: auto; display: block; }
.brand-img.dark { display: none; }
.brand-mark { flex: none; display: block; }
.brand-mark .bm-hex { fill: #0e5e56; }
.brand-mark .bm-head, .brand-mark .bm-c1 { fill: #fff; }
.brand-mark .bm-c2 { fill: #7ed9ae; }
.brand-mark.on-dark .bm-hex { fill: #fff; }
.brand-mark.on-dark .bm-head, .brand-mark.on-dark .bm-c1 { fill: #0e5e56; }
.brand-mark.on-dark .bm-c2 { fill: #2fa37e; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a { font-weight: 600; color: var(--ink); padding: 8px 2px; border-radius: 8px; }
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color: var(--primary); }
.nav-cta { display: flex; gap: 10px; margin-left: 10px; }
.menu-btn { display: none; }

/* ---- sections ---- */
.section { padding: 72px 0; scroll-margin-top: 80px; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head h2 { font-size: 32px; margin: 8px 0 10px; }
.section-head p { color: var(--muted); font-size: 16px; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--primary); }

/* ---- hero ---- */
.hero-band { padding: 64px 0 56px; position: relative; overflow: hidden; }
.hero-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--amber) 22%, transparent), transparent 38%), radial-gradient(circle at 8% 92%, var(--primary-50), transparent 42%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero-copy h1 { font-size: 52px; line-height: 1.05; letter-spacing: -.03em; margin: 18px 0 16px; max-width: 620px; }
.hero-copy .lead { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 26px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.cta-row .btn { min-height: 50px; padding: 0 24px; font-size: 16px; }
.store-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); border-radius: 12px; padding: 8px 16px 8px 12px; font-weight: 600; line-height: 1.15; font-size: 14px; }
.store small { display: block; font-size: 11px; font-weight: 500; opacity: .8; }
.store:hover { background: var(--navy); color: #fff; }
.hero-note { margin-top: 16px; }
.hero-media { position: relative; }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 24px; box-shadow: var(--sh-lg); background: var(--line); }

/* The home page slider (x-portal.photo-slider, site.js): the frame of .hero-photo (same size, same corners and shadow) with the
   pictures stacked in it and crossfading. Without JavaScript the first picture shows; the controls sit top left because
   the floating cards cover the top right and the bottom left. */
.slider { position: relative; aspect-ratio: 3 / 2; border-radius: 24px; overflow: hidden; box-shadow: var(--sh-lg); background: var(--line); isolation: isolate; touch-action: pan-y; }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; z-index: 1; }
.slide .photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.slider-bar { position: absolute; top: 14px; left: 14px; z-index: 3; display: flex; align-items: center; gap: 4px; padding: 3px 10px 3px 3px; border-radius: 999px; background: color-mix(in srgb, var(--navy) 62%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.slider-pause { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.slider-pause svg { width: 13px; height: 13px; fill: currentColor; }
.slider-pause .i-play, .slider-pause.is-paused .i-pause { display: none; }
.slider-pause.is-paused .i-play { display: block; }
.slider-dots { display: flex; align-items: center; }
.slider-dot { min-width: 20px; height: 28px; padding: 0 3px; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.slider-dot::before { content: ""; display: block; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .6); transition: width .25s ease, background-color .25s ease; }
.slider-dot[aria-current="true"]::before { width: 22px; background: var(--amber); }
.slider-nav { position: absolute; top: 50%; z-index: 3; width: 40px; height: 40px; padding: 0; margin-top: -20px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: var(--sh); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s ease; }
.slider-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.slider-nav.prev { left: 12px; }
.slider-nav.next { right: 12px; }
.slider:hover .slider-nav, .slider:focus-within .slider-nav { opacity: 1; }
.slider button:focus-visible { outline: 3px solid #fff; outline-offset: 1px; box-shadow: 0 0 0 5px var(--primary); }
@media (hover: none) { .slider-nav { display: none; } }
@media (prefers-reduced-motion: reduce) { .slide, .slide.is-active, .slider-dot::before, .slider-nav { transition: none; } }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--sh-lg); }
.float-card b { display: block; font-size: 14px; }
.float-card small, .float-card span span { color: var(--muted); font-size: 12px; }
.float-top { top: -18px; right: -14px; }
.float-bottom { left: -22px; bottom: -22px; padding: 12px 16px; }
.float-bottom b { font: 700 22px var(--display); line-height: 1.1; }
.float-bottom .ico { width: 40px; height: 40px; }

/* ---- numbers strip ---- */
.numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.numbers-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 56px; padding: 22px 32px; }
.number { display: grid; justify-items: center; text-align: center; min-width: 140px; }
.number b { font: 800 30px var(--display); color: var(--primary); letter-spacing: -.02em; }
.number span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---- features ---- */
.feature h3 { font-size: 18px; margin: 14px 0 6px; }
.feature p { color: var(--muted); font-size: 14px; }

/* ---- how it works ---- */
.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.how-photo { margin: 0; }
.how-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; box-shadow: var(--sh); background: var(--line); }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); color: var(--on-primary); font: 800 18px var(--display); display: grid; place-items: center; flex: none; }
.step h3 { font-size: 17px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---- banks ---- */
.bank-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.bank { padding: 16px 10px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); text-align: center; font-weight: 600; font-size: 13px; line-height: 1.3; display: grid; gap: 10px; justify-items: center; align-content: start; }
.trademark-note { margin-top: 16px; max-width: 760px; }

/* <x-portal.bank-logo>: same rules as public/web/portal.css */
.bank-logo { display: inline-grid; place-items: center; flex: none; overflow: hidden; }
.bank-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bank-logo i { font-style: normal; font-weight: 700; font-size: 12px; letter-spacing: .02em; color: var(--primary); background: var(--primary-50); border-radius: 10px; padding: 0 8px; height: 100%; min-width: 64px; display: grid; place-items: center; }
.bank-logo-card { width: 100%; max-width: 120px; height: 48px; }

/* ---- plans ---- */
.plan-grid { max-width: 1020px; margin: 0 auto; align-items: stretch; }
.plan .price s { font: 600 15px var(--body); color: var(--muted); margin-left: 8px; }
.plan .save { color: var(--green); font-weight: 600; }
.plan .btn { margin-top: auto; }

/* ---- faq ---- */
.narrow { max-width: 760px; }
.faq { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; border-radius: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; flex: none; margin: -4px 4px 0 0; }
.faq[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq-body { padding: 0 18px 16px; color: var(--muted); font-size: 15px; }

/* ---- closing call to action and footer ---- */
.cta-band { background: var(--navy); color: #fff; padding: 72px 0; text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; z-index: -2; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--navy) 94%, transparent), color-mix(in srgb, var(--navy) 80%, transparent)), radial-gradient(circle at 92% 8%, rgba(245,165,36,.3), transparent 40%); }
.cta-band > .wrap { position: relative; }
.cta-band h2 { font-size: 32px; margin-bottom: 8px; }
.cta-band p { opacity: .85; margin-bottom: 22px; }
.btn-outline { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.site-footer { padding: 40px 0 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; }
.site-footer .logo { padding: 0 0 8px; }
.footer-tagline { max-width: 320px; }
.site-footer h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer li a { color: var(--ink); }
.site-footer li a:hover { color: var(--primary); }
.copyright { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.credits a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.credits a:hover { color: var(--primary); }

/* ---- site pages (privacy, terms, refund, delivery, contact, about) ---- */
.page-band { padding: 44px 0 30px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--amber) 16%, transparent), transparent 40%), var(--surface); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.page-band h1 { font-size: 40px; line-height: 1.1; letter-spacing: -.025em; }
.page-band .updated { margin-top: 10px; }
.page-body { padding-top: 36px; padding-bottom: 72px; }
.prose { font-size: 16px; line-height: 1.7; overflow-wrap: break-word; }
.prose > * + * { margin-top: 14px; }
.prose h2 { font-size: 22px; line-height: 1.3; margin-top: 36px; }
.prose h3 { font-size: 18px; line-height: 1.35; margin-top: 26px; }
.prose h4 { font-size: 16px; margin-top: 20px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 6px; }
.prose li::marker { color: var(--primary); }
.prose li > ul, .prose li > ol { margin-top: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.prose strong, .prose b { font-weight: 700; }
.prose blockquote { border-left: 3px solid var(--primary); background: var(--primary-50); padding: 12px 16px; border-radius: 0 12px 12px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); font-weight: 700; }
.contact-cards { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; }
.contact-card div { display: grid; gap: 2px; min-width: 0; }
.contact-card a, .contact-card b { font-weight: 700; overflow-wrap: anywhere; }
.contact-card a[href^="tel:"], .contact-card a[href^="https://wa.me/"] { white-space: nowrap; }
.contact-note { margin: -16px 0 32px; }
.page-action { display: flex; gap: 16px; align-items: center; padding: 18px 20px; margin-bottom: 32px; border-color: color-mix(in srgb, var(--rose) 35%, var(--line)); }
.page-action > div { flex: 1; min-width: 0; }
.page-action h2 { font-size: 18px; margin-bottom: 2px; }
.page-action .btn { flex: none; }
.page-cta { margin-top: 44px; padding: 28px; border-radius: 22px; background: var(--navy); color: #fff; }
.page-cta h2 { font-size: 24px; margin-bottom: 6px; }
.page-cta p { opacity: .85; margin-bottom: 18px; }

/* ---- tablet and phone ---- */
@media (max-width: 1100px) {
  .hero-copy h1 { font-size: 42px; }
  .bank-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .site-header .wrap { min-height: 64px; }
  .menu-btn { display: grid; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: var(--sh-lg); }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 12px 10px; }
  .nav-cta { margin: 8px 0 0; flex-direction: column; }
  .nav-cta .btn { width: 100%; min-height: 46px; }
  .hero-band { padding: 36px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-copy h1 { font-size: 34px; }
  .cta-row .btn { flex: 1 1 auto; }
  .hero-media { margin: 8px 6px 20px; }
  .float-top { top: -14px; right: -6px; padding: 8px 12px; }
  .float-bottom { left: -6px; bottom: -18px; }
  .float-bottom b { font-size: 18px; }
  .numbers-grid { gap: 12px 24px; padding: 18px 16px; }
  .number { min-width: 120px; }
  .number b { font-size: 24px; }
  .section { padding: 48px 0; scroll-margin-top: 72px; }
  .section-head h2 { font-size: 26px; }
  .how-layout { grid-template-columns: 1fr; gap: 24px; }
  .bank-logo-card { height: 40px; }
  .bank-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .bank { padding: 12px 6px 10px; font-size: 12px; }
  .cta-band h2 { font-size: 26px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-support { grid-column: 1 / -1; }
  .page-band { padding: 28px 0 22px; }
  .page-band h1 { font-size: 30px; }
  .page-body { padding-top: 24px; padding-bottom: 48px; }
  .prose { font-size: 15px; }
  .prose h2 { font-size: 20px; margin-top: 30px; }
  .page-cta { padding: 22px 18px; }
  .page-action { flex-wrap: wrap; }
  .page-action .btn { width: 100%; }
  .page-cta .cta-row .btn { flex: 1 1 auto; }
}
