/* ── Brand tokens ─────────────────────────────────────────── */
:root {
    --bg: #f7f3ee;
    /* warm cream */
    --bg2: #f1ebe4;
    /* slightly deeper cream */
    --ink: #1c1d21;
    /* near-black text */
    --muted: #6a6e77;
    /* soft grey for secondary copy */
    --brand: #c99b2b;
    /* gold */
    --brand-2: #e4c06a;
    /* lighter gold accent */
    --brand-ink: #201a0a;
    /* legible over gold */
    --line: #e2d9cd;
    /* subtle separators */
    --chip: #fffaf5;
    /* input background */
    --shadow: rgba(0, 0, 0, .08);
}

/* Motion prefs */
html:focus-within {
    scroll-behavior: smooth;
}

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

    * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ── Base / layout ────────────────────────────────────────── */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    color: var(--ink);
    background-color: var(--bg2);
    /* flat base */
}

/* Top-only gradient band that fades out — prevents any tiling */
body::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: clamp(420px, 55vh, 680px);
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(900px 520px at 80% -10%, #fff1da 0%, rgba(255, 241, 218, 0) 60%),
        radial-gradient(760px 460px at 0% 8%, #ffeeda 0%, rgba(255, 238, 218, 0) 60%);
    background-repeat: no-repeat, no-repeat;
    background-position: 80% 0%, 8% 8%;
    background-size: 140% 120%, 130% 110%;

    /* smooth fade into the solid body colour below */
    -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
}

/* Subtle dithering to avoid banding on some displays (optional) */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    /* tiny noise */
    opacity: .035;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    body::before {
        height: clamp(360px, 52vh, 560px);
        background-size: 220% 170%, 200% 160%, 100% 100%;
        background-position: 85% 0%, 0% 0%;
        -webkit-mask-image: linear-gradient(to bottom, #000 60%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(to bottom, #000 60%, rgba(0, 0, 0, 0) 100%);
    }
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 20px 24px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h2 {
    font-family: "Playfair Display", "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 16px;
    top: 12px;
    width: auto;
    height: auto;
    padding: 10px 12px;
    background: #fff;
    color: #000;
    border-radius: 8px;
    z-index: 1000;
}

/* ── Header ── */
.nav {
    padding: 8px 0 0;
    margin-bottom: 8px;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

@media (min-width: 960px) {
    .brand {
        flex-direction: row;
        align-items: flex-center;
        justify-content: space-between;
    }
}

.logo-row {
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: var(--ink);
}

/* EXACT sizing request: 160px desktop, slightly smaller on phones */
.logo-img {
    height: 160px;
    width: auto;
    display: block;
}

@media (min-width: 640px) {
    .logo-img {
        height: 160px;
    }
}

.badge {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .06em;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
    color: var(--brand-ink);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 2px 10px var(--shadow);
    text-align: center;
}

/* ── Hero ── */
.hero {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 36px;
    align-items: center;
    padding: 12px 0 28px;
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 8px 0 20px;
    }

    .hero-copy {
        text-align: center;
    }
}

h1 {
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    margin: 6px 0 8px;
}

.hero-copy h1 {
    letter-spacing: -0.01em;
    word-spacing: 0.04em;
}

.h2 {
    font-size: clamp(20px, 3.2vw, 28px);
    margin: 0 0 6px;
    text-align: center;
}

.sub {
    font-size: clamp(16px, 2.6vw, 20px);
    color: var(--muted);
    max-width: 46ch;
    margin: 0 auto 18px;
}

@media (min-width: 961px) {
    .sub {
        margin: 0 0 18px;
    }
}

.card {
    background: rgba(255, 255, 255, .78);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 24px var(--shadow);
}

/* ── Programme highlights ── */
.bullets {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--muted, #c7d1d8);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.5;
}

.bullets i {
    color: var(--brand);
    font-size: 1.15em;
    margin-top: 0.15em;
    flex-shrink: 0;
}

@keyframes eva-fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Controlled by .reveal */
.bullets li {
    opacity: 1;
    transform: none;
    animation: none;
}

.bullets.reveal.reveal--in li {
    opacity: 0;
    transform: translateY(6px);
    animation: eva-fadeUp .55s ease forwards;
    animation-delay: var(--delay, 0s);
}

.tick {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: var(--brand);
    margin-top: 2px;
}

.trust {
    color: var(--muted);
    font-size: 14px;
    margin-top: 8px;
}

.legal {
    margin-top: 10px;
    text-align: center;
}

.cta {
    text-align: center;
}

/* ── Form grid ── */
.grid {
    display: grid;
    gap: 10px;
    margin: 12px 0;
}

.field {
    display: block;
}

.span-2 {
    grid-column: 1 / -1;
}

@media (min-width: 720px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }

    .field {
        grid-column: auto;
    }

    .span-2 {
        grid-column: 1 / -1;
    }
}

/* Controls */
input,
select,
button,
textarea {
    font: inherit;
    border-radius: 12px;
    border: 1px solid var(--line);
    padding: 14px;
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: box-shadow .15s ease, border-color .15s ease, transform .1s ease, background .2s ease;
    min-height: 44px;
    width: 100%;
}

input::placeholder {
    color: #7c8696;
}

select {
    appearance: none;
}

:where(input, select, button, textarea):focus-visible {
    border-color: var(--brand-2);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-2) 35%, transparent);
}

:where(input, select)[aria-invalid="true"],
:where(input, select):user-invalid {
    border-color: #d33;
    box-shadow: 0 0 0 3px rgba(221, 51, 51, .25);
}

.micro {
    font-size: 13px;
    text-align: center;
    color: var(--muted)
}

/* Button */
.btn {
    background: var(--brand);
    color: var(--brand-ink);
    border-color: var(--brand);
    font-weight: 800;
    padding: 14px 18px;
    cursor: pointer;
    transform: translateZ(0);
}

.btn:hover {
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* Messages */
.success,
.error {
    display: none;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
}

.success {
    background: #153a1a;
    color: #b9f8b5;
    border: 1px solid #255a2a;
}

.error {
    background: #3a1515;
    color: #ffc4c4;
    border: 1px solid #5a2525;
}

/* Honeypot */
.hp {
    position: absolute;
    left: -9999px;
}

/* Footer */
.foot {
    border-top: 1px solid var(--line);
    margin-top: 28px;
    padding: 18px 0;
    color: var(--muted);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.foot .credit {
    flex-basis: 100%;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.foot .credit a {
    color: var(--brand-2);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease, text-shadow .2s ease;
}

.foot .credit a:hover,
.foot .credit a:focus-visible {
    color: var(--brand);
    text-shadow: 0 0 8px color-mix(in srgb, var(--brand) 50%, transparent);
}

@media (min-width: 720px) {
    .foot .credit {
        flex-basis: auto;
        text-align: right;
    }
}

/* --- Social Icon Link --- */
.foot .social-link,
.foot .social-link:link,
.foot .social-link:visited {
    color: var(--muted) !important;
    /* match site palette */
    text-decoration: none;
}

.foot .social-link i,
.foot .social-link svg {
    font-size: 1.6rem;
    width: 1.6rem;
    height: 1.6rem;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    color: var(--muted);
}

/* Reliable hover (works on both font + SVG) */
.foot .social-link:hover,
.foot .social-link:focus-visible {
    color: var(--brand-2) !important;
    transform: translateY(-2px);
}

/* Ensure SVG paths follow text colour */
.foot .social-link svg path {
    fill: currentColor !important;
}

/* Optional: Instagram gradient when FA uses font mode */
.foot .social-link:hover i,
.foot .social-link:focus-visible i {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.link {
    color: inherit;
    text-decoration: underline;
}

/* SR-only utility */
.visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

/* ===== Mobile hero improvements ===== */
@media (max-width: 640px) {
    .hero {
        padding: 12px 0 22px;
        gap: 20px;
    }

    .hero-copy {
        text-align: center;
    }

    h1 {
        font-size: clamp(28px, 7.2vw, 40px);
        line-height: 1.15;
        letter-spacing: .1px;
        margin: 10px 0 12px;
    }

    .sub {
        max-width: 30ch;
        margin: 0 auto 18px;
        line-height: 1.6;
    }

    .bullets {
        max-width: 32ch;
        margin: 14px auto 8px;
        gap: 12px;
        padding: 0;
    }

    .bullets li {
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(255, 255, 255, .03);
    }

    .tick {
        width: 14px;
        height: 14px;
        border-radius: 4px;
        margin-top: 0;
    }

    .trust {
        margin-top: 10px;
    }
}

/* Status helper */
.status {
    margin-top: .75rem;
    font-size: .95rem;
    min-height: 1.25rem;
    text-align: center;
}

.status.is-info {
    color: var(--muted, #666);
}

.status.is-success {
    color: #0a7b52;
}

.status.is-error {
    color: #b00020;
}

.btn[aria-busy="true"] {
    opacity: .7;
    pointer-events: none;
}

/* -------- Reveal on scroll (soft, premium) -------- */
.reveal {
    --delay: 0s;
    opacity: 0;
    transform: translateY(10px);
    will-change: opacity, transform;
}

.reveal.reveal--in {
    animation: eva-fadeUp .60s ease forwards;
    animation-delay: var(--delay);
}

/* ── Tiers Section ───────────────────────────── */
.tiers {
    text-align: center;
    margin: 64px auto 48px;
    padding: 0 16px;
    max-width: 1080px;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.tier-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(255, 250, 245, .82) 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px 20px 32px;
    box-shadow: 0 4px 20px var(--shadow);
    text-align: left;
    transition: transform .25s ease, border-color .25s ease;
}

.tier-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-2);
}

.tier-card.featured {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.90) 0%,
        rgba(245, 235, 215, 0.65) 100%
    );
    backdrop-filter: blur(6px);
    border-color: var(--brand);
}

.tier-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 6px;
}

.tier-desc {
    font-size: .95rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.tier-name i {
    color: var(--brand);
    margin-right: 6px;
    font-size: 1rem;
    vertical-align: middle;
}

.tier-name.elite i {
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Lock tier icon colour across breakpoints & FA modes */
.tier-card .tier-name>i,
.tier-card .tier-name>.fa-solid,
.tier-card .tier-name>.fa-regular,
.tier-card .tier-name>.fa-light,
.tier-card .tier-name>.fa-duotone,
.tier-card .tier-name>svg,
.tier-card .tier-name>svg path {
    color: var(--brand) !important;
    fill: var(--brand) !important;
    opacity: 1;
}

/* Duotone layers */
.tier-card .tier-name>.fa-duotone {
    --fa-primary-color: var(--brand);
    --fa-secondary-color: var(--brand);
}

/* Safety */
.tier-card .tier-name,
.tier-card .tier-name i {
    -webkit-text-fill-color: currentColor !important;
    background: none;
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    font-weight: 700;
}

.btn--ghost:hover {
    border-color: var(--brand-2);
}
