/* Bulk VAT Validator — Distinctive B2B design (not generic API-blue SaaS) */
:root {
    --ink: #1a1f16;
    --ink-soft: #3d4638;
    --muted: #6b7566;
    --cream: #faf8f4;
    --cream-deep: #f0ebe3;
    --white: #ffffff;
    --green: #3d9b36;
    --green-bright: #52c44a;
    --green-deep: #2d7a27;
    --green-glow: rgba(61, 155, 54, 0.35);
    --green-soft: #e8f5e6;
    --lime: #c8f0a0;
    --amber: #e8a838;
    --danger: #c73e3e;
    --border: rgba(26, 31, 22, 0.08);
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --display: 'Outfit', system-ui, sans-serif;
    --max: 1180px;
    --nav-h: 76px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink-soft);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

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

a {
    color: var(--green-deep);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover { color: var(--green); }

.container-corp {
    width: min(100% - 2.5rem, var(--max));
    margin-inline: auto;
}

/* —— Nav —— */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    transition: background 0.35s var(--ease-out), box-shadow 0.35s;
}

.site-header:not(.is-scrolled) .site-nav a:not(.btn) {
    color: rgba(255, 255, 255, 0.82);
}

.site-header:not(.is-scrolled) .site-nav a:not(.btn):hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.site-header.is-scrolled {
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border);
}

.site-header.is-scrolled .site-nav a:not(.btn) {
    color: var(--ink-soft);
}

.site-header.is-scrolled .site-nav a:not(.btn):hover {
    color: var(--ink);
    background: rgba(26, 31, 22, 0.05);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: var(--nav-h);
    position: relative;
    transition: justify-content 0.35s var(--ease-out);
}

.site-header.is-scrolled .site-header__inner {
    justify-content: space-between;
}

/* Header logo hidden at top; fades in once user scrolls */
.site-header .site-logo {
    flex-shrink: 0;
    line-height: 0;
    opacity: 0;
    visibility: hidden;
    width: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
        opacity 0.35s var(--ease-out),
        visibility 0.35s,
        width 0.35s var(--ease-out),
        transform 0.35s var(--ease-out);
}

.site-header .site-logo img {
    display: block;
    height: 38px;
    width: auto;
    max-width: none;
}

.site-header.is-scrolled .site-logo {
    opacity: 1;
    visibility: visible;
    width: 111px;
    pointer-events: auto;
    transform: translateY(0);
}

/* Brand mark (icon.svg) */
.brand-mark {
    display: block;
    flex-shrink: 0;
    overflow: hidden;
    line-height: 0;
}

.brand-mark img,
.brand-mark svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.brand-mark--sm { width: 32px; height: 32px; }
.brand-mark--md { width: 48px; height: 48px; }
.brand-mark--lg { width: 72px; height: 72px; }
.brand-mark--xl { width: 96px; height: 96px; }

.brand-mark--glow {
    filter: drop-shadow(0 0 20px var(--green-glow));
}

.brand-mark--tile {
    padding: 0.65rem;
    background: var(--green-soft);
    border-radius: 14px;
    border: 1px solid rgba(61, 155, 54, 0.15);
}

.brand-mark--tile-dark {
    padding: 0.65rem;
    background: rgba(79, 183, 72, 0.12);
    border-radius: 14px;
    border: 1px solid rgba(79, 183, 72, 0.25);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a:not(.btn) {
    font-size: 0.9375rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    transition: background 0.2s, color 0.2s;
}

.site-nav-toggle {
    display: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem;
    cursor: pointer;
}

.site-nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    margin: 4px 0;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .site-nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: var(--nav-h);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        background: var(--white);
        padding: 1rem;
        border-radius: 16px;
        border: 1px solid var(--border);
        box-shadow: 0 24px 48px rgba(26, 31, 22, 0.12);
    }
    .site-nav.is-open { display: flex; }
    .site-nav .btn { width: 100%; justify-content: center; }
}

/* —— Buttons —— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-bright) 0%, var(--green) 55%, var(--green-deep) 100%);
    color: var(--white) !important;
    box-shadow: 0 4px 20px var(--green-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-primary:hover {
    color: var(--white) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px var(--green-glow);
}

.btn-outline {
    background: var(--white);
    color: var(--ink) !important;
    border: 1.5px solid var(--border);
    box-shadow: 0 2px 8px rgba(26, 31, 22, 0.04);
}

.btn-outline:hover {
    border-color: var(--green);
    color: var(--green-deep) !important;
    background: var(--green-soft);
}

.btn-ghost-light {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white) !important;
}

.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }

/* —— Hero —— */
.hero {
    position: relative;
    padding: calc(var(--nav-h) + 3rem) 0 6rem;
    overflow: hidden;
    background: var(--ink);
    color: var(--white);
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: orb-float 18s ease-in-out infinite;
}

.hero__orb--1 {
    width: 520px;
    height: 520px;
    background: var(--green);
    top: -20%;
    right: -10%;
    animation-delay: 0s;
}

.hero__orb--2 {
    width: 380px;
    height: 380px;
    background: var(--lime);
    bottom: -30%;
    left: -15%;
    opacity: 0.25;
    animation-delay: -6s;
}

.hero__orb--3 {
    width: 200px;
    height: 200px;
    background: #7dd3fc;
    top: 40%;
    left: 35%;
    opacity: 0.12;
    animation-delay: -12s;
}

.hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
}

@keyframes orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 15px) scale(1.05); }
}

.hero__layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 960px) {
    .hero__layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero__actions, .hero__chips { justify-content: center; }
    .hero__brand { margin-inline: auto; }
}

.hero__brand {
    display: block;
    width: fit-content;
    margin: 0 0 3rem;
    line-height: 0;
    transition: opacity 0.2s;
}

.hero__brand:hover {
    opacity: 0.92;
}

.hero__brand img {
    display: block;
    height: clamp(52px, 9vw, 76px);
    width: auto;
    max-width: min(100%, 340px);
}

.hero h1 {
    font-family: var(--display);
    font-size: clamp(2.5rem, 5.5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 1.25rem;
    color: var(--white);
}

.hero h1 em {
    font-style: normal;
    font-weight: 700;
    color: var(--green-bright);
}

.hero__lead {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 2rem;
    max-width: 28rem;
}

@media (max-width: 960px) {
    .hero__lead { margin-inline: auto; }
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 2rem;
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.hero__chip {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.4rem 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Product screenshot — completed batches */
.hero__visual {
    position: relative;
    animation: hero-visual-float 7s ease-in-out infinite;
}

@keyframes hero-visual-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero__screenshot {
    display: block;
    width: 100%;
    height: auto;
    padding: 0.85rem;
    background: var(--cream);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 28px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 50px var(--green-glow);
}

@media (max-width: 960px) {
    .hero__visual {
        max-width: 520px;
        margin-inline: auto;
        animation: none;
    }
}

/* —— Logo marquee —— */
.marquee-section {
    padding: 2rem 0;
    background: var(--white);
    border-block: 1px solid var(--border);
    overflow: hidden;
}

.marquee-section p {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    margin: 0 0 1.25rem;
}

.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee__track {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    width: max-content;
    animation: marquee 45s linear infinite;
    padding: 0 1.75rem;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee img {
    height: 36px;
    width: auto;
    object-fit: contain;
    opacity: 0.55;
    filter: grayscale(20%);
    transition: opacity 0.3s, filter 0.3s;
}

.marquee img:hover {
    opacity: 1;
    filter: none;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* —— Sections —— */
.section {
    padding: 5.5rem 0;
    position: relative;
}

.section--white { background: var(--white); }
.section--cream { background: var(--cream); }

.section__header {
    max-width: 36rem;
    margin-bottom: 3.5rem;
}

.section__header--center {
    text-align: center;
    margin-inline: auto;
}

.section__header--brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section__header--brand .brand-mark {
    margin-bottom: 1rem;
}

.section__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--green);
    margin-bottom: 0.75rem;
}

.section h2 {
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0 0 1rem;
}

.section__desc {
    margin: 0;
    font-size: 1.0625rem;
    color: var(--muted);
}

/* Bento features */
.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}

.bento-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.75rem;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 31, 22, 0.08);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green-bright), var(--lime));
    opacity: 0;
    transition: opacity 0.3s;
}

.bento-card:hover::before { opacity: 1; }

.bento-card--span-4 { grid-column: span 4; }
.bento-card--span-6 { grid-column: span 6; }
.bento-card--span-8 { grid-column: span 8; }
.bento-card--span-12 { grid-column: span 12; }
.bento-card--accent {
    background: linear-gradient(145deg, var(--ink) 0%, #2a3328 100%);
    color: rgba(255,255,255,0.85);
    border: none;
}

.bento-card--accent h3 { color: var(--white); }
.bento-card--accent p { color: rgba(255,255,255,0.65); }

.bento-card__brand {
    margin-bottom: 1rem;
    opacity: 0.95;
}

@media (max-width: 900px) {
    .bento-card--span-4,
    .bento-card--span-6,
    .bento-card--span-8,
    .bento-card--span-12 { grid-column: span 12; }
}

.bento-card__num {
    font-family: var(--display);
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--green);
    line-height: 1;
    margin-bottom: 0.75rem;
}

.bento-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.5rem;
}

.bento-card p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.55;
}

/* Process */
.process-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    counter-reset: proc;
}

@media (max-width: 768px) {
    .process-flow { grid-template-columns: 1fr; }
}

.process-step {
    position: relative;
}

.process-step__num {
    font-family: var(--display);
    font-size: 4rem;
    font-weight: 300;
    color: var(--green-soft);
    line-height: 1;
    margin-bottom: 0.5rem;
    -webkit-text-stroke: 1px var(--green);
    color: transparent;
}

.process-step h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.5rem;
}

.process-step p {
    font-size: 0.9375rem;
    color: var(--muted);
    margin: 0 0 1.25rem;
}

.process-step img {
    display: block;
    width: 100%;
    padding: 1.25rem;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(26, 31, 22, 0.06);
}

/* Stats strip */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 24px;
    border: 1px solid var(--border);
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

.stat strong {
    display: block;
    font-family: var(--display);
    font-size: 1.75rem;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

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

/* Pricing */
.pricing-wrap {
    background: var(--white);
    border-radius: 28px;
    border: 1px solid var(--border);
    padding: 2.5rem;
    box-shadow: 0 24px 64px rgba(26, 31, 22, 0.06);
}

.pricing-toggle {
    display: flex;
    width: fit-content;
    margin: 0 auto 2.5rem;
    background: var(--cream-deep);
    padding: 5px;
    border-radius: 100px;
}

.pricing-toggle button {
    font-family: var(--font);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--muted);
    border-radius: 100px;
    cursor: pointer;
    transition: 0.2s;
}

.pricing-toggle button.is-active {
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 2px 12px rgba(26, 31, 22, 0.08);
}

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

@media (max-width: 992px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-panel { display: none; }
.pricing-panel.is-active { display: block; }

.plan-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.plan-card:hover {
    transform: translateY(-6px);
    border-color: rgba(61, 155, 54, 0.35);
}

.plan-card--featured {
    background: linear-gradient(160deg, var(--ink) 0%, #2d3d2a 100%);
    border: none;
    color: var(--white);
    transform: scale(1.03);
    z-index: 1;
    box-shadow: 0 24px 48px rgba(26, 31, 22, 0.2);
}

.plan-card--featured:hover { transform: scale(1.03) translateY(-6px); }

.plan-card--featured .plan-card__name,
.plan-card--featured .plan-card__checks { color: rgba(255,255,255,0.65); }

.plan-card--featured .plan-card__price { color: var(--white); }

.plan-card--featured .btn-primary {
    background: var(--white);
    color: var(--ink) !important;
    box-shadow: none;
}

.plan-card__ribbon {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--lime);
    margin-bottom: 0.5rem;
}

.plan-card__name {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.plan-card__price {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--ink);
    margin: 0.25rem 0 0.5rem;
}

.plan-card__price small {
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
}

.plan-card__checks {
    font-size: 0.875rem;
    color: var(--muted);
    flex-grow: 1;
    margin-bottom: 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
}

.plan-card--featured .plan-card__checks { border-top-color: rgba(255,255,255,0.15); }

.plan-card .btn { width: 100%; }

.pricing-note, .pricing-bacs, .pricing-fastspring {
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted);
    max-width: 40rem;
    margin: 1.5rem auto 0;
}

.fastspring-logo {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    line-height: 0;
}

.fastspring-logo img {
    display: block;
    height: 1.125rem;
    width: auto;
    max-width: none;
}

/* White-text SVG on light pricing section */
.fastspring-logo--on-light {
    margin-left: 0.35rem;
    padding: 0.4rem 0.7rem;
    background: var(--ink);
    border-radius: 6px;
}

.fastspring-logo--on-light img {
    height: 1rem;
}

.fastspring-logo--on-dark {
    margin-left: 0.35rem;
}

.fastspring-logo--on-dark img {
    height: 1.25rem;
    opacity: 0.9;
}

/* Testimonial */
.quote-block {
    position: relative;
    padding: 3rem;
    background: linear-gradient(135deg, var(--green-soft) 0%, var(--white) 50%);
    border-radius: 28px;
    border: 1px solid var(--border);
}

.quote-block__icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    opacity: 0.85;
}

.quote-block::before {
    content: '“';
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    font-family: var(--display);
    font-size: 8rem;
    line-height: 1;
    color: var(--green);
    opacity: 0.12;
}

.testimonial__quote {
    position: relative;
    font-family: var(--display);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 500;
    font-style: normal;
    line-height: 1.55;
    color: var(--ink);
    margin: 0 0 2rem;
    max-width: 42rem;
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial__author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 4px 16px rgba(26, 31, 22, 0.1);
}

.testimonial__meta strong {
    display: block;
    color: var(--ink);
    font-style: normal;
    font-size: 0.9375rem;
}

.testimonial__meta span {
    font-size: 0.8125rem;
    color: var(--muted);
}

/* Contact */
.contact-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-split { grid-template-columns: 1fr; }
}

.contact-form-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(26, 31, 22, 0.06);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-soft);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    font-family: var(--font);
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--cream);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--green);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--green-soft);
}

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

.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.alert-success {
    background: var(--green-soft);
    border: 1px solid rgba(61, 155, 54, 0.25);
    color: var(--green-deep);
}

.alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--danger);
}

.alert-danger ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }

/* CTA */
.cta-band {
    padding: 5rem 0;
    text-align: center;
    background: var(--ink);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--green);
    filter: blur(120px);
    opacity: 0.25;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cta-band__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-band__icon {
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.contact-info__brand .brand-mark {
    margin-bottom: 1rem;
}

.cta-band h2 {
    font-family: var(--display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    color: var(--white);
    margin: 0 0 0.75rem;
}

.cta-band p {
    color: rgba(255,255,255,0.65);
    margin: 0 0 1.75rem;
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.55);
    padding: 4rem 0 2rem;
    font-size: 0.875rem;
}

.site-footer a { color: rgba(255, 255, 255, 0.8); }
.site-footer a:hover { color: var(--lime); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.site-footer .footer-logo {
    display: block;
    line-height: 0;
    margin-bottom: 0.5rem;
}

.site-footer .footer-logo img {
    height: 34px;
    width: auto;
}

.footer-grid h4 {
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.8125rem;
}

/* Auth */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--ink);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--green);
    filter: blur(100px);
    opacity: 0.3;
    top: -100px;
    right: -100px;
}

.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.auth-card__brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-card .site-logo {
    display: flex;
    justify-content: center;
    margin: 0;
    line-height: 0;
}

.auth-card .site-logo a {
    display: inline-flex;
    line-height: 0;
}

.auth-card .site-logo img {
    height: 56px;
    width: auto;
    max-width: 100%;
}

.auth-card h1 {
    font-family: var(--display);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 1.5rem;
    color: var(--ink);
}

.auth-card .btn-primary { width: 100%; }

.auth-card__links {
    text-align: center;
    margin-top: 1.25rem;
    font-size: 0.875rem;
}

.auth-card__remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.g-recaptcha { margin-bottom: 1rem; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* —— Logged-in app shell —— */
.app-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(ellipse 80% 50% at 100% -10%, rgba(61, 155, 54, 0.08), transparent 55%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(200, 240, 160, 0.2), transparent 50%),
        var(--cream);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 244, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.app-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 72px;
    padding-block: 0.75rem;
}

.app-header .site-logo {
    flex-shrink: 0;
    line-height: 0;
}

.app-header .site-logo img {
    height: 36px;
    width: auto;
}

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

.app-nav a {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 0.55rem 1rem;
    border-radius: 100px;
}

.app-nav a:hover {
    color: var(--ink);
    background: rgba(26, 31, 22, 0.05);
}

.app-nav a.is-active {
    color: var(--green-deep);
    background: var(--green-soft);
}

.app-header__user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-left: auto;
}

.app-header__meta {
    text-align: right;
    line-height: 1.25;
}

.app-header__meta strong {
    display: block;
    font-size: 0.875rem;
    color: var(--ink);
    font-weight: 600;
}

.app-header__meta span {
    font-size: 0.75rem;
    color: var(--muted);
}

.app-header__toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.app-header__toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
}

.app-main {
    flex: 1;
    padding: 2rem 0 3.5rem;
}

.app-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.app-page-header h1 {
    font-family: var(--display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.app-page-header p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9875rem;
    max-width: 36rem;
}

.app-grid {
    display: grid;
    gap: 1.25rem;
}

.app-grid--dashboard {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
}

.app-grid--validator {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

@media (max-width: 960px) {
    .app-grid--dashboard,
    .app-grid--validator {
        grid-template-columns: 1fr;
    }
}

.app-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 12px 40px rgba(26, 31, 22, 0.04);
}

.app-card--accent {
    background:
        linear-gradient(160deg, rgba(61, 155, 54, 0.08), transparent 45%),
        var(--white);
}

.app-card__title {
    font-family: var(--display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.35rem;
}

.app-card__intro {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.app-stat-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.app-stat {
    background: var(--cream);
    border-radius: 14px;
    padding: 1rem 1.1rem;
}

.app-stat__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.app-stat__value {
    font-family: var(--display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.app-stat__value--green { color: var(--green-deep); }

.app-progress {
    margin-bottom: 1.25rem;
}

.app-progress__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--muted);
    margin-bottom: 0.45rem;
}

.app-progress__bar {
    height: 10px;
    border-radius: 100px;
    background: var(--cream-deep);
    overflow: hidden;
}

.app-progress__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green-bright), var(--green-deep));
    transition: width 0.4s var(--ease-out);
}

.app-progress__fill.is-high {
    background: linear-gradient(90deg, var(--amber), #c47a12);
}

.app-dl {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.app-dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9375rem;
}

.app-dl div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.app-dl dt {
    color: var(--muted);
    margin: 0;
}

.app-dl dd {
    margin: 0;
    font-weight: 600;
    color: var(--ink);
    text-align: right;
}

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

@media (max-width: 640px) {
    .app-form-row { grid-template-columns: 1fr; }
}

.form-group.has-error .form-control {
    border-color: var(--danger);
}

.form-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: var(--danger);
}

.form-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: var(--muted);
}

.app-details {
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.app-details summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.app-details summary::-webkit-details-marker { display: none; }

.app-details summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--muted);
}

.app-details[open] summary::after { content: '−'; }

.app-details__body {
    padding-top: 1.15rem;
}

.alert-warning {
    background: #fff8eb;
    border: 1px solid rgba(232, 168, 56, 0.35);
    color: #8a5a10;
}

.alert-info {
    background: #f3f7f2;
    border: 1px solid var(--border);
    color: var(--ink-soft);
}

.alert p { margin: 0.35rem 0 0; }
.alert p:first-child { margin-top: 0; }
.alert ul { margin: 0.5rem 0 0; padding-left: 1.15rem; }

.btn-sm {
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
}

.btn-secondary {
    background: var(--ink);
    color: var(--white) !important;
}

.btn-secondary:hover {
    color: var(--white) !important;
    background: #2a3224;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-soft) !important;
    border: 1.5px solid var(--border);
}

.btn-ghost:hover {
    background: var(--cream);
    color: var(--ink) !important;
}

.btn-block { width: 100%; }

.app-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.app-table-wrap {
    overflow-x: auto;
    margin: 0 -0.25rem;
}

.app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.app-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.app-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    color: var(--ink-soft);
}

.app-table tr:last-child td { border-bottom: 0; }

.app-table tbody tr:hover td {
    background: rgba(61, 155, 54, 0.03);
}

.app-table__count {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--ink);
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 100px;
    white-space: nowrap;
}

.app-badge--ok {
    background: var(--green-soft);
    color: var(--green-deep);
}

.app-badge__tick {
    width: 0.875rem;
    height: auto;
    flex-shrink: 0;
    display: block;
}

.app-badge--pending {
    background: #fff8eb;
    color: #8a5a10;
}

.app-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--muted);
}

.app-empty strong {
    display: block;
    color: var(--ink);
    font-family: var(--display);
    font-size: 1.125rem;
    margin-bottom: 0.35rem;
}

.choice-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
    .choice-cards { grid-template-columns: 1fr; }
}

.choice-card {
    position: relative;
    border: 1.5px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    background: var(--cream);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.choice-card:hover {
    border-color: rgba(61, 155, 54, 0.35);
}

.choice-card:has(input:checked) {
    border-color: var(--green);
    background: var(--green-soft);
    box-shadow: 0 0 0 3px rgba(61, 155, 54, 0.12);
}

.choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-card__title {
    display: block;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.25rem;
}

.choice-card__desc {
    display: block;
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.45;
}

.choice-card__example {
    display: block;
    width: 100%;
    margin-top: 0.85rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(26, 31, 22, 0.04);
}

.choice-card:has(input:checked) .choice-card__example {
    border-color: rgba(61, 155, 54, 0.25);
}

.csv-preview {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.csv-preview img {
    width: min(100%, 220px);
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--white);
}

.file-field {
    position: relative;
    border: 1.5px dashed rgba(61, 155, 54, 0.35);
    border-radius: 16px;
    background: var(--green-soft);
    padding: 1.5rem 1.25rem;
    text-align: center;
    margin-bottom: 1.25rem;
    transition: border-color 0.2s, background 0.2s;
}

.file-field.is-dragover {
    border-color: var(--green);
    background: #dff3dc;
}

.file-field input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-field__label {
    font-weight: 700;
    color: var(--green-deep);
    margin-bottom: 0.25rem;
}

.file-field__hint {
    font-size: 0.8125rem;
    color: var(--muted);
}

.file-field__name {
    display: none;
    margin-top: 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
}

.file-field.has-file .file-field__name { display: block; }

.upload-step {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.upload-step--last {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.upload-step__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.upload-step__num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--display);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--green-bright), var(--green-deep));
}

.upload-step__title {
    font-family: var(--display);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.upload-step__body {
    padding-left: 0;
}

@media (min-width: 640px) {
    .upload-step__body {
        padding-left: 2.75rem;
    }
}

.app-footer {
    padding: 1.25rem 0 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--muted);
}

.app-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
}

.app-footer a { color: var(--muted); }
.app-footer a:hover { color: var(--green-deep); }

@media (max-width: 860px) {
    .app-header__toggle { display: inline-flex; }

    .app-header__inner {
        flex-wrap: wrap;
    }

    .app-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        order: 3;
        padding-top: 0.5rem;
    }

    .app-nav.is-open { display: flex; }

    .app-nav a {
        border-radius: 12px;
    }

    .app-header__meta { display: none; }
}

/* —— Admin —— */
.admin-search {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.admin-search .form-group { min-width: min(100%, 280px); }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.admin-checks {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin: 0.5rem 0 0;
}

.admin-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}

.admin-meta {
    margin: 0;
    display: grid;
    gap: 0.85rem;
}

.admin-meta > div {
    display: grid;
    gap: 0.15rem;
}

.admin-meta dt {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.admin-meta dd {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
}

@media (min-width: 960px) {
    .admin-edit-grid {
        grid-template-columns: 1.4fr 0.75fr;
    }
}

.btn-danger {
    background: #c73e3e;
    color: #fff !important;
    border-color: #c73e3e;
}

.btn-danger:hover {
    background: #a83232;
    border-color: #a83232;
}

.admin-danger {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.admin-group__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-group--bacs {
    background: #f3f7fb;
    border-color: #d5e3f0;
}

.admin-group--bacs .app-table tbody tr:hover td {
    background: rgba(45, 90, 140, 0.05);
}

.admin-group__badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.app-badge--warn {
    background: #fff1e0;
    color: #9a4d00;
}

.admin-expiry {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--ink-soft);
    white-space: nowrap;
}

.admin-expiry--soon {
    color: #9a4d00;
}

.admin-expiry--expired {
    color: #c73e3e;
}

.admin-group--bacs tr.admin-row--soon td {
    background: #fff6eb;
}

.admin-group--bacs tr.admin-row--expired td {
    background: #fdeeee;
}

.admin-group--bacs tr.admin-row--soon:hover td,
.admin-group--bacs tr.admin-row--expired:hover td {
    filter: brightness(0.98);
}

.admin-group--bacs tr.admin-row--paid td {
    background: var(--green-soft);
}

.admin-group--bacs tr.admin-row--paid:hover td {
    background: #dcefd8;
}

.admin-col-paid {
    width: 6.5rem;
    white-space: nowrap;
}

.admin-paid-form {
    margin: 0;
}

.admin-paid-toggle {
    border: 0;
    background: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.admin-paid-toggle .app-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.admin-paid-mark {
    font-size: 0.8125rem;
}

.admin-group--queue {
    background: #fffdf8;
    border-color: #f0e2c8;
}

.admin-group--inactive {
    background: #f7f7f5;
    border-color: #e0ddd6;
}

.admin-group--inactive .app-table tbody tr:hover td {
    background: rgba(0, 0, 0, 0.03);
}

.app-subnav {
    background: #1a1f16;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.app-subnav__inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 2.75rem;
    flex-wrap: wrap;
    padding: 0.35rem 0;
}

.app-subnav__label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.app-subnav__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.app-subnav__links a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    text-decoration: none;
}

.app-subnav__links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.app-subnav__links a.is-active {
    color: #fff;
    background: var(--green);
}
