/* BugToPrompt public site. Mobile first; Bootstrap 5.3 underneath. */
:root {
    --btp-primary: #5b4bdb;
    --btp-primary-hover: #4c3dc4;
    --btp-soft: #efedfd;
    --btp-dark: #0e0e1a;
    --btp-glow: #2b2470;
    --btp-text: #18181b;
    --btp-muted: #66666f;
    --btp-border: #e4e4e7;
    --bs-body-color: #18181b;
    --bs-body-font-family: system-ui, "Segoe UI", Roboto, Arial, sans-serif;
    --bs-link-color: #4c3dc4;
    --bs-link-color-rgb: 76, 61, 196;
    --bs-link-hover-color: #3b2fa0;
    --bs-link-hover-color-rgb: 59, 47, 160;
    --bs-primary: #5b4bdb;
    --bs-primary-rgb: 91, 75, 219;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font-family: var(--bs-body-font-family); color: var(--btp-text); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.015em; }
img { max-width: 100%; height: auto; }
kbd { background: #f4f4f5; color: var(--btp-text); border: 1px solid #d4d4d8; border-bottom-width: 2px; border-radius: 5px; font-size: .8em; padding: .1em .4em; }
code { color: #4c3dc4; }

.text-muted-2 { color: var(--btp-muted) !important; }
.text-brand { color: var(--btp-primary) !important; }
.container-narrow { max-width: 860px; }
.container-form { max-width: 560px; }

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid #a99ef0; outline-offset: 2px; box-shadow: none;
}
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--btp-primary); box-shadow: 0 0 0 .2rem rgba(91, 75, 219, .2); }
.form-check-input:checked { background-color: var(--btp-primary); border-color: var(--btp-primary); }
.skip-link { position: absolute; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }

/* Buttons */
.btn { font-weight: 600; border-radius: 10px; }
.btn-brand { background: var(--btp-primary); border-color: var(--btp-primary); color: #fff; }
.btn-brand:hover, .btn-brand:focus, .btn-brand:active { background: var(--btp-primary-hover) !important; border-color: var(--btp-primary-hover) !important; color: #fff !important; }
.btn-brand.disabled, .btn-outline-brand.disabled, .btn-light.disabled { opacity: 1; background: #ececf1; border-color: #ececf1; color: #55555e; cursor: default; pointer-events: none; }
.btn-outline-brand { border-color: var(--btp-primary); color: #4c3dc4; background: #fff; }
.btn-outline-brand:hover, .btn-outline-brand:focus, .btn-outline-brand:active { background: var(--btp-soft) !important; border-color: var(--btp-primary-hover) !important; color: #3b2fa0 !important; }
.btn-hero-outline { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.btn-hero-outline:hover, .btn-hero-outline:focus { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-currency { background: #fff; border-color: #d4d4d8; color: #3f3f46; }
.btn-currency:hover { background: var(--btp-soft); border-color: var(--btp-primary); color: #3b2fa0; }
.btn-currency-active, .btn-currency-active:hover { background: var(--btp-soft); border-color: var(--btp-primary); color: #3b2fa0; }

/* Header */
.announcement { background: var(--btp-primary-hover); color: #fff; text-align: center; font-size: .9rem; padding: .5rem 0; }
.announcement a { color: #fff; text-decoration: underline; margin-left: .5rem; white-space: nowrap; }
.site-header { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--btp-border); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); } }
.navbar { padding-top: .6rem; padding-bottom: .6rem; }
.navbar-brand img { height: 32px; width: auto; }
.navbar .nav-link { color: #3f3f46; font-weight: 500; padding-left: .9rem !important; padding-right: .9rem !important; border-radius: 8px; }
.navbar .nav-link:hover { color: #3b2fa0; background: var(--btp-soft); }
.navbar-toggler { border-color: var(--btp-border); }

/* Hero */
.hero { background: radial-gradient(900px 520px at 78% 18%, var(--btp-glow) 0%, rgba(43, 36, 112, 0) 70%), var(--btp-dark); color: #fff; padding: 3.5rem 0 4rem; overflow: hidden; }
.hero-eyebrow { display: inline-block; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: .3rem .9rem; font-size: .85rem; font-weight: 600; color: #dcd8fb; margin-bottom: 1.25rem; }
.hero-title { font-size: clamp(2rem, 6.2vw, 3.4rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #cfcfe0; max-width: 34rem; margin-bottom: 0; }
.hero-trust { color: #c9c5f5; font-size: .95rem; }
.hero .btn-brand.disabled { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .16); color: #fff; }
.browser-frame { background: #1c1c2b; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(91, 75, 219, .25); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #23233a; }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #4b4b66; }
.browser-bar span:nth-child(1) { background: #ff5f57; } .browser-bar span:nth-child(2) { background: #febc2e; } .browser-bar span:nth-child(3) { background: #28c840; }
.browser-url { flex: 1; margin-left: 10px; background: #15151f; color: #a1a1b5; font-size: .75rem; border-radius: 6px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-frame img { display: block; width: 100%; height: auto; }
@media (min-width: 992px) { .hero { padding: 5.5rem 0 6rem; } }

/* Sections */
.section { padding: 4rem 0; }
@media (min-width: 992px) { .section { padding: 5.5rem 0; } }
.section-soft { background: #f8f7ff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.75rem; }
.section-head h2, .page-head h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.section-eyebrow { color: #4c3dc4; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: .6rem; }
.section-lead { color: var(--btp-muted); font-size: 1.1rem; max-width: 640px; margin-bottom: 0; }
.section-head .section-lead { margin-top: .75rem; margin-left: auto; margin-right: auto; }
.page-head { text-align: center; padding: 3.5rem 0 2.5rem; }
.page-head .rich-text p:last-child { margin-bottom: 0; }

.step-card, .feature-card, .who-card, .info-card, .plan-card { background: #fff; border: 1px solid var(--btp-border); border-radius: 16px; }
.step-card { overflow: hidden; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--btp-primary); color: #fff; font-weight: 700; flex-shrink: 0; }
.shot-button { display: block; width: 100%; padding: 0; border: 0; background: #f4f4f7; cursor: zoom-in; position: relative; }
.shot-button img { display: block; width: 100%; height: auto; }
.step-card .shot-button { border-bottom: 1px solid var(--btp-border); }
.feature-card { padding: 1.75rem; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--btp-soft); color: #4c3dc4; font-size: 1.35rem; }
.feature-list { padding-left: 1.1rem; margin: .75rem 0 0; color: #45454d; font-size: .95rem; }
.feature-list li { margin-bottom: .4rem; }
.feature-list li::marker { color: var(--btp-primary); }
.badge-soft { background: var(--btp-soft); color: #3b2fa0; font-weight: 600; font-size: .7rem; vertical-align: middle; }
.gallery-item { border: 1px solid var(--btp-border); border-radius: 12px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.gallery-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(24, 24, 27, .12); }
.gallery-caption { display: block; padding: .5rem .6rem; font-size: .85rem; font-weight: 600; color: var(--btp-text); background: #fff; text-align: left; border-top: 1px solid var(--btp-border); }
@media (prefers-reduced-motion: reduce) { .gallery-item { transition: none; } }
.who-card { padding: 1.5rem; text-align: center; }
.who-card i { font-size: 1.8rem; color: var(--btp-primary); }

.section-dark { background: radial-gradient(800px 420px at 12% 0%, var(--btp-glow) 0%, rgba(43, 36, 112, 0) 70%), var(--btp-dark); color: #fff; }
.section-dark .section-eyebrow { color: #b9b0f7; }
.section-dark h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
.lead-dark { color: #cfcfe0; font-size: 1.1rem; }
.link-light-underline { color: #fff; font-weight: 600; text-underline-offset: 4px; }
.link-light-underline:hover { color: #dcd8fb; }
.privacy-item { display: flex; gap: .9rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 1.1rem; }
.privacy-item i { font-size: 1.4rem; color: #b9b0f7; }
.privacy-item p { color: #cfcfe0; }

/* Pricing */
.plan-card { box-shadow: 0 1px 2px rgba(24, 24, 27, .04); }
.plan-pro { border: 2px solid var(--btp-primary); box-shadow: 0 18px 50px rgba(91, 75, 219, .16); }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; }
.plan-price .amount { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan-price .regular { font-size: 1.3rem; color: var(--btp-muted); }
.plan-price .once { color: var(--btp-muted); font-weight: 500; }
.plan-list li { display: flex; gap: .6rem; margin-bottom: .6rem; }
.plan-list i { color: #15803d; font-size: 1.1rem; line-height: 1.4; }
.offer-badge { background: #fef3c7; color: #7c3a03; font-weight: 700; font-size: .78rem; padding: .45em .7em; white-space: normal; text-align: left; line-height: 1.3; }
.compare-wrap { background: #fff; border: 1px solid var(--btp-border); border-radius: 16px; }
.compare-table th, .compare-table td { padding: .9rem 1rem; }
.compare-table thead th { background: var(--btp-soft); border-bottom: 0; }
.compare-table thead th:first-child { border-top-left-radius: 16px; } .compare-table thead th:last-child { border-top-right-radius: 16px; }
.compare-table tbody th { font-weight: 500; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table .tick { color: #15803d; font-size: 1.25rem; }
.compare-table .dash { color: #71717a; }

/* FAQ */
.faq-accordion .accordion-item { border: 1px solid var(--btp-border); border-radius: 12px !important; margin-bottom: .75rem; overflow: hidden; }
.faq-accordion .accordion-button { font-weight: 600; color: var(--btp-text); background: #fff; box-shadow: none; }
.faq-accordion .accordion-button:not(.collapsed) { color: #3b2fa0; background: var(--btp-soft); }
.faq-accordion .accordion-body { color: #45454d; white-space: pre-line; }

/* CTA */
.cta { padding-top: 0; }
.section-soft + .cta { padding-top: 4rem; }
.cta-box { background: radial-gradient(700px 300px at 50% 0%, #6f60ea 0%, rgba(111, 96, 234, 0) 70%), var(--btp-primary-hover); color: #fff; text-align: center; border-radius: 24px; padding: 3rem 1.5rem; }
.cta-box h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
.cta-box p { color: #eceafd; font-size: 1.1rem; margin-bottom: 1.75rem; }
.cta-box .btn-light { color: #3b2fa0; }
.cta-box .btn-light.disabled { background: rgba(255, 255, 255, .18); border-color: transparent; color: #fff; }

/* Cards and forms on inner pages */
.info-card { padding: 1.5rem; }
@media (min-width: 768px) { .info-card { padding: 2rem; } }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.contact-list li { display: flex; gap: .9rem; margin-bottom: 1.1rem; }
.contact-list li:last-child { margin-bottom: 0; }
.contact-list i { color: var(--btp-primary); font-size: 1.25rem; }
.contact-list .address { white-space: pre-line; color: var(--btp-muted); }
.quick-steps li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--btp-border); }
.quick-steps li:last-child { border-bottom: 0; }
.shortcut-list { display: grid; grid-template-columns: auto 1fr; gap: .5rem 1rem; align-items: center; }
.shortcut-list dt { font-weight: 400; white-space: nowrap; } .shortcut-list dd { margin: 0; }
.pro-callout { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; background: var(--btp-soft); border: 1px solid #d9d4fa; border-radius: 16px; padding: 1.5rem; }
@media (min-width: 768px) { .pro-callout { flex-direction: row; align-items: center; justify-content: space-between; } }
.changelog-entry { padding: 1.75rem 0; border-bottom: 1px solid var(--btp-border); }
.changelog-entry:last-child { border-bottom: 0; }
.rich-text h2 { font-size: 1.3rem; margin-top: 2rem; margin-bottom: .75rem; }
.rich-text h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.rich-text li { margin-bottom: .35rem; }
.rich-text { overflow-wrap: anywhere; }
.legal { color: #33333a; line-height: 1.7; }

/* Checkout */
.summary-lines { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; }
.summary-lines dt { font-weight: 400; color: var(--btp-muted); } .summary-lines dd { margin: 0; text-align: right; }
.summary-lines .total { font-weight: 700; color: var(--btp-text); font-size: 1.15rem; border-top: 1px solid var(--btp-border); padding-top: .75rem; margin-top: .25rem; }
.summary-points li { display: flex; gap: .6rem; margin-bottom: .5rem; } .summary-points i { color: var(--btp-primary); }
.licence-box { background: var(--btp-soft); border: 1px solid #d9d4fa; border-radius: 12px; padding: 1rem; }
.licence-box code { color: var(--btp-text); font-size: .9rem; word-break: break-all; user-select: all; }
.success-icon, .fail-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; font-size: 2rem; }
.success-icon { background: #dcfce7; color: #15803d; } .fail-icon { background: #fee2e2; color: #b91c1c; }
.activation-steps li { margin-bottom: .6rem; }
.settings-crop { border: 1px solid var(--btp-border); border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
/* Zoom in on the lower middle of the Settings screenshot, where the Plan section is. */
.settings-crop img { width: 170%; max-width: none; height: auto; transform: translate(-28%, -44%); }

/* Errors */
.error-page { padding: 5rem 0; }
.error-code { font-size: 5rem; font-weight: 800; line-height: 1; color: var(--btp-primary); letter-spacing: -0.04em; margin-bottom: .5rem; }

/* Gallery modal */
#shotModal .modal-content { border: 0; border-radius: 14px; overflow: hidden; }
#shotModal .carousel-control-prev, #shotModal .carousel-control-next { width: 9%; }
#shotModal .carousel-control-prev-icon, #shotModal .carousel-control-next-icon { background-color: rgba(14, 14, 26, .75); border-radius: 50%; padding: 1.1rem; background-size: 55%; }

/* Footer */
.site-footer { background: var(--btp-dark); color: #b4b4c6; padding: 3.5rem 0 2rem; font-size: .95rem; }
.site-footer img { height: 32px; width: auto; }
.site-footer a { color: #d7d7e4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { margin-bottom: .5rem; }
.footer-heading { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 1rem; font-weight: 700; }
.footer-text { max-width: 22rem; }
.footer-social a { font-size: 1.2rem; }
.site-footer hr { border-color: rgba(255, 255, 255, .15); opacity: 1; margin: 2rem 0 1.25rem; }
.footer-credit a { text-decoration: underline; }
