/* ============================================================
   Treasure Hunt Explore — site stylesheet
   Playful-illustrated design system: warm cream + amber primary
   + forest-green secondary, rounded "Fredoka" display type,
   framed art cards, parchment textures, scrim image cards.
   Pure CSS, grid + flex — no framework.
   ============================================================ */

:root {
    /* Amber primary (app M3 seed Colors.amber ~= #FFC107) */
    --amber-50:  #fff8e1;
    --amber-100: #ffecb3;
    --amber-200: #ffe082;
    --amber-300: #ffd54f;
    --amber-400: #ffca28;
    --amber-500: #ffc107;
    --amber-600: #ffb300;
    --amber-700: #ffa000;
    --amber-800: #ff8f00;
    --amber-900: #ff6f00;

    /* Forest green secondary (banner trees / app semantic green) */
    --green-50:  #e8f5e9;
    --green-100: #c8e6c9;
    --green-300: #81c784;
    --green-500: #4caf50;
    --green-700: #2e7d32;
    --green-900: #1b5e20;

    /* Warm neutrals */
    --bg:        #fdfaf3;          /* warm off-white */
    --bg-card:   #ffffff;
    --bg-alt:    #fbf2dc;          /* tinted panel */
    --ink-900:   #1f2937;
    --ink-700:   #374151;
    --ink-600:   #4b5563;
    --ink-500:   #6b7280;
    --ink-400:   #9ca3af;
    --border:    #ead9b3;
    --border-soft: #f0e3c5;
    --shadow-sm: 0 1px 2px rgba(31, 41, 55, 0.05);
    --shadow-md: 0 6px 18px rgba(31, 41, 55, 0.08);
    --shadow-lg: 0 18px 40px rgba(31, 41, 55, 0.14);

    --radius-sm: 8px;
    --radius:    16px;
    --radius-lg: 24px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Fredoka', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --max-w: 1120px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink-700);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: var(--amber-800);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: var(--amber-900); text-decoration: underline; }

h1, h2, h3, h4, h5 {
    color: var(--ink-900);
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.18;
    margin: 0 0 .5em;
    letter-spacing: .005em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.25em; }
li { margin-bottom: .35em; }

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

img { max-width: 100%; height: auto; display: block; }

button {
    font: inherit;
    cursor: pointer;
}

hr {
    border: 0;
    height: 1px;
    background: var(--border-soft);
    margin: 3rem 0;
}

/* ====== Layout shell ====== */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 250, 243, 0.92);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--border-soft);
}

.site-header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: .8rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none !important;
    color: var(--ink-900) !important;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
}
.brand-mark {
    width: 38px; height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}
.brand .brand-sub {
    color: var(--green-700);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .4rem .55rem;
    color: var(--ink-700);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
}
.site-nav a {
    color: var(--ink-700);
    padding: .5rem .85rem;
    border-radius: 999px;
    font-weight: 500;
    font-size: .95rem;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.site-nav a:hover {
    background: var(--amber-50);
    color: var(--amber-900);
    text-decoration: none;
}
.site-nav a.active {
    background: var(--amber-100);
    color: var(--amber-900);
}

.cta-nav {
    background: var(--amber-700);
    color: #fff !important;
    padding: .55rem 1.1rem !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    box-shadow: var(--shadow-sm);
}
.cta-nav:hover { background: var(--amber-800) !important; color: #fff !important; }

/* 1120px (was 990, before that 880): each extra nav item pushes the point
   where the row wraps to two lines — Store made eight items (880 → 990),
   Plans makes nine (990 → 1120, the container width), so the drawer takes
   over as soon as the row could wrap. */
@media (max-width: 1120px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border-soft);
        padding: .5rem 1rem 1rem;
        box-shadow: var(--shadow-md);
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: .75rem 1rem; border-radius: var(--radius-sm); }
    .cta-nav { text-align: center; margin-top: .5rem; }
}

main.site-main {
    flex: 1;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ====== Hero ====== */

.hero {
    position: relative;
    padding: 4.5rem 1.5rem 4rem;
    overflow: hidden;
    /* Treasure-map tile as the base wallpaper, washed with the warm hero
       gradients (~90% opacity) so the map shows through as a subtle texture
       without fighting the headline or the cards. */
    background:
        radial-gradient(1100px 560px at 85% -10%, rgba(255, 193, 7, 0.28), transparent 60%),
        radial-gradient(800px 480px at -10% 110%, rgba(76, 175, 80, 0.14), transparent 60%),
        linear-gradient(180deg, rgba(255, 248, 231, 0.90) 0%, rgba(253, 250, 243, 0.92) 100%),
        url('../img/tile_texture.jpg') center / 420px repeat;
}
.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem;
    align-items: center;
}
/* Left column: headline stacked above the media composition; right column
   (.hero-side) carries the lead, badges and CTA. The eyebrow pill floats
   at the hero's top-right corner on desktop. */
.hero-inner { position: relative; }
.hero-main .hero-media { margin-top: 1.75rem; }
.hero-side { align-self: center; }
.hero-eyebrow {
    position: absolute;
    top: .25rem;
    right: 0;
    margin: 0;
    z-index: 3;
}
@media (max-width: 880px) {
    .hero-eyebrow {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }
}
.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    margin-bottom: 1rem;
}
.hero h1 .accent { color: var(--amber-800); }
.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 600;
    color: var(--amber-900);
    background: var(--amber-100);
    padding: .35rem .8rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}
.eyebrow.green {
    color: var(--green-900);
    background: var(--green-100);
}
.hero .lead {
    font-size: 1.2rem;
    color: var(--ink-600);
    max-width: 540px;
    margin-bottom: 1.75rem;
}
.lead-justify {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}
.lead-highlight {
    color: var(--ink-900);
    font-weight: 700;
    background: linear-gradient(transparent 62%, var(--amber-200) 62%);
    border-radius: 2px;
    padding: 0 .1em;
}

/* Framed art card — white border, soft tilt, big shadow */
.hero-art {
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--amber-50);
    transform: rotate(-2deg);
    border: 6px solid #fff;
    transition: transform .25s ease;
}
.hero-art:hover { transform: rotate(-.5deg) scale(1.01); }
.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.art-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid #fff;
    background: var(--amber-50);
}
.art-frame img { width: 100%; display: block; }

/* Lightbox — zoomed artwork in a native <dialog> */
.hero-art[role="button"] { cursor: zoom-in; }
.lightbox {
    border: none;
    padding: 0;
    background: transparent;
    max-width: none;
    max-height: none;
    outline: none;
}
.lightbox::backdrop {
    background: rgba(20, 24, 18, 0.82);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.lightbox img {
    width: min(92vw, 88vh);
    height: min(92vw, 88vh);
    object-fit: contain;
    display: block;
    border-radius: var(--radius-lg);
    border: 6px solid #fff;
    box-shadow: var(--shadow-lg);
    cursor: zoom-out;
}

@media (max-width: 880px) {
    .hero { padding: 3rem 1.5rem 3.5rem; }
    .hero-inner { grid-template-columns: 1fr; gap: 2.25rem; }
    .hero-media { max-width: 380px; margin: 1.75rem auto 0; }
    .hero-art { transform: none; }
}

/* ====== Hero media composition (banner + floating promo video) ====== */

.hero-media { position: relative; }
/* Fanned-cards composition: banner anchored top-left, video bottom-right,
   with only a slim overlap so both stay fully readable. */
.hero-media .hero-art { width: 68%; margin: 0 auto 0 0; }
.hero-video {
    position: absolute;
    right: 0;
    bottom: -2.5rem;
    width: 50%;
    aspect-ratio: 9 / 16;
    border-radius: 18px;
    overflow: hidden;
    border: 5px solid #fff;
    background: #1c2418;
    box-shadow: var(--shadow-lg);
    transform: rotate(2.5deg);
    transition: transform .25s ease;
    z-index: 2;
}
.hero-video:hover,
.hero-video:focus-within { transform: rotate(0deg) scale(1.02); }
.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Fullscreen: never crop — letterbox the portrait video on landscape screens. */
.hero-video video:fullscreen { object-fit: contain; background: #000; }
.hero-video video:-webkit-full-screen { object-fit: contain; background: #000; }

/* ====== Buttons ====== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    text-decoration: none !important;
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
    box-shadow: var(--shadow-sm);
}
.btn-primary {
    background: var(--amber-700);
    color: #fff !important;
}
.btn-primary:hover {
    background: var(--amber-800);
    transform: translateY(-1px) scale(1.02);
    box-shadow: var(--shadow-md);
}
.btn-green {
    background: var(--green-700);
    color: #fff !important;
}
.btn-green:hover {
    background: var(--green-900);
    transform: translateY(-1px) scale(1.02);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background: #fff;
    color: var(--ink-900) !important;
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--amber-600);
    color: var(--amber-900) !important;
    transform: translateY(-1px);
}
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

/* ====== Store badges (official SVG artwork) ====== */

.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .9rem;
}
.store-badge {
    display: inline-block;
    line-height: 0;
    border-radius: 8px;
    transition: transform .12s ease, box-shadow .15s ease;
}
.store-badge img { height: 54px; width: auto; }
a.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.badges-note {
    width: 100%;
    margin: .25rem 0 0;
    font-size: .9rem;
    font-weight: 600;
    color: var(--green-700);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.badges-note::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green-500);
    box-shadow: 0 0 0 3px var(--green-100);
}
.store-badges.center-badges { justify-content: center; }

/* Beta pill: "available now, in testing" — solid border, unlike the dashed
   .soon-badge which means "not out yet". */
.beta-pill {
    display: inline-block;
    background: var(--green-50);
    color: var(--green-900);
    padding: .55rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    border: 1px solid var(--green-300);
    margin-top: 1rem;
}
.store-badges.center-badges .badges-note { justify-content: center; }

/* ====== Sections ====== */

.section {
    padding: 4.5rem 0;
}
.section-tight { padding: 3rem 0; }
.section-alt {
    background:
        linear-gradient(rgba(251, 242, 220, 0.92), rgba(251, 242, 220, 0.92)),
        url('../img/tile_texture.jpg') center / 420px repeat;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}
.section-green {
    background:
        radial-gradient(900px 500px at 110% -20%, rgba(255, 193, 7, 0.15), transparent 55%),
        linear-gradient(180deg, #eef7ee 0%, #f6faf3 100%);
    border-top: 1px solid #dcead8;
    border-bottom: 1px solid #dcead8;
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem;
}
.section-head .eyebrow { margin-bottom: .9rem; }
.section-head h2 { margin-bottom: .75rem; }
.section-head p {
    color: var(--ink-600);
    font-size: 1.1rem;
}

/* ====== Cards ====== */

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--amber-200);
}
.card-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--amber-50);
    border: 2px solid var(--amber-100);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.card-icon img { width: 38px; height: 38px; object-fit: contain; }
.card-icon.green { background: var(--green-50); border-color: var(--green-100); }
.card h3 { color: var(--ink-900); margin-bottom: .35rem; }
.card p { color: var(--ink-600); margin-bottom: 0; }
.card .card-more { display: inline-block; margin-top: .8rem; font-weight: 600; }

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--amber-200);
}
.feature-card .feature-mark {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--amber-100);
    color: var(--amber-900);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}
.feature-card .feature-mark img { width: 28px; height: 28px; object-fit: contain; }
.feature-card h4 { color: var(--ink-900); margin-bottom: .25rem; }
.feature-card p { color: var(--ink-600); font-size: .96rem; margin-bottom: 0; }

/* Pill chips — echo the app's home-feed chips */
.pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #fff;
    border: 1px solid var(--border-soft);
    color: var(--ink-700);
    font-size: .85rem;
    font-weight: 600;
    padding: .35rem .8rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.pill img { width: 18px; height: 18px; object-fit: contain; }

/* ====== Steps (numbered trail) ====== */

.steps {
    counter-reset: step;
    display: grid;
    gap: 1.75rem 1.5rem;
}
.steps-flow {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.step {
    background: var(--bg-card);
    border: 1.5px dashed var(--amber-300);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem 1.4rem;
    position: relative;
    transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.step:hover {
    border-color: var(--amber-600);
    border-style: solid;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: -18px;
    left: 16px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--amber-700);
    border: 3px solid #fff;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    box-shadow: var(--shadow-md);
}
.step h3 { margin-top: .35rem; color: var(--ink-900); font-size: 1.12rem; }
.step p { color: var(--ink-600); font-size: .95rem; margin-bottom: 0; }
.step .step-icon {
    width: 34px; height: 34px;
    object-fit: contain;
    position: absolute;
    top: 1.1rem; right: 1.1rem;
    opacity: .9;
}

/* ====== Scrim image cards (app home-feed idiom) ====== */

.scrim-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-soft);
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    transition: transform .15s ease, box-shadow .15s ease;
}
.scrim-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.scrim-card > img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.scrim-card .scrim {
    position: relative;
    width: 100%;
    padding: 2.25rem 1.5rem 1.4rem;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.72) 78%);
    color: #fff;
}
.scrim-card .scrim h3, .scrim-card .scrim h4 { color: #fff; margin-bottom: .3rem; }
.scrim-card .scrim p { color: rgba(255,255,255,.88); font-size: .95rem; margin: 0; }
.scrim-card .scrim .price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--amber-300);
    margin-bottom: .3rem;
    display: block;
}
.scrim-card .tier-tag {
    position: absolute;
    top: 1rem; left: 1rem;
    background: rgba(255,255,255,.92);
    color: var(--ink-900);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .3rem .7rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

/* ====== Map type cards ====== */

.maptype {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .15s ease, box-shadow .15s ease;
}
.maptype:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.maptype-art {
    background:
        radial-gradient(400px 200px at 50% 0%, rgba(255, 193, 7, 0.18), transparent 70%),
        var(--amber-50);
    padding: 1.75rem;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.maptype-art svg { width: 100%; height: 100%; max-height: 260px; }
.maptype-art img { max-height: 200px; width: auto; object-fit: contain; }
.maptype-body { padding: 1.5rem; }
.maptype-body h3 { margin-bottom: .5rem; }
.maptype-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    background: var(--amber-100);
    color: var(--amber-900);
    padding: .25rem .65rem;
    border-radius: 999px;
    margin-bottom: .75rem;
}
.maptype-body p { color: var(--ink-600); margin-bottom: 0; }

/* SVG diagram styling */
.diagram .node { fill: #fff; stroke: var(--amber-700); stroke-width: 2; }
.diagram .node-start { fill: var(--amber-200); }
.diagram .node-end   { fill: #d1fae5; stroke: #047857; }
.diagram text { font-family: var(--font-sans); font-size: 11px; fill: var(--ink-900); font-weight: 600; text-anchor: middle; dominant-baseline: middle; }
.diagram .edge { stroke: var(--amber-800); stroke-width: 2; fill: none; }
.diagram .edge-dashed { stroke-dasharray: 4 3; }

/* ====== FAQ accordion (native details/summary) ====== */

.faq {
    max-width: 780px;
    margin: 0 auto;
    display: grid;
    gap: .75rem;
}
.faq details {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--amber-300); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--ink-900);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--amber-800);
    transition: transform .2s ease;
    line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-body {
    padding: 0 1.5rem 1.25rem;
    color: var(--ink-600);
}
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ====== Download page ====== */

.download-hero {
    text-align: center;
    padding: 4rem 1.5rem 2rem;
}
.download-hero h1 { margin-bottom: .5rem; }
.download-hero p { color: var(--ink-600); font-size: 1.15rem; max-width: 640px; margin: 0 auto 2rem; }

.download-cards {
    max-width: 760px;
    margin: 2rem auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
@media (max-width: 640px) {
    .download-cards { grid-template-columns: 1fr; }
}
.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.download-card .platform {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink-900);
    font-size: 1.15rem;
    margin-bottom: .25rem;
}
.download-card .platform-sub {
    color: var(--ink-500);
    font-size: .9rem;
    margin-bottom: 1.25rem;
}
.download-card .store-badge { display: inline-block; }
.download-card .soon-badge,
.product-card .soon-badge {
    display: inline-block;
    background: var(--green-50);
    color: var(--green-900);
    padding: .55rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .9rem;
    border: 1px dashed var(--green-300);
    margin-top: 1rem;
}

/* ====== Store / product cards ====== */

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
/* White art panel: the product photos are white-background renders, so a
   tinted panel would show them inside a hard white box. */
.product-art {
    position: relative;
    background: #fff;
    border-bottom: 1px solid var(--border-soft);
    padding: 1.75rem;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-art img { max-height: 260px; max-width: 100%; object-fit: contain; }
.product-tag {
    position: absolute;
    top: 1rem; left: 1rem;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    background: var(--amber-100);
    color: var(--amber-900);
    padding: .25rem .65rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}
.product-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-body h3 { margin-bottom: .35rem; }
.product-body > p { color: var(--ink-600); margin-bottom: .85rem; }
.product-bullets {
    margin: 0 0 1.25rem;
    padding-left: 1.15rem;
    color: var(--ink-600);
    font-size: .95rem;
    display: grid;
    gap: .35rem;
}
.product-bullets li::marker { color: var(--amber-700); }
.product-cta { margin-top: auto; }
.product-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}
.product-cta .muted { margin-top: .5rem; }

/* Store: "Use ours, or bring your own", one buying-guide card per marker
   type. The labels name where a marker comes from. */
.mguide {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}
.mguide-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.mguide-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .2rem; }
.mguide-head img { width: 44px; height: 44px; object-fit: contain; }
.mguide-head h3 { margin: 0; font-size: 1.3rem; }
.mguide-use { color: var(--ink-500); font-size: .92rem; margin: 0 0 1rem; }
.mguide-ways { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.mguide-ways li {
    margin: 0;
    display: grid;
    justify-items: start;
    gap: .3rem;
    padding-top: .9rem;
    border-top: 1px solid var(--border-soft);
}
.mguide-ways li:first-child { border-top: 0; padding-top: 0; }
.mguide-ways p { margin: 0; color: var(--ink-600); font-size: .94rem; }
.mguide-ways strong { color: var(--ink-900); }
.mguide-ways a { font-weight: 600; }
.mguide-soon { color: var(--ink-500); font-style: italic; }
.src-label {
    display: inline-block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: .12rem .5rem;
    border-radius: 999px;
    white-space: nowrap;
}
.src-official { background: var(--amber-100); color: var(--amber-900); }
.src-recommended { background: var(--green-100); color: var(--green-900); }
.src-any, .src-tip { background: #eef2f7; color: #334155; }
.src-diy { background: #f3e8ff; color: #6b21a8; }
.mguide-models {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    width: 100%;
    margin-top: .2rem;
}
/* Two classes, to outrank ".mguide-ways a" (amber, bold) without !important. */
.mguide-ways .mguide-model {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: .5rem .35rem .45rem;
    font-size: .74rem;
    line-height: 1.25;
    color: var(--ink-600);
    font-weight: 400;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.mguide-model:hover { border-color: var(--amber-300); box-shadow: var(--shadow-sm); text-decoration: none; }
.mguide-model img { width: 100%; max-width: 72px; aspect-ratio: 1; object-fit: contain; margin-bottom: .3rem; }
.mguide-model strong { color: var(--ink-900); font-size: .78rem; overflow-wrap: anywhere; }
.mguide-foot { text-align: center; color: var(--ink-600); max-width: 720px; margin: 1.75rem auto .5rem; }

@media (max-width: 960px) {
    .mguide { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* ====== Privacy / long-form prose ====== */

.prose {
    max-width: 760px;
    margin: 0 auto;
}
.prose h2 { margin-top: 2.5rem; margin-bottom: .75rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose p, .prose li { color: var(--ink-700); }
.prose .updated {
    color: var(--ink-500);
    font-size: .9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-soft);
}

/* ====== Contact ====== */
.contact-card {
    max-width: 560px;
    margin: 2rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

/* ====== Social links (SocialLinks.razor): footer list + Contact buttons ====== */
.social { list-style: none; margin: 0; padding: 0; }
.social li { margin: 0; }
.social-link { display: inline-flex; align-items: center; gap: .55rem; }
.social-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.site-footer .social li { margin-bottom: .4rem; }

.social-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: 1.25rem;
    text-align: left;
}
.social-buttons .social-link {
    display: flex;
    gap: .85rem;
    width: 100%;
    padding: .8rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink-900);
    box-shadow: var(--shadow-sm);
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.social-buttons .social-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--amber-300); color: var(--ink-900); }
.social-buttons .social-link svg { width: 26px; height: 26px; }
.social-buttons .social-instagram svg { color: #e1306c; }
.social-buttons .social-youtube svg { color: #ff0000; }
.social-buttons .social-facebook svg { color: #1877f2; }
.social-buttons .social-reddit svg { color: #ff4500; }
.social-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.social-name { font-weight: 600; }
.social-hint { color: var(--ink-500); font-size: .85rem; }
@media (max-width: 520px) {
    .social-buttons { grid-template-columns: 1fr; }
}

/* ====== Footer ====== */
.site-footer {
    margin-top: auto;
    background: #1c2418;   /* deep forest ink */
    color: #c3ceb4;
    padding: 3rem 1.5rem 2rem;
}
.site-footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: flex-start;
}
.site-footer h4 { color: #fff; margin-bottom: .65rem; font-size: 1rem; }
.site-footer p, .site-footer a { color: #c3ceb4; }
.site-footer a:hover { color: var(--amber-300); }
.site-footer .footer-brand { max-width: 340px; }
.site-footer .footer-brand p { font-size: .92rem; line-height: 1.6; }
.site-footer .footer-logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .75rem;
}
.site-footer .footer-logo img { width: 34px; height: 34px; border-radius: 9px; }
.site-footer .footer-logo span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer-bottom {
    max-width: var(--max-w);
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #35402c;
    font-size: .85rem;
    color: #90a07e;
    text-align: center;
}

/* ====== Plans page (Components/Pages/Plans.razor) ======
   The Free-vs-Explore comparison. The numbers in the markup come from the
   WebApi's TierLimitsService.cs compiled defaults; the CSS only has to make
   the Explore column the one the eye follows and keep two real <table>s
   readable on a phone. Prototyped in
   _Dropbox/_chats/2026-09-21_free-vs-explore-subscription-comparison/plans-mockup.html. */

/* Hero: the two tier images fanned like the Home hero's banner + video.
   The composition is a fixed-aspect box with BOTH frames absolutely
   positioned inside it, so the images can never contribute to the grid
   column's intrinsic width (a percentage-width image in a 1fr track is
   the classic grid blowout) and the pair always lands the same way. */
.plans-hero-media { position:relative; width:100%; max-width:500px; aspect-ratio:1 / 1; margin:0 0 0 auto; }
.plans-hero-media .art-frame { position:absolute; width:58%; aspect-ratio:3 / 4; overflow:hidden; }
.plans-hero-media .art-frame img { width:100%; height:100%; object-fit:cover; }
.plans-hero-media .art-free { left:0; top:0; transform:rotate(-3deg); z-index:1; }
.plans-hero-media .art-explore { right:0; bottom:0; transform:rotate(3deg); z-index:2; border-color:var(--amber-100); animation:plan-float 6s ease-in-out infinite, plan-glow 6s ease-in-out infinite; }
/* Persistent "look here": the Explore card floats and breathes a soft amber
   halo, and a foil-style glint sweeps across it every ~5.5s. The Free card
   stays flat on the table — the contrast is the point. All off under
   prefers-reduced-motion. */
.plans-hero-media .art-explore::after { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(115deg, transparent 38%, rgba(255,255,255,.28) 46%, rgba(255,255,255,.62) 50%, rgba(255,236,179,.35) 55%, transparent 63%); transform:translateX(-130%); animation:plan-shine 5.5s ease-in-out infinite; }
.plans-hero-media .art-explore .tier-tag { z-index:2; }
@keyframes plan-float { 0%,100% { transform:translateY(0) rotate(3deg); } 50% { transform:translateY(-10px) rotate(2deg); } }
@keyframes plan-glow { 0%,100% { box-shadow:0 0 0 0 rgba(255,193,7,0), var(--shadow-lg); } 50% { box-shadow:0 0 0 6px rgba(255,193,7,.22), 0 26px 54px rgba(255,160,0,.30); } }
@keyframes plan-shine { 0%,70% { transform:translateX(-130%); } 100% { transform:translateX(130%); } }
@media (prefers-reduced-motion:reduce) { .plans-hero-media .art-explore { animation:none; } .plans-hero-media .art-explore::after { display:none; } }
.plans-hero-media .art-frame .tier-tag { position:absolute; top:.85rem; left:.85rem; background:rgba(255,255,255,.92); color:var(--ink-900); font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; padding:.3rem .7rem; border-radius:999px; box-shadow:var(--shadow-sm); }
.plans-hero-media .art-explore .tier-tag { background:var(--amber-200); }
@media (max-width:880px) { .plans-hero-media { max-width:360px; margin:0 auto; } }

/* Summary cards: a "Best for" kicker, and the Explore card wears an amber ring. */
.scrim-card .scrim-kicker { display:block; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.12em; color:var(--amber-300); margin-bottom:.25rem; }
.scrim-card.is-explore { box-shadow:0 0 0 3px var(--amber-200), var(--shadow-md); }
.scrim-card.is-explore:hover { box-shadow:0 0 0 3px var(--amber-300), var(--shadow-lg); }
.scrim-card .scrim .scrim-more { display:inline-block; margin-top:.6rem; color:#fff; font-weight:600; font-size:.9rem; border-bottom:1px solid rgba(255,255,255,.5); }

/* The comparison: one rounded card per group (creator / player), stacked. */
.plan-compare { display:grid; gap:2.5rem; }
.plan-compare .plan-group { background:var(--bg-card); border:1px solid var(--border-soft); border-radius:var(--radius-lg); box-shadow:var(--shadow-md); overflow:hidden; }
.plan-table { width:100%; border-collapse:collapse; table-layout:fixed; }
.plan-table col.plan-col-label { width:auto; }
.plan-table col.plan-col-tier { width:11.5rem; }

/* Group caption band: icon + title + one-line subtitle. */
.plan-table caption { caption-side:top; text-align:left; padding:1.5rem 1.5rem 1rem; }
.plan-caption { display:flex; align-items:center; gap:.9rem; }
.plan-caption img { width:44px; height:44px; object-fit:contain; flex-shrink:0; background:var(--amber-50); border:2px solid var(--amber-100); border-radius:50%; padding:7px; }
.plan-caption h3 { margin:0 0 .1rem; font-size:1.25rem; }
.plan-caption p { margin:0; color:var(--ink-500); font-size:.92rem; }

/* Sticky tier header — stays put while thirteen rows scroll under it. */
.plan-table thead th { position:sticky; top:calc(64px + env(safe-area-inset-top,0px)); z-index:5; background:rgba(255,255,255,.96); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); padding:.7rem 1rem; text-align:center; font-family:var(--font-display); font-weight:600; font-size:1.05rem; color:var(--ink-900); border-bottom:1px solid var(--border-soft); }
.plan-table thead th:first-child { text-align:left; padding-left:1.5rem; font-family:var(--font-sans); font-size:.72rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-500); }
.plan-table thead th .tier-tag { display:inline-block; margin-left:.45rem; vertical-align:middle; font-family:var(--font-sans); font-size:.65rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; padding:.2rem .55rem; border-radius:999px; background:var(--bg-alt); color:var(--ink-600); }
.plan-table thead th.plan-explore .tier-tag { background:var(--amber-200); color:var(--ink-900); }

/* Rows */
.plan-table tbody th, .plan-table tbody td { padding:1rem 1rem; vertical-align:top; border-top:1px solid var(--border-soft); }
.plan-table tbody tr:first-child th, .plan-table tbody tr:first-child td { border-top:none; }
.plan-table tbody th { text-align:left; padding-left:1.5rem; font-weight:600; color:var(--ink-900); font-size:1rem; }
.plan-table .plan-note { display:block; font-weight:400; color:var(--ink-500); font-size:.88rem; line-height:1.5; margin-top:.2rem; max-width:44ch; }
.plan-table tbody td { text-align:center; font-family:var(--font-display); font-size:1.15rem; font-weight:500; color:var(--ink-700); font-variant-numeric:tabular-nums; }
.plan-table tbody tr:hover th, .plan-table tbody tr:hover td { background:var(--bg-alt); }

/* The Explore column is the hero column: an amber stripe the eye follows down. */
.plan-table .plan-explore { background:var(--amber-50); border-left:1px solid var(--amber-200); border-right:1px solid var(--amber-200); }
.plan-table thead th.plan-explore { background:rgba(255,248,225,.96); }
.plan-table tbody td.plan-explore { color:var(--amber-900); font-weight:600; }
.plan-table tbody tr:hover td.plan-explore { background:var(--amber-100); }

/* Booleans: a green check-circle or a quiet dash — never a red cross. */
.plan-yes, .plan-no { display:inline-flex; align-items:center; justify-content:center; width:1.6rem; height:1.6rem; border-radius:50%; vertical-align:middle; }
.plan-yes { background:var(--green-500); color:#fff; }
.plan-yes svg { width:1rem; height:1rem; }
.plan-no { color:var(--ink-400); font-weight:400; font-size:1.3rem; }

/* Phone: side-by-side, not restacked. Label spans the row; the two tier
   cells sit under it with a tiny label each. thead is hidden, not removed. */
@media (max-width:720px) {
    .plan-table, .plan-table tbody, .plan-table tr, .plan-table th, .plan-table td { display:block; }
    .plan-table colgroup { display:none; }
    .plan-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
    .plan-table caption { display:block; padding:1.25rem 1rem .75rem; }
    .plan-table tbody tr { display:grid; grid-template-columns:1fr 1fr; padding:0 1rem 1rem; border-top:1px solid var(--border-soft); }
    .plan-table tbody tr:first-child { border-top:none; }
    .plan-table tbody th { grid-column:1 / -1; padding:1rem 0 .6rem; border:none; }
    .plan-table tbody td { padding:.6rem .75rem; border:1px solid var(--border-soft); border-radius:var(--radius-sm); text-align:left; }
    .plan-table tbody td:first-of-type { border-radius:var(--radius-sm) 0 0 var(--radius-sm); border-right:none; }
    .plan-table tbody td.plan-explore { border-color:var(--amber-200); border-radius:0 var(--radius-sm) var(--radius-sm) 0; }
    .plan-table tbody td::before { content:attr(data-label); display:block; font-family:var(--font-sans); font-size:.65rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-500); margin-bottom:.15rem; }
    .plan-table tbody td.plan-explore::before { color:var(--amber-900); }
    .plan-table tbody tr:hover th, .plan-table tbody tr:hover td { background:inherit; }
    .plan-table tbody tr:hover td.plan-explore { background:var(--amber-50); }
    .plan-table tbody td.plan-explore { background:var(--amber-50); }
}

.plan-pills { justify-content:center; max-width:900px; margin:0 auto; }

/* Pause signpost strip */
.plan-pause { display:flex; gap:1.25rem; align-items:flex-start; max-width:820px; margin:2rem auto 0; }
.plan-pause img { width:56px; height:56px; flex-shrink:0; object-fit:contain; }
.plan-pause h3 { font-size:1.15rem; margin-bottom:.3rem; }
@media (max-width:640px) { .plan-pause { flex-direction:column; } }

/* ====== Video guides (How it works): the "cinema" band ======
   A dark rounded panel per audience. Its backdrop is the guide's own YouTube
   thumbnail blurred into a glow (--art, set per pane), the phone-framed video
   sits in front, and the crisp thumbnail, text and chapters sit beside it. A
   band with two guides switches panes with the segmented control. Cover,
   spinner, chapters and tabs are driven by the video-guide script in
   App.razor; see VideoGuideBand.razor. */

/* Small length tag inside a button ("5 min"). */
.btn-meta {
    font-size: .78em;
    font-weight: 600;
    padding: .12rem .5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .24);
    white-space: nowrap;
}
.btn-secondary .btn-meta { background: var(--bg-alt); color: var(--ink-600); }
@media (max-width: 520px) {
    .guide-jump .btn { width: 100%; }
}

.guide-band { margin-top: 4.5rem; scroll-margin-top: 88px; }
.guide-pane {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 3.25rem;
    align-items: center;
    padding: 3rem 3.25rem;
    border-radius: 30px;
    background: #1c160e;
    color: #f5efe4;
    box-shadow: var(--shadow-lg);
    /* The hero's "Player guide" button jumps to the pane itself. */
    scroll-margin-top: 88px;
}
.guide-pane[hidden] { display: none; }
.guide-pane::before {
    content: "";
    position: absolute;
    inset: -18%;
    z-index: -2;
    background: var(--art) center / cover;
    filter: blur(46px) saturate(1.35) brightness(.55);
}
.guide-pane::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(18, 12, 4, .2) 0%, rgba(18, 12, 4, .72) 55%, rgba(18, 12, 4, .82) 100%);
}

.guide-phone {
    position: relative;
    width: 300px;
    aspect-ratio: 9 / 16;
    border-radius: 26px;
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, .92);
    /* The title card's own brown, so a late poster never flashes white. */
    background: #3b3022;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(255, 193, 7, .18);
}
.is-green .guide-phone { box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px rgba(129, 199, 132, .2); }
.guide-phone video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.guide-phone video:fullscreen { object-fit: contain; background: #000; }
.guide-phone video:-webkit-full-screen { object-fit: contain; background: #000; }

/* Cover: the whole frame is the play target until the first frame shows. */
.guide-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .42) 100%);
    transition: opacity .25s ease;
}
.guide-cover[hidden] { display: none; }
.guide-cover:focus-visible { outline: 3px solid var(--amber-400); outline-offset: -3px; }
.guide-phone.is-started .guide-cover { opacity: 0; pointer-events: none; }

.guide-play {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--amber-700);
    color: #fff;
    border: 4px solid #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .32);
    transition: transform .15s ease, background .15s ease;
}
.guide-play svg { margin-left: 4px; } /* optical centre of the triangle */
.is-green .guide-play { background: var(--green-700); }
.guide-cover:hover .guide-play,
.guide-cover:focus-visible .guide-play { transform: scale(1.08); background: var(--amber-800); }
.is-green .guide-cover:hover .guide-play,
.is-green .guide-cover:focus-visible .guide-play { background: var(--green-900); }

/* From the tap until the first frame: the button itself becomes the spinner,
   so the tap is acknowledged instantly and nothing on screen looks frozen. */
.guide-phone.is-loading .guide-play svg { display: none; }
.guide-phone.is-loading .guide-play::after {
    content: "";
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    animation: guide-spin .8s linear infinite;
}
@keyframes guide-spin { to { transform: rotate(360deg); } }

.guide-duration {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    background: rgba(17, 24, 39, .78);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
    padding: .2rem .55rem;
    border-radius: 6px;
}

/* Segmented control: Part 1 / Part 2. */
.guide-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 1.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
}
.guide-tab {
    border: 0;
    background: none;
    color: rgba(255, 255, 255, .78);
    padding: .45rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .88rem;
    transition: background .15s ease, color .15s ease;
}
.guide-tab:hover { color: #fff; }
.guide-tab.on { background: #fff; color: var(--ink-900); }
.guide-tab:focus-visible { outline: 2px solid var(--amber-300); outline-offset: 2px; }

/* The crisp YouTube thumbnail: the script makes it a second play target. */
.guide-art {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .18);
    background: #000;
    box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
    margin-bottom: 1.4rem;
    transition: transform .2s ease;
}
.guide-art img { width: 100%; height: 100%; object-fit: cover; }
.guide-art.is-clickable { cursor: pointer; }
.guide-art.is-clickable:hover { transform: translateY(-2px); }

.guide-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .8rem;
    margin-bottom: .8rem;
}
.guide-kicker .eyebrow { margin: 0; }
.guide-length { color: rgba(245, 239, 228, .7); font-size: .9rem; }
.guide-info h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin-bottom: .55rem; }
.guide-summary { color: rgba(245, 239, 228, .84); font-size: 1.03rem; max-width: 60ch; }

/* Chapters: two columns on wide screens, the playing one highlighted. */
.guide-chapters {
    list-style: none;
    margin: .4rem 0 0;
    padding: .9rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    columns: 2;
    column-gap: 1rem;
}
.guide-chapters li { break-inside: avoid; margin: 0 0 .1rem; }
.guide-chapter {
    display: flex;
    align-items: baseline;
    gap: .7rem;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    border-radius: var(--radius-sm);
    padding: .4rem .5rem;
    color: rgba(245, 239, 228, .9);
    font-size: .93rem;
    line-height: 1.35;
    transition: background .12s ease, color .12s ease;
}
.guide-chapter:hover { background: rgba(255, 255, 255, .08); }
.guide-chapter:focus-visible { outline: 2px solid var(--amber-300); outline-offset: 1px; }
.guide-chapter[aria-current="true"] { background: rgba(255, 193, 7, .22); color: #fff; font-weight: 600; }
.is-green .guide-chapter[aria-current="true"] { background: rgba(129, 199, 132, .24); }
.guide-chapter-time {
    flex-shrink: 0;
    min-width: 3.3em;
    font-size: .85rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--amber-300);
}
.is-green .guide-chapter-time { color: var(--green-300); }

.guide-credit {
    text-align: center;
    color: var(--ink-500);
    font-size: .8rem;
    max-width: 62ch;
    margin: 3.5rem auto 0;
}

@media (max-width: 880px) {
    .guide-band { margin-top: 3rem; }
    .guide-pane { grid-template-columns: 1fr; gap: 1.75rem; padding: 1.75rem 1.1rem; border-radius: 22px; }
    .guide-phone { width: min(280px, 74vw); margin: 0 auto; }
    .guide-art { max-width: none; }
    .guide-tabs { display: flex; }
    .guide-tab { flex: 1; }
}
@media (max-width: 520px) {
    .guide-chapters { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .guide-art,
    .guide-play { transition: none; }
}

/* ====== Verification: GPS only vs GPS + a marker (VerificationModes.razor,
   on /features and /how-it-works) ====== */

.vf-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.vf-mode {
    background: var(--bg-card);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: .9rem;
}
.vf-mode-gps { border-color: var(--green-300); }
.vf-mode-pm { border-color: var(--amber-300); }
/* Pills sit on the cards' bottom edge, level across the two columns. */
.vf-mode .pills { margin-top: auto; }
.vf-mode-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.vf-mode-top h3 { margin: 0 0 .2rem; font-size: 1.4rem; }
.vf-mode-top p { margin: 0; color: var(--ink-600); font-size: .95rem; }
.vf-ring { width: 128px; height: auto; flex-shrink: 0; display: block; }
.vf-ring text { font-family: var(--font-sans); }
.vf-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .15rem .55rem;
    border-radius: 999px;
    margin-bottom: .4rem;
}
.vf-tag-default { background: var(--green-100); color: var(--green-900); }
.vf-tag-optional { background: var(--amber-50); color: var(--amber-900); border: 1px solid var(--amber-200); }
.vf-rows {
    margin: 0;
    display: grid;
    grid-template-columns: 7.2rem 1fr;
    gap: .55rem 1rem;
    font-size: .95rem;
}
.vf-rows dt {
    font-weight: 700;
    color: var(--ink-900);
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding-top: .2rem;
}
.vf-rows dd { margin: 0; color: var(--ink-600); }

.vf-scale { max-width: 900px; margin: 2rem auto 0; }
.vf-scale-ends {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink-900);
    margin-bottom: .45rem;
}
.vf-scale-ends span:last-child { text-align: right; }
.vf-scale-bar {
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green-300), var(--amber-300) 55%, var(--amber-700));
}
.vf-scale-ticks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: .7rem;
    font-size: .9rem;
    color: var(--ink-600);
}
.vf-scale-ticks div:nth-child(2) { text-align: center; }
.vf-scale-ticks div:nth-child(3) { text-align: right; }
.vf-scale-ticks b { display: block; color: var(--ink-900); }

@media (max-width: 760px) {
    .vf-compare { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .vf-scale-ticks { grid-template-columns: 1fr; }
    .vf-scale-ticks div:nth-child(n) { text-align: left; }
}
@media (max-width: 480px) {
    .vf-mode { padding: 1.25rem 1.1rem 1.35rem; }
    .vf-mode-top { flex-direction: column; align-items: flex-start; }
    .vf-ring { width: 150px; }
    .vf-rows { grid-template-columns: 1fr; gap: .1rem; }
    .vf-rows dd { margin-bottom: .55rem; }
}

/* ====== Misc utility ====== */
.center { text-align: center; }
.muted { color: var(--ink-500); }
.small { font-size: .9rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0 !important; }

/* Blazor error UI */
#blazor-error-ui {
    color-scheme: light only;
    background: #fff8e1;
    border-top: 2px solid var(--amber-700);
    bottom: 0;
    box-shadow: 0 -1px 8px rgba(0,0,0,.15);
    display: none;
    left: 0;
    padding: .9rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: var(--ink-900);
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: .65rem;
}

/* ---------------------------------------------------------------------------
   The hidden /admin console has its OWN design system, in css/admin.css.
   It is deliberately not built from the marketing tokens above: Fredoka and
   amber pill buttons are the wrong instrument for a page where someone
   suspends an account. Every rule there is scoped under `.admin-ui`, so the
   two systems cannot reach each other.
   --------------------------------------------------------------------------- */
