/* MyBAC landing page: same palette and type as the app. */
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/Newsreader-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #fff8ee;
  --paper-deep: #f7ecdc;
  --surface: #f5ebdc;
  --card: #ffffff;
  --line: #eadcc8;
  --ink: #1e1a16;
  --ink-soft: #5a524a;
  --ink-mute: #8a8178;
  --accent: #ff6a2b;
  --accent-deep: #b13e0c;
  --accent-soft: #ffe4d4;
  --inverse: #1e1a16;
  --on-inverse: #fff8ee;
  --green: #6fd79e;
  --yellow: #ffd15c;
  --lilac: #c4a3ff;
  --pink: #ff9ec4;
  --peach: #ff9f6b;
  --shadow: 0 1px 2px rgba(30, 26, 22, .06), 0 12px 32px rgba(30, 26, 22, .10);
  --radius: 22px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f0f0f;
    --paper-deep: #161616;
    --surface: #1c1c1c;
    --card: #1c1c1c;
    --line: #2b2b2b;
    --ink: #f3f1ee;
    --ink-soft: #c2bcb5;
    --ink-mute: #8f8982;
    --accent-deep: #ff8f5e;
    --accent-soft: #3a2014;
    --inverse: #f3f1ee;
    --on-inverse: #141414;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.serif { font-family: "Newsreader", Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.01em; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
h1 { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: clamp(42px, 6.4vw, 76px); letter-spacing: -.02em; }
h2 { font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: clamp(32px, 4.2vw, 48px); letter-spacing: -.015em; }
h3 { font-size: 19px; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-soft); }
.eyebrow { justify-self: start; width: fit-content; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent-deep); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.muted { color: var(--ink-soft); }
.skip { position: absolute; left: -999px; top: 12px; background: var(--inverse); color: var(--on-inverse); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 12px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 "Inter", sans-serif; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .1s ease, background-color .15s, border-color .15s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--inverse); color: var(--on-inverse); }
.btn-primary:hover { background: color-mix(in srgb, var(--inverse) 86%, var(--accent)); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-mute); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn .sub { display: block; font-size: 12px; font-weight: 500; opacity: .75; margin-bottom: 3px; }
.btn-store { flex-direction: row; text-align: left; line-height: 1.1; }
.btn-store svg { width: 22px; height: 22px; flex: none; }

/* hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-note { font-size: 14px; color: var(--ink-mute); }
.phones { position: relative; height: 600px; }
.phone { position: absolute; width: 270px; border-radius: 40px; padding: 10px; background: #141414; box-shadow: var(--shadow); }
.phone img { border-radius: 31px; aspect-ratio: 9 / 20; object-fit: cover; width: 100%; }
.phone.one { left: 4%; top: 18px; transform: rotate(-6deg); }
.phone.two { right: 2%; top: 70px; transform: rotate(5deg); }
.najma { position: absolute; width: 112px; left: 44%; top: -6px; filter: drop-shadow(0 10px 18px rgba(177, 62, 12, .25)); border-radius: 26px; animation: bob 4.5s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .phones { height: 470px; max-width: 460px; width: 100%; margin-inline: auto; }
  .phone { width: 210px; border-radius: 32px; padding: 8px; }
  .phone img { border-radius: 25px; }
  .najma { width: 88px; }
}
@media (max-width: 420px) {
  .phones { height: 400px; }
  .phone { width: 176px; }
  .phone.one { left: 0; }
  .phone.two { right: 0; }
}

/* facts strip */
.facts { padding: 8px 0 24px; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.facts li { background: var(--surface); border-radius: 18px; padding: 18px 20px; }
.facts strong { display: block; font-family: "Newsreader", Georgia, serif; font-weight: 500; font-size: 30px; line-height: 1.1; }
.facts span { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 760px) { .facts ul { grid-template-columns: repeat(2, 1fr); } }

/* sections */
section { scroll-margin-top: 80px; }
.section { padding: 88px 0; }
.section-head { display: grid; gap: 14px; max-width: 680px; margin-bottom: 40px; }

/* features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start; }
.feature .tile { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #1e1a16; }
.feature .tile svg { width: 26px; height: 26px; }
.feature p { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* screens */
.screens-band { background: var(--paper-deep); }
.screens { display: grid; grid-auto-flow: column; grid-auto-columns: 232px; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 20px 24px; margin: 0 -20px; scrollbar-width: thin; }
.screens figure { margin: 0; scroll-snap-align: start; display: grid; gap: 12px; }
.screens .shot { border-radius: 30px; padding: 7px; background: #141414; box-shadow: var(--shadow); }
.screens .shot img { border-radius: 24px; aspect-ratio: 9 / 20; object-fit: cover; width: 100%; }
.screens figcaption { font-size: 15px; color: var(--ink-soft); padding-inline: 4px; }
.screens figcaption b { color: var(--ink); font-weight: 600; display: block; }
.scroller-controls { display: flex; gap: 8px; }
.round { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.round:hover { border-color: var(--ink-mute); }
.round svg { width: 20px; height: 20px; }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.head-row .section-head { margin-bottom: 0; }
@media (max-width: 600px) { .scroller-controls { display: none; } }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.steps li { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start; }
.steps li::before { counter-increment: step; content: counter(step); font-family: "Newsreader", Georgia, serif; font-size: 40px; line-height: 1; color: var(--accent); }
.steps p { color: var(--ink-soft); font-size: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* honesty card */
.honest { background: var(--accent-soft); border-radius: 28px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.honest img { width: 120px; border-radius: 28px; }
.honest ul { margin: 14px 0 0; padding-left: 20px; color: var(--ink-soft); display: grid; gap: 6px; }
@media (max-width: 640px) { .honest { grid-template-columns: 1fr; } .honest img { width: 88px; } }

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border-radius: 18px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); }

/* final cta */
.cta { text-align: center; display: grid; gap: 20px; justify-items: center; }
.cta img { width: 96px; border-radius: 24px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; font-size: 14px; color: var(--ink-mute); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* legal page */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 10px; }
.legal h2 { font-size: 26px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }
.legal .callout { background: var(--accent-soft); color: var(--ink); border-radius: 18px; padding: 18px 22px; font-weight: 600; margin: 24px 0; }
