/* ===== GIFI BOOKS ===== */
/* Aligned with GIFI Style Charter: system typeface, single accent, neutral backgrounds */

:root {
    /* ── Accent: Blue-Slate (single accent per Style Charter) ── */
    --color-accent: #2C5282;
    --color-accent-light: #3B6B9C;
    --color-accent-subtle: #DBEAFE;

    /* ── Neutrals ── */
    --color-bg: #FAFAFA;
    --color-bg-alt: #F4F5F7;
    --color-bg-white: #FFFFFF;
    --color-text: #1D1D1F;
    --color-text-secondary: #6E6E73;
    --color-text-tertiary: #8E8E93;
    --color-border: #D2D2D7;
    --color-border-light: #E8E8ED;
    --color-shadow: rgba(0, 0, 0, 0.04);
    --color-shadow-md: rgba(0, 0, 0, 0.08);

    /* ── Footer ── */
    --color-footer-bg: #1D1D1F;
    --color-footer-text: #F5F5F7;
    --color-footer-muted: #A1A1A6;

    /* ── Typography: System typeface only (Style Charter §3) ── */
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-stack);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-accent-light);
}

h1, h2, h3 {
    line-height: 1.3;
    font-weight: 600;
    color: var(--color-text);
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.section-intro {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    max-width: 680px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* ===== HEADER ===== */
.site-header {
    padding: 1rem 0;
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-text);
    letter-spacing: 0.01em;
}

.site-nav {
    display: flex;
    gap: 1.75rem;
}

.site-nav a {
    color: var(--color-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--color-accent);
}

/* ===== HERO ===== */
.hero {
    padding: 4rem 0 3.5rem;
    text-align: center;
    background: var(--color-bg-white);
}

.hero-icon {
    display: block;
    margin: 0 auto 1rem;
    width: 56px;
    height: 56px;
    border-radius: 13px;
}

.hero-badge {
    display: inline-block;
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.15;
    color: var(--color-text);
}

.hero .tagline {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.highlight-item {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text);
}

.highlight-separator {
    color: var(--color-text-tertiary);
}

/* ===== SECTIONS ===== */
section {
    padding: 4.5rem 0;
}

/* Neutral alternation per Style Charter: backgrounds recede */
.features {
    background: var(--color-bg-alt);
}

.platform {
    background: var(--color-bg-white);
}

.pricing {
    background: var(--color-bg-alt);
}

.why {
    background: var(--color-bg-white);
}

.faq {
    background: var(--color-bg-alt);
}

.legal-links {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.contact {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.feature-item {
    background: var(--color-bg-white);
    padding: 1.75rem;
    border-radius: 8px;
    border: 1px solid var(--color-border-light);
}

.feature-item h3 {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== PLATFORM ===== */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.platform-item {
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    border-left: 3px solid var(--color-accent);
    background: var(--color-bg-alt);
    border-radius: 0 8px 8px 0;
}

.platform-item h3 {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
}

.platform-item p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.pricing-card-featured {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent);
}

.pricing-header {
    margin-bottom: 1.25rem;
}

.pricing-header h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.pricing-card-featured .pricing-header h3 {
    color: var(--color-accent);
}

.pricing-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
}

/* ── Pricing price area ── */
.pricing-price {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.price-option {
    display: flex;
    flex-direction: column;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
}

.price-small {
    font-size: 1rem;
    font-weight: 400;
}

.price-term {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    margin-top: 0.1rem;
}

.price-divider {
    color: var(--color-text-tertiary);
    font-size: 0.82rem;
    margin: 0.4rem 0;
}

/* ── Pricing mask / veil ── */
.pricing-masked {
    position: relative;
    overflow: hidden;
}

.pricing-masked .price-content {
    filter: blur(7px);
    user-select: none;
    pointer-events: none;
    opacity: 0.55;
}

.price-veil {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.price-veil span {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: var(--color-accent);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--color-accent-subtle);
    letter-spacing: 0.02em;
}

/* ── Pricing features ── */
.pricing-features {
    list-style: none;
    padding: 0;
    flex: 1;
}

.pricing-features li {
    color: var(--color-text-secondary);
    padding: 0.3rem 0 0.3rem 1.4rem;
    position: relative;
    font-size: 0.92rem;
    line-height: 1.5;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.pricing-features li.pricing-includes {
    padding-left: 0;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.pricing-features li.pricing-includes::before {
    content: "";
}

.pricing-note {
    margin-top: 1rem;
    font-size: 0.78rem;
    color: var(--color-text-tertiary);
    font-style: italic;
}

/* ===== WHY ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.why-item {
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border-radius: 8px;
    border: 1px solid var(--color-border-light);
}

.why-item h3 {
    color: var(--color-text);
    margin-bottom: 0.4rem;
    font-size: 1rem;
    font-weight: 600;
}

.why-item p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 720px;
}

.faq-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-item h3 {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.faq-item p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* ===== LEGAL ===== */
.legal-links p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* ===== CONTACT ===== */
.contact p {
    color: var(--color-text-secondary);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

/* ===== FOOTER ===== */
.site-footer {
    padding: 2.5rem 0;
    background: var(--color-footer-bg);
    text-align: center;
}

.site-footer p {
    color: var(--color-footer-text);
    font-size: 0.85rem;
}

.footer-sub {
    font-size: 0.78rem !important;
    color: var(--color-footer-muted) !important;
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* ===== RESPONSIVE ===== */
@media only screen and (max-width: 600px) {
    body {
        font-size: 14px;
    }

    .site-header .container {
        flex-direction: column;
        gap: 0.75rem;
    }

    .site-nav {
        gap: 1.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .hero-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
    }

    .hero-highlights {
        flex-direction: column;
        gap: 0.2rem;
    }

    .highlight-separator {
        display: none;
    }

    section {
        padding: 3rem 0;
    }

    h2 {
        font-size: 1.45rem;
    }

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

@media only screen and (min-width: 601px) {
    body {
        font-size: 16px;
    }
}

@media only screen and (min-width: 1024px) {
    body {
        font-size: 17px;
    }
}

/* ===== LEGAL DOCUMENT PAGES ===== */
.legal-document {
    padding: 4rem 0 3rem;
}

.legal-document h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.legal-meta {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.legal-document h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-accent);
}

.legal-document h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

.legal-document p {
    line-height: 1.75;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.legal-document ul,
.legal-document ol {
    margin: 0.75rem 0 1rem 1.5rem;
    line-height: 1.75;
}

.legal-document li {
    margin-bottom: 0.4rem;
}

.legal-document a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(44, 82, 130, 0.3);
    text-underline-offset: 2px;
}

.legal-document a:hover {
    color: var(--color-accent-light);
    text-decoration-color: var(--color-accent-light);
}

.legal-document strong {
    font-weight: 600;
    color: var(--color-text);
}

.legal-document em {
    font-style: italic;
}

.table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table-wrapper th {
    background: var(--color-bg-alt);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
}

.table-wrapper td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

.table-wrapper tr:last-child td {
    border-bottom: none;
}

.table-footnote {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 0.5rem;
    font-style: italic;
}
