/* =====================================================================
   Jaisalpay — Fintech theme
   Palette: 003135 / 024950 / 0FA4AF / 964734 / AFDDE5
   Fonts:   Poppins (display) + Inter (body)
   ===================================================================== */

:root {
    /* Jaisalpay brand palette - derived from the logo gradient.
       Old variable names are kept so every existing rule keeps working. */
    --deep: #1E1A17;
    --dark: #2A2320;
    --teal: #FB6E03;
    --teal-600: #E05F02;
    --rust: #FC3602;
    --rust-600: #C24A05;
    --light: #FBD9BC;
    --light-50: #FFF6EF;
    --white: #ffffff;
    --ink: #1E1A17;
    --muted: #8A7F77;
    --bg: #FAF7F4;
    --line: #EFE7E0;

    /* explicit brand tokens for new work */
    --brand-red: #FC3602;
    --brand-orange: #FB6E03;
    --brand-amber: #FCA00A;
    --brand-gradient: linear-gradient(135deg, #FC3602 0%, #FB6E03 55%, #FCA00A 100%);
    --brand-success: #16A34A;
    --brand-warning: #F59E0B;
    --brand-danger: #DC2626;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(30, 26, 23, .10);
    --shadow-lg: 0 24px 60px rgba(30, 26, 23, .16);
    --container: 1200px;
    --header-h: 76px;

    --ff-display: 'Poppins', system-ui, Arial, sans-serif;
    --ff-body: 'Inter', system-ui, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth
}

html,
body {
    overflow-x: hidden
}

body {
    margin: 0;
    font-family: var(--ff-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--teal-600);
    text-decoration: none
}

h1,
h2,
h3,
h4 {
    font-family: var(--ff-display);
    color: var(--deep);
    line-height: 1.2;
    margin: 0 0 .5em
}

h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -.5px
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    font-weight: 700
}

h3 {
    font-size: 1.25rem;
    font-weight: 600
}

p {
    margin: 0 0 1rem
}

ul {
    margin: 0;
    padding: 0;
    list-style: none
}

.container {
    width: min(var(--container), 92%);
    margin-inline: auto
}

.section {
    padding: clamp(3rem, 7vw, 6rem) 0
}

.section--tint {
    background: var(--light-50)
}

.section--deep {
    background: var(--deep);
    color: #dff1f3
}

.section--deep h2,
.section--deep h3 {
    color: #fff
}

.eyebrow {
    display: inline-block;
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: .6rem
}

.section--deep .eyebrow {
    color: var(--light)
}

.section-head {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center
}

.section-head p {
    color: var(--muted)
}

.section--deep .section-head p {
    color: #bfe0e4
}

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--teal);
    --btn-fg: #fff;
    --btn-bd: var(--teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--ff-display);
    font-weight: 600;
    font-size: .95rem;
    padding: .72rem 1.4rem;
    border-radius: var(--radius-sm);
    background: var(--btn-bg);
    color: var(--btn-fg);
    border: 2px solid var(--btn-bd);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(251, 110, 3, .35)
}

.btn--accent {
    --btn-bg: var(--rust);
    --btn-bd: var(--rust);
    --btn-fg: #fff
}

.btn--accent:hover {
    background: var(--rust-600);
    box-shadow: 0 8px 22px rgba(252, 54, 2, .35)
}

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: var(--deep);
    --btn-bd: var(--line)
}

.btn--ghost:hover {
    --btn-bd: var(--teal);
    color: var(--teal-600);
    box-shadow: none
}

.btn--ghost-light {
    --btn-bg: transparent;
    --btn-fg: #fff;
    --btn-bd: rgba(255, 255, 255, .6)
}

.btn--ghost-light:hover {
    --btn-bd: #fff;
    background: rgba(255, 255, 255, .1);
    box-shadow: none
}

.btn--lg {
    padding: .95rem 1.9rem;
    font-size: 1.02rem
}

.btn--block {
    width: 100%
}

/* ---------- Top bar ---------- */
.topbar {
    background: var(--deep);
    color: #bfe0e4;
    font-size: .83rem
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    gap: 1rem;
    flex-wrap: wrap
}

.topbar a {
    color: #bfe0e4;
    margin-right: 1.2rem
}

.topbar a:hover {
    color: #fff
}

.topbar__meta span {
    color: #8fc2c8
}

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    box-shadow: 0 2px 14px rgba(30, 26, 23, .25)
}

.site-header.scrolled {
    background: rgba(42, 35, 32, .97);
    backdrop-filter: blur(8px)
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 1rem
}

.brand img {
    height: 64px;
    width: auto
}

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

.nav-list>li {
    position: relative
}

.nav-list>li>a {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-family: var(--ff-display);
    font-weight: 500;
    color: var(--dark);
    padding: .6rem .85rem;
    border-radius: 8px;
    font-size: .98rem;
    background:none;
    transition: .2s;
}

.nav-list>li>a:hover,
.nav-list>li>a.is-active {
    background: rgba(255, 255, 255, .12);
    color: black
}

.nav-list>li>a.is-active {
    color: var(--light)
}

.caret {
    font-size: .7rem;
    opacity: .8
}

.nav-auth {
    margin-left: .4rem
}

.nav-auth .btn {
    padding: .55rem 1.15rem
}

.nav-auth .btn--ghost {
    --btn-fg: #fff;
    --btn-bd: rgba(255, 255, 255, .5)
}

.nav-auth .btn--ghost:hover {
    --btn-bd: #fff;
    color: black;
    background: rgba(255, 255, 255, .1)
}

/* Mega menu */
.mega {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: min(920px, 88vw);
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.4rem;
    opacity: 0;
    visibility: hidden;
    transition: .22s;
    border-top: 4px solid var(--teal);
}

@media (min-width:901px) {
    .has-mega:hover .mega {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0)
    }
}

.mega::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px
}

.mega__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem 1.6rem
}

.mega__col h4 {
    font-size: .78rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--rust);
    margin-bottom: .6rem
}

.mega__col ul li {
    margin-bottom: .28rem
}

.mega__col ul a {
    color: var(--ink);
    font-size: .9rem;
    display: block;
    padding: .15rem 0
}

.mega__col ul a:hover {
    color: var(--teal-600)
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: .3s
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg)
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg)
}

/* ---------- Hero carousel ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--deep);
    width: 100vw;
    height: 85vh
}

.hero__track {
    display: flex;
    height: 100%;
    transition: transform .7s cubic-bezier(.6, .05, .2, 1)
}

.hero__slide {
    min-width: 100%;
    height: 100%;
    position: relative
}

.hero__bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.hero__dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .55rem;
    z-index: 5
}

.hero__dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: .2s
}

.hero__dots button.active {
    background: var(--teal);
    border-color: var(--teal);
    width: 30px;
    border-radius: 8px
}

.hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    backdrop-filter: blur(4px);
    transition: .2s;
}

.hero__arrow:hover {
    background: var(--teal)
}

.hero__arrow--prev {
    left: 18px
}

.hero__arrow--next {
    right: 18px
}

/* ---------- Trust / stats bar ---------- */
.stats {
    background: var(--white);
    border-bottom: 1px solid var(--line)
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2rem 0
}

.stat {
    text-align: center;
    padding: .5rem 1rem;
    border-right: 1px solid var(--line)
}

.stat:last-child {
    border-right: 0
}

.stat b {
    display: block;
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 2rem;
    color: var(--teal-600)
}

.stat span {
    color: var(--muted);
    font-size: .92rem
}

/* ---------- Feature/why cards ---------- */
.grid {
    display: grid;
    gap: 1.5rem
}

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

.grid--3 {
    grid-template-columns: repeat(3, 1fr)
}

.grid--4 {
    grid-template-columns: repeat(4, 1fr)
}

.feature {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: .25s
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: transparent
}

.feature .ico {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--light-50);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: 1rem
}

.feature h3 {
    margin-bottom: .4rem
}

.feature p {
    color: var(--muted);
    margin: 0;
    font-size: .95rem
}

/* ---------- Service cards (with images) ---------- */
.svc-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: .25s;
}

.svc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent
}

.svc-card__img {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--dark)
}

.svc-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease
}

.svc-card:hover .svc-card__img img {
    transform: scale(1.06)
}

.svc-card__body {
    padding: 1.25rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1
}

.svc-card__body h3 {
    font-size: 1.08rem;
    margin-bottom: .35rem;
    line-height: 1.3
}

.svc-card__body p {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 1rem;
    flex: 1
}

.svc-card__link {
    font-family: var(--ff-display);
    font-weight: 600;
    color: var(--teal-600);
    font-size: .92rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem
}

.svc-card__link:hover {
    gap: .6rem;
    color: var(--rust)
}

/* group heading on services page */
.svc-group {
    margin-bottom: 3.2rem
}

.svc-group__head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.4rem;
    border-bottom: 2px solid var(--line);
    padding-bottom: .7rem
}

.svc-group__head h2 {
    margin: 0;
    font-size: 1.5rem
}

.svc-group__head span {
    color: var(--muted);
    font-size: .9rem
}

/* ---------- Split / about section ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center
}

.split img {
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: .7rem;
    color: var(--ink)
}

.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    width: 1.35rem;
    height: 1.35rem;
    background: var(--teal);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .78rem;
    font-weight: 700
}

/* ---------- Service detail hero ---------- */
.svc-hero {
    background: linear-gradient(120deg, var(--deep), var(--dark));
    color: #fff;
    padding: clamp(2.5rem, 5vw, 4rem) 0
}

.svc-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 2.5rem;
    align-items: center
}

.svc-hero h1 {
    color: #fff
}

.svc-hero .tagline {
    font-size: 1.2rem;
    color: var(--light);
    font-family: var(--ff-display);
    font-weight: 500;
    margin-bottom: 1rem
}

.svc-hero p {
    color: #d3edf0
}

.svc-hero__img img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg)
}

.breadcrumb {
    font-size: .85rem;
    color: #9fcdd3;
    margin-bottom: 1rem
}

.breadcrumb a {
    color: #cfeef1
}

.breadcrumb a:hover {
    color: #fff
}

/* ---------- Forms ---------- */
.form-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.6rem, 4vw, 2.6rem)
}

.field {
    margin-bottom: 1.15rem
}

.field label {
    display: block;
    font-family: var(--ff-display);
    font-weight: 500;
    font-size: .9rem;
    margin-bottom: .35rem;
    color: var(--deep)
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    font-size: .98rem;
    background: #fdffff;
    color: var(--ink);
    transition: .2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(251, 110, 3, .15)
}

.field textarea {
    min-height: 130px;
    resize: vertical
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem
}

.form-note {
    font-size: .86rem;
    color: var(--muted)
}

.form-msg {
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: .92rem
}

.form-msg--ok {
    background: #e5f6ef;
    color: #0a6b45;
    border: 1px solid #bfe6d4
}

.form-msg--err {
    background: #fdecea;
    color: #a2381f;
    border: 1px solid #f3c6bd
}

.auth-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh
}

.auth-aside {
    background: linear-gradient(150deg, var(--deep), var(--dark) 60%, var(--teal-600));
    color: #fff;
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center
}

.auth-aside h2 {
    color: #fff
}

.auth-aside .check-list li {
    color: #dff1f3
}

.auth-aside .check-list li::before {
    background: var(--light);
    color: var(--deep)
}

.auth-form {
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center
}

.auth-form .form-card {
    box-shadow: none;
    border: 0;
    padding: 0;
    max-width: 440px;
    margin: 0 auto;
    width: 100%
}

/* ---------- Page banner (about/career/contact) ---------- */
.page-banner {
    background: linear-gradient(120deg, var(--deep), var(--dark));
    color: #fff;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    text-align: center
}

.page-banner h1 {
    color: #fff;
    margin-bottom: .4rem
}

.page-banner p {
    color: #cfeef1;
    max-width: 640px;
    margin: 0 auto
}

/* ---------- Career cards ---------- */
.job {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    transition: .2s
}

.job:hover {
    box-shadow: var(--shadow);
    border-color: transparent
}

.job h3 {
    margin-bottom: .25rem
}

.job .meta {
    color: var(--muted);
    font-size: .9rem
}

.tag {
    display: inline-block;
    background: var(--light-50);
    color: var(--teal-600);
    font-size: .78rem;
    font-weight: 600;
    padding: .25rem .7rem;
    border-radius: 999px;
    margin-right: .4rem
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start
}

.contact-info .info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem
}

.contact-info .info-item .ico {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 12px;
    background: var(--deep);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.3rem
}

.contact-info h4 {
    margin-bottom: .15rem
}

.contact-info p {
    color: var(--muted);
    margin: 0
}

/* ---------- CTA strip ---------- */
.cta-strip {
    background: linear-gradient(120deg, var(--rust), var(--rust-600))
}

.cta-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.6rem 0;
    flex-wrap: wrap
}

.cta-strip h2 {
    color: #fff;
    margin-bottom: .25rem
}

.cta-strip p {
    color: #f5ded8;
    margin: 0
}

.cta-strip__actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--deep);
    color: #a8ccd0;
    font-size: .94rem
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 2rem;
    padding: 3.5rem 0 2.5rem
}

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1rem
}

.footer-col p {
    color: #8fb7bc
}

.footer-col ul li {
    margin-bottom: .55rem
}

.footer-col ul a {
    color: #a8ccd0
}

.footer-col ul a:hover {
    color: var(--teal)
}

.footer-col--brand img {
    margin-bottom: 1rem
}

.footer-contact li {
    margin-bottom: .55rem;
    color: #a8ccd0
}

.footer-col .btn {
    margin-top: .6rem
}

.social {
    display: flex;
    gap: .6rem;
    margin-top: 1.2rem
}

.social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    display: grid;
    place-items: center;
    color: #dff1f3;
    font-family: var(--ff-display);
    font-weight: 700;
    transition: .2s
}

.social a:hover {
    background: var(--teal);
    color: #fff
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1)
}

.footer-bottom__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
    flex-wrap: wrap;
    gap: .5rem;
    font-size: .86rem
}

.footer-bottom p {
    margin: 0;
    color: #8fb7bc
}

.footer-legal a {
    color: #a8ccd0
}

.footer-legal a:hover {
    color: var(--teal)
}

/* ---------- Back to top ---------- */
.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: var(--teal);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: .3s;
    z-index: 50
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.to-top:hover {
    background: var(--rust)
}

/* ---------- Utilities ---------- */
.text-center {
    text-align: center
}

.mt-2 {
    margin-top: 1.2rem
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem
}

.chip {
    background: var(--light-50);
    color: var(--teal-600);
    font-weight: 600;
    font-size: .85rem;
    padding: .4rem .9rem;
    border-radius: 999px
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width:1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

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

@media (max-width:900px) {
    .grid--4 {
        grid-template-columns: repeat(2, 1fr)
    }

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

    .split,
    .svc-hero__grid,
    .contact-grid,
    .auth-wrap {
        grid-template-columns: 1fr
    }

    .auth-aside {
        display: none
    }

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

    .stat:nth-child(2n) {
        border-right: 0
    }

    /* mobile nav */
    .nav-toggle {
        display: flex
    }

    .primary-nav {
        position: fixed;
        inset: var(--header-h) 0 0 auto;
        width: min(340px, 84vw);
        background: var(--dark);
        padding: 1.2rem;
        overflow-y: auto;
        transform: translateX(105%);
        transition: transform .3s ease;
        box-shadow: -10px 0 40px rgba(0, 0, 0, .3);
        height: calc(100vh - var(--header-h));
    }

    .primary-nav.open {
        transform: translateX(0)
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: .15rem
    }

    .nav-list>li>a {
        padding: .85rem .6rem;
        border-radius: 8px;
        justify-content: space-between
    }

    .mega {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        background: transparent;
        opacity: 1;
        visibility: visible;
        padding: 0;
        border-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    li.has-mega.open .mega {
        padding: .2rem 0 .6rem .6rem
    }

    li.has-mega.open .mega {
        max-height: 1200px
    }

    .mega__inner {
        grid-template-columns: 1fr;
        gap: .8rem
    }

    .mega__col h4 {
        color: var(--light)
    }

    .mega__col ul a {
        color: #cfe9ec;
        font-size: .88rem
    }

    .nav-auth {
        margin: .4rem 0 0
    }

    .nav-auth .btn {
        width: 100%
    }

    .hero__arrow {
        display: none
    }
}

@media (max-width:560px) {

    .grid--4,
    .grid--3,
    .grid--2,
    .field-row {
        grid-template-columns: 1fr
    }

    .stats__grid {
        grid-template-columns: 1fr 1fr
    }

    .cta-strip__inner {
        flex-direction: column;
        text-align: center;
        align-items: center
    }

    .topbar__meta {
        display: none
    }

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

/* Reduced motion */
@media (prefers-reduced-motion:reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease
}

.reveal.in {
    opacity: 1;
    transform: none
}