/* =============================================================================
   EasyPay — Marketing site design system
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Caveat:wght@500;600;700&display=swap');

:root {
    /* Brand */
    --ep-cyan: #53D0E0;
    --ep-cyan-soft: #8FDEE8;
    --ep-cyan-deep: #2FB8CC;
    --ep-cyan-glow: rgba(83, 208, 224, 0.35);

    --ep-navy: #002843;
    --ep-navy-2: #003d60;
    --ep-navy-3: #004080;
    --ep-navy-4: #004B78;

    --ep-blue: #007bff;
    --ep-azure: #0073e6;

    --ep-amber: #faad39;
    --ep-amber-warm: #f6aa38;

    /* Neutrals tinted toward navy */
    --ep-ink: #0a1a2b;
    --ep-ink-2: #1a2c40;
    --ep-text: #3d4d61;
    --ep-text-muted: #6b7a90;
    --ep-text-subtle: #94a3b8;
    --ep-line: #e3e9f0;
    --ep-line-soft: #eef2f7;

    --ep-surface: #ffffff;
    --ep-surface-tint: #f6f8fb;
    --ep-surface-warm: #f2f6fa;

    --ep-success: #10b981;
    --ep-danger: #dc2626;

    /* Gradients */
    --ep-grad-hero: radial-gradient(120% 90% at 100% 0%, #0a4974 0%, #003d60 35%, #002843 70%, #001a30 100%);
    --ep-grad-cyan: linear-gradient(135deg, #53D0E0 0%, #2FB8CC 100%);
    --ep-grad-navy: linear-gradient(135deg, #003d60 0%, #002843 100%);
    --ep-grad-active: linear-gradient(90deg, #3a7bd5, #00d2ff);

    /* Fonts */
    --ep-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ep-font-script: 'Caveat', 'Photograph Signature', cursive;
    --ep-font-mono: 'SFMono-Regular', ui-monospace, Consolas, Menlo, monospace;

    /* Shadows (navy-tinted) */
    --ep-shadow-xs: 0 1px 2px rgba(0, 40, 80, 0.08);
    --ep-shadow-sm: 0 2px 6px rgba(0, 40, 80, 0.06), 0 4px 12px rgba(0, 40, 80, 0.08);
    --ep-shadow-md: 0 4px 10px rgba(0, 40, 80, 0.08), 0 14px 32px rgba(0, 40, 80, 0.12);
    --ep-shadow-lg: 0 8px 20px rgba(0, 40, 80, 0.10), 0 32px 64px rgba(0, 40, 80, 0.18);
    --ep-shadow-glow: 0 0 0 1px rgba(83, 208, 224, 0.25), 0 12px 40px rgba(83, 208, 224, 0.20);

    /* Radii */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-2xl: 32px;
    --r-pill: 999px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
    --motion-fast: 0.18s var(--ease);
    --motion-base: 0.35s var(--ease);
    --motion-slow: 0.6s var(--ease);
}

/* ---------------------------- Reset ------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    overflow-x: clip;
}

/* Account for fixed navbar when jumping to hash sections */
section[id] { scroll-margin-top: 80px; }

body {
    margin: 0;
    font-family: var(--ep-font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ep-text);
    background: var(--ep-surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    position: relative;
}

/* All top-level sections span the full viewport — never let an inner element shrink them */
.hero,
.page-header,
.section,
.section-tight,
.trustbar,
.pricing,
.footer,
.jobs-hero,
.jobs-section,
.perks-section,
.closed-section,
.payments-hero {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ep-navy-3); text-decoration: none; }

/* ---------------------------- Type --------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--ep-font);
    color: var(--ep-ink);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 .4em;
    font-weight: 700;
}

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6,
.hero-title {
    font-family: var(--ep-font);
    letter-spacing: -0.035em;
    line-height: 1;
    font-weight: 800;
    color: var(--ep-ink);
}

.lead {
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    line-height: 1.55;
    color: var(--ep-text);
    font-weight: 400;
}

.ep-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ep-font);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ep-cyan-deep);
}

.ep-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.ep-script {
    font-family: var(--ep-font-script);
    font-weight: 600;
    font-style: normal;
}

.ep-num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

.text-cyan { color: var(--ep-cyan-deep) !important; }
.text-navy { color: var(--ep-navy) !important; }
.text-ink  { color: var(--ep-ink) !important; }
.text-muted { color: var(--ep-text-muted) !important; }

/* ---------------------------- Layout helpers ----------------------------- */
.container { max-width: 1240px; }

.section {
    position: relative;
    padding: clamp(64px, 8vw, 120px) 0;
}

.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-tint  { background: var(--ep-surface-tint); }
.section-navy  { background: var(--ep-navy); color: rgba(255, 255, 255, 0.86); }

/* Underline-on-heading rule from old CSS — REMOVED. */
section h2::after { display: none; }

/* ---------------------------- Buttons ------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    font-family: var(--ep-font);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.005em;
    border-radius: var(--r-pill);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform var(--motion-fast), box-shadow var(--motion-fast),
                background var(--motion-fast), color var(--motion-fast),
                border-color var(--motion-fast);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

.btn-primary,
.btn-primary:focus {
    background: var(--ep-cyan-deep);
    border-color: var(--ep-cyan-deep);
    color: #fff;
    box-shadow: 0 6px 18px rgba(47, 184, 204, 0.32);
}

.btn-primary:hover {
    background: #259fb2;
    border-color: #259fb2;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(47, 184, 204, 0.40);
    color: #fff;
}

.btn-dark {
    background: var(--ep-navy);
    border-color: var(--ep-navy);
    color: #fff;
}

.btn-dark:hover {
    background: #001a30;
    border-color: #001a30;
    color: #fff;
    transform: translateY(-1px);
}

.btn-ghost,
.btn-outline-primary,
.btn-outline-primary:focus {
    background: transparent;
    border-color: rgba(0, 40, 67, 0.18);
    color: var(--ep-ink);
}

.btn-ghost:hover,
.btn-outline-primary:hover {
    background: var(--ep-ink);
    border-color: var(--ep-ink);
    color: #fff;
}

.btn-on-dark {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    backdrop-filter: blur(8px);
}

.btn-on-dark:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

/* ---------------------------- Navbar ------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 14px 0;
    background: rgba(0, 26, 48, 0.55);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(83, 208, 224, 0.08);
    transition: background var(--motion-base), border-color var(--motion-base), padding var(--motion-base), box-shadow var(--motion-base);
}

.navbar.is-scrolled {
    background: rgba(0, 26, 48, 0.92);
    border-bottom-color: rgba(83, 208, 224, 0.16);
    box-shadow: 0 6px 24px rgba(0, 20, 40, 0.20);
    padding: 10px 0;
}

/* Kill the old animated rainbow underline */
.navbar::after { content: none !important; display: none !important; }

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand img {
    height: 32px;
    width: auto;
    transition: transform var(--motion-fast);
}

.navbar-brand:hover img { transform: scale(1.03); }

.navbar-nav { gap: 2px; align-items: center; }

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.78) !important;
    font-weight: 500;
    font-size: 14.5px;
    padding: 8px 14px !important;
    border-radius: var(--r-pill);
    transition: color var(--motion-fast), background var(--motion-fast);
    position: relative;
}

.navbar .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06);
}

.navbar .nav-link.active {
    color: var(--ep-navy) !important;
    background: var(--ep-cyan);
    font-weight: 600;
}

.navbar .btn-primary,
.navbar .btn-buy {
    background: var(--ep-cyan-deep);
    border-color: var(--ep-cyan-deep);
    color: #fff !important;
    padding: 10px 22px !important;
    font-weight: 600;
    margin-left: 12px;
    box-shadow: 0 6px 18px rgba(47, 184, 204, 0.32);
}

.navbar .btn-primary:hover,
.navbar .btn-buy:hover {
    background: #36b8ca;
    border-color: #36b8ca;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 6px 10px;
    border-radius: var(--r-sm);
}

.navbar-toggler-icon {
    filter: invert(1) brightness(2);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 12px;
        padding: 12px;
        background: rgba(0, 26, 48, 0.96);
        border: 1px solid rgba(83, 208, 224, 0.18);
        border-radius: var(--r-lg);
        box-shadow: var(--ep-shadow-md);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }
    .navbar .nav-link { padding: 12px 14px !important; }
    .navbar .btn-primary, .navbar .btn-buy { margin-left: 0; margin-top: 8px; width: 100%; }
}

/* ---------------------------- Hero --------------------------------------- */
.hero {
    position: relative;
    padding: 160px 0 80px;
    background: var(--ep-grad-hero);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
}

/* Desktop: fill the viewport so the hero acts like a full-screen "above the fold" */
@media (min-width: 992px) {
    .hero {
        min-height: 100vh;
        min-height: 100svh; /* avoids mobile-browser URL-bar jumps where supported */
        padding-top: 120px;
        padding-bottom: 60px;
    }
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        radial-gradient(rgba(83, 208, 224, 0.08) 1px, transparent 1px);
    background-size: 28px 28px, 28px 28px;
    background-position: 0 0, 14px 14px;
    mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, #000 30%, transparent 80%);
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    right: -200px;
    top: -150px;
    background: radial-gradient(circle at center, rgba(83, 208, 224, 0.32) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    100% { transform: translate(-40px, 40px) scale(1.05); opacity: 1; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    min-height: 540px;
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.045em;
    color: #fff;
    margin: 0 0 24px;
}

.hero-title .accent {
    color: var(--ep-cyan);
    position: relative;
}

.hero-title .script {
    font-family: var(--ep-font-script);
    font-weight: 600;
    color: var(--ep-cyan);
    font-size: 0.85em;
    letter-spacing: 0;
    display: inline-block;
    transform: rotate(-2deg) translateY(-6px);
    margin-right: 6px;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    max-width: 540px;
    margin: 0 0 32px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 36px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-trust-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.45);
}

.hero-trust-stat {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
}

.hero-trust-stat strong {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
}

.hero-trust-stat span {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
}

/* Hero visual right side */
.hero-visual {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-orb {
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(83, 208, 224, 0.40) 0%, rgba(83, 208, 224, 0) 65%);
    filter: blur(2px);
    z-index: 0;
}

.hero-rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.hero-rings::before,
.hero-rings::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(83, 208, 224, 0.25);
}

.hero-rings::before {
    width: 380px;
    height: 380px;
    animation: ringSpin 30s linear infinite;
}

.hero-rings::after {
    width: 520px;
    height: 520px;
    border-style: dashed;
    border-color: rgba(83, 208, 224, 0.15);
    animation: ringSpin 60s linear infinite reverse;
}

@keyframes ringSpin { to { transform: rotate(360deg); } }

.hero-device {
    position: relative;
    z-index: 2;
    max-width: 420px;
    width: 78%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 40px rgba(83, 208, 224, 0.25));
    animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* Floating data chips */
.hero-chip {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-md);
    padding: 12px 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #fff;
    font-size: 13px;
    z-index: 3;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.30);
    animation: floatY 7s ease-in-out infinite;
}

.hero-chip .chip-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4px;
    display: block;
}

.hero-chip .chip-value {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-chip .chip-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--ep-grad-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ep-navy);
    font-size: 11px;
}

.hero-chip.chip-1 {
    top: 6%;
    left: 0%;
    animation-delay: -1s;
}

.hero-chip.chip-2 {
    bottom: 14%;
    right: 0%;
    animation-delay: -3.5s;
}

.hero-chip.chip-3 {
    top: 42%;
    right: -2%;
    animation-delay: -2s;
}

.hero-chip .chip-sig {
    font-family: var(--ep-font-script);
    font-size: 22px;
    color: var(--ep-cyan);
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 991.98px) {
    .hero { padding: 120px 0 56px; }
    .hero-grid { grid-template-columns: 1fr; min-height: auto; gap: 32px; }
    .hero-visual { min-height: 420px; margin-top: 8px; }
    .hero-device { max-width: 320px; width: 70%; }
    .hero-orb { width: 360px; height: 360px; }
    .hero-rings::before { width: 300px; height: 300px; }
    .hero-rings::after { width: 420px; height: 420px; }
    .hero-chip.chip-3 { right: 0; }
    .hero::after { width: 440px; height: 440px; right: -120px; top: -80px; }
}

@media (max-width: 576px) {
    .hero { padding: 100px 0 36px; }
    .hero-visual { min-height: 340px; }
    .hero-device { max-width: 230px; width: 62%; }
    .hero-orb { width: 280px; height: 280px; }
    .hero-rings::before { width: 240px; height: 240px; }
    .hero-rings::after { width: 320px; height: 320px; }
    .hero-chip { padding: 9px 12px; font-size: 11.5px; max-width: 180px; }
    .hero-chip .chip-value { font-size: 13.5px; }
    .hero-chip .chip-label { font-size: 9.5px; }
    .hero-chip.chip-1 { left: 0; top: 2%; }
    .hero-chip.chip-2 { right: 0; bottom: 6%; }
    .hero-chip.chip-3 { right: 0; top: 46%; }
    .hero-trust { gap: 14px 22px; }
    .hero-trust-stat strong { font-size: 18px; }
    .hero-title { font-size: clamp(2rem, 9vw, 2.8rem); }
    .hero-title .script { font-size: 0.7em; }
    .hero-cta .btn { flex: 1 1 auto; }
    .hero::after { width: 320px; height: 320px; right: -80px; top: -60px; }
}

/* ---------------------------- Section title ------------------------------ */
.section-head {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head.left {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.section-title {
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    font-weight: 800;
    color: var(--ep-ink);
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin: 14px 0 16px;
}

.section-sub {
    font-size: 1.1rem;
    color: var(--ep-text-muted);
    line-height: 1.55;
    margin: 0;
}

/* ---------------------------- Logo strip --------------------------------- */
.trustbar {
    padding: 40px 0;
    border-top: 1px solid var(--ep-line);
    border-bottom: 1px solid var(--ep-line);
    background: var(--ep-surface);
}

.trustbar-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ep-text-subtle);
    margin-bottom: 28px;
}

.trustbar-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.trustbar-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: trustMarquee 38s linear infinite;
}

/* Pause on hover so visitors can read a logo */
.trustbar-marquee:hover .trustbar-track {
    animation-play-state: paused;
}

/* Per-item margin (not flex gap) so duplicated halves tile seamlessly */
.trustbar-track img {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-right: 72px;
    flex-shrink: 0;
}

@keyframes trustMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .trustbar-track { animation: none; }
}

@media (max-width: 576px) {
    .trustbar-track img { height: 30px; margin-right: 48px; }
    .trustbar-track { animation-duration: 26s; }
}

/* ---------------------------- Feature mosaic ----------------------------- */
.feature-mosaic {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 20px;
}

.feature-tile {
    position: relative;
    padding: 28px 28px 32px;
    background: var(--ep-surface);
    border: 1px solid var(--ep-line);
    border-radius: var(--r-xl);
    overflow: hidden;
    transition: transform var(--motion-base), box-shadow var(--motion-base), border-color var(--motion-base);
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.feature-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--ep-shadow-md);
    border-color: rgba(83, 208, 224, 0.30);
}

.feature-tile .tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(83, 208, 224, 0.12);
    color: var(--ep-cyan-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 18px;
}

.feature-tile h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ep-ink);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.feature-tile p {
    color: var(--ep-text-muted);
    margin: 0;
    font-size: 14.5px;
    line-height: 1.55;
}

.feature-tile.is-dark {
    background: var(--ep-navy);
    border-color: var(--ep-navy);
    color: rgba(255, 255, 255, 0.86);
}

.feature-tile.is-dark h3 { color: #fff; }
.feature-tile.is-dark p { color: rgba(255, 255, 255, 0.65); }

.feature-tile.is-dark .tile-icon {
    background: rgba(83, 208, 224, 0.18);
    color: var(--ep-cyan);
}

.feature-tile.is-accent {
    background: var(--ep-grad-cyan);
    border-color: transparent;
    color: var(--ep-navy);
}

.feature-tile.is-accent h3 { color: var(--ep-navy); }
.feature-tile.is-accent p { color: rgba(0, 40, 67, 0.72); }

.feature-tile.is-accent .tile-icon {
    background: rgba(0, 40, 67, 0.10);
    color: var(--ep-navy);
}

/* Size variants — prefixed to avoid Bootstrap .col-N grid collision */
.feature-tile.span-2 { grid-column: span 2; }
.feature-tile.span-3 { grid-column: span 3; }
.feature-tile.span-4 { grid-column: span 4; }
.feature-tile.span-6 { grid-column: span 6; }
.feature-tile.tall   { grid-row: span 2; min-height: 480px; }

.feature-tile-visual {
    margin-top: auto;
    padding-top: 20px;
}

/* Decorative visuals inside tiles */
.tile-clock {
    width: 140px;
    height: 140px;
    margin: 16px auto 8px;
}

.tile-meter {
    height: 8px;
    background: var(--ep-line-soft);
    border-radius: var(--r-pill);
    overflow: hidden;
    margin-top: 14px;
}

.tile-meter span {
    display: block;
    height: 100%;
    width: 72%;
    background: var(--ep-grad-cyan);
    border-radius: inherit;
}

.tile-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ep-line-soft);
    font-size: 13.5px;
    color: var(--ep-text);
}

.tile-row:last-child { border-bottom: none; }
.tile-row .row-name { flex: 1; font-weight: 500; }
.tile-row .row-status {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    background: rgba(16, 185, 129, 0.12);
    color: var(--ep-success);
}

.tile-row .row-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ep-grad-cyan);
    color: var(--ep-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Chat mock used inside the EasyPay Assistant tile */
.chat-mock {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.45;
    max-width: 88%;
    min-width: 0;          /* allow shrinking inside flex / grid parents */
    overflow-wrap: anywhere;
    word-break: break-word;
}

.chat-bubble.user {
    align-self: flex-end;
    background: var(--ep-surface-tint);
    color: var(--ep-ink-2);
    border: 1px solid var(--ep-line);
    border-bottom-right-radius: 4px;
}

.chat-bubble.assistant {
    align-self: flex-start;
    background: var(--ep-grad-navy);
    color: #fff;
    border-bottom-left-radius: 4px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px 12px 12px;
}

.chat-bubble.assistant .chat-avatar {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ep-grad-cyan);
    color: var(--ep-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    margin-top: 1px;
}

.chat-bubble em {
    font-style: normal;
    font-weight: 600;
    color: var(--ep-cyan);
    /* Allow the breadcrumb to wrap when the card is narrow.
       Without this, long "Settings → … → Rules" strings overflow the card. */
    white-space: normal;
}

.chat-bubble.assistant .chat-body {
    flex: 1;
    min-width: 0;          /* lets the body shrink so wrapping kicks in */
    overflow-wrap: anywhere;
}

@media (max-width: 576px) {
    .chat-bubble { font-size: 12.5px; padding: 9px 12px; }
    .chat-bubble.assistant { padding: 10px 12px 10px 10px; }
}

@media (max-width: 991.98px) {
    .feature-mosaic { grid-template-columns: repeat(2, 1fr); }
    .feature-tile.span-2,
    .feature-tile.span-3,
    .feature-tile.span-4,
    .feature-tile.span-6 { grid-column: span 2; }
    .feature-tile.tall { min-height: 320px; grid-row: span 1; }
}

@media (max-width: 576px) {
    .feature-mosaic { grid-template-columns: 1fr; }
    .feature-tile.span-2,
    .feature-tile.span-3,
    .feature-tile.span-4,
    .feature-tile.span-6 { grid-column: span 1; }
}

/* ---------------------------- How it works steps ------------------------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 991.98px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .steps-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Generic responsive grid utilities used inside page markup */
.grid-split-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.grid-split-asym {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(36px, 6vw, 80px);
    align-items: center;
}

.grid-quad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.grid-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}

@media (max-width: 991.98px) {
    .grid-split-2,
    .grid-split-asym { grid-template-columns: 1fr; gap: 28px; }
    .grid-quad { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .grid-quad,
    .grid-pair { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------------------------- Device showcase ---------------------------- */
.device-showcase {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    padding: clamp(36px, 5vw, 64px);
    border-radius: var(--r-2xl);
    background: var(--ep-grad-hero);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

.device-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 50%, #000 30%, transparent 80%);
    z-index: -1;
}

.device-showcase h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin: 0 0 18px;
}

.device-showcase p {
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 28px;
    max-width: 480px;
}

.device-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 28px;
}

.device-stats .stat {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-lg);
}

.device-stats .stat strong {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--ep-cyan);
    letter-spacing: -0.02em;
    line-height: 1;
}

.device-stats .stat span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.device-image-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.device-image-wrap::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(83, 208, 224, 0.30) 0%, transparent 65%);
    border-radius: 50%;
    z-index: 0;
}

.device-image-wrap img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: 460px;
    object-fit: contain;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.4));
}

.device-more {
    position: relative;
    z-index: 1;
    margin-top: 18px;
    font-family: var(--ep-font-script);
    font-size: 26px;
    font-weight: 600;
    color: var(--ep-cyan);
    line-height: 1;
    transform: rotate(-2deg);
    display: inline-block;
}

.device-image-wrap {
    flex-direction: column;
    gap: 12px;
}

@media (max-width: 991.98px) {
    .device-showcase { grid-template-columns: 1fr; text-align: center; }
    .device-showcase p { margin-left: auto; margin-right: auto; }
    .device-image-wrap { min-height: 320px; }
    .device-stats { max-width: 520px; margin-left: auto; margin-right: auto; }

    /* Gallery device cards collapse to stacked on tablet & phone */
    .gallery-device-card { flex-direction: column !important; align-items: stretch !important; min-height: 0 !important; text-align: center; }
    .gallery-device-card > div:first-of-type { max-width: none !important; align-items: center !important; }
    .gallery-device-card > div:nth-last-of-type(1) { flex: 0 0 auto !important; min-height: 280px; }
}

/* 2-up grid of gallery device cards (each card takes half the row) */
.device-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 2.4vw, 28px);
}

/* At half-width, dial back the heading + padding so the cards breathe */
.device-stack .gallery-device-card {
    padding: clamp(28px, 3.4vw, 40px) !important;
    min-height: 380px !important;
    gap: clamp(16px, 2.2vw, 28px) !important;
}

.device-stack .gallery-device-card h3 {
    font-size: clamp(1.45rem, 2vw, 1.75rem) !important;
}

.device-stack .gallery-device-card p {
    font-size: 0.95rem !important;
}

.device-stack .gallery-device-card > div:first-of-type {
    max-width: none !important;
}

@media (max-width: 991.98px) {
    .device-stack { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .device-stats { grid-template-columns: 1fr; }
}

/* ---------------------------- Pricing ------------------------------------ */
.pricing { padding: clamp(64px, 8vw, 120px) 0; background: var(--ep-surface); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.pricing-card {
    position: relative;
    padding: 36px 32px;
    background: var(--ep-surface);
    border: 1px solid var(--ep-line);
    border-radius: var(--r-xl);
    transition: transform var(--motion-base), box-shadow var(--motion-base), border-color var(--motion-base);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ep-shadow-md);
}

.pricing-card .plan-name {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ep-cyan-deep);
    margin-bottom: 8px;
}

.pricing-card .plan-headline {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ep-ink);
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}

.pricing-card .plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.pricing-card .plan-price .price-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ep-ink);
    letter-spacing: -0.035em;
    line-height: 1;
}

.pricing-card .plan-price .currency-symbol {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ep-text-muted);
}

.pricing-card .plan-period {
    font-size: 13.5px;
    color: var(--ep-text-muted);
    margin-bottom: 24px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    flex: 1;
}

.pricing-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14.5px;
    color: var(--ep-text);
}

.pricing-card ul li i {
    color: var(--ep-cyan-deep);
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

.pricing-card.featured {
    background: var(--ep-grad-hero);
    border-color: transparent;
    color: #fff;
    transform: translateY(-8px);
    box-shadow: var(--ep-shadow-lg);
}

.pricing-card.featured:hover { transform: translateY(-11px); }

.pricing-card.featured .plan-name { color: var(--ep-cyan); }
.pricing-card.featured .plan-headline,
.pricing-card.featured .plan-price .price-value { color: #fff; }
.pricing-card.featured .plan-price .currency-symbol,
.pricing-card.featured .plan-period { color: rgba(255, 255, 255, 0.65); }
.pricing-card.featured ul li { color: rgba(255, 255, 255, 0.82); }
.pricing-card.featured ul li i { color: var(--ep-cyan); }

.pricing-card.featured .badge-popular {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--ep-cyan);
    color: var(--ep-navy);
    padding: 5px 12px;
    border-radius: var(--r-pill);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pricing-card .btn { width: 100%; }

@media (max-width: 991.98px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-3px); }
}

/* ---------------------------- Contact section ---------------------------- */
.contact-block {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(36px, 5vw, 64px);
    align-items: stretch;
}

.contact-info {
    padding: 16px 0;
}

.contact-info h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    color: var(--ep-ink);
    margin: 0 0 18px;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.contact-info p { color: var(--ep-text); font-size: 1.05rem; margin: 0 0 32px; max-width: 460px; }

.contact-list { list-style: none; padding: 0; margin: 0; }

.contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ep-line-soft);
    color: var(--ep-ink);
    font-size: 15px;
}

.contact-list li:last-child { border-bottom: none; }

.contact-list .icon-bubble {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(83, 208, 224, 0.12);
    color: var(--ep-cyan-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.contact-form {
    padding: 36px;
    background: var(--ep-surface);
    border: 1px solid var(--ep-line);
    border-radius: var(--r-xl);
    box-shadow: var(--ep-shadow-sm);
}

.contact-form h3 { font-size: 1.4rem; color: var(--ep-ink); margin: 0 0 22px; font-weight: 700; }

.form-control,
.form-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--ep-surface);
    border: 1.5px solid var(--ep-line);
    border-radius: var(--r-md);
    font-family: var(--ep-font);
    font-size: 15px;
    color: var(--ep-ink);
    transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background var(--motion-fast);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--ep-cyan-deep);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(83, 208, 224, 0.16);
}

.form-control::placeholder { color: var(--ep-text-subtle); }

textarea.form-control { min-height: 120px; resize: vertical; }

.mb-3 { margin-bottom: 14px; }

@media (max-width: 991.98px) {
    .contact-block { grid-template-columns: 1fr; }
}

/* ---------------------------- Footer ------------------------------------- */
.footer {
    background: var(--ep-navy);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 24px;
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: rgba(255, 255, 255, 0.55); font-size: 14.5px; max-width: 320px; margin: 0 0 22px; line-height: 1.55; }

.footer h5 {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin: 0 0 18px;
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 6px 0; }

.footer a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 14.5px;
    transition: color var(--motion-fast);
}

.footer a:hover { color: var(--ep-cyan); }

.footer p { color: rgba(255, 255, 255, 0.55); font-size: 14.5px; margin: 0 0 10px; line-height: 1.6; }

.footer .text-muted { color: rgba(255, 255, 255, 0.55) !important; }

.footer-contact i { color: var(--ep-cyan); margin-right: 10px; }

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #fff !important;
    font-size: 15px;
    transition: background var(--motion-fast), border-color var(--motion-fast), transform var(--motion-fast);
}

.social-links a:hover {
    background: var(--ep-cyan-deep);
    border-color: var(--ep-cyan-deep);
    color: var(--ep-navy) !important;
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 991.98px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
}

/* ---------------------------- Page header (subpages) --------------------- */
.page-header {
    position: relative;
    padding: 160px 0 80px;
    background: var(--ep-grad-hero);
    color: #fff;
    text-align: left;
    overflow: hidden;
    isolation: isolate;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse 80% 80% at 20% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 20% 50%, #000 30%, transparent 80%);
    z-index: -1;
    opacity: 0.6;
}

.page-header::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    right: -180px;
    top: -120px;
    background: radial-gradient(circle, rgba(83, 208, 224, 0.28), transparent 60%);
    border-radius: 50%;
    z-index: -1;
}

@media (max-width: 991.98px) {
    .page-header { padding: 130px 0 64px; }
    .page-header::after { width: 420px; height: 420px; right: -120px; top: -80px; }
}

@media (max-width: 576px) {
    .page-header { padding: 110px 0 48px; }
    .page-header::after { width: 300px; height: 300px; right: -80px; top: -60px; }
    .page-header > .container > div[style*="grid"] { display: block !important; }
}

.page-header h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 12px 0 18px;
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.15rem;
    max-width: 580px;
    margin: 0;
}

.page-header.center { text-align: center; }
.page-header.center .lead { margin-left: auto; margin-right: auto; }

/* ---------------------------- Feature row (features page) ---------------- */
.feature-row-alt {
    padding: clamp(60px, 8vw, 110px) 0;
}

.feature-row-alt .row-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(36px, 6vw, 80px);
    align-items: center;
}

.feature-row-alt.is-reverse .row-grid { grid-template-columns: 1.15fr 0.85fr; direction: rtl; }
.feature-row-alt.is-reverse .row-grid > * { direction: ltr; }

.feature-icon-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--ep-grad-hero);
    color: var(--ep-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--ep-shadow-md), inset 0 0 0 1px rgba(83, 208, 224, 0.18);
    margin-bottom: 22px;
    position: relative;
}

.feature-icon-circle::after {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px dashed rgba(83, 208, 224, 0.30);
    animation: ringSpin 20s linear infinite;
}

.feature-row-alt .row-num {
    font-family: var(--ep-font);
    font-size: 13px;
    font-weight: 700;
    color: var(--ep-cyan-deep);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.feature-row-alt h3 {
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ep-ink);
    margin: 6px 0 14px;
}

.feature-row-alt p {
    color: var(--ep-text-muted);
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 0 22px;
    line-height: 1.6;
}

.feature-list-check {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 28px;
}

.feature-list-check li {
    padding: 6px 0 6px 28px;
    position: relative;
    color: var(--ep-text);
    font-size: 14.5px;
    break-inside: avoid;
}

.feature-list-check li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(83, 208, 224, 0.18);
    border: 1.5px solid var(--ep-cyan-deep);
}

.feature-list-check li::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 14px;
    width: 6px;
    height: 3px;
    border-left: 1.5px solid var(--ep-cyan-deep);
    border-bottom: 1.5px solid var(--ep-cyan-deep);
    transform: rotate(-45deg);
}

@media (max-width: 991.98px) {
    .feature-row-alt .row-grid,
    .feature-row-alt.is-reverse .row-grid {
        grid-template-columns: 1fr;
        direction: ltr;
        text-align: left;
    }
    .feature-list-check { columns: 1; }
}

/* ---------------------------- CTA banner --------------------------------- */
.cta-banner {
    position: relative;
    padding: clamp(48px, 6vw, 80px);
    background: var(--ep-grad-hero);
    color: #fff;
    border-radius: var(--r-2xl);
    overflow: hidden;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 32px;
    align-items: center;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(83, 208, 224, 0.10) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse 60% 80% at 80% 50%, #000, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at 80% 50%, #000, transparent 70%);
    z-index: -1;
}

.cta-banner h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.cta-banner p { color: rgba(255, 255, 255, 0.72); margin: 0; font-size: 1.05rem; max-width: 520px; }

.cta-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

@media (max-width: 991.98px) {
    .cta-banner { grid-template-columns: 1fr; text-align: left; }
    .cta-banner-actions { justify-content: flex-start; }
}

/* ---------------------------- Sezwan Group ------------------------------- */
.brand-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid var(--ep-line);
}

.brand-block:last-child { border-bottom: none; }
.brand-block.is-reverse { direction: rtl; }
.brand-block.is-reverse > * { direction: ltr; }

.brand-num {
    font-family: var(--ep-font);
    font-size: 14px;
    font-weight: 700;
    color: var(--ep-cyan-deep);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-num::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.brand-block h3 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--ep-ink);
    letter-spacing: -0.03em;
    margin: 6px 0 12px;
}

.brand-block .brand-lede {
    font-size: 1.15rem;
    color: var(--ep-cyan-deep);
    font-weight: 500;
    margin: 0 0 14px;
}

.brand-block ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.brand-block ul li {
    padding: 7px 0 7px 26px;
    position: relative;
    color: var(--ep-text);
    font-size: 14.5px;
}

.brand-block ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ep-cyan-deep);
}

.brand-card-visual {
    aspect-ratio: 4 / 3;
    background: var(--ep-grad-navy);
    border-radius: var(--r-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ep-shadow-md);
}

.brand-card-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(83, 208, 224, 0.22), transparent 60%);
}

.brand-card-visual img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: brightness(0) invert(1);
}

.brand-card-visual.is-light {
    background: var(--ep-surface-tint);
}

.brand-card-visual.is-light::before {
    background: radial-gradient(circle at 30% 30%, rgba(83, 208, 224, 0.18), transparent 60%);
}

.brand-card-visual.is-light img { filter: none; }

.sub-brand-card {
    background: var(--ep-surface-tint);
    border-radius: var(--r-lg);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--ep-line);
}

.sub-brand-card h4 {
    color: var(--ep-cyan-deep);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
}

@media (max-width: 991.98px) {
    .brand-block,
    .brand-block.is-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 32px;
    }
    .brand-card-visual { padding: 36px; aspect-ratio: 16 / 10; }
}

/* ---------------------------- Reveal animations -------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity var(--motion-slow), transform var(--motion-slow);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--motion-slow), transform var(--motion-slow);
}

.stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------------------------- Error pages (404 / 500) ------------------- */
.error-page {
    position: relative;
    min-height: 100vh;
    padding: 160px 0 96px;
    background: var(--ep-grad-hero);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    align-items: center;
}

.error-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        radial-gradient(rgba(83, 208, 224, 0.08) 1px, transparent 1px);
    background-size: 28px 28px, 28px 28px;
    background-position: 0 0, 14px 14px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
    opacity: 0.7;
    z-index: -1;
    pointer-events: none;
}

.error-page::after {
    content: '';
    position: absolute;
    width: 720px;
    height: 720px;
    right: -200px;
    top: -150px;
    background: radial-gradient(circle, rgba(83, 208, 224, 0.30), transparent 60%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: heroGlow 12s ease-in-out infinite alternate;
}

.error-content {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.error-number-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 18px 0 24px;
}

.error-number {
    font-family: var(--ep-font);
    font-size: clamp(7rem, 22vw, 14rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.06em;
    color: #fff;
    background: linear-gradient(180deg, #ffffff 0%, rgba(83, 208, 224, 0.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 30px 60px rgba(0, 0, 0, 0.30);
}

.error-script {
    position: absolute;
    top: -8px;
    right: -28px;
    font-family: var(--ep-font-script);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--ep-cyan);
    transform: rotate(-8deg);
    line-height: 0.95;
    text-align: left;
    z-index: 2;
}

.error-title {
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: #fff;
    margin: 8px 0 14px;
}

.error-sub {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
    max-width: 520px;
    margin: 0 auto 30px;
}

.error-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 36px;
}

.error-help {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.error-help a {
    color: var(--ep-cyan);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--motion-fast);
}

.error-help a:hover {
    border-bottom-color: var(--ep-cyan);
}

@media (max-width: 576px) {
    .error-page { padding: 130px 0 64px; }
    .error-script { right: -10px; top: -4px; }
    .error-cta .btn { flex: 1 1 auto; }
}

/* ---------------------------- Scroll to top ------------------------------ */
.scroll-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--ep-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--motion-fast), visibility var(--motion-fast), transform var(--motion-fast), background var(--motion-fast);
    z-index: 1000;
    box-shadow: var(--ep-shadow-md);
}

.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background: var(--ep-cyan-deep); transform: translateY(-2px); }

/* ---------------------------- SweetAlert theme tweak --------------------- */
.swal2-popup {
    border-radius: var(--r-xl) !important;
    padding: 2rem !important;
    font-family: var(--ep-font);
}

.swal2-title { color: var(--ep-navy) !important; font-weight: 700 !important; }
.swal2-confirm {
    background: var(--ep-cyan-deep) !important;
    border-radius: var(--r-pill) !important;
    padding: 10px 26px !important;
    font-weight: 600 !important;
    box-shadow: 0 8px 20px rgba(47, 184, 204, 0.30) !important;
}

.swal2-icon.swal2-warning,
.swal2-icon.swal2-info { border-color: var(--ep-cyan-deep) !important; color: var(--ep-cyan-deep) !important; }

/* ---------------------------- Misc utilities ----------------------------- */
.bg-light { background: var(--ep-surface-tint) !important; }
.bg-white { background: var(--ep-surface) !important; }
.shadow-hover { transition: transform var(--motion-base), box-shadow var(--motion-base); }
.shadow-hover:hover { transform: translateY(-4px); box-shadow: var(--ep-shadow-md); }

/* Make sure bootstrap container has the right spacing on subpages */
section { position: relative; }

/* Mobile typography polish */
@media (max-width: 576px) {
    .display-4, .display-5 { font-size: 2rem; }
    .lead { font-size: 1rem; }
    .btn-lg { padding: 14px 24px; font-size: 15px; }
}
