/* BamBam website: black, grey and white, like the app. Heavy type, big targets, nothing to download but this file. */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --g50: #f7f7f7;
  --g100: #eeeeee;
  --g200: #e0e0e0;
  --g300: #c8c8c8;
  --g400: #9e9e9e;
  --g500: #707070;
  --g600: #4f4f4f;
  --font: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .cta :focus-visible { outline-color: var(--paper); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); max-width: 18ch; }
h3 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0 0 1em; }
.kicker { margin: 0 0 14px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--g500); }
.kicker.light { color: var(--g400); }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--g600); max-width: 34em; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--g200); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.mark { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.04em; text-decoration: none; line-height: 1; }
.mark .dim { color: var(--g400); }
.top nav { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 0.98rem; }
.top nav a { text-decoration: none; }
.top nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 760px) { .top nav a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 14px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); font: inherit; font-weight: 800; text-decoration: none; transition: transform 0.12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }

/* hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 8vw, 104px); background: linear-gradient(var(--g50), var(--paper)); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.proof { font-size: 0.95rem; color: var(--g500); max-width: 30em; }
.hero-phones { position: relative; height: clamp(440px, 52vw, 600px); }
.hero-phones .phone { position: absolute; margin: 0; width: clamp(190px, 21vw, 260px); }
.phone-front { left: 50%; top: 0; transform: translateX(-4%) rotate(3deg); z-index: 2; }
.phone-back { left: 50%; top: 56px; transform: translateX(-98%) rotate(-5deg); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phones { height: 440px; max-width: 420px; margin-inline: auto; width: 100%; }
  .hero-phones .phone { width: 190px; }
  .phone-back { left: 2%; top: 56px; transform: rotate(-5deg); }
  .phone-front { left: auto; right: 2%; top: 0; transform: rotate(3deg); }
}

/* phones and paper */
.phone { margin: 0; border: 9px solid var(--ink); border-radius: 38px; overflow: hidden; background: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18); }
.phone img { width: 100%; }
.paper { margin: 0; border: 1px solid var(--g300); border-radius: 12px; overflow: hidden; background: var(--paper); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14); }
.paper img { width: 100%; }

/* how it works */
.how { padding: clamp(56px, 9vw, 120px) 0; }
.how h2 { margin-bottom: clamp(36px, 6vw, 72px); }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; margin-bottom: clamp(56px, 8vw, 110px); }
.step:last-child { margin-bottom: 0; }
.step.flip .step-text { order: 2; }
.step > .phone, .step > .paper, .step > .pair { justify-self: center; width: 100%; }
.step > .phone { max-width: 290px; }
.step > .phone-short { max-width: 340px; }
.step > .paper { max-width: 520px; }
.step-text .num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 900; font-size: 1.15rem; margin-bottom: 16px; }
.step-text h3 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 14px; }
.step-text p { color: var(--g600); max-width: 30em; }
.pair { display: flex; gap: 18px; align-items: flex-start; justify-content: center; }
.pair .phone { width: 46%; max-width: 250px; }
.pair .phone-tall { margin-top: 34px; }
@media (max-width: 820px) {
  .step { grid-template-columns: 1fr; }
  .step.flip .step-text { order: 0; }
}

/* why */
.why { background: var(--ink); color: var(--paper); padding: clamp(56px, 9vw, 120px) 0; }
.why h2 { margin-bottom: 44px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { border: 1px solid #333; border-radius: var(--radius); padding: 26px; background: #141414; }
.card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.card p { margin: 0; color: #bdbdbd; font-size: 1rem; }

/* features */
.features { padding: clamp(56px, 9vw, 120px) 0; background: var(--g50); }
.features h2 { margin-bottom: 36px; }
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.grid li { background: var(--paper); border: 1px solid var(--g200); border-radius: var(--radius); padding: 20px 22px; font-size: 0.98rem; color: var(--g600); }
.grid strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }

/* faq */
.faq { padding: clamp(56px, 9vw, 110px) 0; }
.faq h2 { margin-bottom: 28px; }
details { border-bottom: 1px solid var(--g300); padding: 4px 0; }
summary { cursor: pointer; font-weight: 800; font-size: 1.12rem; padding: 18px 28px 18px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.7rem; font-weight: 400; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--g600); margin: 0 0 18px; max-width: 38em; }

/* call to action */
.cta { background: var(--ink); color: var(--paper); text-align: center; padding: clamp(64px, 10vw, 128px) 0; }
.cta h2 { margin: 0 auto 18px; max-width: 14ch; }
.cta .lead { color: #bdbdbd; margin: 0 auto 28px; }
.cta .small { margin-top: 14px; font-size: 0.95rem; color: var(--g400); }

/* footer */
.foot { padding: 32px 0 44px; border-top: 1px solid var(--g200); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot p { margin: 0; font-size: 0.9rem; color: var(--g500); }

/* 404 page */
.notfound { min-height: 100vh; display: grid; place-items: center; }
.mark-lg { font-size: 2rem; }
