/* Nested Hex — mobile first. Breakpoint at 820px for side-by-side layouts. */

:root {
    --orange: #ff6f00;
    --orange-dark: #d25b00;
    --orange-tint: #fff3e6;
    --ink: #1f1f1f;
    --text: #444;
    --muted: #888;
    --line: #e5e5e5;
    --panel: #f7f7f7;
    --buybar-h: 68px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #fff;
    color: var(--text);
    font-family: "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    /* room for the fixed buy bar */
    padding-bottom: calc(var(--buybar-h) + env(safe-area-inset-bottom));
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--orange);
}

h1, h2, h3 {
    color: var(--ink);
    line-height: 1.2;
    font-weight: 800;
}

.material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
    vertical-align: middle;
}

/* Header: logo only, links home */
.site-header {
    background-color: var(--orange);
    padding: 12px 16px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.35em;
    font-weight: 800;
    text-decoration: none;
}

.site-logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fff;
}

/* Footer: copyright + ZingLab legal links */
.site-footer {
    background-color: #2b2b2b;
    color: #bbb;
    font-size: 0.9em;
    padding: 24px 16px;
    text-align: center;
}

.site-footer a {
    color: #fff;
}

.site-footer .footer-links {
    margin-top: 8px;
}

.site-footer .footer-guides {
    max-width: 720px;
    margin: 0 auto 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #444;
}

.site-footer .footer-guides h2 {
    margin-bottom: 8px;
    color: #fff;
    font-size: 1em;
}

.site-footer .footer-guides ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer .footer-guides li {
    margin: 6px 0;
}

.site-footer .footer-guides a {
    display: inline-block;
    padding: 4px 0;
    text-decoration: none;
}

.site-footer .footer-guides a:hover,
.site-footer .footer-guides a:focus-visible {
    text-decoration: underline;
}

/* Buttons and badges */
.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 8px;
    background-color: var(--orange);
    color: #fff;
    font-size: 1.2em;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    transition: background-color 0.2s;
}

.btn-buy:hover,
.btn-buy:active {
    background-color: var(--orange-dark);
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.badges > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background-color: var(--orange-tint);
    color: #b34d00;
    font-size: 0.85em;
    font-weight: 800;
}

.badges .material-symbols-outlined {
    font-size: 18px;
}

.text-link {
    font-weight: 800;
}

/* Fixed buy bar on every page */
.buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--buybar-h);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background-color: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, .08);
}

.buybar-name {
    display: flex;
    flex-direction: column;
    color: #222;
    font-weight: 800;
    line-height: 1.2;
}

.buybar-name small {
    color: var(--muted);
    font-size: 0.78em;
    font-weight: 600;
}

.buybar a {
    flex: 0 0 auto;
    padding: 12px 20px;
    border-radius: 8px;
    background-color: var(--orange);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

/* In-page buy box */
.buy-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px 16px;
    align-items: start;
    margin: 32px 16px;
    padding: 20px;
    border: 2px solid var(--orange);
    border-radius: 12px;
    background-color: #fff;
}

.buy-box img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    justify-self: center;
}

.buy-box h2 {
    font-size: 1.25em;
    margin-bottom: 6px;
}

.buy-box ul {
    list-style: none;
}

.buy-box li {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    font-size: 0.92em;
}

.buy-box li .material-symbols-outlined {
    color: var(--orange);
    font-size: 18px;
    margin-top: 3px;
}

.buy-box .btn-buy,
.buy-box .buy-box-note {
    grid-column: 1 / -1;
}

.buy-box-note {
    display: flex;
    gap: 6px;
    color: var(--muted);
    font-size: 0.82em;
}

.buy-box-note .material-symbols-outlined {
    font-size: 16px;
    margin-top: 2px;
}

/* Product page (home) */
.nh {
    max-width: 1100px;
    margin: 0 auto;
}

.nh-gallery {
    background-color: #f4f4f4;
}

.nh-main {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: zoom-in;
}

.nh-main img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: #fff;
}

.nh-zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, .55);
    color: #fff;
}

.nh-thumbs {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nh-thumbs::-webkit-scrollbar {
    display: none;
}

.nh-thumbs .thumbnail {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    scroll-snap-align: start;
}

.nh-thumbs .thumbnail.is-active {
    border-color: var(--orange);
}

.nh-info {
    padding: 24px 16px 8px;
}

.nh-info h1 {
    font-size: 2em;
    margin-bottom: 8px;
}

.nh-tagline {
    color: #666;
    font-style: italic;
}

.nh-soon {
    margin: 10px 0 24px;
    color: #999;
    font-size: 0.9em;
    text-align: center;
}

.nh-desc {
    font-size: 1.05em;
    margin-bottom: 20px;
}

.nh-note {
    margin: 0 0 24px;
    padding: 18px;
    border-left: 4px solid var(--orange);
    background-color: var(--panel);
}

.nh-note p + p {
    margin-top: 8px;
}

/* Checklist */
.features {
    display: grid;
    gap: 12px;
    margin: 0 0 24px;
    list-style: none;
}

.features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
}

.features .material-symbols-outlined {
    color: var(--orange);
}

/* Home sections */
.home-section,
.page-intro {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 16px 8px;
}

.home-section > h2,
.page-intro h1 {
    font-size: 1.6em;
    margin-bottom: 16px;
}

.page-intro h1 {
    font-size: 2.2em;
}

.home-section .buy-box {
    margin: auto;
}

.use-grid {
    display: grid;
    gap: 12px;
}

.use-card {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 2px 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--orange);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, .06);
}

.use-card .material-symbols-outlined {
    grid-row: span 2;
    color: var(--orange);
    font-size: 32px;
}

.use-card strong {
    color: var(--ink);
    font-size: 1.05em;
}

.use-card span:last-child {
    font-size: 0.9em;
}

.guide-list {
    list-style: none;
    margin-bottom: 12px;
}

.guide-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.guide-list a {
    font-weight: 700;
}

/* Guide index cards */
.guide-cards {
    display: grid;
    gap: 12px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 16px;
}

.guide-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--orange);
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
}

.guide-card strong {
    color: var(--ink);
    font-size: 1.1em;
    line-height: 1.3;
}

.guide-card small {
    color: var(--muted);
}

/* FAQ */
.faq {
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 16px;
}

.faq h2 {
    font-size: 1.6em;
    margin-bottom: 8px;
}

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.faq summary {
    cursor: pointer;
    color: var(--ink);
    font-weight: 800;
}

.faq details p {
    margin-top: 8px;
}

/* Sales pages */
.sales-hero {
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
}

.sales-hero-text {
    order: 2;
    padding: 20px 16px 8px;
}

.sales-hero-img {
    order: 1;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background-color: #f4f4f4;
}

.eyebrow {
    color: var(--orange);
    font-size: 0.9em;
    font-weight: 800;
    margin-bottom: 6px;
}

.sales-hero h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.sales-subhead {
    font-size: 1.08em;
    margin-bottom: 20px;
}

.benefits {
    display: grid;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 8px;
}

.benefit {
    padding: 18px;
    border-radius: 8px;
    background-color: var(--panel);
}

.benefit .material-symbols-outlined {
    color: var(--orange);
    font-size: 30px;
}

.benefit h2 {
    font-size: 1.15em;
    margin: 6px 0 4px;
}

.benefit p {
    font-size: 0.95em;
}

/* Long-form text (sales body + posts) */
.prose {
    max-width: 760px;
    margin: 0 auto;
    padding: 16px;
}

.prose h2 {
    font-size: 1.5em;
    margin: 28px 0 10px;
}

.prose h3 {
    font-size: 1.15em;
    margin: 22px 0 6px;
}

.prose p,
.prose ul,
.prose ol,
.prose table {
    margin-bottom: 14px;
}

.prose ul,
.prose ol {
    padding-left: 1.3em;
}

.prose li {
    margin-bottom: 6px;
}

.prose ul.features {
    padding-left: 0;
}

.prose table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: separate;
    border-spacing: 0;
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
    font-size: 0.9em;
}

.prose th,
.prose td {
    min-width: 140px;
    padding: 8px 10px;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.prose th {
    background-color: var(--orange-tint);
    color: #333;
}

.prose th:first-child,
.prose td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    min-width: 110px;
    background-color: #fff;
    font-weight: 700;
}

.prose th:first-child {
    background-color: var(--orange-tint);
}

/* Posts */
.post .breadcrumbs,
.post > h1,
.post .post-meta,
.post .tldr {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

.breadcrumbs {
    padding-top: 20px;
    font-size: 0.85em;
    color: var(--muted);
}

.post > h1 {
    font-size: 1.9em;
    margin-top: 10px;
}

.post-meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.9em;
}

.post .tldr {
    margin-top: 16px;
}

.tldr {
    display: block;
    border-left: 4px solid var(--orange);
    background-color: var(--orange-tint);
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.tldr p {
    margin-top: 4px;
}

/* Cross-links */
.more-links {
    display: grid;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px 32px;
}

.more-links h2 {
    font-size: 1.2em;
    margin-bottom: 6px;
}

.more-links ul {
    list-style: none;
}

.more-links li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.more-links a {
    font-weight: 700;
}

/* Lightbox */
.nh-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .9);
}

.nh-lightbox[hidden] {
    display: none;
}

.nh-lightbox img {
    max-width: 94vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
}

.nh-lightbox button {
    position: fixed;
    top: 14px;
    right: 14px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

/* Larger screens */
@media (min-width: 820px) {
    .site-header {
        padding: 14px 24px;
    }

    .nh {
        display: grid;
        grid-template-columns: 1.1fr 1fr;
        gap: 48px;
        align-items: start;
        padding: 40px 24px 20px;
    }

    .nh-gallery {
        position: sticky;
        top: 20px;
        background: none;
    }

    .nh-main img {
        border: 1px solid #eee;
        border-radius: 8px;
    }

    .nh-thumbs {
        flex-wrap: wrap;
        padding: 12px 0 0;
        overflow: visible;
    }

    .nh-info {
        padding: 0;
    }

    .nh-info h1 {
        font-size: 2.6em;
    }

    .features {
        grid-template-columns: 1fr 1fr;
    }

    .use-grid,
    .benefits,
    .guide-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .more-links {
        grid-template-columns: 1fr 1fr;
    }

    .sales-hero {
        flex-direction: row;
        align-items: center;
        gap: 40px;
        padding: 40px 24px;
    }

    .sales-hero-text {
        order: 1;
        flex: 1;
        padding: 0;
    }

    .sales-hero-img {
        order: 2;
        flex: 1;
        max-width: 480px;
        aspect-ratio: 1 / 1;
        border-radius: 12px;
    }

    .sales-hero h1 {
        font-size: 2.6em;
    }

    .btn-buy {
        width: auto;
        display: inline-flex;
    }

    .buy-box {
        grid-template-columns: 96px 1fr auto;
        align-items: center;
        max-width: 900px;
        margin: 40px auto;
    }

    .buy-box img {
        width: 96px;
        height: 96px;
    }

    .buy-box .btn-buy {
        grid-column: auto;
    }

    .buy-box .buy-box-note {
        grid-column: 2 / -1;
    }

    .buybar {
        justify-content: center;
        gap: 24px;
    }
}

/* Pricing */
.price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0.75rem 0;
}
.price-now {
    color: var(--orange-dark);
    font-size: 1.75rem;
    font-weight: 800;
}
.price-was {
    color: var(--muted);
    font-size: 1.1rem;
}
.price-tag {
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background-color: var(--orange-tint);
    color: var(--orange-dark);
    font-size: 0.8rem;
    font-weight: 700;
}
.buybar-name .price-now {
    font-size: inherit;
}
