:root {
    --bg:     #FFFCF5;
    --fg:     #0F0D00;
    --red:    #C8000A;
    --red-deep: #9C0008;
    --muted:  #7A7263;
    --border: #DDD7CC;
    --warm:   #F4EFE5;
}

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

html { height: 100%; }

body {
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--fg);
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
header {
    flex-shrink: 0;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
    background: rgba(255,252,245,0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 0 2rem;
}

.logo {
    position: absolute;
    left: 2rem;
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-decoration: none;
    color: var(--fg);
}

.logo em { font-style: italic; color: var(--red); }

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.header-nav a {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.14s;
}

.header-nav a:hover,
.header-nav a.is-active { color: var(--fg); }

.header-cta {
    position: absolute;
    right: 4rem;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: var(--red);
    color: white !important;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.14s, transform 0.12s;
    white-space: nowrap;
}

.header-cta:hover {
    background: var(--red-deep);
    transform: translateY(-1px);
}

.mobile-menu-btn {
    display: none;
    position: absolute;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--fg);
}

/* ── Main content ── */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    width: 100%;
}

.page-content h1 {
    font-family: 'Fraunces', serif;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.page-content h1 em { font-style: italic; color: var(--red); }

.updated {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
}

.page-content h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.page-content p,
.page-content ul,
.page-content ol {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #3A3526;
    margin-bottom: 1rem;
}

.page-content ul,
.page-content ol { padding-left: 1.25rem; }

.page-content li { margin-bottom: 0.3rem; }

.page-content a { color: var(--red); }

.page-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border);
    margin: 1.5rem 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 2rem;
    padding: 0.65rem 1.35rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
    text-decoration: none;
    border: 1.5px solid var(--border);
    transition: color 0.14s, border-color 0.14s;
}

.back-link:hover { color: var(--fg); border-color: var(--fg); }

/* ── Blog ── */
.blog-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.blog-summary {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.blog-body { margin-bottom: 2rem; }

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.blog-card {
    padding: 1.5rem;
    border: 1.5px solid var(--border);
    background: white;
    transition: border-color 0.14s, transform 0.1s;
}

.blog-card:hover {
    border-color: var(--fg);
    transform: translateY(-2px);
}

.blog-card h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.blog-card h2 a {
    color: var(--fg);
    text-decoration: none;
}

.blog-card h2 a:hover { color: var(--red); }

.blog-card p {
    font-size: 0.85rem;
    line-height: 1.65;
    color: #3A3526;
    margin-bottom: 0.75rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.7rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.read-more {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--red);
    text-decoration: none;
}

.read-more:hover { text-decoration: underline; }

/* ── Testimonials ── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.testimonial-card {
    padding: 1.5rem;
    border: 1.5px solid var(--border);
    background: white;
}

.testimonial-card blockquote {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #3A3526;
    margin-bottom: 1rem;
    font-style: normal;
}

.testimonial-card blockquote p { margin-bottom: 0.5rem; }

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
}

.testimonial-author strong {
    display: block;
    color: var(--fg);
}

.testimonial-author span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* ── List items (default) ── */
.list-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.list-item:last-child { border-bottom: none; }

.list-item h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 0.35rem;
}

.list-item h2 a {
    color: var(--fg);
    text-decoration: none;
}

.list-item h2 a:hover { color: var(--red); }

.list-item time {
    font-size: 0.72rem;
    color: var(--muted);
}

.list-item p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #3A3526;
    margin-top: 0.4rem;
}

/* ── Footer ── */
footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 2rem;
    background: var(--warm);
}

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

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col h4 {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg);
    margin-bottom: 0.25rem;
}

.footer-col a {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.14s;
}

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

.footer-brand-col .logo {
    position: static;
    font-size: 1.1rem;
}

.footer-tagline {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--muted);
    margin-top: 0.25rem;
}

.footer-copy {
    font-size: 0.65rem;
    color: var(--muted);
    margin-top: auto;
    padding-top: 0.5rem;
}

/* ── Pricing ── */

/* Break out of the 680px page-content constraint */
.pricing-wide {
    width: min(940px, calc(100vw - 3rem));
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.pricing-card {
    padding: 2.25rem 2rem;
    border: 1.5px solid var(--border);
    background: white;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.pricing-card:hover {
    border-color: var(--fg);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(15,13,0,0.07);
}

/* Featured card: dark inverted treatment */
.pricing-card-featured {
    background: var(--fg);
    border-color: var(--fg);
    color: white;
}

.pricing-card-featured:hover {
    border-color: var(--fg);
    box-shadow: 0 10px 40px rgba(15,13,0,0.22);
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 2rem;
    background: var(--red);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.22rem 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

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

.pricing-header h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: inherit;
}

.pricing-price {
    font-family: 'Fraunces', serif;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    color: inherit;
    margin-bottom: 0.3rem;
}

.pricing-period {
    font-size: 0.74rem;
    color: var(--muted);
    letter-spacing: 0.01em;
}

.pricing-card-featured .pricing-period {
    color: rgba(255,255,255,0.45);
}

.pricing-divider {
    height: 1px;
    background: var(--border);
    margin: 0 0 1.5rem;
}

.pricing-card-featured .pricing-divider {
    background: rgba(255,255,255,0.1);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.pricing-features li {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #3A3526;
    padding-left: 1.3rem;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: var(--red);
    font-weight: 700;
    font-size: 0.7rem;
}

.pricing-card-featured .pricing-features li {
    color: rgba(255,255,255,0.75);
}

.pricing-card-featured .pricing-features li::before {
    color: var(--red);
    /* make red pop on dark bg */
    filter: brightness(1.3);
}

/* CTA — !important beats .page-content a { color: var(--red) } */
.pricing-cta {
    display: block;
    text-align: center;
    padding: 0.9rem 1rem;
    background: var(--red);
    color: white !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.83rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.14s, transform 0.12s, box-shadow 0.14s;
    margin-top: auto;
}

.pricing-cta:hover {
    background: var(--red-deep);
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(200,0,10,0.28);
}

/* Featured card: inverted button */
.pricing-card-featured .pricing-cta {
    background: white;
    color: var(--fg) !important;
}

.pricing-card-featured .pricing-cta:hover {
    background: var(--bg);
    color: var(--fg) !important;
    box-shadow: 0 4px 18px rgba(255,255,255,0.15);
}

/* Guarantee block */
.pricing-guarantee {
    margin-top: 2.5rem;
    padding: 2rem 2.5rem;
    background: var(--warm);
    border: 1.5px solid var(--border);
    text-align: center;
}

.pricing-guarantee-mark {
    font-family: 'Fraunces', serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    margin-bottom: 0.6rem;
}

.pricing-guarantee h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--fg);
    margin-bottom: 0.5rem;
}

.pricing-guarantee p {
    font-size: 0.83rem;
    line-height: 1.65;
    color: #3A3526;
    max-width: 480px;
    margin: 0 auto;
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .mobile-menu-btn { display: block; }
    .header-cta { display: none; }

    .header-nav {
        display: none;
        position: absolute;
        top: 54px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 1rem 2rem;
        gap: 0.75rem;
    }

    .header-nav.is-open { display: flex; }

    .page-content { padding: 2rem 1rem 3rem; }

    .page-content h1 { font-size: 1.75rem; }

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

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-wide { width: calc(100vw - 2rem); }
}
