/*
 * The site's header and footer, shared by every page that isn't the app.
 *
 * Lifted out of home.blade.php so the landing page, a shared tour and Explore
 * all wear the same chrome. Colours are literal rather than var()-based on
 * purpose: the share page runs its own palette under these same names, and the
 * chrome must not change colour depending on which page it lands on.
 */

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 0;
    font-family: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, sans-serif;
}
.brand {
    display: flex; align-items: center; gap: 12px;
    font-weight: 800; letter-spacing: -0.01em;
    color: #2E5A45; text-decoration: none; font-size: 28px;
}
.brand:hover { color: #2E5A45; text-decoration: none; }
.brand img { width: 54px; height: 54px; }
.top nav a { text-decoration: none; font-weight: 600; font-size: 15px; margin-left: 20px; color: #6B6F68; }
.top nav a:hover { color: #2E5A45; text-decoration: none; }

/* Burger + right-hand drawer, shown only on narrow screens (see the 760px
   query below). Five nav links plus the wordmark stop fitting one line there. */
.burger {
    display: none; width: 44px; height: 44px; padding: 0;
    border: 1px solid #E4E4DF; border-radius: 12px; background: transparent;
    cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: #2E5A45; transition: transform .25s ease, opacity .2s ease; }
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer-close { display: none; }
.scrim { display: none; }

/* ---- store buttons ---- */
.stores { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 13px 22px 13px 17px; border-radius: 999px;
    text-decoration: none; line-height: 1.15;
    font-family: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, sans-serif;
}
.store:hover { text-decoration: none; }
.store .glyph { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; }
.store strong { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.store.play { background: #2E5A45; color: #fff; box-shadow: 0 6px 18px rgba(46, 90, 69, 0.28); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.store.play:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(46, 90, 69, 0.32); color: #fff; }
.store.apple { background: #1C1F1B; color: #fff; box-shadow: 0 6px 18px rgba(20, 28, 38, 0.26); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.store.apple:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(20, 28, 38, 0.3); color: #fff; }

/* ---- footer pocket ---- */
.pocket {
    background: #22412F; color: #E9EFE9;
    border-radius: 34px 34px 0 0; position: relative;
    font-family: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.55;
}
.pocket::before {
    content: ""; position: absolute; inset: 14px 14px 0 14px;
    border: 2px dashed rgba(255, 255, 255, 0.28);
    border-bottom: none; border-radius: 24px 24px 0 0;
    pointer-events: none;
}
.pocket-in { max-width: 720px; margin: 0 auto; padding: 64px 24px 40px; text-align: center; }
.pocket h2 { font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; color: #E9EFE9; letter-spacing: 0; }
.pocket p { color: #BCCDBF; margin: 0 0 28px; font-size: 17px; }
.pocket .store.play { background: #fff; color: #22412F; box-shadow: none; }
.pocket .store.apple { border-color: rgba(255, 255, 255, 0.35); color: #A9BCAD; }
.pocket .stores { justify-content: center; }
.pocket footer { margin-top: 46px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 13.5px; color: #93A797; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; background: none; }
.pocket footer a { color: #BCCDBF; text-decoration: none; }
.pocket footer a:hover { color: #BCCDBF; text-decoration: underline; }
.pocket .made-by { margin-top: 14px; text-align: center; font-size: 13px; color: #93A797; }
.pocket .made-by a { color: #BCCDBF; text-decoration: none; }
.pocket .made-by a:hover { color: #BCCDBF; text-decoration: underline; }
.pocket .made-by .heart { color: #FF4D4D; }

@media (max-width: 760px) {
    /* Logo only — the wordmark stays in the accessible name, off the screen. */
    .brand span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .brand img { width: 46px; height: 46px; }
    .top { padding-top: 16px; }
    .burger { display: flex; }

    .top nav {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
        width: min(80vw, 320px);
        display: flex; flex-direction: column; align-items: stretch;
        padding: 76px 24px 32px;
        background: #FCFCFB;
        border-left: 1px solid #E4E4DF;
        box-shadow: -22px 0 48px rgba(28, 31, 27, 0.14);
        overflow-y: auto; overscroll-behavior: contain;
        /* visibility keeps the off-screen links out of the tab order */
        visibility: hidden; transform: translateX(100%);
        transition: transform .28s ease, visibility .28s;
    }
    body.nav-open .top nav { visibility: visible; transform: none; }
    .top nav a { margin-left: 0; font-size: 17px; color: #1C1F1B; padding: 15px 2px; border-bottom: 1px solid #E4E4DF; }
    .top nav a:last-child { border-bottom: 0; }

    .drawer-close { display: block; position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; padding: 0; border: 1px solid #E4E4DF; border-radius: 12px; background: #FCFCFB; color: #2E5A45; font-size: 24px; line-height: 1; cursor: pointer; }

    .scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(28, 31, 27, 0.44); opacity: 0; pointer-events: none; transition: opacity .28s ease; }
    body.nav-open .scrim { opacity: 1; pointer-events: auto; }
    body.nav-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
    .top nav, .scrim, .burger span { transition: none; }
}

/* ---- shared pill link (Explore CTAs) ---- */
.pill-link {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 999px;
    border: 1px solid #2E5A45; background: transparent; color: #2E5A45;
    font-family: "Hanken Grotesk", -apple-system, "Segoe UI", Roboto, sans-serif;
    font-weight: 700; font-size: 15px; line-height: 1;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.pill-link:hover { background: #2E5A45; color: #fff; text-decoration: none; }
.pill-link svg { width: 15px; height: 15px; fill: currentColor; }
