/* beeappie.com: the BeeAppie palette (docs/ui-direction.md), on its own: no framework, no web fonts. */
:root {
    --honey: #F5B301;
    --honey-hover: #E3A500;
    --honey-50: #FFF9E6;
    --honey-100: #FFF1C7;
    --amber-text: #8A5A00;
    --ink: #1F1B16;
    --ink-2: #2B2620;
    --ink-3: #3A342C;
    --muted: #6E6758;
    --bg: #FAF8F3;
    --surface: #FFFFFF;
    --surface-2: #F6F3EC;
    --border: #ECE6D9;
    --ok: #15803D;
    --warning: #F97316;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(31, 27, 22, .04), 0 8px 24px rgba(31, 27, 22, .07);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); color: var(--ink-2); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -.02em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--amber-text); }
a:hover { color: #6B4600; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.text-center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-3); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--amber-text); margin-bottom: .75rem; }
.highlight { background: linear-gradient(transparent 62%, var(--honey-100) 62%); }

/* Buttons: text on honey is charcoal, never white. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .65rem 1.2rem; border-radius: 10px;
       font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1.02rem; }
.btn-sm { padding: .45rem .9rem; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }
.btn-honey { background: var(--honey); color: var(--ink); }
.btn-honey:hover { background: var(--honey-hover); color: var(--ink); }
.btn-ghost { color: var(--ink); border-color: var(--border); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-outline { color: var(--ink); border-color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250, 248, 243, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a:not(.btn) { color: var(--ink-3); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-sep { width: 1px; height: 22px; background: var(--border); }
.nav-toggle, .nav-burger { display: none; }

/* Hero */
.hero { padding: 72px 0 88px; overflow: hidden;
        background:
            url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3e%3cpath d='M28 66 0 50V17L28 1l28 16v33zm0 32L0 82V66M28 66l28 16v16' fill='none' stroke='%23F5B301' stroke-opacity='.16' stroke-width='1.2'/%3e%3c/svg%3e") right top / 56px 98px no-repeat,
            radial-gradient(ellipse at 80% 0%, #FFF3CF 0%, var(--bg) 55%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .lead { max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone { width: 290px; background: var(--ink); border-radius: 40px; padding: 46px 16px 22px; box-shadow: 0 30px 60px rgba(31, 27, 22, .25); display: grid; gap: 12px; }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 12px; background: #000; }
.notification { display: flex; gap: 10px; background: rgba(255, 255, 255, .95); border-radius: 16px; padding: 10px 12px; font-size: .8rem; line-height: 1.35; color: var(--ink-2);
                animation: drop .7s ease-out both .3s; }
.app-dot { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--honey); }
.card-mini { background: var(--surface); border-radius: 16px; padding: 12px 14px; font-size: .82rem; }
.card-mini-title { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.card-mini ol { margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.card-mini li { display: flex; justify-content: space-between; padding: 3px 0; counter-increment: rank; }
.card-mini li span:first-child::before { content: counter(rank) ". "; color: var(--muted); }
.card-mini li.me { font-weight: 700; color: var(--amber-text); }
.poll { background: var(--surface-2); border-radius: 8px; margin-top: 6px; overflow: hidden; }
.poll span { display: block; padding: 4px 8px; background: var(--honey-100); white-space: nowrap; }
.stat-bubble { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; font-size: .8rem; box-shadow: var(--shadow); }
.stat-bubble strong { color: var(--ink); }
.stat-1 { left: -10px; bottom: -14px; }
.stat-2 { right: -6px; top: 120px; }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .notification { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: box-shadow .2s, transform .2s; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }
.credit-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.credit-pack { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.credit-pack-price { font-weight: 600; font-size: 1.1rem; margin-top: 4px; }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.35rem; border-radius: 12px; background: var(--honey-50); margin-bottom: 14px; }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--amber-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-note { text-align: center; margin: 32px auto 0; max-width: 680px; }
.feature-more { display: inline-block; margin-top: 12px; font-size: .9rem; font-weight: 600; color: var(--amber-text); text-decoration: none; }
.feature-more::after { content: " →"; }
.feature-more:hover { text-decoration: underline; }

.steps { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps p { color: var(--muted); margin: 0; }
.step-number { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--honey); color: var(--ink); font-weight: 800; margin-bottom: 12px; }

.code-tabs { max-width: 720px; margin: 0 auto; }
.code-tabs input { position: absolute; opacity: 0; }
.code-tabs label { display: inline-block; margin-top: 4px; padding: .45rem .85rem; border-radius: 10px 10px 0 0; cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--muted); }
.code-tabs input:checked + label { background: var(--ink); color: #fff; }
.code-tabs input:focus-visible + label { outline: 3px solid var(--honey); }
.code { display: none; margin: 0; background: var(--ink); color: #EDE6D6; border-radius: 0 var(--radius) var(--radius) var(--radius); padding: 22px 24px;
        font-family: var(--mono); font-size: .92rem; line-height: 1.7; overflow-x: auto; }
#code-ios:checked ~ .code-ios, #code-android:checked ~ .code-android, #code-maui:checked ~ .code-maui,
#code-dotnet:checked ~ .code-dotnet, #code-flutter:checked ~ .code-flutter, #code-rn:checked ~ .code-rn,
#code-unity:checked ~ .code-unity { display: block; }
.code .c { color: #9C9283; }
.code .s { color: var(--honey); }
.code .k { color: #F0A57A; }

.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.platform { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.platform p { color: var(--muted); font-size: .94rem; flex: 1; margin-bottom: 14px; }
.os-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.os-list li { font-size: .75rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--honey-50); color: var(--amber-text); border: 1px solid var(--honey-100); }
.works-with { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .88rem; margin-top: 18px; }
.works-with a { color: var(--ink-3); text-decoration: none; font-weight: 600; }
.works-with a:hover { color: var(--amber-text); }

/* Pricing */
.interval-switch { display: flex; width: max-content; margin: -16px auto 32px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.interval-switch button { border: 0; background: transparent; padding: .45rem 1.1rem; border-radius: 999px; font: inherit; font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer; }
.interval-switch button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(31, 27, 22, .12); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; align-items: stretch; margin-bottom: 24px; }
.plan { position: relative; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.plan-popular { background: var(--surface); border: 2px solid var(--honey); box-shadow: var(--shadow); }
.plan-flag { position: absolute; top: -12px; left: 24px; background: var(--honey); color: var(--ink); font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan-description { font-size: .92rem; min-height: 2.9em; }
.plan-price { margin: 8px 0 18px; min-height: 3.2rem; }
.plan-price .amount { font-size: 2.2rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.plan-price .per { color: var(--muted); margin-left: 4px; }
.saving { display: inline-block; margin-left: 6px; font-size: .75rem; font-weight: 700; color: var(--ok); background: #DCFCE7; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.discount-offer { display: flex; align-items: center; gap: 20px; max-width: 760px; margin: -8px auto 32px; padding: 18px 22px; text-align: left; background: var(--honey-50); border: 2px solid var(--honey); border-radius: 16px; box-shadow: 0 6px 20px rgba(245, 179, 1, .18); }
.discount-offer-badge { flex-shrink: 0; display: grid; place-items: center; min-width: 84px; height: 84px; padding: 0 10px; border-radius: 50%; background: var(--honey); color: var(--ink); font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.discount-offer p { margin: 0; }
.discount-offer-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--amber-text); }
.discount-offer-headline { margin: 2px 0 4px !important; font-size: 1.25rem; font-weight: 800; color: var(--ink); line-height: 1.3; }
.discount-offer-details { font-size: .92rem; color: var(--ink-3); }
.discount-offer-off { display: block; padding: 12px 18px; text-align: center; background: var(--surface-2); border: 1px solid var(--border); box-shadow: none; color: var(--ink-3); }
@media (max-width: 640px) { .discount-offer { flex-direction: column; text-align: center; gap: 12px; } .discount-offer-badge { min-width: 68px; height: 68px; font-size: 1.3rem; } }
.amount s, .compare-price s { margin-right: 6px; font-weight: 400; color: var(--muted); font-size: .7em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; font-size: .93rem; }
.plan li { padding: 5px 0 5px 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 12px; height: 7px; border-left: 2.5px solid var(--honey-hover); border-bottom: 2.5px solid var(--honey-hover); transform: rotate(-45deg); }

/* Plan comparison (/pricing): the table scrolls sideways on narrow screens, the page never does. */
.compare-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 24px; }
.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .93rem; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: center; vertical-align: middle; }
.compare tbody th { text-align: left; font-weight: 600; color: var(--ink); width: 32%; }
.compare thead th { vertical-align: bottom; padding-top: 20px; }
.compare-name { display: block; font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.compare-price { display: block; font-weight: 700; color: var(--ink); margin: 4px 0 10px; }
.compare-price small { color: var(--muted); font-weight: 400; }
.compare-hint { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.compare-group th { background: var(--surface-2); text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 16px; }
.compare .compare-popular { background: var(--honey-50); }
.compare-yes { color: var(--ok); font-weight: 800; }
.compare-no { color: var(--muted); }
.compare-more { text-align: center; margin: -8px 0 16px; }
.enterprise { display: flex; align-items: center; gap: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 24px; margin: 24px 0 16px; }
.enterprise h3 { margin: 0 0 4px; }
.enterprise p { margin: 0; color: var(--muted); }
.enterprise .btn { flex-shrink: 0; }
@media (max-width: 640px) { .enterprise { flex-direction: column; align-items: flex-start; } }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 22px; margin-bottom: 12px; }
details[open] { box-shadow: var(--shadow); }
summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 18px 0; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.4rem; color: var(--amber-text); }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-3); }

/* Call to action and footer */
.cta-band { background: var(--ink); color: #EDE6D6; padding: 64px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { margin: 0; color: #C9C0AE; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer { background: var(--ink); color: #C9C0AE; padding: 48px 0 28px; border-top: 1px solid var(--ink-3); }
.site-footer .muted { color: #9C9283; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a:not(.brand) { display: block; color: #C9C0AE; text-decoration: none; padding: 3px 0; font-size: .94rem; }
.site-footer a:not(.brand):hover { color: var(--honey); }
.brand-light { color: #fff; margin-bottom: 10px; }
.brand-light:hover { color: #fff; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--ink-3); font-size: .85rem; }
.footer-bottom .footer-legal a { display: inline; padding: 0; font-size: inherit; }

/* Narrower screens */
@media (max-width: 1000px) {
    .feature-grid, .platform-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { margin-top: 12px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
    .nav-burger { display: grid; place-items: center; width: 40px; height: 40px; cursor: pointer; }
    .nav-burger span, .nav-burger span::before, .nav-burger span::after { content: ""; display: block; width: 22px; height: 2px; background: var(--ink); position: relative; }
    .nav-burger span::before { position: absolute; top: -7px; }
    .nav-burger span::after { position: absolute; top: 7px; }
    .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
                 background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 20px 20px; box-shadow: var(--shadow); }
    .nav-links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .nav-links .btn { margin-top: 14px; }
    .nav-sep { display: none; }
    .nav-toggle:checked ~ .nav-links { display: flex; }
    .section { padding: 64px 0; }
    .hero { padding: 48px 0 64px; }
    .feature-grid, .platform-grid, .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stat-bubble { display: none; }
}

/* SDKs page */
.sdk { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.sdk h2 { font-size: 1.3rem; margin: 0; }
.sdk h3 { font-size: .95rem; margin: 16px 0 6px; }
.sdk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.sdk-version { font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--honey-50); color: var(--amber-text); border: 1px solid var(--honey-100); }
.sdk-soon { background: var(--surface-2); color: var(--muted); border-color: var(--border); font-weight: 600; }
.sdk-packages, .sdk-files { list-style: none; padding: 0; margin: 0; }
.sdk-packages li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--border); font-size: .92rem; }
.sdk-packages li > div { grid-column: 1 / -1; }
.sdk-packages code { font-family: var(--mono); font-size: .85rem; background: var(--surface-2); padding: 3px 8px; border-radius: 6px; overflow-wrap: anywhere; }
.sdk-files li { padding: 4px 0; font-size: .92rem; overflow-wrap: anywhere; }
.sdk-sample { margin: 12px 0 0; font-size: .92rem; }

/* Docs page: contents on the side, sections with code for each SDK (the one on <html data-sdk>) next to the HTTP API. */
.docs-hero { padding: 56px 0 32px; background: radial-gradient(ellipse at 80% 0%, #FFF3CF 0%, var(--bg) 60%); }
.docs-hero .lead { max-width: 760px; }
.docs-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-bottom: 72px; }
.docs-toc { position: sticky; top: 88px; align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 110px); overflow-y: auto; }
.docs-toc a { color: var(--ink-3); text-decoration: none; font-size: .92rem; padding: 5px 10px; border-radius: 8px; }
.docs-toc a:hover { background: var(--honey-50); color: var(--ink); }
.min-w-0 { min-width: 0; }
.doc-section { padding: 36px 0; border-top: 1px solid var(--border); scroll-margin-top: 84px; }
.doc-section:first-child { border-top: 0; padding-top: 8px; }
.doc-section h2 { font-size: 1.6rem; }
.doc-section code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.doc-steps { padding-left: 1.3rem; }
.doc-steps li { margin-bottom: .7rem; }
.doc-terms dt { font-weight: 700; color: var(--ink); margin-top: 1rem; }
.doc-terms dd { margin: .2rem 0 0; color: var(--ink-3); }
.doc-code-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; margin-top: 16px; }
.doc-code-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.doc-code { margin: 0; background: var(--ink); color: #EDE6D6; border-radius: 12px; padding: 16px 18px; font-family: var(--mono); font-size: .82rem;
            line-height: 1.6; overflow-x: auto; }
.doc-code code { background: none; padding: 0; font-size: inherit; color: inherit; }
.doc-notes { color: var(--ink-3); font-size: .94rem; padding-left: 1.2rem; margin: 16px 0 0; }
.doc-notes li { margin-bottom: .4rem; }
.doc-cta { text-align: center; }
.doc-cta .btn { margin: 6px; }

.howto-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.howto-tab { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 3px 11px;
             font: inherit; font-size: .8rem; cursor: pointer; }
.howto-tab:hover { color: var(--ink); }
.howto-pane { display: none; }
:root:not([data-sdk]) .howto-pane[data-sdk="dotnet"],
:root[data-sdk="dotnet"] .howto-pane[data-sdk="dotnet"],
:root[data-sdk="android"] .howto-pane[data-sdk="android"],
:root[data-sdk="ios"] .howto-pane[data-sdk="ios"],
:root[data-sdk="flutter"] .howto-pane[data-sdk="flutter"],
:root[data-sdk="react-native"] .howto-pane[data-sdk="react-native"],
:root[data-sdk="unity"] .howto-pane[data-sdk="unity"] { display: block; }
:root:not([data-sdk]) .howto-tab[data-sdk-select="dotnet"],
:root[data-sdk="dotnet"] .howto-tab[data-sdk-select="dotnet"],
:root[data-sdk="android"] .howto-tab[data-sdk-select="android"],
:root[data-sdk="ios"] .howto-tab[data-sdk-select="ios"],
:root[data-sdk="flutter"] .howto-tab[data-sdk-select="flutter"],
:root[data-sdk="react-native"] .howto-tab[data-sdk-select="react-native"],
:root[data-sdk="unity"] .howto-tab[data-sdk-select="unity"] { background: var(--honey-50); border-color: var(--honey); color: var(--ink); font-weight: 600; }

@media (max-width: 1000px) {
    .doc-code-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .docs-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .docs-toc { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; padding: 8px 0 16px; border-bottom: 1px solid var(--border); }
    .docs-toc a { padding: 4px 8px; font-size: .85rem; background: var(--surface); border: 1px solid var(--border); }
    .docs-hero { padding: 36px 0 20px; }
}
.doc-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 12px 0 4px; }
.doc-table th, .doc-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
@media (max-width: 760px) { .doc-table { display: block; overflow-x: auto; } }

/* Feature pages (/features/…): the docs layout, with uses, dashboard screenshots, an example and the SDK code. */
.feature-title { display: flex; align-items: center; gap: 14px; }
.feature-title .feature-icon { margin: 0; flex: none; }
.feature-uses { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-uses li { position: relative; padding-left: 26px; color: var(--ink-3); }
.feature-uses li::before { content: ""; position: absolute; left: 3px; top: .5em; width: 10px; height: 10px; border-radius: 3px; background: var(--honey); }
.feature-uses strong { color: var(--ink); }
.shot { margin: 8px 0 32px; }
.shot-frame { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface-2);
              box-shadow: 0 18px 40px -24px rgba(31, 27, 22, .35); }
.shot-frame a, .shot-frame img { display: block; width: 100%; height: auto; }
/* The visitor's system theme, until they pick one (features.js puts it on <html data-shot-mode>). */
.shot-frame .shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-shot-mode="light"]) .shot-frame .shot-light { display: none; }
    :root:not([data-shot-mode="light"]) .shot-frame .shot-dark { display: block; }
}
:root[data-shot-mode="dark"] .shot-frame .shot-light { display: none; }
:root[data-shot-mode="dark"] .shot-frame .shot-dark { display: block; }
.shot figcaption { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 10px; color: var(--muted); font-size: .9rem; }
.shot-modes { display: flex; gap: 4px; flex: none; }
.shot-modes button { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 2px 10px;
                     font: inherit; font-size: .8rem; cursor: pointer; }
.shot-modes button[aria-pressed="true"] { background: var(--honey-50); border-color: var(--honey); color: var(--ink); font-weight: 600; }
/* The example, with the app's own screen beside it when there is one. */
.feature-example-row.with-phone { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
.shot-phone { margin: 0; }
.shot-phone .shot-frame { border-radius: 34px; border: 6px solid var(--ink); background: var(--ink); }
.shot-phone .shot-frame img { border-radius: 28px; }
.shot-phone figcaption { font-size: .85rem; flex-direction: column; gap: 8px; }
/* iPhone unless the visitor picks Android, or is on Android (features.js puts it on <html data-phone-os>). */
.shot-phone .phone-android { display: none; }
:root[data-phone-os="android"] .shot-phone .phone-ios { display: none; }
:root[data-phone-os="android"] .shot-phone .phone-android { display: block; }
.shot-phone .phone-android { border-radius: 30px; }
.feature-example { background: var(--honey-50); border-left: 4px solid var(--honey); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; }
.feature-example h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.feature-example p { margin: 0; color: var(--ink-3); }
.feature-cta .btn { margin: 0 8px 8px 0; }
.feature-code-title { font-size: 1.05rem; margin: 20px 0 8px; }
.feature-code-title:first-of-type { margin-top: 0; }
.feature-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 28px; border-top: 1px solid var(--border); }
.feature-pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius);
                   background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.feature-pager a:hover { border-color: var(--honey); }
.feature-pager a.next { text-align: right; grid-column: 2; }
@media (max-width: 760px) {
    .shot figcaption { flex-direction: column; gap: 8px; }
    .feature-pager { grid-template-columns: 1fr; }
    .feature-example-row.with-phone { grid-template-columns: minmax(0, 1fr); }
    .shot-phone { max-width: 260px; margin: 0 auto; }
    .feature-pager a.next { grid-column: 1; }
}

/* Status page */
.status-banner { display: flex; flex-direction: column; gap: 4px; border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; border: 1px solid; }
.status-banner.ok { background: #DCFCE7; border-color: #86EFAC; color: #14532D; }
.status-banner.maintenance { background: #DBEAFE; border-color: #93C5FD; color: #1E3A8A; }
.status-banner.degraded { background: var(--honey-100); border-color: var(--honey); color: var(--amber-text); }
.status-banner.outage { background: #FEE2E2; border-color: #FCA5A5; color: #7F1D1D; }
.status-components { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.status-component { padding: 18px 22px; border-top: 1px solid var(--border); }
.status-component:first-child { border-top: 0; }
.status-component-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.status-pill { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status-pill.ok { background: #DCFCE7; color: #14532D; }
.status-pill.maintenance { background: #DBEAFE; color: #1E3A8A; }
.status-pill.degraded { background: var(--honey-100); color: var(--amber-text); }
.status-pill.outage { background: #FEE2E2; color: #7F1D1D; }
.uptime-bars { display: flex; gap: 2px; height: 30px; }
.uptime-bars .bar { flex: 1; border-radius: 2px; background: #22C55E; }
.uptime-bars .bar.degraded { background: var(--honey); }
.uptime-bars .bar.outage { background: #EF4444; }
.uptime-bars .bar.none { background: var(--border); }
.uptime-legend { display: flex; justify-content: space-between; margin-top: 6px; }
.incident { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 14px; }
.incident.active { border-color: var(--honey); box-shadow: var(--shadow); margin-bottom: 20px; }
.incident h2, .incident h3 { font-size: 1.1rem; }
.incident p { margin: 0 0 .6em; }
.status-history-title { font-size: 1.4rem; margin-top: 40px; }
@media (max-width: 760px) { .uptime-bars { gap: 1px; } }

/* Changelog */
.changelog-day { margin-top: 40px; }
.changelog-date { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.changelog-entry { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px; scroll-margin-top: 84px; }
.changelog-entry h3 { margin: 6px 0 6px; }
.changelog-entry p { margin: 0 0 6px; color: var(--ink-3); }
.change-kind { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 9px; border-radius: 999px; }
.change-kind.new { background: var(--honey-100); color: var(--amber-text); }
.change-kind.improved { background: #DBEAFE; color: #1E3A8A; }
.change-kind.fixed { background: #DCFCE7; color: #14532D; }

/* Waitlist (before launch) */
.waitlist-form { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; max-width: 520px; margin: 24px auto 8px; }
.waitlist-form input[type=email] { flex: 1 1 240px; min-width: 0; padding: 12px 14px; font: inherit; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); }
.waitlist-form input[type=email]:focus { border-color: var(--honey); outline: none; box-shadow: 0 0 0 3px var(--honey-100); }
.waitlist-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; }
.waitlist-note { text-align: center; }
.form-error { color: #B42318; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Security, contact and compare pages */
/* About: the founder's own words. */
.about-quote { margin: 24px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--honey); }
.about-quote blockquote { margin: 0; }
.about-quote p { margin: 0; font-size: 1.12rem; line-height: 1.6; color: var(--ink); }
.about-quote figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.trust-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 32px 0; }
.trust-grid article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.trust-grid h2 { font-size: 1.1rem; margin: 0 0 8px; }
.trust-grid p { margin: 0 0 8px; }
.trust-heading { margin-top: 48px; font-size: 1.4rem; scroll-margin-top: 84px; }
.trust-list { padding-left: 20px; }
.trust-list li { margin-bottom: 10px; }
.compare-tools td:first-child { font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; } .compare-tools td:first-child { white-space: normal; } }
/* Comparisons: the prices side by side at the top, BeeAppie first and highlighted. */
.price-face { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 8px 0 12px; }
.price-face article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 18px; text-align: center; }
.price-face .ours { border: 2px solid var(--honey); background: var(--honey-50); box-shadow: var(--shadow); }
.price-face .who { display: block; font-weight: 700; color: var(--ink); }
.price-face .figure { display: block; margin: 8px 0 2px; font-size: 2.1rem; font-weight: 800; line-height: 1.1; color: var(--ink); }
.price-face .figure small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-face .what { display: block; font-size: .88rem; color: var(--muted); }
.price-face-caption { font-size: .88rem; color: var(--muted); text-align: center; margin: 0 0 40px; }
.doc-table .ours { background: var(--honey-50); }
.doc-table th.ours { color: var(--ink); }
.fits-other { margin-top: 48px; font-size: .92rem; color: var(--ink-3); }
/* Comparisons: the verdict under the prices, and the questions at the end */
.verdict { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 32px 0 8px; }
.verdict article { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.verdict .ours { border: 2px solid var(--honey); background: var(--honey-50); }
.verdict h2 { font-size: 1.1rem; margin: 0 0 10px; }
.verdict ul { margin: 0; padding-left: 20px; }
.verdict li { margin-bottom: 6px; }
.compare-faq { margin-top: 48px; }
.compare-faq h2 { font-size: 1.4rem; }
@media (max-width: 760px) { .verdict { grid-template-columns: 1fr; } }
.fits-other h2 { font-size: 1.05rem; margin: 0 0 8px; }

/* Docs: one section on its own page */
.docs-toc a.current { background: var(--honey-50); color: var(--ink); font-weight: 600; }
.docs-hero .eyebrow a { color: inherit; text-decoration: none; }
.docs-single .doc-section > h2:first-child { display: none; }
.docs-single .doc-section { border-top: 0; padding-top: 8px; }
.doc-step-heading { font-size: 1rem; margin: 24px 0 6px; }
.doc-step { margin-bottom: 10px; }
.doc-step ul { padding-left: 20px; }
.doc-step li { margin-bottom: 6px; }
.doc-pager { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0; border-top: 1px solid var(--border); }
.doc-pager a { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); font-weight: 600; padding: 12px 16px;
               border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.doc-pager a:hover { border-color: var(--honey); }
.doc-pager-next { margin-left: auto; text-align: right; }

/* Prices wait for Paddle's amounts in the visitor's currency (js removes data-localizing); should Paddle not answer or a
   script fail, the amounts in pounds before tax show anyway after 2.5 s, with no script needed. */
[data-localizing="true"] [data-paddle-price]:not([data-paddle-price=""]) {
    visibility: hidden;
    animation: price-reveal 0s 2.5s forwards;
}
@keyframes price-reveal { to { visibility: visible; } }
.tax-switch { display: flex; align-items: center; gap: 6px; width: max-content; margin: -20px auto 28px; font-size: .85rem; color: var(--muted); cursor: pointer; }
.tax-switch[hidden] { display: none; }

/* The homepage's dashboard tour (Index.cshtml #dashboard, index.js): tabs over the feature pages' screenshots, cut to one
   height so switching doesn't make the page jump. Full size opens on a click. */
.tour { max-width: 1000px; margin: 0 auto; }
.tour-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 20px; }
.tour-tabs button { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px;
    padding: 6px 16px; font: inherit; font-size: .95rem; cursor: pointer; }
.tour-tabs button:hover { color: var(--ink); border-color: var(--honey); }
.tour-tabs button[aria-selected="true"] { background: var(--honey-50); border-color: var(--honey); color: var(--ink); font-weight: 600; }
.tour-tabs button:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }
.tour-panel { margin: 0 0 24px; }
.tour-panel[hidden] { display: none; }
.tour-panel .shot-frame { aspect-ratio: 1800 / 1139; box-shadow: 0 12px 32px rgba(31, 27, 22, .08); }
.tour-panel .shot-frame a, .tour-panel .shot-frame img { height: 100%; }
.tour-panel .shot-frame img { object-fit: cover; object-position: top left; }
@media (max-width: 640px) {
    .tour-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
    .tour-tabs button { flex: none; }
}
