/* REKAP public pages: landing (/), Terms, Privacy, FAQ, Support. No framework, no JS. */
:root {
    --bg: #0b0b0f; --card: #16161c; --line: rgba(255,255,255,.1); --text: #f4f4f5; --muted: rgba(255,255,255,.66);
    --orange: #FF7300; --grad: linear-gradient(105deg, #F5B82E 0%, #FF7300 45%, #E4362E 100%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; }

.pg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(env(safe-area-inset-top), 14px) 20px 14px;
    max-width: 1120px; width: 100%; margin: 0 auto; }
.pg-top-logo img { display: block; height: 26px; width: auto; }
.pg-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
    font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.pg-btn-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.pg-btn-ghost:hover { background: rgba(255,255,255,.1); }
.pg-btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px rgba(255,115,0,.28); }
.pg-btn-primary:hover { filter: brightness(1.06); }

/* Landing (mobile first). REVENUE + SPORTS designs rebuilt in HTML/CSS. */
.pg-landing { background: var(--bg); }
.pg-top-center { justify-content: center; padding-top: max(env(safe-area-inset-top), 22px); padding-bottom: 4px; }
.pg-top-center .pg-top-logo img { height: 34px; }
.pg-badge { display: inline-flex; border-radius: 10px; flex: none; }
.pg-badge img { display: block; height: auto; width: 162px; }
/* Google Play PNG: 646x250 with 41px transparent padding; the visible 564x168 badge matches the 54px App Store badge. */
.pg-cta-row { gap: 10px; flex-wrap: wrap; align-items: center; }
.pg-cta-row .pg-badge img, .pg-final .pg-badge img { width: 150px; }                 /* phones: both badges on one row */
.pg-cta-row .pg-badge-play img { width: 193px; margin: -12.5px; }                    /* visible 168x50 = App Store 150x50 */
@media (min-width: 420px) {
    .pg-cta-row .pg-badge img, .pg-final .pg-badge img { width: 162px; }
    .pg-cta-row .pg-badge-play img { width: 208px; margin: -13.5px; }                /* visible 181x54 */
}
.pg-landing a:focus-visible, .pg-prose summary:focus-visible { outline: 3px solid #FF9A3C; outline-offset: 3px; }
.pg-ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pg-ic-wrap { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 14px;
    color: #FF9A3C; background: rgba(255,115,0,.12); border: 1px solid rgba(255,115,0,.22); }
.pg-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pg-display { margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .98; font-size: clamp(28px, 8.7vw, 76px); }
.pg-display span { display: block; }
.pg-rev-sub { margin: 16px auto 0; max-width: 520px; color: rgba(255,255,255,.82); font-size: clamp(17px, 4.6vw, 21px); line-height: 1.4; }
.pg-cta-row { display: flex; justify-content: center; margin-top: 24px; }

/* Landing header: sticky, dark; blur fades in as you scroll (scroll-driven, no JS). Fixed 64px: no shift. */
.pg-nav { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px;
    height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    background: rgba(11,11,11,.9); border-bottom: 1px solid transparent; }
@supports (animation-timeline: scroll()) {
    .pg-nav { background: rgba(11,11,11,0); animation: pg-nav-solid linear both; animation-timeline: scroll(); animation-range: 0 96px; }
}
@keyframes pg-nav-solid { to { background: rgba(11,11,11,.78); border-bottom-color: rgba(255,255,255,.08);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); } }
.pg-nav-logo { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.pg-nav-logo img { display: block; height: 28px; width: auto; }
.pg-nav-links { display: none; gap: 4px; }
.pg-nav-links a, .pg-nav-text { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
    font-size: 15px; font-weight: 600; text-decoration: none; color: rgba(255,255,255,.86); }
.pg-nav-links a:hover, .pg-nav-text:hover { color: #fff; background: rgba(255,255,255,.06); }
.pg-nav-auth { justify-self: end; display: flex; align-items: center; gap: 2px; }
.pg-nav-pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; margin-left: 2px; border-radius: 999px; white-space: nowrap;
    font-size: 15px; font-weight: 800; text-decoration: none; color: #fff; background: var(--grad); box-shadow: 0 6px 22px rgba(255,115,0,.3); }
.pg-nav-pill:hover { filter: brightness(1.06); }
@media (max-width: 759px) {
    .pg-nav { gap: 8px; padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(10px, env(safe-area-inset-right)); }
    .pg-nav-logo img { height: 24px; }
    .pg-nav-text { padding: 0 8px; font-size: 14px; }
    .pg-nav-pill { font-size: 14px; }
}
.pg-nav-burger { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; }
.pg-nav-burger .pg-ic { width: 24px; height: 24px; }
.pg-nav a:focus-visible, .pg-menu a:focus-visible { outline: 2px solid #FF9A3C; outline-offset: 2px; }
.pg-menu { display: none; position: fixed; z-index: 45; left: 12px; right: 12px; top: calc(68px + env(safe-area-inset-top)); padding: 8px;
    flex-direction: column; border-radius: 18px; background: #16161b; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.pg-menu:target { display: flex; }
.pg-menu { scroll-margin-top: calc(68px + env(safe-area-inset-top)); }   /* opening it doesn't scroll the page */
.pg-menu a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; font-size: 17px; font-weight: 700; text-decoration: none; }
.pg-menu a:hover { background: rgba(255,255,255,.06); }
.pg-menu .pg-menu-close { position: absolute; top: 4px; right: 4px; width: 44px; min-height: 44px; padding: 0; justify-content: center; }
.pg-menu .pg-menu-close .pg-ic { width: 20px; height: 20px; }
[id="how-it-works"], [id="rekap-live"] { scroll-margin-top: 80px; }
@media (min-width: 760px) {
    .pg-nav { grid-template-columns: 1fr auto 1fr; padding-left: 28px; padding-right: 28px; }
    .pg-nav-links { display: flex; }
    .pg-nav-auth { gap: 6px; }
    .pg-nav-pill { padding: 0 18px; }
    .pg-nav-burger, .pg-menu, .pg-menu:target { display: none; }
}

/* How it works: three numbered steps with Fluent 3D icons */
.pg-step-list { list-style: none; padding: 0; }
.pg-step { text-align: left; }
.pg-step img { display: block; width: 64px; height: 64px; filter: drop-shadow(0 0 14px rgba(255,115,0,.45)); }
.pg-step h3 { display: flex; align-items: center; gap: 10px; }
.pg-step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; font-size: 14px; font-weight: 900;
    color: #fff; background: var(--grad); }

/* 1. REVENUE */
.pg-rev { position: relative; margin: 0 auto; padding: 18px 20px 8px; text-align: center; overflow: hidden;
    background: radial-gradient(60% 46% at 50% 72%, rgba(255,115,0,.30), transparent 72%), radial-gradient(70% 30% at 50% 0%, rgba(255,115,0,.14), transparent 70%); }
.pg-rev-art { position: relative; width: min(100%, 400px); aspect-ratio: 800 / 960; margin: 18px auto 0; }
/* Owner artwork (800x960, opaque dark bg); edges fade into the section glow. */
.pg-rev-img { display: block; width: 100%; height: auto;
    -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 9%, #000 93%, transparent);
    -webkit-mask-composite: source-in;
            mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 9%, #000 93%, transparent);
            mask-composite: intersect; }

/* 2. SPORTS */
.pg-every { position: relative; margin: 8px auto 0; padding: 40px 20px 36px; text-align: center; overflow: hidden;
    background: radial-gradient(70% 50% at 50% 50%, rgba(255,115,0,.24), transparent 72%); }
.pg-emoji-row { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: space-between; align-items: center; max-width: 520px; }
.pg-emoji-row li { width: 18%; }
.pg-emoji-row img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 16px rgba(255,115,0,.55)); }
.pg-emoji-row:first-child { margin-bottom: 34px; }
.pg-emoji-row-2 { margin-top: 34px; }
.pg-emoji-row li:nth-child(odd) { transform: translateY(14px); }
.pg-emoji-row li:nth-child(3) { transform: translateY(-12px); }
.pg-emoji-row-2 li:nth-child(odd) { transform: translateY(-10px); }
.pg-emoji-row-2 li:nth-child(3) { transform: translateY(18px); }
@media (prefers-reduced-motion: no-preference) {
    .pg-emoji-row img { animation: pg-float 5s ease-in-out infinite; will-change: transform; }
    .pg-emoji-row li:nth-child(2n) img { animation-delay: -1.6s; }
    .pg-emoji-row li:nth-child(3n) img { animation-delay: -3.1s; }
    html { scroll-behavior: smooth; }
}
@keyframes pg-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* 3. App screen showcase: swipe row on phones, staggered row on desktop. CSS frame only. */
.pg-showcase { max-width: 1180px; margin: 0 auto; padding: 48px 0 0; text-align: center; }
.pg-shots { list-style: none; margin: 18px 0 0; padding: 8px 20px 24px; display: flex; gap: 16px; overflow-x: auto; text-align: left;
    scroll-snap-type: x mandatory; scroll-padding: 0 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.pg-shots::-webkit-scrollbar { display: none; }
.pg-shot { flex: 0 0 auto; width: min(62vw, 240px); scroll-snap-align: center; }
.pg-shot figure { margin: 0; }
.pg-frame { position: relative; border-radius: 36px; padding: 8px; background: #1c1c22; border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 22px 60px rgba(0,0,0,.55), 0 0 0 1px #000 inset; }
.pg-screen { position: relative; border-radius: 28px; overflow: hidden; background: #000; }
.pg-screen::before { content: ""; position: absolute; top: 8px; left: 50%; width: 31%; height: 19px; transform: translateX(-50%); border-radius: 12px; background: #000;
    box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.pg-status { height: 34px; display: flex; align-items: center; padding-left: 10%; font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .01em; background: #0b0b0f; }
.pg-screen img { display: block; width: 100%; height: auto; }
.pg-shot figcaption { margin-top: 14px; text-align: center; font-weight: 700; font-size: 15px; color: var(--text); }

/* Rest of the page */
.pg-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .16em;
    text-transform: uppercase; color: #FF9A3C; }
.pg-lede { margin: 0 auto; max-width: 560px; color: var(--muted); font-size: 17px; }
.pg-section { max-width: 1120px; margin: 0 auto; padding: 56px 20px 8px; text-align: center; }
.pg-h2 { text-wrap: balance; margin: 0 0 12px; font-size: clamp(28px, 7.4vw, 44px); line-height: 1.1; letter-spacing: -.02em; font-weight: 900; }
.pg-section h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.pg-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #E4362E; box-shadow: 0 0 0 4px rgba(228,54,46,.25); }
.pg-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.pg-grid { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; text-align: left; }
.pg-tile { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.pg-tile h3 { margin-top: 14px; }
.pg-tile p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.pg-links { margin: 20px 0 0; color: var(--muted); }
.pg-links a { color: #FF9A3C; font-weight: 700; text-underline-offset: 3px; }
.pg-more { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 10px 4px; }
.pg-more .pg-ic { width: 18px; height: 18px; }
.pg-faq .pg-prose { max-width: 760px; margin: 24px auto 0; text-align: left; }
.pg-final { max-width: 1120px; margin: 56px auto 48px; padding: 40px 12px; text-align: center; border-radius: 28px;
    background: radial-gradient(80% 120% at 50% 0%, rgba(255,115,0,.28), transparent 70%), var(--card); border: 1px solid rgba(255,115,0,.25);
    width: calc(100% - 32px); scroll-margin-top: 24px; }
.pg-final img[alt=""] { width: 64px; height: 64px; filter: drop-shadow(0 10px 30px rgba(255,115,0,.45)); }
.pg-final h2 { font-size: clamp(26px, 7vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 14px 0 8px; font-weight: 900; }
.pg-final .pg-lede { margin-bottom: 22px; }

/* App Store toast (CSS :target, no JS) while REKAP_APP_STORE_URL is unset */
.pg-toast { display: none; position: fixed; left: 50%; bottom: max(env(safe-area-inset-bottom), 20px); z-index: 20; transform: translateX(-50%);
    align-items: center; gap: 6px; padding: 10px 8px 10px 18px; border-radius: 999px; background: #fff; color: #111; font-weight: 700; font-size: 15px;
    white-space: nowrap; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.pg-toast:target { display: inline-flex; }
.pg-toast a { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #111; }
.pg-toast .pg-ic { width: 18px; height: 18px; }
@media (prefers-reduced-motion: no-preference) {
    .pg-toast:target { animation: pg-toast 4s ease forwards; }
}
@keyframes pg-toast { 0% { opacity: 0; transform: translate(-50%, 12px); } 8%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; visibility: hidden; } }

@media (min-width: 760px) {
    .pg-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .pg-section { padding-top: 88px; }
    .pg-emoji-row { max-width: 900px; }
    .pg-emoji-row li { width: 13%; }
}
@media (min-width: 1000px) {
    .pg-rev { padding-top: 32px; }
    .pg-rev-sub { max-width: 640px; }
    .pg-rev-art { width: 460px; }
    .pg-every { padding: 64px 20px 56px; }
    .pg-emoji-row { max-width: 1040px; }
    .pg-emoji-row li { width: 11%; }
    .pg-shots { overflow: visible; justify-content: center; gap: 28px; padding: 24px 20px 64px; }
    .pg-shot { width: 230px; }
    .pg-shot:nth-child(even) { transform: translateY(48px); }
    .pg-grid { grid-template-columns: repeat(4, 1fr); }
    .pg-grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Legal + help */
.pg-doc { max-width: 760px; width: 100%; margin: 0 auto; padding: 12px 20px 48px; }
.pg-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 18px; scrollbar-width: none; }
.pg-tabs a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); }
.pg-tabs a[aria-current="page"] { background: #fff; color: #111; border-color: #fff; }
.pg-doc h1 { font-size: clamp(30px, 7vw, 42px); margin: 6px 0 4px; letter-spacing: -.01em; }
.pg-updated { margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.pg-prose { font-size: 16.5px; line-height: 1.7; color: rgba(255,255,255,.86); }
.pg-prose h2 { font-size: 21px; line-height: 1.3; margin: 34px 0 10px; color: #fff; scroll-margin-top: 16px; }
.pg-prose p, .pg-prose ul, .pg-prose ol { margin: 0 0 14px; }
.pg-prose ul, .pg-prose ol { padding-left: 22px; }
.pg-prose li { margin: 4px 0; }
.pg-prose a { color: #FF9A3C; text-underline-offset: 2px; }
.pg-prose strong { color: #fff; }
.pg-prose nav { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 8px; }
.pg-prose nav ol { margin: 0; columns: 2 220px; }
.pg-prose details { border: 1px solid var(--line); background: var(--card); border-radius: 14px; margin: 10px 0; }
.pg-prose summary { cursor: pointer; padding: 14px 16px; font-weight: 700; color: #fff; list-style-position: inside; }
.pg-prose details p { padding: 0 16px 4px; }

.pg-footer { border-top: 1px solid var(--line); padding: 22px 20px max(env(safe-area-inset-bottom), 22px); text-align: center; color: var(--muted); font-size: 14px; }
.pg-footer nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px; }
.pg-footer nav a { text-decoration: none; padding: 10px 2px; }
.pg-footer nav a:hover { color: #fff; }
.pg-footer p { margin: 10px 0 0; font-size: 13px; }

/* Tip / ticket pages (payments/templates/payments) */
.pg-pay-card { max-width: 520px; }
.pg-pay-note { color: var(--muted); }
.pg-pay-error { background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.4); color: #fecaca; padding: 10px 14px; border-radius: 12px; }
.pg-pay-form { display: flex; flex-direction: column; gap: 16px; }
.pg-pay-amounts { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pg-pay-amounts legend { margin-bottom: 8px; font-weight: 700; }
.pg-pay-chip input { position: absolute; opacity: 0; }
.pg-pay-chip span { display: inline-flex; min-width: 64px; min-height: 44px; align-items: center; justify-content: center; padding: 0 16px;
    border-radius: 999px; border: 1px solid var(--line); font-weight: 800; cursor: pointer; }
.pg-pay-chip input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.pg-pay-chip input:focus-visible + span { outline: 2px solid #FF9A3C; outline-offset: 2px; }
.pg-pay-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.pg-pay-field input { min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); padding: 0 14px; font-size: 16px; }
.pg-pay-small { font-size: 13px; color: var(--muted); }
.pg-pay-price { font-size: 32px; font-weight: 900; margin: 8px 0 16px; }
.pg-pay-price span { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 8px; }
