/* ==========================================================================
   bvsoft.es public site: the portal ("/") and one landing per app
   ("/sports", "/collections"). Trello #133.

   Loaded after brand.css, whose --bv-* tokens, .btn and form styles it reuses.
   One system, one colour per app: [data-app] sets the accent (--a1..--a3) and the
   primary colour, on <html> for a whole page or on any element (an app card of
   the portal). No build step, nothing from third parties, no <style> blocks (CSP).
   ========================================================================== */

/* Tokens --------------------------------------------------------------------- */

:root {
    --s-max: 1200px;
    --s-gutter: 20px;
    --s-section-y: clamp(72px, 10vw, 136px);
    --s-radius: 28px;

    --s-glass: color-mix(in srgb, var(--bv-surface) 72%, transparent);
    --s-hairline: color-mix(in srgb, var(--bv-text) 10%, transparent);
    --s-shadow: 0 30px 60px -28px rgba(27, 35, 64, .35), 0 12px 24px -14px rgba(27, 35, 64, .16);
    --s-frame: #FFFFFF;
    --s-frame-bar: #F1EEE6;

    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

[data-app="portal"] {
    --a1: #1F6B3A; --a2: #C8962E; --a3: #6A3FB5;
    --g1: #1F6B3A; --g2: #2E3D72; --g3: #6A3FB5;
    --bv-primary: #1B2340; --bv-on-primary: #FFFFFF;
    --bv-primary-soft: #E6E8F2; --bv-on-primary-soft: #1B2340;
}
[data-app="sports"] {
    --a1: #1F6B3A; --a2: #7A7D35; --a3: #C8962E;
    --g1: #1F6B3A; --g2: #7A7D35; --g3: #C8962E;
    --bv-primary: #1F6B3A; --bv-on-primary: #FFFFFF;
    --bv-primary-soft: #E1EFE5; --bv-on-primary-soft: #134325;
}
[data-app="finance"] {
    --a1: #1F3A6E; --a2: #2E3D72; --a3: #8FB0F0;
    --g1: #1F3A6E; --g2: #2E3D72; --g3: #5B7FC7;
}
[data-app="collections"] {
    --a1: #6A3FB5; --a2: #B0409E; --a3: #EB6834;
    --g1: #6A3FB5; --g2: #B0409E; --g3: #EB6834;
    --bv-primary: #6A3FB5; --bv-on-primary: #FFFFFF;
    --bv-primary-soft: #ECE4F8; --bv-on-primary-soft: #3D2270;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bv-bg: #0B0F1C;
        --s-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8), 0 12px 24px -12px rgba(0, 0, 0, .5);
        --s-frame: #151B2E;
        --s-frame-bar: #1C2339;
    }
    [data-app="portal"] {
        --g1: #5BC285; --g2: #8FB0F0; --g3: #CDB8FF;
        --bv-primary: #EDEFF6; --bv-on-primary: #0B0F1C;
        --bv-primary-soft: #1C2339; --bv-on-primary-soft: #EDEFF6;
    }
    [data-app="sports"] {
        --g1: #5BC285; --g2: #BFC266; --g3: #E8BC62;
        --bv-primary: #5BC285; --bv-on-primary: #06210F;
        --bv-primary-soft: #173424; --bv-on-primary-soft: #BFEBD0;
    }
    [data-app="collections"] {
        --g1: #CDB8FF; --g2: #F09AD0; --g3: #FFA877;
        --bv-primary: #CDB8FF; --bv-on-primary: #261150;
        --bv-primary-soft: #2F2352; --bv-on-primary-soft: #E6DCFF;
    }
}

@view-transition { navigation: auto; }

/* Base ------------------------------------------------------------------------- */

.site { overflow-x: hidden; font-size: 16px; }
.site img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: calc(var(--s-max) + var(--s-gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--s-gutter);
}

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    padding: 10px 16px; border-radius: var(--bv-radius-full);
    background: var(--bv-primary); color: var(--bv-on-primary); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.site a:focus-visible, .site summary:focus-visible, .site button:focus-visible {
    outline: none; box-shadow: var(--bv-focus); border-radius: 10px;
}

/* Buttons (extends brand.css .btn) ---------------------------------------------- */

.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 16.5px; }
.btn--glass {
    background: var(--s-glass); color: var(--bv-text);
    box-shadow: inset 0 0 0 1px var(--s-hairline);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn--glass:hover { filter: none; box-shadow: inset 0 0 0 1.5px var(--bv-primary); }
.btn--quiet { background: transparent; color: var(--bv-text); box-shadow: inset 0 0 0 1.5px var(--s-hairline); }
.btn--quiet:hover { filter: none; box-shadow: inset 0 0 0 1.5px var(--bv-primary); color: var(--bv-primary); }
.btn--light { background: #FFFFFF; color: #1B2340; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .55); }
.btn .icon { transition: transform .2s var(--bv-ease); }
.btn:hover .icon { transform: translateX(2px); }

/* Top bar: a floating glass pill -------------------------------------------------- */

.topbar { position: sticky; top: 12px; z-index: 50; padding: 0 12px; margin-top: 12px; }
.topbar__inner {
    display: flex; align-items: center; gap: 10px;
    max-width: var(--s-max); min-height: 60px; margin: 0 auto; padding: 0 10px 0 18px;
    border-radius: var(--bv-radius-full);
    background: var(--s-glass);
    border: 1px solid var(--s-hairline);
    backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px);
    transition: box-shadow .25s var(--bv-ease), background .25s var(--bv-ease);
}
.topbar.is-scrolled .topbar__inner { box-shadow: 0 18px 40px -24px rgba(11, 15, 28, .55); }

.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--bv-text); text-decoration: none; }
.logo__mark { width: 30px; height: 30px; }
.logo__word { font-size: 16px; font-weight: 800; letter-spacing: .08em; }
.logo__app {
    padding: 4px 10px; border-radius: var(--bv-radius-full);
    background: var(--bv-primary-soft); color: var(--bv-on-primary-soft);
    font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
}

.logo__app { margin-left: -2px; }
/* On a phone the pill has no room for the wordmark, the app and the button. */
@media (max-width: 479px) {
    .topbar__inner { padding-left: 14px; }
    .logo:has(+ .logo__app) .logo__word { display: none; }
}

.topbar__nav { display: none; gap: 2px; margin-left: auto; }
.topbar__nav a {
    padding: 8px 14px; border-radius: var(--bv-radius-full);
    color: var(--bv-text-muted); font-size: 14.5px; font-weight: 600; text-decoration: none;
    transition: background .15s var(--bv-ease), color .15s var(--bv-ease);
}
.topbar__nav a:hover { background: color-mix(in srgb, var(--bv-text) 8%, transparent); color: var(--bv-text); }
.topbar__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar__login { display: none; }
@media (min-width: 940px) {
    .topbar__nav { display: flex; }
    .topbar__actions { margin-left: 8px; }
    .topbar__login { display: inline-flex; }
}

.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary .icon { transform: rotate(180deg); }
.menu__panel {
    position: absolute; right: 0; top: calc(100% + 12px); z-index: 60;
    width: min(320px, calc(100vw - 32px)); padding: 8px;
    border-radius: 22px; background: var(--bv-surface); border: 1px solid var(--bv-border);
    box-shadow: var(--bv-shadow-lg);
    animation: pop-in .18s var(--bv-ease) both;
}
.menu__item {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    border-radius: 16px; color: var(--bv-text); font-weight: 400; text-decoration: none;
}
.menu__item:hover { background: var(--bv-primary-soft); }
.menu__item strong { display: block; font-size: 15px; font-weight: 800; }
.menu__item small { display: block; font-size: 12.5px; color: var(--bv-text-muted); }
.menu__icon {
    display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 14px;
    background: var(--bv-primary-soft); color: var(--bv-primary); font-size: 18px;
}

/* Typography ----------------------------------------------------------------------- */

.display {
    margin: 0;
    font-size: clamp(44px, 7.6vw, 104px);
    line-height: .96;
    font-weight: 800;
    letter-spacing: -.05em;
    text-wrap: balance;
}
.hero__grid .display { font-size: clamp(44px, 6.2vw, 84px); }
.display em, .section-title em, .closing__title em {
    font-style: italic;
    background: linear-gradient(100deg, var(--g1) 0%, var(--g2) 50%, var(--g3) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    padding-right: .08em;
}

.lead { max-width: 560px; margin: 26px 0 0; font-size: clamp(17px, 1.7vw, 20px); line-height: 1.6; color: var(--bv-text-muted); text-wrap: pretty; }
.lead--center { max-width: 640px; margin-left: auto; margin-right: auto; }

.eyebrow {
    margin: 0 0 16px; font-size: 12.5px; font-weight: 800; letter-spacing: .16em;
    text-transform: uppercase; color: var(--bv-primary);
}
.eyebrow--chip {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; padding: 8px 16px;
    border-radius: var(--bv-radius-full); background: var(--s-glass);
    border: 1px solid var(--s-hairline); color: var(--bv-text-muted); letter-spacing: .12em;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.section { padding: var(--s-section-y) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { margin: 0; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
.section-lead { margin: 18px 0 0; font-size: 18px; color: var(--bv-text-muted); text-wrap: pretty; }

/* Aurora: slow blobs in the colours of the app --------------------------------------- */

.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora::after {
    /* A faint dot grid that fades out towards the bottom. */
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(color-mix(in srgb, var(--bv-text) 16%, transparent) 1px, transparent 1.5px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 80%);
    mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent 80%);
    opacity: .5;
}
.aurora i {
    position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%;
    background: radial-gradient(closest-side, var(--c), transparent);
    opacity: .34; will-change: transform;
    animation: drift 22s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { --c: var(--a1); top: -34vmax; left: -16vmax; }
.aurora i:nth-child(2) { --c: var(--a3); top: -30vmax; right: -20vmax; animation-duration: 28s; animation-delay: -8s; }
.aurora i:nth-child(3) { --c: var(--a2); top: 4vmax; left: 26vmax; width: 44vmax; height: 44vmax; opacity: .22; animation-duration: 34s; animation-delay: -14s; }
@media (prefers-color-scheme: dark) {
    .aurora i { opacity: .42; }
    .aurora i:nth-child(3) { opacity: .3; }
}

/* Hero ---------------------------------------------------------------------------------- */

.hero { position: relative; isolation: isolate; padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 96px); }
.hero--center { text-align: center; padding-bottom: clamp(40px, 5vw, 64px); }
.hero__grid { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
@media (min-width: 1040px) {
    .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__actions--center { justify-content: center; }

.facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 30px 0 0; padding: 0; list-style: none; }
.facts--center { justify-content: center; }
.facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--bv-text-muted); }
.facts .icon { color: var(--bv-primary); }

.stats { display: flex; flex-wrap: wrap; gap: 18px 40px; margin: 40px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font-size: clamp(30px, 3.6vw, 44px); line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stats dt { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: var(--bv-text-muted); }

.soon-badge {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 14px 6px 10px;
    border-radius: var(--bv-radius-full); background: var(--bv-accent-soft); color: var(--bv-on-accent-soft);
    font-size: 13px; font-weight: 700;
}
.soon-badge__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--bv-ochre); }
.soon-badge__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s var(--bv-ease) infinite; }

.float-chip {
    position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 16px 10px 10px; border-radius: 18px;
    background: var(--bv-surface); border: 1px solid var(--bv-border);
    box-shadow: 0 18px 36px -18px rgba(27, 35, 64, .45);
    animation: float 6s ease-in-out infinite;
}
.float-chip strong { display: block; font-size: 15px; line-height: 1.2; font-weight: 800; }
.float-chip small { display: block; font-size: 12px; color: var(--bv-text-muted); }
.float-chip__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--bv-primary-soft); color: var(--bv-primary); }
.float-chip--a { top: -22px; right: 6%; }
.float-chip--b { bottom: 40%; left: -14px; animation-delay: -3s; }
@media (max-width: 640px) {
    .float-chip--a { right: 0; }
    .float-chip--b { display: none; }
}

/* Device frames ------------------------------------------------------------------------- */

.browser {
    margin: 0; overflow: hidden; border-radius: 14px;
    background: var(--s-frame); border: 1px solid var(--s-hairline); box-shadow: var(--s-shadow);
}
.browser__bar {
    display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 12px;
    background: var(--s-frame-bar); border-bottom: 1px solid var(--s-hairline);
}
.browser__dots { display: inline-flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #E5645A; }
.browser__dots i:nth-child(2) { background: #E9B13F; }
.browser__dots i:nth-child(3) { background: #5DB85C; }
.browser__url {
    display: inline-flex; align-items: center; gap: 4px; margin: 0 auto; padding: 3px 14px;
    border-radius: var(--bv-radius-full); background: var(--bv-surface); color: var(--bv-text-subtle);
    font-size: 11.5px; font-weight: 600; transform: translateX(-24px);
}
.browser__url .icon { width: 11px; height: 11px; }
.browser img { width: 100%; }

.phone {
    position: relative; margin: 0; padding: 7px; border-radius: 34px; background: #0B0F1C;
    box-shadow: var(--s-shadow), inset 0 0 0 1.5px #2A3150;
}
.phone img { width: 100%; border-radius: 27px; }
.phone__notch {
    position: absolute; top: 13px; left: 50%; z-index: 2; width: 30%; height: 14px;
    border-radius: 10px; background: #0B0F1C; transform: translateX(-50%);
}

/* App cards of the portal ---------------------------------------------------------------- */

.apps { padding: 0 0 var(--s-section-y); }
.apps__grid { display: grid; gap: 20px; }
@media (min-width: 1040px) { .apps__grid { grid-template-columns: 1fr 1fr; } }

.app-card {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; gap: 36px;
    padding: clamp(26px, 3.4vw, 44px) clamp(22px, 3.4vw, 44px) 0;
    border-radius: 36px;
    background:
        radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--a3) 20%, transparent), transparent 60%),
        radial-gradient(90% 70% at 0% 100%, color-mix(in srgb, var(--a1) 26%, transparent), transparent 65%),
        var(--bv-surface);
    border: 1px solid var(--s-hairline);
    transition: transform .35s var(--bv-ease), box-shadow .35s var(--bv-ease);
}
.app-card:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--a1) 70%, transparent); }
.app-card__tag {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 14px;
    border-radius: var(--bv-radius-full); background: var(--bv-primary-soft); color: var(--bv-on-primary-soft);
    font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.app-card__title { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.04; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
.app-card__text { max-width: 480px; margin: 14px 0 0; font-size: 17px; color: var(--bv-text-muted); }
.app-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.ticks { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.ticks .icon { margin-top: 2px; padding: 3px; border-radius: 50%; background: var(--bv-primary); color: var(--bv-on-primary); stroke-width: 3; }

.app-card__visual { position: relative; margin-top: auto; min-height: 240px; }
.app-card__browser { transform: perspective(1600px) rotateX(8deg); transform-origin: bottom center; border-bottom-left-radius: 0; border-bottom-right-radius: 0; transition: transform .6s var(--bv-ease); }
.app-card:hover .app-card__browser { transform: perspective(1600px) rotateX(0deg); }
.app-card__visual .app-card__phone { position: absolute; right: 4%; bottom: -8%; width: clamp(96px, 20%, 150px); transform: rotate(5deg); transition: transform .6s var(--bv-ease); }
.app-card:hover .app-card__phone { transform: rotate(2deg) translateY(-10px); }

.hero__visual { position: relative; }

/* Marquee of platforms ---------------------------------------------------------------------- */

.marquee {
    margin-top: clamp(48px, 6vw, 80px); overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 48s linear infinite; }
.marquee__track span {
    padding: 9px 18px; border-radius: var(--bv-radius-full);
    background: var(--s-glass); border: 1px solid var(--s-hairline);
    color: var(--bv-text-muted); font-size: 14px; font-weight: 700; white-space: nowrap;
}

/* Bento ---------------------------------------------------------------------------------------- */

.bento { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 1040px) {
    .bento { grid-template-columns: repeat(4, 1fr); }
    .tile--wide { grid-column: span 2; }
}
.tile {
    position: relative; overflow: hidden; height: 100%; padding: 28px 26px 26px; border-radius: var(--s-radius);
    background: var(--bv-surface); border: 1px solid var(--s-hairline);
    transition: transform .3s var(--bv-ease), border-color .3s var(--bv-ease);
}
.tile:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--bv-primary) 45%, transparent); }
.tile--accent {
    background:
        radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--a3) 24%, transparent), transparent 60%),
        radial-gradient(80% 120% at 0% 100%, color-mix(in srgb, var(--a1) 24%, transparent), transparent 60%),
        var(--bv-surface);
}
.tile__icon {
    display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 20px; border-radius: 16px;
    background: var(--bv-primary-soft); color: var(--bv-on-primary-soft); font-size: 20px;
}
.tile__title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.tile__text { margin: 8px 0 0; color: var(--bv-text-muted); }
.tile__apps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tile__apps span {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--bv-radius-full);
    background: var(--bv-primary-soft); color: var(--bv-on-primary-soft); font-size: 13px; font-weight: 800;
}

/* Tones: the soft colour pairs of icons and bands (sports and collections sections) ------------- */

.tone--forest   { --t-soft: #E1EFE5; --t-on: #134325; }
.tone--ochre    { --t-soft: #FAEFD6; --t-on: #6A4A0C; }
.tone--olive    { --t-soft: #EEEFD9; --t-on: #45471A; }
.tone--burgundy { --t-soft: #F8E3E9; --t-on: #6E1030; }
.tone--violet   { --t-soft: #ECE4F8; --t-on: #3D2270; }
.tone--orange   { --t-soft: #FDE6DA; --t-on: #7A2E0E; }
.tone--teal     { --t-soft: #DDF4EA; --t-on: #0C4F37; }
.tone--amber    { --t-soft: #FBEFCC; --t-on: #6B4A00; }
@media (prefers-color-scheme: dark) {
    .tone--forest   { --t-soft: #173424; --t-on: #BFEBD0; }
    .tone--ochre    { --t-soft: #372B12; --t-on: #F5DDA6; }
    .tone--olive    { --t-soft: #2C2E14; --t-on: #E3E5B0; }
    .tone--burgundy { --t-soft: #3B1626; --t-on: #FFC9D6; }
    .tone--violet   { --t-soft: #2F2352; --t-on: #E6DCFF; }
    .tone--orange   { --t-soft: #40200F; --t-on: #FFD3BD; }
    .tone--teal     { --t-soft: #10362A; --t-on: #B5EBD5; }
    .tone--amber    { --t-soft: #3A2C08; --t-on: #F8DE9A; }
}

.eyebrow--icon { display: inline-flex; align-items: center; gap: 8px; }
.eyebrow--light { color: var(--g1); }
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--bv-radius-full); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; vertical-align: middle; }
.pill--soon { background: var(--bv-accent-soft); color: var(--bv-on-accent-soft); }
.soon-badge--light { background: rgba(255, 255, 255, .12); color: #F5DDA6; }

/* Hero with devices (sports) ------------------------------------------------------------------- */

.hero__visual--devices { padding: 0 0 36px; }
.hero__browser { transform: perspective(1800px) rotateY(-8deg) rotateX(3deg); transform-origin: left center; }
.hero__visual .hero__phone { position: absolute; right: -4px; bottom: -8px; width: clamp(118px, 24%, 190px); transform: rotate(4deg); }
.hero__visual--devices .float-chip--a { top: -18px; right: 14%; }
.hero__visual--devices .float-chip--b { top: 18%; bottom: auto; left: -18px; }
.float-chip--c { bottom: 6%; left: 12%; animation-delay: -4s; }
@media (max-width: 1039px) {
    .hero__browser { transform: none; }
    .hero__visual .hero__phone { right: 0; }
}
@media (max-width: 640px) {
    .float-chip { padding: 7px 12px 7px 7px; gap: 8px; border-radius: 14px; }
    .float-chip strong { font-size: 13px; }
    .float-chip small { font-size: 11px; }
    .float-chip__icon { width: 28px; height: 28px; border-radius: 9px; font-size: 13px; }
    .hero__visual--devices .float-chip--a { right: 4px; top: -22px; }
    .hero__visual--devices .float-chip--b { display: inline-flex; left: -6px; top: 22%; }
    .float-chip--c { display: none; }
}

/* Pillars: the bento of what the app does --------------------------------------------------------- */

.pillars { padding: calc(var(--s-section-y) * .6) 0 calc(var(--s-section-y) * .5); }
.pillars__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; padding: 0; list-style: none; }
.pillar {
    position: relative; overflow: hidden; display: flex; flex-direction: column; height: 100%; padding: 28px 26px 24px;
    border-radius: var(--s-radius); background: var(--bv-surface); border: 1px solid var(--s-hairline);
    color: var(--bv-text); font-weight: 400; text-decoration: none;
    transition: transform .3s var(--bv-ease), box-shadow .3s var(--bv-ease), border-color .3s var(--bv-ease);
}
.pillar::before {
    content: ''; position: absolute; inset: auto -30% -60% auto; width: 80%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(closest-side, var(--t-soft), transparent); opacity: 0; transition: opacity .4s var(--bv-ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--bv-shadow-lg); border-color: transparent; }
.pillar:hover::before { opacity: 1; }
.pillar > * { position: relative; }
.pillar__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; border-radius: 18px; background: var(--t-soft); color: var(--t-on); font-size: 22px; }
.pillar__title { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.pillar__text { flex: 1; margin: 8px 0 18px; color: var(--bv-text-muted); }
.pillar__more { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 700; color: var(--bv-primary); }
.pillar__more .icon { transition: transform .2s var(--bv-ease); }
.pillar:hover .pillar__more .icon { transform: translateY(2px); }

/* Feature blocks: copy on one side, screenshots on the other ---------------------------------------- */

.feature { position: relative; padding: calc(var(--s-section-y) * .7) 0; }
.feature[class*="tone--"] { isolation: isolate; }
.feature[class*="tone--"]::before {
    content: ''; position: absolute; inset: 8% 0; z-index: -1;
    background: linear-gradient(90deg, transparent, var(--t-soft) 30%, var(--t-soft) 70%, transparent); opacity: .5;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}
.feature__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) {
    .feature__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
    .feature--reverse .feature__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
    .feature--reverse .feature__copy { order: 2; }
}
.feature .section-title { font-size: clamp(28px, 3.6vw, 44px); }
.feature__text { margin: 18px 0 0; font-size: 17.5px; color: var(--bv-text-muted); text-wrap: pretty; }

.checks { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 12px; }
.checks .icon { margin-top: 3px; padding: 3px; border-radius: 50%; background: var(--bv-primary-soft); color: var(--bv-on-primary-soft); stroke-width: 3; }
.checks strong { font-weight: 700; }

.feature__visual { position: relative; }
.feature__visual--duo { padding-right: clamp(40px, 9%, 90px); padding-bottom: 32px; }
.feature__visual .feature__phone { position: absolute; right: 0; bottom: 0; width: clamp(110px, 26%, 180px); }
.feature__visual--stack { padding: 0 clamp(24px, 8%, 72px) clamp(48px, 12%, 110px) 0; }
.detail {
    position: absolute; right: 0; bottom: 0; width: 58%; margin: 0; overflow: hidden; border-radius: 18px;
    background: var(--bv-surface); border: 1px solid var(--s-hairline); box-shadow: var(--s-shadow);
}
#competiciones .detail { width: 50%; background: var(--bv-bg); }
.detail img { width: 100%; }

/* Screenshots straighten up as they scroll into view, where the browser can do it. */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) and (min-width: 960px) {
        .feature__visual > .browser {
            animation: straighten linear both; animation-timeline: view(); animation-range: entry 0% cover 45%;
        }
    }
}

/* Weekly email: a dark band ------------------------------------------------------------------------- */

.weekly { padding: calc(var(--s-section-y) * .4) 12px; }
.weekly__band {
    position: relative; isolation: isolate; overflow: hidden; max-width: 1480px; margin: 0 auto;
    padding: clamp(56px, 8vw, 112px) 0; border-radius: 44px; background: #0B0F1C; color: #EDEFF6;
}
.weekly__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .weekly__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); } }
.weekly__text { margin: 18px 0 0; font-size: 17.5px; color: #A9AFC4; }
.weekly__text--small { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 15px; }
.weekly__text--small .icon { margin-top: 2px; color: var(--g1); }
.weekly__list { display: grid; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .weekly__list { grid-template-columns: 1fr 1fr; } }
.weekly__list li {
    display: flex; gap: 12px; padding: 16px; border-radius: 20px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); color: #A9AFC4; font-size: 14.5px;
}
.weekly__list strong { display: block; margin-bottom: 2px; color: #EDEFF6; font-size: 15.5px; }
.weekly__icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .09); color: var(--g1); }
.weekly__note { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; font-size: 14px; color: #A9AFC4; }

/* A mock of the real email (api-notifications), with its own fixed colours and copy. */
.mail {
    max-width: 440px; margin: 0 auto; overflow: hidden; border-radius: 22px; background: #F6F4EE;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); transform: rotate(-2deg);
}
.mail__bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #FFFFFF; border-bottom: 1px solid #E4DFD3; color: #1B2340; }
.mail__avatar { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #F1EEE6; }
.mail__mark { width: 24px; height: 24px; }
.mail__meta { min-width: 0; display: grid; font-size: 12.5px; color: #575E75; }
.mail__meta strong { font-size: 14px; color: #1B2340; }
.mail__meta span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mail__time { margin-left: auto; flex: none; font-size: 12px; color: #7E8497; }
.mail__body { padding: 18px; color: #1B2340; }
.mail__hero { padding: 26px 24px 22px; border-radius: 16px 16px 0 0; background: var(--mail, #1F6B3A); color: #FFFFFF; }
.mail__eyebrow { margin: 0 0 8px; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; opacity: .78; }
.mail__title { margin: 0 0 6px; font-size: 22px; line-height: 1.25; font-weight: 800; }
.mail__dates { margin: 0; font-size: 14px; opacity: .88; }
.mail__stripe { display: grid; grid-template-columns: repeat(5, 1fr); height: 6px; }
.mail__stripe i:nth-child(1) { background: #1F2A4D; }
.mail__stripe i:nth-child(2) { background: #1F6B3A; }
.mail__stripe i:nth-child(3) { background: #7A7D35; }
.mail__stripe i:nth-child(4) { background: #C8962E; }
.mail__stripe i:nth-child(5) { background: #7A1E3A; }
.mail__card { padding: 22px 24px 26px; border: 1px solid #E4DFD3; border-top: 0; border-radius: 0 0 16px 16px; background: #FFFFFF; text-align: center; font-size: 15px; line-height: 1.55; }
.mail__card p { margin: 0 0 10px; text-align: left; }
.mail__small { font-size: 13px; color: #575E75; }
.mail__cta { display: inline-block; margin-top: 10px; padding: 12px 26px; border-radius: 999px; background: var(--mail, #1F6B3A); color: #FFFFFF; font-weight: 800; font-size: 15px; }
[data-app="collections"] .mail { --mail: #6A3FB5; }

/* Mobile: three phones and a light/dark switch --------------------------------------------------------- */

.mobile { padding: var(--s-section-y) 0 calc(var(--s-section-y) * .6); overflow: hidden; }
.theme-switch { display: inline-flex; gap: 4px; margin-top: 26px; padding: 4px; border-radius: var(--bv-radius-full); background: var(--bv-surface-2); border: 1px solid var(--bv-border); }
.theme-switch[hidden] { display: none; }
.theme-switch__btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 0;
    border-radius: var(--bv-radius-full); background: transparent; color: var(--bv-text-muted);
    font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.theme-switch__btn[aria-pressed="true"] { background: var(--bv-surface); color: var(--bv-text); box-shadow: 0 4px 12px -6px rgba(27, 35, 64, .35); }

.mobile__phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: clamp(12px, 3vw, 40px); max-width: 860px; margin: 0 auto; }
.mobile__phone--left { transform: translateY(24px) rotate(-5deg); }
.mobile__phone--center { transform: scale(1.06); z-index: 2; }
.mobile__phone--right { transform: translateY(24px) rotate(5deg); }
@media (max-width: 560px) {
    .mobile__phones { grid-template-columns: 1fr 1.25fr 1fr; gap: 0; margin: 0 -8px; }
    .mobile__phone--left { transform: translate(14px, 18px) rotate(-6deg) scale(.92); }
    .mobile__phone--right { transform: translate(-14px, 18px) rotate(6deg) scale(.92); }
    .mobile__phone--center { transform: none; }
}

/* Both themes are stacked; the system theme (or the switch) decides which one shows. */
.phone--themed { display: grid; }
.phone--themed img { grid-area: 1 / 1; transition: opacity .45s var(--bv-ease); }
.phone__dark { opacity: 0; }
@media (prefers-color-scheme: dark) {
    .phone__light { opacity: 0; }
    .phone__dark { opacity: 1; }
}
[data-theme-demo][data-scheme="light"] .phone__light { opacity: 1; }
[data-theme-demo][data-scheme="light"] .phone__dark { opacity: 0; }
[data-theme-demo][data-scheme="dark"] .phone__light { opacity: 0; }
[data-theme-demo][data-scheme="dark"] .phone__dark { opacity: 1; }

/* Steps ------------------------------------------------------------------------------------------------- */

.steps { padding: calc(var(--s-section-y) * .7) 0; }
.steps__list { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 0; padding: 0; list-style: none; }
.step { position: relative; overflow: hidden; height: 100%; padding: 32px 28px 28px; border-radius: var(--s-radius); background: var(--bv-surface); border: 1px solid var(--s-hairline); }
.step__number {
    position: absolute; top: -26px; right: 10px; font-size: 150px; line-height: 1; font-weight: 800; letter-spacing: -.06em;
    background: linear-gradient(160deg, var(--g1), var(--g3)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .16;
}
.step__icon { position: relative; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 17px; background: var(--bv-primary); color: var(--bv-on-primary); font-size: 21px; }
.step__title { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.step__text { position: relative; margin: 8px 0 0; color: var(--bv-text-muted); }

/* FAQ ------------------------------------------------------------------------------------------------------ */

.faq { padding: calc(var(--s-section-y) * .7) 0; }
.faq__grid { display: grid; gap: 32px; }
@media (min-width: 960px) {
    .faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; }
    .faq__head { position: sticky; top: 112px; align-self: start; }
}
.faq__list { display: grid; gap: 12px; }
.faq__item { border-radius: 22px; background: var(--bv-surface); border: 1px solid var(--s-hairline); transition: border-color .2s var(--bv-ease), box-shadow .2s var(--bv-ease); }
.faq__item[open] { border-color: color-mix(in srgb, var(--bv-primary) 45%, transparent); box-shadow: 0 14px 30px -22px rgba(27, 35, 64, .4); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--bv-text-subtle); transition: transform .25s var(--bv-ease); }
.faq__item[open] summary .icon { transform: rotate(180deg); color: var(--bv-primary); }
.faq__item p { margin: -6px 0 0; padding: 0 22px 22px; color: var(--bv-text-muted); }

/* «¿Ya lo tengo?» on its dark band: a phone with the search by code. */
.owned-stage { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 12px 0; }
.owned-stage__phone { width: min(300px, 78%); transform: rotate(3deg); }

/* Card pages (layout/brand.html.twig): registration, verification, contact, unsubscribe, errors ---------- */

.brand-page { isolation: isolate; align-items: start; padding-top: clamp(28px, 6vh, 72px); }
.brand-page__column { width: 100%; max-width: 500px; }
.brand-page__logo { display: flex; justify-content: center; margin: 0 0 22px; }
.brand-page .brand-card {
    max-width: none; border-radius: 32px; border-color: var(--s-hairline);
    background: color-mix(in srgb, var(--bv-surface) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px);
}
.brand-card__title { font-size: 30px; letter-spacing: -.035em; }
.brand-card__switch--quiet { margin-top: 8px; font-size: 13px; }

.app-choices { display: grid; gap: 12px; margin: 26px 0 6px; padding: 0; list-style: none; text-align: left; }
.app-choice {
    display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px;
    background: var(--bv-surface); border: 1px solid var(--s-hairline); color: var(--bv-text); font-weight: 400; text-decoration: none;
    transition: transform .2s var(--bv-ease), border-color .2s var(--bv-ease), box-shadow .2s var(--bv-ease);
}
.app-choice:hover { transform: translateY(-2px); border-color: var(--bv-primary); box-shadow: 0 16px 30px -20px var(--bv-primary); }
.app-choice__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 16px; background: var(--bv-primary-soft); color: var(--bv-primary); font-size: 20px; }
.app-choice__copy { flex: 1; min-width: 0; }
.app-choice__copy strong { display: block; font-size: 16.5px; font-weight: 800; }
.app-choice__copy small { display: block; font-size: 13px; color: var(--bv-text-muted); }
.app-choice > .icon { color: var(--bv-primary); }

/* Closing + footer ------------------------------------------------------------------------------- */

.closing { padding: 0 0 var(--s-section-y); }
.closing__card {
    position: relative; isolation: isolate; overflow: hidden;
    padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 64px); border-radius: 40px;
    background: #0B0F1C; color: #FFFFFF; text-align: center;
}
.aurora--card::after { display: none; }
.aurora--card i { opacity: .6; }
.closing__title { margin: 0; font-size: clamp(34px, 5.4vw, 68px); line-height: 1; font-weight: 800; letter-spacing: -.045em; }
.closing__text { max-width: 520px; margin: 18px auto 0; font-size: 18px; color: rgba(255, 255, 255, .78); }

.footer { padding: 48px 0 44px; border-top: 1px solid var(--s-hairline); }
.footer__inner { display: grid; gap: 32px 40px; grid-template-columns: repeat(2, 1fr); }
.footer__brand { grid-column: 1 / -1; }
.footer__tagline { max-width: 300px; margin: 12px 0 0; font-size: 14.5px; color: var(--bv-text-subtle); }
.footer__social { display: flex; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.footer__social a {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--s-hairline); color: var(--bv-text-muted); font-size: 16px;
    transition: color .2s var(--bv-ease), border-color .2s var(--bv-ease);
}
.footer__social a:hover, .footer__social a:focus-visible { color: var(--bv-primary); border-color: currentColor; }
.footer__nav { display: grid; gap: 10px; align-content: start; }
.footer__title { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--bv-text-subtle); }
.footer__nav a { font-size: 14.5px; font-weight: 600; color: var(--bv-text-muted); text-decoration: none; }
.footer__nav a:hover { color: var(--bv-primary); }
.footer__legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--s-hairline); font-size: 13px; color: var(--bv-text-subtle); }
.footer__legal p { margin: 10px 0 0; }
.footer__credits { margin: 0 0 14px !important; }
.footer__credits a { font-weight: 600; color: var(--bv-text-muted); }
.legal-links--start { justify-content: flex-start; }
@media (min-width: 860px) {
    .footer__inner { grid-template-columns: 1.6fr repeat(3, 1fr); }
    .footer__brand { grid-column: auto; }
}

/* Motion ------------------------------------------------------------------------------------------ */

/* The first screen rises in with CSS alone: it never waits for JS (and neither does the LCP). */
[data-rise] { animation: rise .7s var(--bv-ease) both; animation-delay: calc(var(--rise, 0) * 80ms); }

/* Reveal on scroll (only with JS, see site.js). */
.js [data-reveal] {
    opacity: 0; transform: translateY(28px);
    transition: opacity .8s var(--bv-ease), transform .8s var(--bv-ease);
    transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes straighten { from { transform: perspective(1600px) rotateX(14deg) scale(.94); opacity: .5; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes drift { to { transform: translate3d(6vmax, 5vmax, 0) scale(1.15); } }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* On a phone the aurora stays still: three animated layers the size of the screen
   kept the main thread of a slow device busy for seconds (Lighthouse, Trello #133). */
@media (max-width: 1039px) {
    .aurora i { animation: none; will-change: auto; }
}

@media (prefers-reduced-motion: reduce) {
    :root { scroll-behavior: auto; }
    @view-transition { navigation: none; }
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    [data-rise], .aurora i, .float-chip, .soon-badge__dot::after, .marquee__track, .menu__panel { animation: none; }
    .app-card, .app-card__browser, .app-card__phone, .tile, .pillar, .btn .icon { transition: none; }
}
