/* Back Pocket, launch edition (pocket/live.php). Same world as the
   pre-approval page in pocket/index.php: graph-paper hero, phone frames,
   one red. */

.bp {
    --bp-ink: var(--color-ink);
    --bp-body: var(--color-ink-secondary);
    --bp-muted: var(--color-ink-muted);
    --bp-paper: var(--bg-page);
    --bp-warm: var(--bg-page-warm);
    --bp-white: var(--bg-surface);
    --bp-red-text: var(--brand-ink);
    --bp-pink: var(--brand-soft);
    --bp-pink-soft: var(--brand-tint);
    --bp-line: var(--gray-200);
    --bp-live: var(--color-success-dark);
    --bp-grid: color-mix(in srgb, var(--bp-muted) 9%, transparent);
    --bp-shadow: 0 4px 14px rgba(44, 36, 22, .07), 0 18px 44px rgba(44, 36, 22, .11);
    --bp-shadow-lg: 0 8px 24px rgba(44, 36, 22, .10), 0 34px 70px rgba(44, 36, 22, .16);
    --bp-hairline-shadow: 0 1px 2px rgba(44, 36, 22, .05);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--bp-body);
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: clip;
}
.bp *, .bp *::before, .bp *::after { box-sizing: border-box; }
.bp ::selection { background: var(--bp-pink); color: var(--bp-ink); }
.bp a:focus-visible, .bp summary:focus-visible {
    outline: var(--focus-ring); outline-offset: var(--focus-ring-offset); border-radius: 6px;
}
.bp section[id] { scroll-margin-top: 84px; }
.bp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.bp h1, .bp h2, .bp h3 {
    font-family: 'Fraunces', Georgia, serif; color: var(--bp-ink);
    letter-spacing: -0.02em; margin: 0; text-wrap: balance;
}
.bp em.bp-accent {
    font-style: italic; font-weight: 700; color: var(--bp-red-text);
    background: linear-gradient(transparent 68%, var(--bp-pink) 68%, var(--bp-pink) 92%, transparent 92%);
    padding: 0 .06em;
}
.bp-lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; max-width: 34em; margin: 18px 0 0; }
.bp-badge-link { display: inline-block; border-radius: 10px; line-height: 0; transition: transform .2s var(--ease); }
.bp-badge-link:hover { transform: translateY(-1px); }
.bp-badge-link img { display: block; height: 52px; width: auto; }
.bp-qr { display: block; width: 88px; height: 88px; flex: none; border-radius: 8px; background: var(--bp-white); }

/* ---------- hero ---------- */
.bp-hero {
    position: relative; padding: 64px 0 88px;
    background-color: var(--bp-paper);
    background-image:
        linear-gradient(var(--bp-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px);
    background-size: 28px 28px;
    border-bottom: 1px solid var(--bp-line);
}
.bp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.bp-hero__mark { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.bp-hero__mark img { width: 56px; height: 56px; border-radius: 13px; box-shadow: var(--bp-shadow); }
.bp-hero__mark span { font: 600 15px/1.3 'Inter', sans-serif; color: var(--bp-ink); }
.bp-hero__mark small { display: block; font-weight: 500; color: var(--bp-muted); font-size: 13px; }
.bp-hero__mark .bp-live {
    display: inline-flex; align-items: center; gap: 8px; margin-left: 4px;
    padding: 7px 13px 7px 10px; border-radius: 999px;
    background: var(--bp-white); border: 1px solid var(--bp-line); box-shadow: var(--bp-hairline-shadow);
    font-size: 13px; line-height: 1.2;
}
.bp-live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bp-live); flex: none; }
.bp-hero h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; font-weight: 600; }
.bp-hero__actions { display: flex; flex-wrap: wrap; gap: 14px 16px; margin-top: 32px; align-items: center; }

/* Scan-to-phone: only where the visitor is not already holding the phone. */
.bp-scan {
    display: flex; align-items: center; gap: 16px; margin-top: 28px; max-width: 400px;
    padding: 12px 18px 12px 12px; border-radius: 16px;
    background: var(--bp-white); border: 1px solid var(--bp-line); box-shadow: var(--bp-hairline-shadow);
}
.bp-scan p { margin: 0; font: 500 14.5px/1.45 'Inter', sans-serif; color: var(--bp-body); }
.bp-scan strong { display: block; color: var(--bp-ink); font-weight: 600; font-size: 15px; margin-bottom: 2px; }

/* ---------- phone frame ---------- */
.bp-phone {
    position: relative; width: min(100%, 320px); aspect-ratio: 1179 / 2556;
    border-radius: 17.2% / 7.9%; padding: 11px; background: var(--gray-900);
    box-shadow: var(--bp-shadow-lg), inset 0 0 0 2px var(--gray-700);
}
.bp-phone img, .bp-phone video {
    width: 100%; height: 100%; object-fit: cover; border-radius: 14.7% / 6.75%;
    display: block; background: var(--gray-900);
}
.bp-hero__phones { position: relative; display: flex; justify-content: center; min-height: 560px; }
.bp-hero__phones .bp-phone--front { z-index: 2; transform: rotate(-3deg); }
.bp-hero__phones .bp-phone--back {
    position: absolute; width: min(78%, 270px); right: -6%; top: 64px;
    transform: rotate(6deg); opacity: .96;
}
.bp-sticker {
    position: absolute; z-index: 3; left: -4%; bottom: 70px;
    background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: 14px;
    padding: 12px 14px; box-shadow: var(--bp-shadow); max-width: 230px;
    transform: rotate(-2deg);
    font: 500 14px/1.35 'Inter', sans-serif; color: var(--bp-ink);
}
.bp-sticker b {
    display: block; font: 700 11px/1 'Inter', sans-serif; letter-spacing: .12em;
    text-transform: uppercase; color: var(--bp-red-text); margin-bottom: 6px;
}

/* The one authored moment: on load the phones come up out of the pocket and
   settle at their angles. They start visible, only lower. */
@media (prefers-reduced-motion: no-preference) {
    .bp-hero__phones .bp-phone--front { animation: bp-rise-front 1.1s var(--ease) both; }
    .bp-hero__phones .bp-phone--back { animation: bp-rise-back 1.3s var(--ease) .12s both; }
    .bp-sticker { animation: bp-stick .6s var(--ease) .9s both; }
}
@keyframes bp-rise-front { from { transform: translateY(56px) rotate(0deg); } to { transform: rotate(-3deg); } }
@keyframes bp-rise-back { from { transform: translateY(80px) rotate(0deg); } to { transform: rotate(6deg); } }
@keyframes bp-stick { from { transform: scale(.92) rotate(-6deg); opacity: .4; } to { transform: rotate(-2deg); opacity: 1; } }

/* ---------- situations strip ---------- */
.bp-strip { padding: 56px 0; background: var(--bp-white); border-bottom: 1px solid var(--bp-line); }
.bp-strip__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.bp-strip h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 600; }
.bp-strip p { margin: 0; color: var(--bp-muted); font-size: 15px; }
.bp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bp-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 16px; border-radius: 999px;
    background: var(--bp-warm); border: 1px solid var(--bp-line);
    font: 500 15px/1.2 'Inter', sans-serif; color: var(--bp-ink);
}
.bp-chip .material-symbols-outlined { font-size: var(--icon-lg, 24px); color: var(--bp-red-text); }

/* ---------- feature rows ---------- */
.bp-features { padding: 96px 0 40px; }
.bp-features__intro { max-width: 640px; margin-bottom: 56px; }
.bp-features__intro h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; font-weight: 600; }
.bp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 40px 0 72px; }
.bp-row + .bp-row { border-top: 1px dashed var(--bp-line); padding-top: 72px; }
.bp-row--flip .bp-row__media { order: 2; }
.bp-row__media { display: flex; justify-content: center; }
.bp-row h3 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; font-weight: 600; }
.bp-row p { font-size: 17px; line-height: 1.65; margin: 16px 0 0; max-width: 30em; }
.bp-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.bp-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.bp-list .material-symbols-outlined {
    flex: none; font-size: var(--icon-lg, 24px); color: var(--bp-red-text);
    background: var(--bp-pink-soft); border-radius: 8px; padding: 4px;
}

/* ---------- how ---------- */
.bp-how { padding: 88px 0; background: var(--bp-warm); border-top: 1px solid var(--bp-line); border-bottom: 1px solid var(--bp-line); }
.bp-how h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 600; max-width: 18em; }
.bp-steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 44px 0 0; }
.bp-step {
    background: var(--bp-white); border: 1px solid var(--bp-line); border-radius: 18px;
    padding: 26px 24px 28px; box-shadow: var(--bp-hairline-shadow);
}
.bp-step__n {
    display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: var(--bp-pink); color: var(--bp-red-text); font: 700 15px/1 'Inter', sans-serif; margin-bottom: 16px;
}
.bp-step h3 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.bp-step p { margin: 0; font-size: 15.5px; line-height: 1.6; }

/* ---------- get it ---------- */
/* A full-width section band, not a member of the card family: its 28px corners
   and 56px inset are deliberate (Bill, 20 Oct 2026), so it is not named __card. */
.bp-get { padding: 96px 0 104px; }
.bp-get__panel {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center;
    background: var(--bp-ink); color: var(--gray-200); border-radius: 28px; padding: 56px;
}
.bp-get__panel::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 28px 28px;
}
.bp-get__panel > * { position: relative; z-index: 1; }
.bp-get h2 { color: var(--text-inverse); font-size: clamp(32px, 4vw, 46px); line-height: 1.06; font-weight: 600; }
.bp-get h2 em { font-style: italic; color: var(--brand-line); }
.bp-get__copy p { font-size: 17px; line-height: 1.6; margin: 16px 0 0; max-width: 30em; }
.bp-ticket {
    justify-self: end; width: min(100%, 300px);
    display: grid; justify-items: center; gap: 18px; text-align: center;
    background: var(--bp-white); color: var(--bp-body); border-radius: 22px; padding: 26px 24px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
    transform: rotate(2deg);
}
.bp-ticket .bp-qr { width: 172px; height: 172px; border-radius: 10px; }
.bp-ticket p { margin: 0; font: 500 14.5px/1.45 'Inter', sans-serif; }
.bp-ticket strong { color: var(--bp-ink); font-weight: 600; }
.bp-ticket__rule { width: 100%; border: 0; border-top: 1px dashed var(--bp-line); margin: 0; }
.bp-ticket__touch { display: none; }

/* ---------- faq ---------- */
.bp-faq { padding: 0 0 96px; }
.bp-faq .bp-wrap { max-width: 860px; }
.bp-faq h2 { font-size: clamp(28px, 3vw, 36px); font-weight: 600; margin-bottom: 24px; }
.bp-faq details { border-top: 1px solid var(--bp-line); padding: 20px 0; }
.bp-faq details:last-child { border-bottom: 1px solid var(--bp-line); }
.bp-faq summary {
    cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px;
    font: 600 18px/1.4 'Inter', sans-serif; color: var(--bp-ink);
}
.bp-faq summary::-webkit-details-marker { display: none; }
.bp-faq summary::after {
    content: "+"; font-weight: 500; font-size: 24px; line-height: 1; color: var(--bp-red-text);
    transition: transform .25s var(--ease);
}
.bp-faq details[open] summary::after { transform: rotate(45deg); }
.bp-faq details p { margin: 12px 0 0; font-size: 16px; line-height: 1.65; max-width: 44em; }
.bp-faq a { color: var(--bp-red-text); font-weight: 600; text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .bp-hero { padding: 40px 0 64px; }
    .bp-hero__grid, .bp-row, .bp-get__panel { grid-template-columns: 1fr; gap: 40px; }
    .bp-row--flip .bp-row__media { order: 0; }
    .bp-hero__phones { min-height: 0; padding: 10px 0 20px; }
    .bp-hero__phones .bp-phone--front { width: min(70%, 280px); }
    .bp-hero__phones .bp-phone--back { width: min(52%, 210px); right: 4%; top: 40px; }
    .bp-sticker { left: 0; bottom: 30px; max-width: 200px; font-size: 13px; }
    .bp-steps { grid-template-columns: 1fr; }
    .bp-get__panel { padding: 36px 24px; border-radius: 22px; }
    .bp-features { padding-top: 72px; }
    .bp-row { padding: 24px 0 48px; }
    .bp-row + .bp-row { padding-top: 48px; }
    .bp-row .bp-phone { width: min(78%, 290px); }
    /* Phones and tablets: the badge is the way in, so the QR codes go. */
    .bp-scan, .bp-ticket .bp-qr, .bp-ticket__desk, .bp-ticket__rule { display: none; }
    .bp-ticket { justify-self: start; transform: none; padding: 22px; }
    .bp-ticket__touch { display: block; }
}
@media (max-width: 480px) {
    .bp-wrap { padding: 0 16px; }
    .bp-hero__mark .bp-live { margin-left: 0; }
    .bp-hero__phones .bp-phone--back { display: none; }
    .bp-hero__phones .bp-phone--front { transform: none; animation: none; }
    .bp-sticker { position: relative; left: auto; bottom: auto; margin: -40px auto 0; transform: rotate(-2deg); animation: none; }
    .bp-hero__phones { flex-direction: column; align-items: center; }
    .bp-ticket { width: 100%; }
}
