/*
 * The public site's entire stylesheet.
 *
 * It is a plain file rather than an inline <style> block, and carries no
 * Tailwind CDN or Google Fonts link, because the app-wide CSP
 * (App\Http\Middleware\SecurityHeaders) allows script-src/style-src 'self'
 * only. The design tokens below are the ones from the VisaQ design file,
 * hand-ported so the page keeps the same look without a build step.
 */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --primary: #000C30;
    --primary-container: #031F5C;
    --on-primary: #FFFFFF;
    --on-primary-container: #7589CB;
    --secondary-container: #FED17B;
    --on-secondary-container: #78580B;
    --secondary-fixed: #FFDEA5;
    --secondary-fixed-dim: #ECC06C;
    --background: #F8F9FF;
    --surface: #F8F9FF;
    --surface-container-low: #EFF4FF;
    --surface-container-lowest: #FFFFFF;
    --on-surface: #0B1C30;
    --on-surface-variant: #444650;
    --outline-variant: #C5C6D1;
    --container-max: 1200px;
    --margin-desktop: 40px;
    --margin-mobile: 16px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    /* Manrope/Hanken Grotesk are webfonts the CSP would have to load cross-origin;
       the system stack is the closest grotesque available for free. */
    font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--background);
    color: var(--on-surface);
    font-size: 16px;
    line-height: 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary-container);
}

h1,
h2,
h3,
h4 {
    font-family: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--primary);
    margin: 0 0 .5em;
}

h1 {
    font-size: 40px;
    line-height: 48px;
    letter-spacing: -.02em;
    font-weight: 700;
}

h2 {
    font-size: 32px;
    line-height: 40px;
    letter-spacing: -.01em;
    font-weight: 600;
}

h3 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
}

p {
    margin: 0 0 1rem;
}

main {
    flex: 1 0 auto;
    padding-top: 72px;
}

.wrap {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--margin-desktop);
}

.section {
    padding: 80px 0;
}

.section--soft {
    background: var(--surface-container-low);
}

.section--center {
    text-align: center;
}

.section__head {
    text-align: center;
    margin-bottom: 64px;
}

.lede {
    font-size: 18px;
    line-height: 28px;
    color: var(--on-surface-variant);
    max-width: 34rem;
}

.lede--center {
    margin-inline: auto;
}

.lede--light {
    color: rgba(255, 255, 255, .8);
}

.accent {
    color: var(--secondary-fixed-dim);
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--on-primary-container);
    margin-bottom: .75rem;
}

/* Buttons. */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.actions--center {
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .05em;
    line-height: 16px;
    padding: 16px 32px;
    border-radius: .5rem;
    border: 2px solid transparent;
    transition: background-color .2s ease, box-shadow .2s ease;
}

.btn--sm {
    padding: 10px 24px;
}

.btn--icon svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.store-picker {
    position: relative;
}

.store-picker__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 200px;
    padding: 6px;
    background: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: .5rem;
    box-shadow: 0 8px 24px rgba(0, 12, 48, .16);
    z-index: 20;
}

.store-picker__option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border: none;
    border-radius: .375rem;
    background: none;
    color: var(--on-surface-variant);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.store-picker__option:hover {
    background: var(--surface-container-low);
    color: var(--primary);
}

.btn--primary {
    background: var(--primary);
    color: var(--on-primary);
    box-shadow: 0 4px 12px rgba(0, 12, 48, .15);
}

.btn--primary:hover {
    background: var(--primary-container);
    color: var(--on-primary);
}

.btn--bordered {
    background: #fff;
    color: var(--primary);
    border-color: var(--primary);
}

.btn--bordered:hover {
    background: var(--surface-container-lowest);
}

.btn--light {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn--outline-light:hover {
    background: rgba(255, 255, 255, .1);
}

.btn--whatsapp {
    background: #25D366;
    color: #06300F;
}

.store-badge {
    display: inline-flex;
    height: 56px;
    cursor: pointer;
    transition: opacity .2s ease;
}

.store-badge:hover {
    opacity: .85;
}

.store-badge img {
    height: 100%;
    width: auto;
    display: block;
}

.btn__icon {
    width: 20px;
    height: 20px;
    flex: none;
}

/* Header. */
.site-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 50;
    background: rgba(248, 249, 255, .8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(197, 198, 209, .3);
    box-shadow: 0 1px 2px rgba(11, 28, 48, .05);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 16px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    text-decoration: none;
}

.brand img {
    width: 40px;
    height: 40px;
    border-radius: .5rem;
    object-fit: contain;
}

.brand span {
    font-family: Manrope, system-ui, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav a:not(.btn) {
    color: var(--on-surface-variant);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.nav a:not(.btn):hover {
    color: var(--primary);
}

.nav .btn {
    color: var(--on-primary);
}

.nav .btn:hover {
    color: var(--on-primary);
}

/* Hero. */
.hero {
    padding: 80px 0;
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero__copy {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.hero__copy h1,
.hero__copy p {
    margin: 0;
}

.hero__art {
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero__blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(3, 31, 92, .1);
    filter: blur(64px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Phone mockups — drawn in CSS until real screenshots are dropped in. */
.phone {
    position: relative;
    width: 340px;
    height: 734px;
    flex: none;
    background: var(--primary);
    border: 8px solid var(--on-surface);
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(3, 31, 92, .15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone--sm {
    width: 260px;
    height: 564px;
    border-width: 6px;
    border-radius: 32px;
}

.phone__shot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    background: transparent;
    transform: none;
}

.phone__bar {
    background: var(--primary-container);
    color: #fff;
    padding: 32px 16px 16px;
}

.phone__bar strong {
    display: block;
    font-size: 13px;
}

.phone__bar span {
    font-size: 11px;
    color: rgba(255, 255, 255, .65);
}

.phone__search {
    margin-top: 12px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
}

.phone__body {
    flex: 1;
    padding: 12px;
    display: grid;
    gap: 10px;
    align-content: start;
    background: var(--surface-container-low);
}

.phone__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.phone__tile {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(197, 198, 209, .5);
}

.phone__tile--accent {
    background: rgba(3, 31, 92, .1);
}

.phone__tile--gold {
    background: rgba(254, 209, 123, .3);
}

.phone__line {
    height: 10px;
    border-radius: 999px;
    background: rgba(197, 198, 209, .45);
}

.phone__line--short {
    width: 55%;
}

/* Showcase. */
.showcase {
    padding: 96px 0;
    overflow: hidden;
}

.showcase__inner {
    display: flex;
    align-items: center;
    gap: 64px;
}

.showcase__art {
    position: relative;
    display: flex;
    gap: 24px;
    justify-content: flex-start;
    width: 50%;
}

.showcase__blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(254, 209, 123, .2);
    filter: blur(64px);
    bottom: 0;
    left: 40px;
    z-index: 0;
}

.showcase__art .phone:first-of-type {
    transform: rotate(-6deg);
    margin-top: 40px;
}

.showcase__art .phone:last-of-type {
    transform: rotate(6deg);
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .2);
}

.showcase__copy {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.showcase__copy h2,
.showcase__copy p {
    margin: 0;
}

.app-version-caption {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--on-surface-muted, #64748b);
}

.checklist {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--on-surface);
    font-size: 16px;
}

.checklist li::before {
    content: "\2713";
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--secondary-fixed-dim);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 3px;
}

/* Feature cards. */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    text-align: left;
}

.card {
    background: #fff;
    border: 1px solid rgba(197, 198, 209, .5);
    border-radius: .75rem;
    padding: 32px;
    box-shadow: 0 1px 2px rgba(11, 28, 48, .05);
    transition: box-shadow .2s ease;
}

.card:hover {
    box-shadow: 0 12px 28px rgba(11, 28, 48, .1);
}

.card h3 {
    margin-bottom: 12px;
}

.card p {
    color: var(--on-surface-variant);
    margin: 0;
}

.card__icon {
    width: 56px;
    height: 56px;
    border-radius: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: var(--primary-container);
    color: var(--on-primary);
}

.card__icon--gold {
    background: var(--secondary-container);
    color: var(--on-secondary-container);
}

.card__icon svg {
    width: 30px;
    height: 30px;
}

.card__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-container);
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
}

.card__action {
    margin: 20px 0 4px;
}

/* Navy bands. */
.cta,
.page-head {
    position: relative;
    background: var(--primary);
    color: var(--on-primary);
    overflow: hidden;
}

.cta {
    padding: 96px 0 64px;
    text-align: center;
}

.page-head {
    padding: 64px 0 56px;
}

.cta h2,
.page-head h1 {
    color: var(--on-primary);
}

.cta h2 {
    font-size: 40px;
    line-height: 48px;
    font-weight: 700;
    margin-bottom: 24px;
}

.cta p {
    color: rgba(255, 255, 255, .8);
    font-size: 18px;
    line-height: 28px;
    max-width: 40rem;
    margin: 0 auto 40px;
}

.cta__glow,
.cta__glow--alt {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
}

.cta__glow {
    width: 256px;
    height: 256px;
    background: var(--primary-container);
    opacity: .5;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
}

.cta__glow--alt {
    width: 384px;
    height: 384px;
    background: rgba(254, 209, 123, .1);
    opacity: .3;
    bottom: 0;
    right: 0;
    transform: translate(33%, 33%);
}

.cta__inner,
.page-head .wrap {
    position: relative;
    z-index: 1;
}

.page-head__meta {
    color: rgba(255, 255, 255, .6);
    font-size: 14px;
    margin: 0;
}

/* Long-form legal pages. */
.prose h2 {
    font-size: 20px;
    line-height: 28px;
    margin-top: 40px;
    max-width: 74ch;
}

.prose p {
    color: var(--on-surface-variant);
    max-width: 74ch;
}

.prose__note {
    margin-top: 40px;
    padding-top: 24px;
    max-width: 74ch;
    border-top: 1px solid rgba(197, 198, 209, .5);
}

/* Footer. */
/* The footer continues the CTA's navy panel; only a hairline separates them. */
.site-footer {
    background: var(--primary);
    color: rgba(255, 255, 255, .7);
}

.site-footer>.wrap {
    border-top: 1px solid rgba(255, 255, 255, .14);
    padding-block: 48px;
}

.site-footer a,
.site-footer label {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.site-footer a:hover,
.site-footer label:hover {
    color: var(--secondary-fixed);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer h2 {
    color: #fff;
    font-size: 14px;
    letter-spacing: .05em;
    font-weight: 700;
    margin-bottom: 16px;
}

.site-footer .brand span {
    color: var(--secondary-fixed);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 24px;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.footer-blurb {
    font-size: 14px;
    color: rgba(255, 255, 255, .6);
    margin-top: 16px;
}

.footer-credit {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, .45);
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    background: #fff;
    color: var(--primary);
    padding: 12px 16px;
    border-radius: .5rem;
    z-index: 60;
}

@media (max-width: 1024px) {

    h1,
    .cta h2 {
        font-size: 32px;
        line-height: 40px;
    }

    h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__art {
        justify-content: center;
    }

    .hero__copy .actions {
        justify-content: center;
    }

    .showcase__inner {
        flex-direction: column;
    }

    .showcase__art,
    .showcase__copy {
        width: 100%;
        justify-content: center;
    }

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

@media (max-width: 760px) {
    .wrap {
        padding-inline: var(--margin-mobile);
    }

    .section,
    .hero,
    .showcase {
        padding: 56px 0;
    }

    .showcase__art .phone:first-of-type {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        order: 1;
    }

    .nav .btn--icon,
    .nav .btn--icon:hover {
        background: none;
        box-shadow: none;
        border: none;
        color: var(--primary);
        padding: 8px;
    }

    .nav .btn--icon svg {
        width: 28px;
        height: 28px;
    }

    .nav .btn--icon span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Store QR modals. */
.store-modal-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.store-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.store-modal-toggle:checked+.store-modal {
    display: flex;
}

.store-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 28, 48, .6);
    cursor: pointer;
}

.store-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 320px;
    margin: 16px;
    padding: 32px;
    border-radius: 1rem;
    background: var(--surface-container-lowest);
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .25);
}

.store-modal__panel h2 {
    font-size: 20px;
    line-height: 28px;
    margin: 0;
}

.store-modal__panel p {
    font-size: 14px;
    color: var(--on-surface-variant);
    margin: 0;
}

.store-modal__qr {
    width: 200px;
    height: 200px;
    border-radius: .5rem;
    border: 1px solid var(--outline-variant);
}

.store-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    font-size: 20px;
    line-height: 1;
    color: var(--on-surface-variant);
    cursor: pointer;
}

.store-modal__close:hover {
    background: var(--surface-container-low);
}

.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--margin-mobile);
    text-align: center;
}

.error-page__inner {
    max-width: 420px;
}

.error-page__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
}

.error-page__brand span {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.error-page__code {
    margin: 0;
    font-size: 96px;
    line-height: 1;
    font-weight: 800;
    color: var(--primary-container);
}

.error-page__title {
    margin: 16px 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: var(--on-surface);
}

.error-page__text {
    margin: 0 0 32px;
    color: var(--on-surface-variant);
}

.error-page .btn {
    display: inline-flex;
}