/* Barabr public site — ships with PHP deploy (does not depend on Vite rebuild). */

:root {
    --bb-farm-950: #0c241c;
    --bb-farm-900: #174a3a;
    --bb-farm-800: #1f5c49;
    --bb-farm-700: #2a6f58;
    --bb-farm-100: #e7f3ed;
    --bb-farm-50: #f3f8f5;
    --bb-field: #eef4f0;
    --bb-ink: #122018;
    --bb-muted: #5a6b62;
    --bb-mint: #4cb892;
    --bb-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --bb-sans: 'Figtree', ui-sans-serif, system-ui, sans-serif;
    --bb-max: 72rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.barabr-field-wash {
    margin: 0;
    color: var(--bb-ink);
    background-color: var(--bb-field);
    background-image:
        radial-gradient(circle at 12% 18%, rgba(23, 74, 58, 0.06), transparent 42%),
        radial-gradient(circle at 88% 8%, rgba(76, 184, 146, 0.08), transparent 38%),
        linear-gradient(180deg, #f7faf8 0%, #eef4f0 100%);
    font-family: var(--bb-sans);
}

.font-display,
.barabr-site .font-display {
    font-family: var(--bb-display);
}

.barabr-shell {
    width: min(100% - 2rem, var(--bb-max));
    margin-inline: auto;
}

@media (min-width: 640px) {
    .barabr-shell {
        width: min(100% - 3rem, var(--bb-max));
    }
}

.barabr-hero-glow {
    background:
        radial-gradient(ellipse 80% 60% at 15% 20%, rgba(76, 184, 146, 0.28), transparent 55%),
        radial-gradient(ellipse 70% 50% at 85% 10%, rgba(255, 255, 255, 0.12), transparent 50%),
        linear-gradient(160deg, #174a3a 0%, #0f3328 48%, #1a4034 100%) !important;
    color: #fff;
}

.barabr-hero-inner {
    width: min(100% - 2rem, var(--bb-max));
    margin-inline: auto;
    display: grid;
    gap: 2.5rem;
    padding: 3rem 0 4rem;
}

@media (min-width: 1024px) {
    .barabr-hero-inner {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: end;
        padding: 4rem 0 5rem;
    }
}

@keyframes barabr-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes barabr-glow-pulse {
    0%,
    100% {
        box-shadow:
            0 18px 50px rgba(23, 74, 58, 0.28),
            0 0 0 1px rgba(255, 255, 255, 0.12);
    }
    50% {
        box-shadow:
            0 24px 64px rgba(23, 74, 58, 0.4),
            0 0 0 1px rgba(255, 255, 255, 0.2),
            0 0 48px rgba(76, 184, 146, 0.35);
    }
}

@keyframes barabr-badge-breathe {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

.animate-rise {
    animation: barabr-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.animate-rise-delay {
    animation: barabr-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.animate-rise-late {
    animation: barabr-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

/* Header / footer */
.barabr-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(23, 74, 58, 0.1);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.barabr-header-inner {
    width: min(100% - 2rem, var(--bb-max));
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0;
}

.barabr-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem;
    color: var(--bb-farm-900);
    font-size: 0.875rem;
    font-weight: 600;
}

.barabr-nav a {
    color: inherit;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.4rem 0.75rem;
}

.barabr-nav a:hover {
    background: var(--bb-farm-100);
}

.barabr-footer {
    margin-top: 4rem;
    background: var(--bb-farm-950);
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.barabr-footer-inner {
    width: min(100% - 2rem, var(--bb-max));
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2.5rem 0;
}

@media (min-width: 768px) {
    .barabr-footer-inner {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.barabr-footer-title {
    margin: 0;
    font-family: var(--bb-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.barabr-footer-copy {
    margin: 0.65rem 0 0;
    max-width: 28rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.6;
}

.barabr-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.875rem;
}

.barabr-footer-links a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.28);
}

.barabr-footer-links a:hover {
    color: #fff;
}

/* Content sections */
.barabr-main {
    width: min(100% - 2rem, var(--bb-max));
    margin-inline: auto;
    padding: 3rem 0 1rem;
}

.barabr-section {
    margin-top: 3.5rem;
}

.barabr-section:first-child {
    margin-top: 0;
}

.barabr-eyebrow {
    margin: 0;
    color: var(--bb-farm-800);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.barabr-heading {
    margin: 0.55rem 0 0;
    color: var(--bb-farm-950);
    font-family: var(--bb-display);
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.barabr-lead {
    margin: 0.75rem 0 0;
    max-width: 40rem;
    color: var(--bb-muted);
    font-size: 0.975rem;
    line-height: 1.65;
}

.barabr-steps,
.barabr-words,
.barabr-cases,
.barabr-news {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.barabr-steps,
.barabr-words {
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .barabr-steps,
    .barabr-words {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.barabr-tile {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1.15rem;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 10px 28px rgba(18, 32, 24, 0.05);
}

.barabr-step {
    display: flex;
    gap: 0.95rem;
    align-items: flex-start;
}

.barabr-step-num {
    flex: 0 0 auto;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bb-farm-900);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
}

.barabr-step p,
.barabr-tile p,
.barabr-case,
.barabr-note {
    margin: 0;
    color: var(--bb-muted);
    font-size: 0.975rem;
    line-height: 1.55;
}

.barabr-tile h3 {
    margin: 0;
    color: var(--bb-farm-900);
    font-family: var(--bb-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.barabr-tile p {
    margin-top: 0.45rem;
}

.barabr-case {
    padding: 1rem 1.2rem;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(18, 32, 24, 0.04);
}

.barabr-note {
    margin-top: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    background: rgba(231, 243, 237, 0.85);
    color: var(--bb-farm-900);
}

.barabr-news-item {
    padding: 1.15rem 1.2rem;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 1.15rem;
    box-shadow: 0 10px 28px rgba(18, 32, 24, 0.05);
}

.barabr-news-item h3 {
    margin: 0;
    color: var(--bb-farm-900);
    font-family: var(--bb-display);
    font-size: 1.2rem;
    font-weight: 600;
}

.barabr-news-item h3 a {
    color: inherit;
    text-decoration: none;
}

.barabr-news-item h3 a:hover {
    text-decoration: underline;
}

.barabr-news-meta {
    margin: 0.4rem 0 0;
    color: var(--bb-muted);
    font-size: 0.875rem;
}

.barabr-news-stats {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--bb-farm-800);
    font-size: 0.875rem;
    font-weight: 600;
}

.barabr-news-stats a {
    color: inherit;
    text-decoration: none;
}

.barabr-news-stats a:hover {
    text-decoration: underline;
}

/* Plans */
.barabr-plans-panel {
    position: relative;
    border-radius: 1.75rem;
    padding: 1.75rem 1.25rem 1.5rem;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(76, 184, 146, 0.18), transparent 45%),
        linear-gradient(180deg, #12352b 0%, #0c241c 55%, #102a22 100%);
    color: #fff;
    overflow: hidden;
}

.barabr-plans-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.9;
}

.barabr-plans-panel > * {
    position: relative;
    z-index: 1;
}

@media (min-width: 640px) {
    .barabr-plans-panel {
        padding: 2.25rem 2rem 2rem;
    }
}

.barabr-plans-grid {
    display: grid;
    gap: 1.1rem;
    margin-top: 1.75rem;
}

@media (min-width: 900px) {
    .barabr-plans-grid {
        grid-template-columns: 1.15fr 0.85fr 0.85fr;
        align-items: stretch;
        gap: 1.25rem;
    }
}

.barabr-plan {
    border-radius: 1.35rem;
    padding: 1.35rem 1.25rem 1.4rem;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease;
    animation: barabr-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.barabr-plan:nth-child(2) {
    animation-delay: 0.1s;
}

.barabr-plan:nth-child(3) {
    animation-delay: 0.18s;
}

.barabr-plan:hover {
    transform: translateY(-6px);
}

.barabr-plan-free {
    background: linear-gradient(165deg, #1f5c49 0%, #174a3a 48%, #0f3328 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation:
        barabr-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both,
        barabr-glow-pulse 3.2s ease-in-out infinite;
}

.barabr-plan-paid {
    background: rgba(255, 255, 255, 0.96);
    color: var(--bb-ink);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
}

.barabr-plan-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.barabr-plan-free .barabr-plan-pill {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    animation: barabr-badge-breathe 2.8s ease-in-out infinite;
}

.barabr-plan-paid .barabr-plan-pill {
    background: var(--bb-farm-100);
    color: var(--bb-farm-800);
}

.barabr-plan-title {
    margin: 1rem 0 0;
    font-family: var(--bb-display);
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.barabr-plan-price {
    margin: 0.85rem 0 0;
    font-family: var(--bb-display);
    font-size: 2.35rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
}

.barabr-plan-price small {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.75;
    margin-inline-end: 0.25rem;
}

.barabr-plan-points {
    list-style: none;
    margin: 1.15rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.barabr-plan-points li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.45;
}

.barabr-plan-free .barabr-plan-points li {
    color: rgba(255, 255, 255, 0.9);
}

.barabr-plan-paid .barabr-plan-points li {
    color: var(--bb-muted);
}

.barabr-plan-check {
    flex: 0 0 auto;
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.barabr-plan-free .barabr-plan-check {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.barabr-plan-paid .barabr-plan-check {
    background: var(--bb-farm-100);
    color: var(--bb-farm-900);
}

.barabr-plan-check svg {
    width: 0.85rem;
    height: 0.85rem;
}

/* Download CTA */
.barabr-cta {
    position: relative;
    overflow: hidden;
    margin-top: 3.5rem;
    border-radius: 1.75rem;
    padding: 2rem 1.35rem;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(76, 184, 146, 0.32), transparent 50%),
        linear-gradient(145deg, #174a3a 0%, #0f3328 55%, #12352b 100%);
    color: #fff;
    box-shadow: 0 24px 60px rgba(23, 74, 58, 0.28);
}

@media (min-width: 640px) {
    .barabr-cta {
        padding: 2.4rem 2.2rem;
    }
}

.barabr-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

@media (min-width: 900px) {
    .barabr-cta-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.barabr-cta .barabr-eyebrow {
    color: rgba(167, 243, 208, 0.9);
}

.barabr-cta .barabr-heading {
    color: #fff;
}

.barabr-cta .barabr-lead {
    color: rgba(255, 255, 255, 0.78);
}

.barabr-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .barabr-cta-actions {
        flex-direction: row;
        align-items: center;
    }
}

.barabr-cta-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 1rem;
    background: #fff;
    color: var(--bb-farm-900);
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.barabr-cta-play:hover {
    transform: translateY(-2px);
}

.barabr-cta-ios {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Locale select */
.barabr-locale {
    margin-inline-start: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.barabr-locale-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.barabr-locale-control {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.barabr-locale-select {
    appearance: none;
    -webkit-appearance: none;
    min-height: 2.5rem;
    min-width: 8.5rem;
    border-radius: 999px;
    border: 1px solid rgba(23, 74, 58, 0.18);
    background: #fff;
    color: var(--bb-farm-900);
    padding: 0 2.2rem 0 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.barabr-locale-select:focus {
    outline: 2px solid rgba(23, 74, 58, 0.35);
    outline-offset: 2px;
}

.barabr-locale-chevron {
    position: absolute;
    inset-inline-end: 0.75rem;
    width: 1rem;
    height: 1rem;
    color: var(--bb-farm-900);
    opacity: 0.7;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .animate-rise,
    .animate-rise-delay,
    .animate-rise-late,
    .barabr-plan,
    .barabr-plan-free,
    .barabr-plan-pill {
        animation: none !important;
    }

    .barabr-plan:hover,
    .barabr-cta-play:hover {
        transform: none;
    }
}
