:root {
    --bc-bg: #fff9f7;
    --bc-bg-alt: #fdf0f6;
    --bc-card: #ffffff;
    --bc-border: rgba(0, 0, 0, 0.10);
    --bc-border-strong: rgba(0, 0, 0, 0.16);
    --bc-text: #2a1520;
    --bc-text-secondary: #8a6a78;
    --bc-rosa: #e4007c;
    --bc-rosa-light: #ff3da0;
    --bc-amarillo: #ffb703;
    --bc-turquesa: #00a9a5;
    --bc-verde: #2fa84f;
    --bc-coral: #f25c54;
    --bc-app-bg: #fdf0f6;
    --bc-cta-gradient: linear-gradient(165deg, #fff3f8 0%, #fff9f7 45%, #fff3de 100%);
    --bc-shadow: 0 24px 70px rgba(80, 15, 45, 0.16);
    --bc-shadow-soft: 0 10px 30px rgba(80, 15, 45, 0.08);
    --bc-radius: 20px;
}

/* Dark theme — toggled via the nav button (site.js) or the visitor's OS preference on
   first visit (theme-init.js sets data-theme before paint). Background/text values match
   Babelcraft's own adaptive dark palette (Theme.swift); the five accent colors (rosa,
   amarillo, turquesa, verde, coral) are NOT adaptive in the app itself, so they stay the
   same hex values in both themes here too. */
:root[data-theme="dark"] {
    --bc-bg: #1a0e15;
    --bc-bg-alt: #241019;
    --bc-card: #2c1420;
    --bc-border: rgba(255, 255, 255, 0.10);
    --bc-border-strong: rgba(255, 255, 255, 0.18);
    --bc-text: #fbeff4;
    --bc-text-secondary: #c9a7b6;
    --bc-app-bg: #1a0e15;
    --bc-cta-gradient: linear-gradient(165deg, #241019 0%, #1a0e15 45%, #2a1a05 100%);
    --bc-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
    --bc-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bc-bg);
    color: var(--bc-text);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    overflow-x: hidden;
}

a, a:link, a:visited {
    color: inherit;
}

img, svg {
    max-width: 100%;
    display: block;
}

code {
    font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.88em;
    background: var(--bc-bg-alt);
    border: 1px solid var(--bc-border);
    border-radius: 6px;
    padding: 1px 6px;
}

.bc-skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--bc-rosa);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 0 0 10px 0;
    z-index: 100;
    font-weight: 700;
}

.bc-skip-link:focus {
    left: 0;
}

/* Gradient text treatment, in the app's rosa-mexicano-to-marigold brand palette */

.bc-gradient-text {
    background: linear-gradient(100deg, var(--bc-rosa) 0%, var(--bc-rosa-light) 55%, var(--bc-amarillo) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Soft blurred glow decoration */

.bc-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(150px);
    opacity: 0.45;
}

.bc-glow-rosa {
    background: radial-gradient(circle, var(--bc-rosa-light), transparent 45%);
}

.bc-glow-amarillo {
    background: radial-gradient(circle, var(--bc-amarillo), transparent 45%);
    opacity: 0.3;
}

/* Nav */

.bc-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bc-bg) 72%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--bc-border);
}

.bc-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.01em;
}

.bc-brand-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 7px;
}

.bc-nav-links {
    display: flex;
    gap: 28px;
}

.bc-nav-links a,
.bc-nav-links a:link,
.bc-nav-links a:visited {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--bc-text-secondary);
}

.bc-nav-links a:hover {
    color: var(--bc-rosa);
}

.bc-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bc-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bc-card);
    border: 1px solid var(--bc-border-strong);
    border-radius: 999px;
    padding: 7px 14px 7px 10px;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--bc-text);
    cursor: pointer;
    box-shadow: var(--bc-shadow-soft);
}

.bc-theme-toggle-icon {
    font-size: 0.92rem;
    line-height: 1;
}

.bc-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.bc-nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--bc-text);
    border-radius: 2px;
}

/* Buttons */

.bc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.005em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    border: 1px solid transparent;
}

.bc-btn:active {
    transform: scale(0.97);
}

.bc-btn-primary,
.bc-btn-primary:link,
.bc-btn-primary:visited {
    background: linear-gradient(120deg, var(--bc-rosa-light), var(--bc-rosa));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(228, 0, 124, 0.32);
}

.bc-btn-primary:hover {
    box-shadow: 0 16px 38px rgba(228, 0, 124, 0.42);
}

.bc-btn-secondary,
.bc-btn-secondary:link,
.bc-btn-secondary:visited {
    background: var(--bc-card);
    color: var(--bc-text);
    border-color: var(--bc-border-strong);
    box-shadow: var(--bc-shadow-soft);
}

.bc-btn-large {
    padding: 17px 36px;
    font-size: 1.05rem;
}

.bc-btn-disabled {
    opacity: 0.55;
    cursor: default;
    box-shadow: none;
}

.bc-btn-disabled:active {
    transform: none;
}

/* Hero */

.bc-hero {
    position: relative;
    padding: 84px 24px 64px;
}

.bc-hero .bc-glow-rosa {
    width: 680px;
    height: 680px;
    top: -320px;
    right: -240px;
}

.bc-hero .bc-glow-amarillo {
    width: 520px;
    height: 520px;
    bottom: -300px;
    left: -240px;
}

.bc-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.bc-hero-copy,
.bc-hero-visual {
    min-width: 0;
}

.bc-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bc-rosa);
    margin: 0 0 14px;
}

.bc-hero h1 {
    font-size: clamp(2.4rem, 4.8vw, 3.6rem);
    line-height: 1.06;
    margin: 0 0 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    overflow-wrap: break-word;
}

.bc-hero-sub {
    font-size: 1.12rem;
    color: var(--bc-text-secondary);
    margin: 0 0 28px;
    max-width: 50ch;
}

.bc-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 16px;
}

.bc-hero-note {
    font-size: 0.88rem;
    color: var(--bc-text-secondary);
    margin: 0;
}

.bc-hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Phone mockup */

.bc-phone {
    width: 300px;
    max-width: 100%;
    background: #101014;
    border-radius: 44px;
    padding: 12px;
    box-shadow: var(--bc-shadow);
    border: 1px solid rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bc-phone-screen {
    position: relative;
    aspect-ratio: 640 / 1326;
    background: var(--bc-app-bg);
    border-radius: 34px;
    overflow: hidden;
}

.bc-phone-shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    display: none;
}

.bc-phone-shot-light {
    display: block;
}

:root[data-theme="dark"] .bc-phone-shot-light {
    display: none;
}

:root[data-theme="dark"] .bc-phone-shot-dark {
    display: block;
}

/* Sections */

.bc-section {
    position: relative;
    padding: 84px 24px;
}

.bc-section-alt {
    background: var(--bc-bg-alt);
    border-top: 1px solid var(--bc-border);
    border-bottom: 1px solid var(--bc-border);
}

.bc-section-inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
}

.bc-section h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.5rem);
    margin: 0 0 12px;
    text-align: center;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.bc-section-sub {
    text-align: center;
    color: var(--bc-text-secondary);
    max-width: 60ch;
    margin: 0 auto 52px;
    font-size: 1.08rem;
}

/* Features */

.bc-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bc-feature {
    background: var(--bc-card);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    padding: 28px;
    box-shadow: var(--bc-shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bc-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(228, 0, 124, 0.35);
    box-shadow: 0 18px 40px rgba(80, 15, 45, 0.12);
}

.bc-feature-icon {
    font-size: 1.9rem;
    margin-bottom: 14px;
    line-height: 1;
}

.bc-feature h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.bc-feature p {
    margin: 0;
    color: var(--bc-text-secondary);
    font-size: 0.96rem;
}

/* Chips */

.bc-tool-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 820px;
    margin: 0 auto;
}

.bc-chip {
    background: var(--bc-card);
    border: 1px solid var(--bc-border-strong);
    border-radius: 999px;
    padding: 11px 22px;
    font-weight: 600;
    font-size: 0.98rem;
    box-shadow: var(--bc-shadow-soft);
    transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bc-chip:hover {
    color: var(--bc-rosa);
    border-color: var(--bc-rosa);
    transform: translateY(-2px);
}

/* Privacy section */

.bc-privacy {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 52px;
    align-items: center;
}

.bc-privacy-copy,
.bc-privacy-badges {
    min-width: 0;
}

.bc-privacy-copy h2 {
    text-align: left;
    margin-bottom: 16px;
}

.bc-privacy-copy p {
    color: var(--bc-text-secondary);
    font-size: 1.04rem;
}

.bc-link-arrow,
.bc-link-arrow:link,
.bc-link-arrow:visited {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
    color: var(--bc-rosa);
    text-decoration: none;
}

.bc-link-arrow:hover {
    color: var(--bc-rosa-light);
}

.bc-privacy-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.bc-badge {
    background: var(--bc-card);
    border: 1px solid var(--bc-border);
    border-radius: 16px;
    padding: 20px 16px;
    font-weight: 600;
    font-size: 0.94rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--bc-shadow-soft);
}

.bc-badge span {
    font-size: 1.5rem;
}

/* CTA */

.bc-cta {
    position: relative;
    padding: 96px 24px;
    text-align: center;
    background: var(--bc-cta-gradient);
    color: var(--bc-text);
    overflow: hidden;
    border-top: 1px solid var(--bc-border);
}

.bc-cta .bc-glow-rosa {
    width: 760px;
    height: 420px;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

.bc-cta .bc-glow-amarillo {
    width: 460px;
    height: 460px;
    bottom: -280px;
    right: -160px;
    opacity: 0.2;
}

.bc-cta-inner {
    position: relative;
    z-index: 1;
}

.bc-cta-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    border-radius: 21px;
    filter: drop-shadow(0 14px 34px rgba(228, 0, 124, 0.32));
}

.bc-cta h2 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.bc-cta p {
    margin: 0 0 28px;
    color: var(--bc-text-secondary);
}

.bc-cta .bc-store-note {
    margin: 16px 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bc-text-secondary);
}

/* Legal / content pages */

.bc-legal-inner {
    max-width: 760px;
}

.bc-legal h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.5rem);
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.bc-legal-updated {
    color: var(--bc-text-secondary);
    font-size: 0.9rem;
    margin: 0 0 32px;
}

.bc-legal h2 {
    text-align: left;
    font-size: 1.28rem;
    margin: 36px 0 12px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.bc-legal p, .bc-legal li {
    color: var(--bc-text-secondary);
    font-size: 1rem;
}

.bc-legal ul {
    padding-left: 20px;
}

.bc-legal a {
    color: var(--bc-rosa);
    font-weight: 600;
}

.bc-error {
    text-align: center;
    padding: 40px 0;
}

/* Support page */

.bc-support-contact {
    margin: 24px 0 8px;
}

.bc-faq {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bc-faq details {
    background: var(--bc-card);
    border: 1px solid var(--bc-border);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: var(--bc-shadow-soft);
}

.bc-faq summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: var(--bc-text);
}

.bc-faq summary::-webkit-details-marker {
    display: none;
}

.bc-faq summary::after {
    content: "+";
    float: right;
    font-weight: 700;
    color: var(--bc-rosa);
}

.bc-faq details[open] summary::after {
    content: "\2212";
}

.bc-faq p {
    margin: 10px 0 0;
}

/* Footer */

.bc-footer {
    border-top: 1px solid var(--bc-border);
    padding: 40px 24px;
    background: var(--bc-bg-alt);
}

.bc-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bc-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.bc-footer-brand img {
    width: 26px;
    height: 26px;
    border-radius: 6px;
}

.bc-footer-links {
    display: flex;
    gap: 20px;
}

.bc-footer-links a,
.bc-footer-links a:link,
.bc-footer-links a:visited {
    text-decoration: none;
    color: var(--bc-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.bc-footer-links a:hover {
    color: var(--bc-rosa);
}

.bc-footer-copy {
    width: 100%;
    margin: 0;
    color: var(--bc-text-secondary);
    font-size: 0.82rem;
}

/* Mobile */

@media (max-width: 860px) {
    .bc-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .bc-hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .bc-hero-ctas {
        justify-content: center;
    }

    .bc-hero-visual {
        order: -1;
    }

    .bc-privacy {
        grid-template-columns: 1fr;
    }

    .bc-privacy-copy h2 {
        text-align: center;
    }

    .bc-privacy-copy {
        text-align: center;
    }

    .bc-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .bc-nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bc-bg);
        border-bottom: 1px solid var(--bc-border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 16px;
        display: none;
    }

    .bc-nav-links.bc-open {
        display: flex;
    }

    .bc-nav-toggle {
        display: flex;
    }

    .bc-theme-toggle {
        padding: 7px 10px;
    }

    .bc-theme-toggle-label {
        display: none;
    }

    .bc-feature-grid {
        grid-template-columns: 1fr;
    }

    .bc-privacy-badges {
        grid-template-columns: 1fr 1fr;
    }

    .bc-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .bc-phone {
        width: 100%;
        max-width: 320px;
    }
}
