/* ============================================================
   EliteFurbaby — Best Dog Subscription Box 2026
   Design language borrowed from geniusdog.com:
   royal blue + gold script accents, warm cream, big rounded
   cards, pill buttons, periwinkle footer.
   ============================================================ */

:root {
    /* Own palette (emerald + terracotta on near-white) —
       intentionally distinct from geniusdog.com's blue/gold */
    --blue: #1F6F5C;        /* emerald — links, bars, brand word */
    --navy: #174C40;        /* deep pine — CTAs, banners, dark section */
    --navy-dark: #103A31;
    --ink: #1C2320;
    --body: #4A524D;
    --cream: #FBFAF7;       /* near-white page background */
    --sand: #F1ECE1;        /* warm tint for chips/notes */
    --gold: #D96F47;        /* terracotta accent */
    --peri: #557F72;        /* muted sage — footer, small tags */
    --white: #ffffff;
    --green: #2F9E6E;
    --radius: 24px;
    --shadow: 0 10px 30px rgba(26, 29, 38, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Archivo', -apple-system, sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap { max-width: 680px; margin: 0 auto; padding: 0 20px; }

.script { font-family: 'Caveat', cursive; color: var(--gold); }

/* ---------- Header ---------- */
.site-head {
    background: var(--cream);
    border-bottom: 1px solid rgba(26,29,38,0.06);
}
.head-row {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px; padding-bottom: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-paw { width: 26px; height: 26px; color: var(--gold); }
.brand-word {
    font-weight: 800; font-size: 1.25rem; letter-spacing: 0.02em; color: var(--blue);
}
.brand-word em {
    font-family: 'Caveat', cursive; font-style: normal; font-weight: 700;
    font-size: 1.5rem; color: var(--gold); margin-left: 2px;
}

.disclosure-bar {
    background: var(--sand);
    color: #8b8371;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    text-align: center;
    padding: 7px 16px;
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,22,34,0.15) 0%, rgba(20,22,34,0.05) 35%, rgba(20,22,34,0.72) 100%);
}
.hero-inner { position: relative; width: 100%; padding-bottom: 44px; color: var(--white); }
.hero-kicker {
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
    color: rgba(255,255,255,0.85); margin: 0 0 12px;
}
#hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 14px;
}
.hero-sub { font-size: 1rem; line-height: 1.55; color: rgba(255,255,255,0.9); margin: 0 0 22px; max-width: 34em; }

/* ---------- Buttons ---------- */
.pill-btn {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    padding: 16px 34px;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.15s ease;
}
.pill-btn:hover { background: var(--navy-dark); transform: translateY(-1px); }
.pill-btn.light { background: var(--white); color: var(--navy); }
.pill-btn.light:hover { background: #f0f0f5; }
.pill-btn.block { display: block; }

.ghost-btn {
    display: block;
    text-align: center;
    color: var(--navy);
    border: 2px solid var(--navy);
    background: transparent;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 13px 26px;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}
.ghost-btn:hover { background: var(--navy); color: var(--white); }

/* ---------- Author byline ---------- */
.byline {
    display: flex; align-items: center; gap: 14px;
    padding: 22px 0 4px;
}
.byline img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.byline p { margin: 0; font-size: 0.92rem; }
.byline .who strong { color: var(--blue); }
.byline .meta { font-size: 0.78rem; color: #8b8fa0; }
#header-author { display: none; }

/* ---------- Story ---------- */
#story { padding: 26px 20px 8px; }
.section-eyebrow {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.18em; color: var(--gold); margin: 0 0 10px;
}
.big-title {
    font-size: clamp(1.55rem, 6vw, 2.1rem);
    font-weight: 600; line-height: 1.18; letter-spacing: -0.02em;
    color: var(--ink); margin: 0 0 18px;
}
#story p, .prose p { color: var(--body); font-size: 1.02rem; margin: 0 0 16px; }
#story em { font-style: italic; }
.handnote {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem; line-height: 1.3;
    color: var(--blue);
    margin: 22px 0 16px;
    transform: rotate(-1deg);
}

/* ---------- Experiences (toggle tabs) ---------- */
#experiences { background: var(--white); padding: 44px 0 50px; margin-top: 32px; }
#experiences .head { max-width: 680px; margin: 0 auto; padding: 0 20px; }
.xp-tabs {
    display: flex; gap: 8px; overflow-x: auto; padding: 4px 20px 14px;
    max-width: 680px; margin: 0 auto;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.xp-tabs::-webkit-scrollbar { display: none; }
.xp-tab {
    flex: 0 0 auto;
    font-family: 'Archivo', sans-serif;
    font-weight: 700; font-size: 0.85rem;
    color: var(--navy);
    background: var(--cream);
    border: 1.5px solid rgba(23,76,64,0.20);
    border-radius: 999px;
    padding: 10px 18px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.xp-tab.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.xp-panel { display: none; max-width: 680px; margin: 0 auto; padding: 0 20px; }
.xp-panel.active { display: block; animation: fadeUp 0.35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.xp-card { border-radius: var(--radius); overflow: hidden; background: #F7F4ED; box-shadow: var(--shadow); }
.xp-media { position: relative; }
.xp-media img, .xp-media video { width: 100%; height: 250px; object-fit: cover; display: block; }
.xp-flag {
    position: absolute; top: 14px; left: 14px;
    background: var(--gold); color: var(--white);
    font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
    padding: 6px 12px; border-radius: 999px;
}
.xp-body { padding: 22px 20px 24px; }
.xp-title { font-family: 'Caveat', cursive; font-size: 1.9rem; color: var(--blue); margin: 0 0 2px; line-height: 1.1; }
.xp-tag { font-size: 0.8rem; font-weight: 600; color: #8b8fa0; margin: 0 0 12px; }
.xp-body > p.desc { color: var(--body); font-size: 0.98rem; margin: 0 0 16px; }
.xp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; }
.xp-chip {
    font-size: 0.74rem; font-weight: 600; color: var(--navy);
    background: rgba(31,111,92,0.09);
    border-radius: 999px; padding: 6px 12px;
}

/* ---------- Top 5 ---------- */
#top5 { padding: 46px 20px 10px; }
.rank-note { font-size: 0.85rem; color: #8b8fa0; margin: -8px 0 24px; }

/* Featured #1 card */
.champ-card {
    background: var(--white);
    border: 2px solid var(--navy);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}
.champ-banner {
    background: var(--navy); color: var(--white);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em;
    padding: 10px 14px;
}
.champ-banner .star { color: var(--gold); }
.champ-media { position: relative; }
.champ-media img.photo { width: 100%; height: 330px; object-fit: cover; object-position: center 22%; }
.champ-logo {
    position: absolute; left: 18px; bottom: 14px;
    background: var(--white); border-radius: 14px; padding: 10px 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.champ-logo img { height: 26px; width: auto; }
.champ-grade {
    position: absolute; right: 18px; bottom: -24px;
    background: var(--gold); color: var(--white);
    width: 64px; height: 64px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.35rem; line-height: 1;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
.champ-grade small { font-size: 0.5rem; font-weight: 700; letter-spacing: 0.08em; margin-top: 2px; }
.champ-body { padding: 34px 22px 26px; }
.champ-tag {
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--gold); margin: 0 0 4px;
}
.champ-name { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 6px; }
.champ-stars { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; }
.stars-num { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.stars-note { font-size: 0.78rem; color: #8b8fa0; }

.score-row { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.score-label { width: 138px; flex-shrink: 0; font-size: 0.8rem; color: var(--body); }
.score-track { flex: 1; height: 8px; background: var(--sand); border-radius: 99px; overflow: hidden; }
.score-fill { height: 100%; background: var(--blue); border-radius: 99px; }
.score-num { font-size: 0.85rem; font-weight: 700; width: 26px; text-align: right; }

.champ-bullets { list-style: none; margin: 20px 0 6px; padding: 0; }
.champ-bullets li { display: flex; gap: 12px; margin-bottom: 13px; }
.tick {
    flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px;
    background: rgba(31,111,92,0.11); color: var(--blue);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 800;
}
.champ-bullets .b { font-size: 0.95rem; color: var(--ink); }
.champ-bullets .b strong { display: block; font-size: 0.95rem; }
.champ-bullets .b span { color: var(--body); font-size: 0.9rem; }

.price-note {
    background: var(--sand); border-radius: 16px; padding: 14px 16px;
    font-size: 0.88rem; color: var(--body); margin: 18px 0 20px;
}
.price-note strong { color: var(--ink); }

.cta-microcopy { text-align: center; font-size: 0.78rem; color: #8b8fa0; margin: 10px 0 0; }

.deal-note {
    background: rgba(217,111,71,0.08);
    border: 1.5px dashed rgba(217,111,71,0.45);
    border-radius: 16px;
    padding: 13px 16px;
    font-size: 0.9rem;
    color: var(--body);
    margin: 0 0 20px;
}
.deal-note strong { color: var(--gold); }

/* Tier strip */
.tier-strip {
    display: flex; gap: 12px; overflow-x: auto; margin: 22px -22px 4px; padding: 2px 22px 8px;
    scrollbar-width: none;
}
.tier-strip::-webkit-scrollbar { display: none; }
.tier { flex: 0 0 150px; }
.tier img { width: 150px; height: 200px; object-fit: cover; border-radius: 16px; }
.tier p { margin: 8px 0 0; font-size: 0.75rem; color: var(--body); line-height: 1.4; }
.tier p strong { color: var(--ink); }

/* Runner-up cards (#2–#5) */
.mini-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(26,29,38,0.07);
    margin-bottom: 20px;
}
.mini-media { position: relative; background: var(--white); }
.mini-media img { width: 100%; height: 215px; object-fit: contain; padding: 16px; }
.mini-media img.cover { object-fit: cover; padding: 0; }
.mini-rank {
    position: absolute; top: 14px; left: 14px;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--navy); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.16);
}
.mini-body { padding: 20px 20px 22px; border-top: 1px solid rgba(26,29,38,0.06); }
.mini-tag {
    font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--peri); margin: 0 0 4px;
}
.mini-name { font-size: 1.22rem; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.01em; }
.mini-stars { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.mini-stars .stars { font-size: 0.85rem; }
.mini-note { font-size: 0.9rem; color: var(--body); font-style: italic; margin: 0 0 14px; }
.mini-bullets { list-style: none; margin: 0 0 16px; padding: 0; }
.mini-bullets li { display: flex; gap: 10px; font-size: 0.88rem; color: var(--body); margin-bottom: 9px; }
.mini-bullets li strong { color: var(--ink); font-weight: 600; }
.mini-bullets .tick { width: 18px; height: 18px; font-size: 0.6rem; margin-top: 3px; }

/* ---------- Why I chose it (author's verdict) ---------- */
#why-chose { padding: 40px 20px 12px; }
.chose-photo {
    width: 100%; height: 230px; object-fit: cover;
    border-radius: var(--radius); margin: 4px 0 20px;
    box-shadow: var(--shadow);
}
@media (min-width: 768px) {
    .chose-photo { height: 300px; }
}

/* ---------- Why Genius (navy section) ---------- */
#why-genius { background: var(--navy); color: var(--white); padding: 50px 0 54px; margin-top: 40px; }
#why-genius .inner { max-width: 680px; margin: 0 auto; padding: 0 20px; }
#why-genius .section-eyebrow { color: var(--gold); }
#why-genius .big-title { color: var(--white); }
#why-genius p { color: rgba(255,255,255,0.82); font-size: 1rem; margin: 0 0 16px; }
#why-genius .handnote { color: var(--gold); }
.why-photo { border-radius: var(--radius); width: 100%; height: 240px; object-fit: cover; margin: 6px 0 24px; }
.why-list { list-style: none; margin: 22px 0 26px; padding: 0; }
.why-list li { display: flex; gap: 12px; margin-bottom: 13px; font-size: 0.95rem; color: rgba(255,255,255,0.92); }
.why-list .tick { background: rgba(233,150,113,0.22); color: #E99671; }

/* ---------- Criteria ---------- */
#criteria { padding: 48px 20px 8px; }
.crit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.crit-card { background: var(--white); border-radius: 18px; padding: 18px 16px; box-shadow: 0 3px 12px rgba(26,29,38,0.05); }
.crit-card .em { font-size: 1.3rem; }
.crit-card h4 { margin: 8px 0 6px; font-size: 0.95rem; font-weight: 700; }
.crit-card p { margin: 0; font-size: 0.82rem; color: var(--body); line-height: 1.5; }

/* ---------- FAQ ---------- */
#faq { padding: 40px 20px 10px; }
.faq-item {
    background: var(--white); border-radius: 16px; margin-bottom: 10px;
    box-shadow: 0 3px 12px rgba(26,29,38,0.05); overflow: hidden;
}
.faq-item summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 16px 18px; font-weight: 700; font-size: 0.95rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; color: var(--peri); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-a { padding: 0 18px 16px; font-size: 0.9rem; color: var(--body); }
.faq-item .faq-a a { color: var(--blue); font-weight: 600; }

/* ---------- Final CTA ---------- */
#final-cta { position: relative; margin-top: 48px; min-height: 480px; display: flex; align-items: center; overflow: hidden; }
#final-cta img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#final-cta .shade { position: absolute; inset: 0; background: rgba(23,28,60,0.5); }
#final-cta .inner { position: relative; width: 100%; max-width: 680px; margin: 0 auto; padding: 60px 24px; text-align: center; color: var(--white); }
#final-cta h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 22px; }
#final-cta .sub { color: rgba(255,255,255,0.85); margin: 0 0 26px; font-size: 1rem; }

/* ---------- Footer (light, editorial — deliberately unlike geniusdog's) ---------- */
.footer {
    background: var(--white);
    border-top: 1px solid rgba(26,29,38,0.08);
    padding: 40px 0 34px;
    text-align: center;
}
.footer-signoff { margin-bottom: 26px; }
.footer-paws { font-size: 1.3rem; }
.footer-signoff p { margin: 8px 0 0; font-size: 1rem; color: var(--body); line-height: 1.6; }
.footer-sig { font-family: 'Caveat', cursive; font-size: 1.45rem; color: var(--gold); }
.footer-brand {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 0 22px;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-bottom: 22px; }
.footer-links a { color: var(--body); text-decoration: none; font-weight: 600; font-size: 0.82rem; }
.footer-links a:hover { color: var(--navy); text-decoration: underline; }
.footer-disclaimer {
    max-width: 520px; margin: 0 auto 18px;
    font-size: 0.75rem; line-height: 1.6; color: #9aa09b;
}
.footer-copy { margin: 0; font-size: 0.72rem; color: #b4b9b4; }

/* ---------- Sticky bottom CTA ---------- */
.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 -6px 24px rgba(26,29,38,0.14);
    transform: translateY(110%);
    transition: transform 0.3s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-inner { max-width: 680px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sticky-copy { display: flex; flex-direction: column; line-height: 1.25; }
.sticky-label { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); }
.sticky-name { font-weight: 800; font-size: 1rem; color: var(--ink); }
.sticky-btn { padding: 12px 22px; font-size: 0.9rem; flex-shrink: 0; }

/* ---------- Desktop tweaks ---------- */
@media (min-width: 768px) {
    #header-author { display: block; }
    #author-byline { display: none; }
    .hero { min-height: 78vh; }
    .hero-img { object-position: center 25%; }
    .xp-media img, .xp-media video { height: 320px; }
    .champ-media img.photo { height: 400px; }
    .footer-links { gap: 28px; }
}
