/*
 * GGRLeads look overhaul 2026-10 — wave A: the public site (templates/layouts/main.php only).
 * Loaded only while config/ui.php GGR_UI_2026 is true; every rule sits under html.gu-pub (main.php adds it next to gu-2026).
 * Markup hooks are added classes only (gu-*); cut-out <img>s carry Tailwind `hidden` so the kill switch restores today's look.
 * Text over art always sits on a scrim; parallax off under prefers-reduced-motion and ≤768px. Doc: docs/UI-2026-10.md.
 */

/* ---- Accent: coral #e94560 is 3.7:1 on white, so text/buttons use a deeper coral in light and salmon in dark ---- */
html.gu-pub { --gu-accent: #c42a47; --gu-accent-hover: #a8213b; --gu-accent-text: #c42a47; }
html.gu-pub.dark { --gu-accent-text: #ff7b7b; }
html.gu-pub .text-accent { color: var(--gu-accent-text); }
html.gu-pub .bg-accent { background-color: var(--gu-accent); }
html.gu-pub .hover\:bg-red-400:hover { background-color: var(--gu-accent-hover); }
html.gu-pub .hover\:text-accent:hover { color: var(--gu-accent-text); }
html.gu-pub .border-accent, html.gu-pub .hover\:border-accent:hover { border-color: var(--gu-accent); }
html.gu-pub.dark .border-accent, html.gu-pub.dark .hover\:border-accent:hover { border-color: #ff6b6b; }
html.gu-pub .bg-accent\/10 { background-color: rgb(196 42 71 / .1); }

/* Buttons: a soft 3D lift (filled CTAs only). */
html.gu-pub a.bg-accent {
    box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 6px 16px -6px rgb(196 42 71 / .65);
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
html.gu-pub a.bg-accent:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 10px 22px -8px rgb(196 42 71 / .75); }

/* Header: frosted over whatever scrolls under it. */
html.gu-pub body > header { background-color: rgb(255 255 255 / .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
html.gu-pub.dark body > header { background-color: rgb(17 24 39 / .86); }

/* ---- Home · hero: navy band with the art behind a scrim (both themes), text light ---- */
html.gu-pub .gu-hero {
    position: relative; isolation: isolate; background-color: #1a1a2e;
    background-image: linear-gradient(100deg, rgb(15 15 30 / .92) 0%, rgb(22 33 62 / .80) 45%, rgb(22 33 62 / .35) 100%),
                      url('/assets/art/bg-home-hero.webp');
    background-size: cover; background-position: center right; background-attachment: fixed;
}
html.gu-pub .gu-hero h1, html.gu-pub .gu-hero .gu-hero-lead { color: #fff; }
html.gu-pub .gu-hero .gu-hero-quote { color: #cbd5e1; }
html.gu-pub .gu-hero .gu-hero-sub { color: #e2e8f0; }
html.gu-pub .gu-hero .text-accent { color: #ff7b7b; }
html.gu-pub .gu-hero .gu-hero-ghost { border-color: rgb(255 255 255 / .45); color: #fff; background: rgb(10 10 22 / .55); }
html.gu-pub .gu-hero .gu-hero-ghost:hover { border-color: #fff; color: #fff; background: rgb(255 255 255 / .08); }
html.gu-pub .gu-hero .gu-hero-logo { filter: drop-shadow(0 18px 30px rgb(0 0 0 / .45)); }
html.gu-pub .gu-hero .gu-stats {
    background: rgb(15 15 30 / .62); border-color: rgb(255 255 255 / .14);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 20px 40px -20px rgb(0 0 0 / .6);
}
html.gu-pub .gu-hero .gu-stats .text-accent { color: #ffb3b3; }
html.gu-pub .gu-hero .gu-stats p + p { color: #cbd5e1; }
html.gu-pub .gu-hero .gu-target {
    display: block; position: absolute; z-index: -1; right: 4%; top: 18%; width: 120px; opacity: .9;
    filter: drop-shadow(0 12px 18px rgb(0 0 0 / .4)); pointer-events: none;
}

/* ---- Cards: lift + glass edge; cut-out 3D icons replace the lucide glyph when present ---- */
html.gu-pub .gu-card {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    box-shadow: 0 1px 2px rgb(15 23 42 / .04), 0 8px 24px -14px rgb(15 23 42 / .18);
}
html.gu-pub .gu-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(15 23 42 / .06), 0 18px 34px -16px rgb(196 42 71 / .35); }
html.gu-pub.dark .gu-card { box-shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 10px 28px -16px rgb(0 0 0 / .7); }
html.gu-pub .gu-tile { position: relative; background: radial-gradient(circle at 50% 40%, rgb(245 185 66 / .16), rgb(196 42 71 / .08) 70%); }
html.gu-pub .gu-tile:has(.gu-icon3d) > i, html.gu-pub .gu-tile:has(.gu-icon3d) > svg { display: none; }
html.gu-pub .gu-icon3d { display: block; width: 115%; height: 115%; object-fit: contain; filter: drop-shadow(0 6px 8px rgb(15 23 42 / .28)); transition: transform .25s ease; }
html.gu-pub .gu-card:hover .gu-icon3d { transform: translateY(-2px) scale(1.06) rotate(-3deg); }

/* Section eyebrows: a thin gold rule under the label. */
html.gu-pub .gu-eyebrow { position: relative; display: inline-block; margin-bottom: .45rem; }
html.gu-pub .gu-eyebrow::after { content: ''; position: absolute; left: 50%; top: calc(100% + .3rem); width: 2.5rem; height: 2px; margin-left: -1.25rem;
    border-radius: 2px; background: linear-gradient(90deg, #f5b942, var(--gu-accent)); }

/* Alternate sections get a faint warm wash so the page does not read as flat grey bands. */
html.gu-pub .gu-wash { background-image: radial-gradient(60rem 22rem at 85% 0%, rgb(245 185 66 / .07), transparent 70%), radial-gradient(50rem 20rem at 0% 100%, rgb(196 42 71 / .05), transparent 70%); }

/* ---- Home · CTA band: dark art behind a scrim ---- */
html.gu-pub .gu-cta {
    background-color: #0f0f1e;
    background-image: linear-gradient(180deg, rgb(10 10 22 / .78), rgb(10 10 22 / .88)), url('/assets/art/bg-home-cta.webp');
    background-size: cover; background-position: center; background-attachment: fixed;
}
html.gu-pub .gu-cta .text-gray-400 { color: #cbd5e1; }

/* ---- Get started · title band: gold steps art behind a scrim (both themes), ribbon bumper, clipboard cut-out ---- */
html.gu-pub .gu-band {
    --gu-band-art: url('/assets/art/bg-gs-band.webp');
    position: relative; isolation: isolate; overflow: hidden; padding-bottom: 4.5rem; background-color: #1a1a2e;
    background-image: radial-gradient(ellipse 27rem 10rem at 50% 55%, rgb(12 12 26 / .9), rgb(12 12 26 / .8) 50%, rgb(12 12 26 / .05) 100%),
                      var(--gu-band-art);
    background-size: cover; background-position: center 58%;
}
/* Contact: coral/gold ribbons on the right, paper plane over them. */
html.gu-pub .gu-band--contact {
    --gu-band-art: url('/assets/art/bg-ct-band.webp'); background-position: center right;
    background-image: linear-gradient(90deg, rgb(12 12 26 / .86) 0%, rgb(12 12 26 / .82) 55%, rgb(12 12 26 / .5) 82%, rgb(12 12 26 / .3) 100%), var(--gu-band-art);
}
html.gu-pub .gu-band--contact h1, html.gu-pub .gu-band--contact .gu-band-quote { display: table; margin-inline: auto; }
html.gu-pub .gu-band--contact .gu-band-icon { right: 7%; top: 30%; width: 120px; transform: rotate(-6deg); }
html.gu-pub .gu-band h1 { color: #fff; text-shadow: 0 2px 18px rgb(0 0 0 / .45); }
html.gu-pub .gu-band .gu-band-quote { color: #e2e8f0; }
html.gu-pub .gu-band .gu-band-icon {
    display: block; position: absolute; z-index: -1; right: 9%; top: 34%; width: 104px; height: auto; transform: rotate(8deg);
    filter: drop-shadow(0 14px 20px rgb(0 0 0 / .5)); pointer-events: none;
}
html.gu-pub .gu-band .gu-bump {
    display: block; position: absolute; left: 50%; bottom: .9rem; width: 150px; height: auto; margin-left: -75px; opacity: .92;
    filter: drop-shadow(0 6px 10px rgb(0 0 0 / .45)); pointer-events: none;
}

/* ---- Get started · funnel: paper backdrop, porcelain/crimson step medallions, lifted form card ---- */
html.gu-pub .gu-paper { background-color: #fbf7f1; background-image: url('/assets/art/bg-gs-paper-light.webp'); background-size: cover; background-position: center top; }
html.gu-pub.dark .gu-paper { background-color: #111827; background-image: url('/assets/art/bg-gs-paper-dark.webp'); }
/* Text sitting straight on the paper (contact) gets a wash over the art so body copy keeps AA. */
html.gu-pub .gu-paper--text { background-image: linear-gradient(rgb(251 247 241 / .72), rgb(251 247 241 / .72)), url('/assets/art/bg-gs-paper-light.webp'); }
html.gu-pub.dark .gu-paper--text { background-image: linear-gradient(rgb(17 24 39 / .86), rgb(17 24 39 / .86)), url('/assets/art/bg-gs-paper-dark.webp'); }
html.gu-pub .gu-paper .gu-progress-line { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #f5b942, var(--gu-accent)); opacity: .55; }
html.gu-pub .gu-paper .progress-step .progress-number {
    background: url('/assets/art/medal-step.webp') center / 112% no-repeat !important; color: #374151 !important;
    box-shadow: 0 6px 12px -6px rgb(15 23 42 / .45); width: 2.75rem; height: 2.75rem; margin-top: -.125rem;
}
html.gu-pub .gu-paper .progress-step.active .progress-number {
    background-image: url('/assets/art/medal-step-on.webp') !important; color: #fff !important;
    box-shadow: 0 0 0 4px rgb(245 185 66 / .28), 0 8px 16px -6px rgb(176 35 64 / .6); transform: scale(1.08);
}
html.gu-pub .gu-paper .progress-step.completed .progress-number { background: #047857 !important; color: #fff !important; }
html.gu-pub .gu-paper .progress-step > span + span { color: #374151; }
html.gu-pub.dark .gu-paper .progress-step > span + span { color: #d1d5db; }
html.gu-pub .gu-form {
    position: relative; border-color: rgb(196 42 71 / .18);
    box-shadow: 0 1px 2px rgb(15 23 42 / .05), 0 24px 48px -24px rgb(15 23 42 / .35);
}
html.gu-pub .gu-form::before { content: ''; position: absolute; left: 1.5rem; right: 1.5rem; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, #f5b942, var(--gu-accent), #f5b942); }
html.gu-pub.dark .gu-form { border-color: rgb(255 123 123 / .18); box-shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 24px 48px -24px rgb(0 0 0 / .8); }
html.gu-pub .gu-form button.bg-accent {
    background-color: #b3243f; background-image: linear-gradient(180deg, rgb(255 255 255 / .12), rgb(255 255 255 / 0) 55%);
    box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 6px 16px -6px rgb(196 42 71 / .65);
}
html.gu-pub .gu-form button.bg-accent:hover { background-color: var(--gu-accent-hover); }

/* ---- Privacy + terms (light touch): these pages carry no Tailwind classes, so the band and the reading column are styled here ---- */
html.gu-pub .gu-band--legal { --gu-band-art: url('/assets/art/bg-legal-band.webp'); padding-top: 7rem; text-align: center; }
html.gu-pub .gu-band--legal .gu-band-icon { right: 10%; top: 38%; width: 96px; transform: rotate(6deg); }
html.gu-pub .gu-band--legal .container, html.gu-pub .gu-paper .container { max-width: 52rem; margin-inline: auto; padding-inline: 1.5rem; }
html.gu-pub .gu-band--legal h1 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 2.25rem; line-height: 1.15; margin-bottom: 1rem; }
html.gu-pub .gu-band--legal .gu-band-quote { font-size: 1.2rem; font-style: italic; }
@media (min-width: 768px) { html.gu-pub .gu-band--legal h1 { font-size: 3rem; } }
html.gu-pub .section.gu-paper { padding: 3rem 0 5rem; }
html.gu-pub .gu-legal {
    background: rgb(255 255 255 / .82); border: 1px solid rgb(196 42 71 / .14); border-radius: .9rem; padding: 2rem 2.25rem 2.5rem;
    color: #374151; line-height: 1.75; box-shadow: 0 1px 2px rgb(15 23 42 / .05), 0 24px 48px -28px rgb(15 23 42 / .35);
}
html.gu-pub.dark .gu-legal { background: rgb(17 24 39 / .82); border-color: rgb(255 123 123 / .16); color: #d1d5db; box-shadow: 0 24px 48px -28px rgb(0 0 0 / .8); }
html.gu-pub .gu-legal h2 {
    font-family: 'Playfair Display', Georgia, serif; font-weight: 700; font-size: 1.45rem; line-height: 1.3; color: #111827;
    margin: 2.25rem 0 .6rem; padding-left: .85rem; border-left: 3px solid #f5b942;
}
html.gu-pub.dark .gu-legal h2 { color: #fff; }
html.gu-pub .gu-legal > p:first-child { font-size: .9rem; color: #4b5563; }
html.gu-pub.dark .gu-legal > p:first-child { color: #9ca3af; }
html.gu-pub .gu-legal strong { color: inherit; font-weight: 600; }
html.gu-pub .gu-legal p { margin-bottom: .75rem; }
html.gu-pub .gu-legal ul { list-style: disc; padding-left: 1.5rem; margin: .25rem 0 1rem; }
html.gu-pub .gu-legal li { margin: .3rem 0; }
html.gu-pub .gu-legal li::marker { color: var(--gu-accent-text); }
html.gu-pub .gu-legal a { color: var(--gu-accent-text); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 768px) { html.gu-pub .gu-legal { padding: 1.5rem 1.25rem 2rem; } }

/* ---- Portal login (templates/portal/login.php: standalone, dark only, scope html.gu-login): backdrop behind a scrim, glass card, key cut-out ---- */
html.gu-login body {
    background-color: #0f172a;
    background-image: radial-gradient(ellipse 34rem 30rem at 50% 45%, rgb(10 14 30 / .82), rgb(10 14 30 / .55) 70%, rgb(10 14 30 / .35)), url('/assets/art/bg-login.webp');
    background-size: cover; background-position: center bottom; background-attachment: fixed;
}
html.gu-login .gu-login-card {
    position: relative; background: rgb(22 30 50 / .72); border-color: rgb(245 185 66 / .22);
    backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
    box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 30px 60px -30px rgb(0 0 0 / .85);
}
html.gu-login .gu-login-card::before { content: ''; position: absolute; left: 1.5rem; right: 1.5rem; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, #f5b942, #c42a47, #f5b942); }
html.gu-login .gu-login-key {
    display: block; position: absolute; right: -1.6rem; top: -2.2rem; width: 80px; height: auto; transform: rotate(14deg);
    filter: drop-shadow(0 10px 14px rgb(0 0 0 / .55)); pointer-events: none;
}
html.gu-login .gu-login-mark { box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 10px 24px -8px rgb(196 42 71 / .7); }
html.gu-login .gu-login-muted { color: #a3b1c6; }
/* White on the old coral→salmon gradient is 2.8–3.7:1: deepen it (same hue family). */
html.gu-login .gu-login-btn {
    background-color: #b3243f; background-image: linear-gradient(90deg, #b3243f, #c42a47) !important; transition: box-shadow .15s ease;
    box-shadow: 0 1px 0 rgb(255 255 255 / .22) inset, 0 8px 18px -8px rgb(196 42 71 / .7);
}
html.gu-login .gu-login-btn:hover { background-image: linear-gradient(90deg, #a8213b, #b3243f) !important; }
@media (max-width: 768px) {
    html.gu-login body { background-attachment: scroll; }
    html.gu-login .gu-login-key { right: -.5rem; top: -2rem; width: 64px; }
}
@media (prefers-reduced-motion: reduce) { html.gu-login body { background-attachment: scroll; } }

/* ---- 404 (templates/errors/404.php: standalone, no styles before; scope html.gu-404): login backdrop, glass card, pin cut-out ---- */
html.gu-404 body {
    margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; box-sizing: border-box;
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #f1f5f9; background-color: #0f172a;
    background-image: radial-gradient(ellipse 34rem 30rem at 50% 45%, rgb(10 14 30 / .82), rgb(10 14 30 / .55) 70%, rgb(10 14 30 / .35)), url('/assets/art/bg-login.webp');
    background-size: cover; background-position: center bottom; background-attachment: fixed;
}
html.gu-404 .error-container {
    position: relative; width: 100%; max-width: 28rem; box-sizing: border-box; padding: 2.5rem 2rem 2.25rem; text-align: center;
    background: rgb(22 30 50 / .72); border: 1px solid rgb(245 185 66 / .22); border-radius: 1rem;
    backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
    box-shadow: 0 1px 0 rgb(255 255 255 / .06) inset, 0 30px 60px -30px rgb(0 0 0 / .85);
}
html.gu-404 .error-container::before { content: ''; position: absolute; left: 1.5rem; right: 1.5rem; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, #f5b942, #c42a47, #f5b942); }
html.gu-404 .gu-404-pin {
    position: absolute; right: -1.1rem; top: -2.6rem; width: 66px; height: auto; transform: rotate(10deg);
    filter: drop-shadow(0 10px 14px rgb(0 0 0 / .55)); pointer-events: none;
}
html.gu-404 h1 {
    margin: 0 0 .75rem; font-size: 4.5rem; line-height: 1; font-weight: 800; letter-spacing: -.02em;
    color: #f5b942; text-shadow: 0 2px 0 rgb(196 42 71 / .55), 0 12px 28px rgb(0 0 0 / .5);
}
html.gu-404 .error-quote { margin: 0 0 1rem; font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-size: 1.15rem; color: #fcd581; }
html.gu-404 p { margin: 0 0 1.75rem; line-height: 1.55; color: #cbd5e1; }
html.gu-404 .btn {
    display: inline-block; padding: .75rem 1.5rem; border-radius: .6rem; font-weight: 600; color: #fff; text-decoration: none;
    background-color: #b3243f; background-image: linear-gradient(90deg, #b3243f, #c42a47);
    box-shadow: 0 1px 0 rgb(255 255 255 / .22) inset, 0 8px 18px -8px rgb(196 42 71 / .7); transition: box-shadow .15s ease;
}
html.gu-404 .btn:hover { background-image: linear-gradient(90deg, #a8213b, #b3243f); }
html.gu-404 .btn:focus-visible { outline: 2px solid #f5b942; outline-offset: 3px; }
@media (max-width: 768px) {
    html.gu-404 body { background-attachment: scroll; }
    html.gu-404 .gu-404-pin { right: -.4rem; top: -2.2rem; width: 52px; }
    html.gu-404 h1 { font-size: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) { html.gu-404 body { background-attachment: scroll; } }

/* ---- Contact: muted footnote readable in dark (gray-500 on gray-800 is 3.0:1) ---- */
html.gu-pub.dark .gu-muted { color: #9ca3af; }

/* Motion + small screens: no fixed-attachment parallax, no hover lifts. */
@media (max-width: 768px) {
    html.gu-pub .gu-hero, html.gu-pub .gu-cta { background-attachment: scroll; }
    html.gu-pub .gu-band { background-image: linear-gradient(180deg, rgb(12 12 26 / .84), rgb(12 12 26 / .78)), var(--gu-band-art); }
    html.gu-pub .gu-band .gu-band-icon { display: none; }
    /* Text spans the full width here, so the ribbons sit behind it: one even, stronger scrim. */
    html.gu-pub .gu-hero { background-image: linear-gradient(180deg, rgb(15 15 30 / .88), rgb(22 33 62 / .82)), url('/assets/art/bg-home-hero.webp'); background-position: 70% center; }
    html.gu-pub .gu-hero .gu-target { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html.gu-pub .gu-hero, html.gu-pub .gu-cta { background-attachment: scroll; }
    html.gu-pub .gu-paper .progress-step.active .progress-number { transform: none; }
    html.gu-pub .gu-card, html.gu-pub .gu-icon3d, html.gu-pub a.bg-accent { transition: none; }
    html.gu-pub .gu-card:hover, html.gu-pub .gu-card:hover .gu-icon3d, html.gu-pub a.bg-accent:hover { transform: none; }
}
