/* Bonux homepage: a loyalty stamp card. Paper ground, navy ink, the Bonux gradient as card stock */
@font-face {
    font-family: 'Gabarito';
    src: url('../fonts/gabarito/gabarito-latin.woff2') format('woff2');
    font-weight: 400 900;
    font-display: swap;
}

.bx {
    --bx-paper: #f6f4ef;
    --bx-paper-strong: #fffdf8;
    --bx-ink: #0b1f3a;
    --bx-ink-soft: #3a4865;
    --bx-line: rgba(11, 31, 58, .14);
    /* The brand gradient, one step darker so white labels on the card keep their contrast */
    --bx-teal: #087f7b;
    --bx-blue: #2f5fe0;
    --bx-violet: #7a2fe0;
    --bx-stock: linear-gradient(125deg, var(--bx-teal) 0%, var(--bx-blue) 52%, var(--bx-violet) 100%);
    --bx-display: 'Gabarito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bx-ease: cubic-bezier(.16, 1, .3, 1);
    background: var(--bx-paper);
    color: var(--bx-ink);
    overflow-x: clip;
}

[data-theme-style="dark"] .bx {
    --bx-paper: #0d1828;
    --bx-paper-strong: #13223a;
    --bx-ink: #f3f1ea;
    --bx-ink-soft: #b9c2d3;
    --bx-line: rgba(243, 241, 234, .16);
}

/* The page ground runs under the site header too, so the menu does not sit on a white band */
body.index { background: #f6f4ef; }
body.index[data-theme-style="dark"] { background: #0d1828; }

.bx ::selection { background: #19c6c0; color: #0b1f3a; }
.bx a:focus-visible, .bx summary:focus-visible { outline: 3px solid #3b6ff5; outline-offset: 4px; border-radius: 6px; }

.bx section { padding-block: clamp(4rem, 9vw, 7.5rem); }

/* Type */
.bx-display {
    font-family: var(--bx-display);
    font-weight: 800;
    font-size: clamp(2.6rem, 5.2vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -.025em;
    text-wrap: balance;
    color: var(--bx-ink);
    margin: 0 0 1.5rem;
}
.bx-title {
    font-family: var(--bx-display);
    font-weight: 800;
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.06;
    letter-spacing: -.02em;
    text-wrap: balance;
    color: var(--bx-ink);
    margin: 0 0 1rem;
}
.bx-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--bx-ink-soft); max-width: 36rem; margin: 0; }
.bx-note { font-size: .95rem; color: var(--bx-ink-soft); margin: 1rem 0 0; }
.bx-section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.bx-title-light, .bx-display-light { color: #fff; }
.bx-lead-light { color: rgba(255, 255, 255, .86); }
.bx-note-light { color: rgba(255, 255, 255, .7); }

/* Buttons */
.bx-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.bx-button {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--bx-display); font-weight: 700; font-size: 1.15rem;
    padding: 1rem 1.6rem; border-radius: 999px; text-decoration: none;
    transition: transform .25s var(--bx-ease), box-shadow .25s var(--bx-ease), background-color .25s;
}
.bx-button:hover { text-decoration: none; transform: translateY(-2px); }
.bx-button:active { transform: translateY(0) scale(.98); }
.bx-button-primary { background: var(--bx-stock); color: #fff; box-shadow: 0 10px 24px -8px rgba(47, 95, 224, .55); }
.bx-button-primary:hover { color: #fff; box-shadow: 0 16px 32px -10px rgba(47, 95, 224, .6); }
.bx-button-ghost { color: var(--bx-ink); box-shadow: inset 0 0 0 2px var(--bx-line); }
.bx-button-ghost:hover { color: var(--bx-ink); box-shadow: inset 0 0 0 2px var(--bx-ink); }
.bx-button-ink { background: #0b1f3a; color: #fff; }
.bx-button-ink:hover { color: #fff; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .5); }

/* The card: die-cut stock in the Bonux gradient */
.bx-card {
    position: relative;
    background: var(--bx-stock);
    color: #fff;
    border-radius: 28px;
    padding: clamp(1.4rem, 3vw, 2.4rem);
    box-shadow: 0 2px 0 rgba(255, 255, 255, .25) inset, 0 30px 60px -24px rgba(11, 31, 58, .55);
}
/* The punch hole every stamp card has */
.bx-card::after { content: ''; position: absolute; top: 14px; left: 50%; width: 16px; aspect-ratio: 1; margin-left: -8px; border-radius: 50%; background: var(--bx-paper); box-shadow: inset 0 2px 3px rgba(11, 31, 58, .35); }
.bx-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.2rem, 3vw, 2rem); }
.bx-card-brand { font-family: var(--bx-display); font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.bx-card-subtitle { font-size: .95rem; opacity: .9; }
.bx-card-next, .bx-card-done { display: block; margin-top: clamp(1.2rem, 3vw, 1.8rem); font-weight: 600; font-size: .95rem; opacity: .92; }

.bx-card-hero { max-width: 620px; margin: 3rem auto 0; transform: rotate(-4deg); animation: bx-deal .9s var(--bx-ease) both; }
@media (min-width: 992px) { .bx-card-hero { margin-top: 0; } }

.bx-card-sticky { position: sticky; top: 7rem; padding: 1.6rem; }
.bx-card-sticky .bx-card-done { opacity: 0; transition: opacity .4s; }
.bx-card-sticky.is-complete .bx-card-done { opacity: .92; }

/* Slots and stamps */
.bx-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.6rem, 2vw, 1.2rem); }
.bx-slot {
    position: relative; display: grid; place-items: center; aspect-ratio: 1;
    border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .7);
}
.bx-ghost { font-size: clamp(.75rem, 1.3vw, .9rem); font-weight: 700; text-align: center; line-height: 1.15; padding: 0 .3rem; color: rgba(255, 255, 255, .95); transition: opacity .3s; }
.bx-ink {
    position: absolute; inset: 4%; border-radius: 50%;
    display: grid; place-items: center;
    background: #0b1f3a; color: #fff;
    font-family: var(--bx-display); font-weight: 800; font-size: clamp(1.1rem, 3vw, 2.1rem);
    box-shadow: inset 0 0 0 3px #0b1f3a, inset 0 0 0 5px rgba(255, 255, 255, .55);
    /* Rubber-stamp impression: uneven edge and ink */
    -webkit-mask: url('../images/index/stamp-ink.svg') center / 100% 100% no-repeat;
    mask: url('../images/index/stamp-ink.svg') center / 100% 100% no-repeat;
    --bx-turn: -10deg;
    transform: rotate(var(--bx-turn));
}
.bx-slot:nth-child(3n) .bx-ink { --bx-turn: -4deg; }
.bx-slot:nth-child(3n + 1) .bx-ink { --bx-turn: -14deg; }
.bx-slot:nth-child(4n) .bx-ink { --bx-turn: 6deg; }
.bx-slot.is-stamped .bx-ghost { opacity: 0; }
.bx-slot-brand .bx-ink { font-size: clamp(1.6rem, 4.4vw, 2.9rem); animation: bx-press .6s var(--bx-ease) .55s both; }

/* With JS the unearned slots wait empty; each one presses when its section arrives */
.bx-js .bx-slot:not(.is-stamped) .bx-ink { opacity: 0; transform: scale(1.4) rotate(-26deg); }
.bx-js .bx-slot.is-stamped .bx-ink { animation: bx-press .6s var(--bx-ease) both; }

/* Services */
.bx-service { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.5rem; padding-block: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--bx-line); }
.bx-service:first-child { border-top: 0; padding-top: 0; }
.bx-slot-inline { border-color: var(--bx-line); width: 4.5rem; }
.bx-slot-inline .bx-ghost { color: var(--bx-ink-soft); font-size: 1.2rem; opacity: .45; }
.bx-slot-inline .bx-ink { font-size: 1.3rem; }
[data-theme-style="dark"] .bx-slot-inline .bx-ink { background: #f3f1ea; color: #0b1f3a; box-shadow: inset 0 0 0 3px #f3f1ea, inset 0 0 0 5px rgba(11, 31, 58, .4); }
.bx-service-title { font-family: var(--bx-display); font-weight: 700; font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -.015em; line-height: 1.15; margin: .4rem 0 .6rem; color: var(--bx-ink); }
.bx-service-text { font-size: 1.08rem; line-height: 1.6; color: var(--bx-ink-soft); max-width: 34rem; margin: 0; }

/* Phones */
.bx-phone { margin: 0; border-radius: 34px; border: 9px solid #0b1f3a; overflow: hidden; background: #0b1f3a; box-shadow: 0 24px 48px -20px rgba(11, 31, 58, .55); }
.bx-phone img { display: block; width: 100%; height: auto; }
.bx-phone-inline { width: min(15rem, 70%); margin-top: 1.6rem; max-height: 26rem; }
.bx-phone figcaption { background: #0b1f3a; color: rgba(255, 255, 255, .8); font-size: .85rem; font-weight: 600; text-align: center; padding: .5rem 0 .2rem; }

/* Proof: one continuous navy field */
.bx-proof { background: #0b1f3a; color: #fff; }
[data-theme-style="dark"] .bx-proof { background: #050c16; box-shadow: inset 0 1px 0 var(--bx-line), inset 0 -1px 0 var(--bx-line); }
.bx-phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.8rem, 2vw, 1.4rem); align-items: start; margin-top: 2.5rem; }
@media (min-width: 992px) { .bx-phones { margin-top: 0; } }
.bx-phones .bx-phone { border-color: #1d3557; background: #1d3557; box-shadow: 0 28px 56px -24px rgba(0, 0, 0, .7); }
.bx-phones .bx-phone figcaption { background: #1d3557; }
.bx-phones .bx-phone:nth-child(2) { transform: translateY(-1.5rem); }
.bx-phones .bx-phone img { max-height: 30rem; object-fit: cover; object-position: top; }
.bx-swipe-hint { display: none; margin: .25rem 0 0; text-align: center; font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .75); }

/* Steps */
.bx-steps-list { list-style: none; counter-reset: bx-step; padding: 0; margin: 2rem 0 2.5rem; }
.bx-steps-list li { counter-increment: bx-step; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: center; font-size: 1.15rem; line-height: 1.5; padding-block: .9rem; color: var(--bx-ink); }
.bx-steps-list li::before {
    content: counter(bx-step); display: grid; place-items: center; width: 3rem; aspect-ratio: 1; border-radius: 50%;
    font-family: var(--bx-display); font-weight: 800; font-size: 1.2rem; color: var(--bx-ink); box-shadow: inset 0 0 0 2px var(--bx-ink);
}
/* Each step gets stamped in turn as the list scrolls in (fx.js step-on) */
.bx-steps-list li::before { transition: background .4s var(--bx-ease), color .4s var(--bx-ease), transform .5s var(--bx-ease); }
.bx-steps-list li.fx-done::before { background: var(--bx-ink); color: var(--bx-paper); transform: rotate(-8deg); }

/* Hero: the soft aurora in the brand colours, faded at the top and bottom so it has no hard edge; the rotating word in the brand blue */
.bx-hero { --fx-c1: #19c6c0; --fx-c2: #3b6ff5; --fx-c3: #7a2fe0; }
.bx-hero::before { -webkit-mask: linear-gradient(transparent 20%, #000 35%, #000 65%, transparent 80%); mask: linear-gradient(transparent 20%, #000 35%, #000 65%, transparent 80%); }
.bx-kicker { font-family: var(--bx-display); font-weight: 700; font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--bx-ink-soft); margin: 0 0 .75rem; }
.bx-rotate { color: var(--bx-blue); }
[data-theme-style="dark"] .bx-rotate { color: #7fa2ff; }
/* Links between the general homepage and the trade landings */
.bx .bx-sectors { padding-block: 0 clamp(2.5rem, 6vw, 4rem); }
.bx-sectors-title { font-family: var(--bx-display); font-weight: 800; font-size: 1.35rem; color: var(--bx-ink); margin: 0 0 1rem; }
.bx-sectors-list { display: flex; flex-wrap: wrap; gap: .75rem; }
.bx-sector-link { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.1rem; border-radius: 999px; border: 2px solid var(--bx-ink); color: var(--bx-ink); font-weight: 700; text-decoration: none; transition: background .2s var(--bx-ease), color .2s var(--bx-ease); }
.bx-sector-link:hover, .bx-sector-link:focus-visible { background: var(--bx-ink); color: var(--bx-paper); text-decoration: none; }

.bx-photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 16px; box-shadow: 0 24px 48px -24px rgba(11, 31, 58, .5); }

/* Plans: the recommended view in solid line, the others dashed */
.bx-plans .pricing-plan { border: 2px dashed var(--bx-line); box-shadow: none; background: var(--bx-paper-strong); }
.bx-plans .pricing-plan:has(.pricing-tag) { border: 2px solid var(--bx-ink); box-shadow: 0 24px 48px -28px rgba(11, 31, 58, .5); }
.bx-plans .pricing-name { font-family: var(--bx-display); font-weight: 800; font-size: 1.5rem; color: var(--bx-ink); }
.bx-plans .pricing-price-amount { font-family: var(--bx-display); font-weight: 800; }
.bx-plans .pricing-tag { background: #0b1f3a; color: #fff; }
.bx-plans .pricing-plan .btn { font-family: var(--bx-display); font-weight: 700; border-radius: 999px; background: transparent; color: var(--bx-ink); border: 2px solid var(--bx-ink); box-shadow: none; }
.bx-plans .pricing-plan .btn:hover { background: var(--bx-ink); color: var(--bx-paper); }
.bx-plans .pricing-plan:has(.pricing-tag) .btn { background: #0b1f3a; border-color: #0b1f3a; color: #fff; }
.bx-plans .text-success { color: var(--bx-ink) !important; }
.bx-plans .text-muted { color: var(--bx-ink-soft) !important; }

/* FAQ */
.bx-faq-list { max-width: 50rem; margin-top: 2rem; }
.bx-faq-item { border-top: 1px solid var(--bx-line); }
.bx-faq-item:last-child { border-bottom: 1px solid var(--bx-line); }
.bx-faq-item summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
    font-family: var(--bx-display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.35rem); padding-block: 1.35rem; color: var(--bx-ink);
}
.bx-faq-item summary::-webkit-details-marker { display: none; }
.bx-faq-item summary::after {
    content: ''; flex: 0 0 1.1rem; height: 1.1rem;
    background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
    transition: transform .3s var(--bx-ease);
}
.bx-faq-item[open] summary::after { transform: rotate(45deg); }
.bx-faq-item p { font-size: 1.08rem; line-height: 1.65; color: var(--bx-ink-soft); max-width: 42rem; margin: 0 0 1.5rem; }

/* Close: the finished card */
.bx-card-close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 5vw, 4rem); }
.bx-card-close .bx-display { margin-bottom: .75rem; }
.bx-slots-mini { flex-basis: 100%; grid-template-columns: repeat(8, 1fr); max-width: 32rem; gap: .5rem; }
.bx-slots-mini .bx-slot { border: 0; }
.bx-slots-mini .bx-ink { font-size: clamp(.8rem, 2vw, 1.1rem); }

/* The address field: the site prefix stays printed, the business name is typed */
.bx-claim { margin-top: 2rem; max-width: 34rem; }
.bx-claim-label { display: block; font-weight: 700; margin-bottom: .5rem; color: var(--bx-ink); }
.bx-claim-field { display: flex; align-items: center; background: var(--bx-paper-strong); border-radius: 16px; box-shadow: inset 0 0 0 2px var(--bx-line); margin-bottom: .9rem; transition: box-shadow .2s; }
.bx-claim-field:focus-within { box-shadow: inset 0 0 0 2px #2f5fe0; }
.bx-claim-prefix { padding: 0 .1rem 0 1.1rem; color: var(--bx-ink-soft); font-size: 1.05rem; white-space: nowrap; }
.bx-claim-field input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.05rem; font-weight: 700; color: var(--bx-ink); padding: 1rem 1.1rem 1rem 0; outline: 0; }
.bx-claim-field input::placeholder { color: var(--bx-ink-soft); opacity: 1; font-weight: 400; }
.bx-claim .bx-button { border: 0; cursor: pointer; }
.bx-link { color: var(--bx-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bx-link:hover { color: #2f5fe0; }

@keyframes bx-press {
    0% { opacity: 0; transform: scale(1.4) rotate(-26deg); }
    60% { opacity: 1; transform: scale(.93) rotate(-8deg); }
    100% { opacity: 1; transform: scale(1) rotate(var(--bx-turn, -10deg)); }
}
@keyframes bx-deal {
    from { opacity: 0; transform: translateY(2.5rem) rotate(4deg); }
    to { opacity: 1; transform: translateY(0) rotate(-4deg); }
}

@media (max-width: 575.98px) {
    .bx-service { grid-template-columns: 3.5rem 1fr; gap: 1rem; }
    .bx-slot-inline { width: 3.5rem; }
    /* The Figón screens stay readable: one phone at a time, swiped sideways */
    /* The phone on show sits centred with the next one peeking at each side, so it reads as a carousel, not a cut-off image */
    .bx-phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: 1rem; margin-inline: -15px; padding-inline: 14vw; scroll-padding-inline: 14vw; scrollbar-width: none !important; }
    .bx-phones::-webkit-scrollbar { display: none; }
    .bx-phones .bx-phone { flex: 0 0 72vw; scroll-snap-align: center; }
    .bx-phones .bx-phone:nth-child(2) { transform: none; }
    .bx-swipe-hint { display: block; }
    .bx-button { width: 100%; justify-content: center; }
    .bx-claim-prefix { font-size: .9rem; padding-left: .9rem; }
    .bx-slots-mini { grid-template-columns: repeat(4, 1fr); max-width: 14rem; }
}

@media (prefers-reduced-motion: reduce) {
    .bx-card-hero, .bx-slot-brand .bx-ink, .bx-js .bx-slot.is-stamped .bx-ink { animation: none; }
    .bx-button, .bx-faq-item summary::after { transition: none; }
}
