/* ==========================================================================
   GreenBucks Digital — public pages (home / about / terms / legal)
   Loaded by resources/views/layouts/public.blade.php
   ========================================================================== */

:root {
    --green: #1f9d55;
    --green-dark: #157a41;
    --gold: #c99a2e;
    --ink: #1f2430;
    --muted: #6b7280;
    --faint: #9ca3af;
    --line: #ece7dd;
    --paper: #fbf8f2;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }

body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    /* Full-width, proportional-height page background — fixed, anchored bottom */
    background: #FED8A5 url('/assets/images/bg-main.jpg') no-repeat center bottom fixed;
    background-size: 100% auto;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Main content wrapper — grows to push the footer down ── */
.gb {
    flex: 1 0 auto;
    width: 100%;
    max-width: 68rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 7rem; /* extra bottom clears the fixed footer */
}

/* ── Brand ── */
.gb__brand {
    text-align: center;
    margin-bottom: 2.75rem;
}
.gb__brand img {
    height: 2.5rem;
    width: auto;
}

/* ── Prose (About / Terms / Legal) ── */
.gb-prose { max-width: 46rem; margin: 0 auto; }
.gb-prose h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 0.75rem;
    text-align: center;
}
.gb-prose h2 {
    font-size: 1.1875rem;
    font-weight: 700;
    color: var(--ink);
    margin: 2rem 0 0.6rem;
    text-align: center;
}
.gb-prose p, .gb-prose li {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--muted);
}
.gb-prose p + p { margin-top: 0.85rem; }
.gb-prose ul { margin: 0.5rem 0 0 1.25rem; }
.gb-prose li { margin-bottom: 0.4rem; }
.gb-prose strong { color: var(--ink); font-weight: 600; }
.gb-prose a { color: var(--green-dark); }
.gb-prose .gb-lede { font-size: 1.0625rem; line-height: 1.7; color: var(--ink); }
.gb-prose .gb-updated { font-size: 0.8125rem; color: var(--faint); margin: 0.5rem 0 2rem; }
.gb-prose .gb-note {
    margin-top: 2.25rem;
    padding: 1rem 1.25rem;
    background: var(--paper);
    border: 0.0625rem solid var(--line);
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--muted);
}

/* ── Hero (home) ── */
.gb__hero {
    text-align: center;
    max-width: 46rem;
    margin: 0 auto 3rem;
}
.gb__title {
    font-size: clamp(2.5rem, 6.5vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.02;
    color: var(--ink);
}
.gb__subtitle {
    margin: 1.25rem auto 0;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    font-weight: 400;
    color: var(--muted);
    max-width: 34rem;
}

/* ── Connected platforms (home) ── */
.gb__platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
}
.gb__platform {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    width: 11.5rem;
    text-decoration: none;
}
.gb__platform--live { cursor: pointer; }
.gb__platform--soon { cursor: default; }

.gb__tile {
    width: 9rem;
    height: 9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 1.1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(31, 36, 48, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gb__tile img { max-width: 74%; max-height: 74%; width: auto; height: auto; }
.gb__platform--live:hover .gb__tile {
    transform: translateY(-0.3rem);
    box-shadow: 0 0.85rem 2rem rgba(31, 157, 85, 0.18);
}
.gb__platform--soon:hover .gb__tile {
    transform: translateY(-0.3rem);
    box-shadow: 0 0.85rem 2rem rgba(31, 36, 48, 0.12);
}

.gb__desc {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--muted);
    text-align: center;
    min-height: 2.9rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.gb__desc-hover { display: none; font-weight: 600; }
.gb__platform:hover .gb__desc-default { display: none; }
.gb__platform:hover .gb__desc-hover { display: inline; }
.gb__platform--live:hover .gb__desc-hover { color: var(--green-dark); }
.gb__platform--soon:hover .gb__desc-hover { color: var(--faint); }

/* ── Footer (sticky to bottom) ── */
.gb__footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    border-top: 0.0625rem solid var(--line);
    background: #ffffff;
}
.gb__footer-inner {
    max-width: 68rem;
    margin: 0 auto;
    padding: 0.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.gb__footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.gb__footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
}
.gb__footer-links a:hover { color: var(--green-dark); }
.gb__footer-dot { color: var(--faint); }
.gb__footer-copy {
    font-size: 0.75rem;
    color: var(--faint);
    text-align: center;
}

/* ── Responsive ── */
@media (max-width: 40rem) {
    .gb { padding: 2rem 1.25rem 7rem; }
}
