:root {
    --grapefruit: #D67459;
    --blush: #F0B29B;
    --sunshine: #FFD78E;
    --teal: #264653;
    --beach-blue: #809FAA;
    --eggshell: #FEF8EE;
    --charcoal: #111A21;
    --apricot: #F4A261;
    --white: #FFFFFF;
}

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

@font-face {
    font-family: "Baloo";
    src: url("/assets/fonts/baloo.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Pacifico";
    src: url("/assets/fonts/pacifico.ttf") format("truetype");
    font-display: swap;
}

h1, h2 {
    font-family: "Baloo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.script-heading {
    font-family: "Pacifico", cursive;
    font-weight: 400;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--eggshell);
    color: var(--charcoal);
    line-height: 1.6;
}

nav {
    background: var(--white);
    border-bottom: 1px solid var(--beach-blue);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--grapefruit);
    text-decoration: none;
    display: flex;
    align-items: center;
}

nav .logo-image {
    height: 36px;
    width: auto;
    display: block;
}

nav .logo-icon {
    height: 34px;
    width: auto;
    display: block;
    margin-right: 10px;
}

nav a {
    color: var(--teal);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
}

nav a:hover { color: var(--grapefruit); }

nav a.active {
    color: var(--grapefruit);
    border-bottom: 2px solid var(--grapefruit);
    padding-bottom: 2px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 5rem 2rem;
    flex-wrap: wrap;
    text-align: left;
    background:
        radial-gradient(circle at 12% 18%, rgba(240, 178, 155, 0.35), transparent 42%),
        radial-gradient(circle at 88% 82%, rgba(255, 215, 142, 0.3), transparent 45%),
        var(--eggshell);
}

.hero-copy {
    max-width: 520px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--grapefruit);
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--teal);
    margin-bottom: 1rem;
}

.store-badges {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.store-badge-link {
    transition: transform 0.15s ease;
    display: inline-block;
}

.store-badge-link:hover { transform: translateY(-2px); }

.store-badge-link[aria-disabled="true"] {
    opacity: 0.7;
    cursor: default;
}

.store-badge-img {
    height: 56px;
    width: auto;
    display: block;
}

.store-badge-img-google {
    height: 65px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.stat strong {
    display: block;
    font-size: 1.3rem;
    color: var(--teal);
}

.stat span {
    font-size: 0.8rem;
    color: var(--beach-blue);
}

.phone-mockup {
    width: 250px;
    background: var(--charcoal);
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 24px 48px rgba(17, 26, 33, 0.28);
    transform: rotate(-4deg);
    animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {
    0%, 100% { transform: rotate(-4deg) translateY(0); }
    50% { transform: rotate(-4deg) translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .phone-mockup { animation: none; }
}

.phone-mockup img {
    width: 100%;
    display: block;
    border-radius: 26px;
}

.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.screens-section {
    padding: 3rem 1rem 1rem;
}

.how-steps {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem 0.5rem;
}

.step {
    max-width: 260px;
    text-align: center;
}

.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--grapefruit);
    color: var(--white);
    font-weight: 700;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 18px rgba(214, 116, 89, 0.35);
}

.step h3 {
    color: var(--teal);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.step p {
    color: var(--teal);
    font-size: 0.9rem;
}

.screens-section h2 {
    text-align: center;
    color: var(--teal);
    margin-bottom: 2rem;
}

.screens-strip {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: flex-start;
}

.screens-strip img {
    width: 150px;
    border-radius: 18px;
    border: 3px solid var(--charcoal);
    box-shadow: 0 12px 28px rgba(17, 26, 33, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.screens-strip img:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 18px 36px rgba(17, 26, 33, 0.25);
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 26, 33, 0.85);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: lightboxIn 0.2s ease;
}

@keyframes lightboxIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 18px;
    border: 3px solid var(--charcoal);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--eggshell);
    color: var(--teal);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover { background: var(--blush); }

.fade-in.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; transition: none; }
}

.sticky-cta {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-top: 1px solid var(--beach-blue);
    padding: 0.65rem 1rem;
    z-index: 50;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 -6px 18px rgba(17, 26, 33, 0.08);
    transform: translateY(120%);
    transition: transform 0.3s ease;
}

.sticky-cta.sticky-cta-visible {
    transform: translateY(0);
}

.sticky-cta img {
    height: 44px;
    width: auto;
    display: block;
}

.sticky-cta-note {
    font-size: 0.8rem;
    color: var(--beach-blue);
}

.badge {
    display: inline-block;
    background: var(--charcoal);
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin: 0 0.5rem;
    transition: background 0.2s;
}

.badge:hover { background: var(--teal); }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--beach-blue);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.feature-card h3 {
    color: var(--grapefruit);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--teal);
    font-size: 0.95rem;
}

.feature-card a {
    color: var(--grapefruit);
    font-weight: 600;
    text-decoration: none;
}

.feature-card a:hover { text-decoration: underline; }

.guides-band {
    background: var(--blush);
    padding: 3rem 1.5rem;
    margin: 2rem 0;
}

.guides-band h2 {
    text-align: center;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.guides-list {
    max-width: 760px;
    margin: 0 auto;
}

.guides-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0.5rem;
    border-bottom: 1.5px solid var(--grapefruit);
    text-decoration: none;
    color: var(--charcoal);
    transition: padding-left 0.2s ease, background 0.2s ease;
}

.guides-list a:first-of-type { border-top: 1.5px solid var(--grapefruit); }

.guides-list a:hover {
    padding-left: 1rem;
    background: rgba(255, 255, 255, 0.45);
}

.guide-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.guide-sub {
    font-size: 0.85rem;
    color: var(--teal);
    margin-top: 2px;
}

.guide-arrow {
    color: var(--grapefruit);
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.faq {
    max-width: 760px;
    margin: 0 auto 3rem;
}

.faq details {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--beach-blue);
    border-radius: 0;
    padding: 1.1rem 0;
    margin-bottom: 0;
}

.faq details:first-of-type { border-top: 1px solid var(--beach-blue); }

.faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--charcoal);
    font-size: 1.05rem;
    list-style: none;
    position: relative;
    padding-right: 1.5rem;
}

.faq summary:hover { color: var(--grapefruit); }

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--grapefruit);
    font-size: 1.3rem;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
    margin-top: 0.75rem;
    color: var(--teal);
    font-size: 0.95rem;
}

.policy-section {
    margin-bottom: 2rem;
}

.policy-section h2 {
    color: var(--grapefruit);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.policy-section p, .policy-section li {
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.policy-section ul {
    padding-left: 1.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--beach-blue);
    font-size: 0.9rem;
    border-top: 1px solid var(--beach-blue);
    margin-top: 3rem;
}

.footer-rich {
    background: var(--teal);
    color: var(--eggshell);
    margin-top: 3rem;
    padding: 3rem 2rem 2rem;
    text-align: left;
    border-top: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.footer-col h4 {
    color: var(--sunshine);
    font-family: "Baloo", -apple-system, sans-serif;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.footer-col a {
    display: block;
    color: var(--eggshell);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-col a:hover { color: var(--blush); }

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.footer-icon { height: 44px; width: auto; }

.footer-name {
    font-family: "Pacifico", cursive;
    font-size: 1.4rem;
    color: var(--sunshine);
}

.footer-col p {
    font-size: 0.85rem;
    color: var(--beach-blue);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(254, 248, 238, 0.15);
    font-size: 0.8rem;
    color: var(--beach-blue);
}

/* ── Product Detail Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 26, 33, 0.6);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-sheet {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    padding: 2rem;
    position: relative;
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--eggshell);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--teal);
    font-size: 1.1rem;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--blush);
}

.modal-brand {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--grapefruit);
    margin-bottom: 6px;
}

.modal-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.modal-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.modal-chip {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--eggshell);
    color: var(--teal);
    border: 1px solid var(--beach-blue);
}

.modal-chip.cruelty {
    color: var(--teal);
    border-color: var(--grapefruit);
    background: var(--blush);
}

.modal-divider {
    border: none;
    border-top: 1px solid var(--beach-blue);
    margin: 1.5rem 0;
}

.modal-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.modal-section-text {
    font-size: 0.95rem;
    color: var(--charcoal);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.modal-purchase-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--grapefruit);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    transition: background 0.2s;
}

.modal-purchase-btn:hover {
    background: var(--teal);
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; }
    nav { flex-direction: column; gap: 0.5rem; }
    nav > div {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.4rem 1.1rem;
    }
    nav a { margin-left: 0; font-size: 0.9rem; }
    .badge { display: block; margin: 0 auto 0.75rem; width: fit-content; }
    .hero { text-align: center; padding: 3rem 1.5rem; gap: 2.5rem; }
    .hero-stats, .store-badges { justify-content: center; }
    .screens-strip {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.75rem;
        -webkit-overflow-scrolling: touch;
    }
    .screens-strip img { width: 110px; }
    .sticky-cta { display: flex; }
    footer { padding-bottom: 90px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Search Page ── */
.search-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.search-page h1 {
    font-size: 2rem;
    color: var(--teal);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.search-bar {
    position: relative;
    margin-bottom: 1rem;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--beach-blue);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 14px 14px 14px 44px;
    font-size: 1rem;
    border: 1.5px solid var(--beach-blue);
    border-radius: 12px;
    background: var(--white);
    color: var(--charcoal);
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.search-input:focus {
    border-color: var(--grapefruit);
}

.search-input::placeholder {
    color: var(--beach-blue);
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--grapefruit);
    border-radius: 24px;
    background: var(--white);
    color: var(--charcoal);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.filter-chip:hover {
    background: var(--blush);
}

.filter-chip.active {
    background: var(--grapefruit);
    color: var(--white);
    border-color: var(--grapefruit);
}

.filter-chip-icon {
    font-size: 1rem;
}

.result-count {
    font-size: 0.85rem;
    color: var(--beach-blue);
    margin-left: auto;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    color: var(--beach-blue);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--blush);
    border-top-color: var(--grapefruit);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 4rem 0;
    color: var(--beach-blue);
}

.retry-btn {
    margin-top: 1rem;
    padding: 8px 24px;
    background: var(--grapefruit);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
}

.retry-btn:hover {
    background: var(--teal);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--beach-blue);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-card.clickable {
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.product-card.clickable:hover {
    border-color: var(--grapefruit);
    box-shadow: 0 2px 12px rgba(214, 116, 89, 0.15);
    transform: translateY(-1px);
}

.product-brand {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--grapefruit);
}

.product-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.3;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.product-type {
    font-size: 0.82rem;
    color: var(--beach-blue);
}

.product-cruelty {
    font-size: 0.75rem;
    color: var(--teal);
    font-weight: 600;
}
