/* ========================================
   Creative AI News - Ghost Theme
   Primary: Orange (#FF6B35)
   No emojis, no gradients
   ======================================== */

/* Self-hosted Inter variable font (Latin subset) */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
        U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
    --bg-cream: #FAF9F6;
    --bg-white: #FFFFFF;
    --bg-dark: #1A1A1A;
    --primary: #C44C14;
    --primary-dark: #A33D0F;
    --text-dark: #1A1A1A;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --border: #E5E7EB;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.125rem; }
h4 { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }

p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ========================================
   Layout
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 2rem 0;
}

.section-alt {
    background: var(--bg-white);
}

.section-dark {
    background: var(--bg-dark);
    color: white;
    padding: 1.75rem 0;
}

.section-dark p {
    color: var(--text-light);
}

.section-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.section-header p {
    font-size: 0.9375rem;
    max-width: 600px;
    margin: 0.25rem auto 0;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.text-center { text-align: center; }
.mt-4 { margin-top: 1.25rem; }
.mb-3 { margin-bottom: 1rem; }

/* ========================================
   Navigation
   ======================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 0;
    z-index: 100;
    background: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: var(--bg-dark);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--text-dark);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 5.5rem 0 2rem;
    text-align: center;
}

.hero .container {
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
    box-shadow: var(--card-shadow);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    margin-bottom: 1rem;
}

.hero h1 .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    max-width: 560px;
    margin: 0 auto 0.5rem;
    line-height: 1.6;
}

.hero-meta {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin: 0 auto 1.5rem;
}

/* ========================================
   Email Form (Ghost Members)
   ======================================== */

.email-form {
    display: flex;
    gap: 0.5rem;
    max-width: 440px;
    margin: 0 auto 0.75rem;
}

.email-form-inline {
    justify-content: center;
}

.email-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 1rem;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: white;
}

.email-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
}

.form-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
}

/* Ghost Members form states */
.email-form .loading { display: none; }
.email-form.loading .loading { display: block; }
.email-form.loading button { opacity: 0.6; pointer-events: none; }
.email-form.success { display: none; }

/* ========================================
   Social Proof
   ======================================== */

.social-proof {
    margin-top: 4rem;
}

.social-proof p {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.logos {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0.5;
}

.logos span {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}

/* ========================================
   Cards
   ======================================== */

.card {
    background: var(--bg-cream);
    padding: 1rem;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.section-alt .card {
    background: var(--bg-cream);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ========================================
   Topics Grid
   ======================================== */

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.topic-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background 0.2s, transform 0.2s;
}

.topic-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.topic-tag.highlight {
    background: var(--primary);
    color: white;
}

/* ========================================
   Article Cards
   ======================================== */

.article-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.article-card .article-image {
    aspect-ratio: 16 / 9;
    background: var(--bg-dark);
    object-fit: cover;
    width: 100%;
    display: block;
}

.article-card h3,
.article-card p,
.article-meta {
    padding: 0 1rem;
}

.article-meta {
    display: flex;
    gap: 0.75rem;
    padding-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.article-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
}

.article-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.article-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.article-card h3 a:hover {
    color: var(--primary);
}

.article-card p {
    padding-bottom: 0.75rem;
    font-size: 0.8125rem;
}

/* ========================================
   Testimonial
   ======================================== */

.testimonial {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial blockquote {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.testimonial blockquote::before {
    content: '\201C';
    display: block;
    font-size: 4rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.testimonial-info {
    text-align: left;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-dark);
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   Post Detail (post.hbs)
   ======================================== */

.post-header {
    background: var(--bg-dark);
    color: white;
    padding: 4.5rem 0 2rem;
    text-align: center;
}

.post-header h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.post-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Contrast fixes for elements on dark post header background */
.post-header .post-tag {
    color: #E8875A;
}

.post-header .post-meta {
    color: #9CA3AF;
}

.post-title {
    max-width: 800px;
    margin: 0 auto 0.5rem;
}

.post-excerpt {
    font-size: 0.9375rem;
    color: #9CA3AF;
    max-width: 600px;
    margin: 0 auto 0.75rem;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.post-reading-time::before {
    content: '\00B7';
    margin-right: 1.5rem;
}

.post-feature-image {
    max-width: 1000px;
    margin: -2rem auto 0;
    padding: 0 2rem;
}

.post-feature-image img {
    width: 100%;
    border: 1px solid #C44C14;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ========================================
   Ghost Content (gh-content)
   ======================================== */

.gh-content {
    padding: 1.5rem 0;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.gh-content > * + * {
    margin-top: 1rem;
}

.gh-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.15rem;
}

.gh-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 1.25rem;
    margin-bottom: 0.15rem;
}

.gh-content h2 + p,
.gh-content h3 + p {
    margin-top: 0.25rem;
}

.gh-content p {
    color: var(--text-dark);
    margin-bottom: 0;
}

.gh-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.gh-content a:hover {
    color: var(--primary-dark);
}

.gh-content strong {
    font-weight: 600;
    color: var(--text-dark);
}

.gh-content ul,
.gh-content ol {
    padding-left: 1.5rem;
    color: var(--text-dark);
}

.gh-content li {
    margin-bottom: 0.5rem;
}

.gh-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
}

.gh-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.5rem 0;
}

.gh-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.gh-content figure {
    margin: 1.25rem 0;
}

.gh-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

.gh-content code {
    background: #F3F4F6;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.gh-content pre {
    background: var(--bg-dark);
    color: #E5E7EB;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
}

.gh-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* ========================================
   Post Footer
   ======================================== */

.post-footer {
    padding: 2rem 0 1rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0;
}

.tag-link {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tag-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ========================================
   Post Subscribe CTA
   ======================================== */

.post-subscribe-cta {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}

.post-subscribe-cta-inner {
    max-width: 520px;
    margin: 0 auto;
}

.post-subscribe-cta-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.post-subscribe-cta-text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.post-subscribe-cta .email-form {
    margin-bottom: 0.75rem;
}

.post-subscribe-cta-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ========================================
   Page Header
   ======================================== */

.page-header {
    background: var(--bg-dark);
    color: white;
    padding: 4.5rem 0 1.5rem;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.page-header p {
    color: var(--text-muted);
    font-size: 0.875rem;
    max-width: 600px;
    margin: 0.25rem auto 0;
}

/* ========================================
   Read More Section
   ======================================== */

.read-more {
    background: var(--bg-white);
}

.read-more h2 {
    margin-bottom: 1.25rem;
}

/* ========================================
   Pagination
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--bg-dark);
    color: white;
    padding: 2.5rem 0 1.5rem;
}

.footer .logo span {
    color: #FF6B35;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-light);
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.footer-heading {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.footer-links a {
    display: block;
    color: white;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.25rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* ========================================
   Error Page
   ======================================== */

.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
}

.error-code {
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.error-suggestion {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-subscribe {
    padding: 3rem 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.error-subscribe-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.error-subscribe-text {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

/* ========================================
   Exit-Intent Popup
   ======================================== */

.exit-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.exit-popup-overlay.active {
    display: flex;
}

.exit-popup {
    background: var(--bg-cream);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.exit-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0.25rem;
}

.exit-popup-close:hover {
    color: var(--text-dark);
}

.exit-popup-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.exit-popup h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.exit-popup p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.exit-popup .email-form {
    margin-bottom: 0.75rem;
}

.exit-popup .form-note {
    font-size: 0.8125rem;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile navigation toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-dark);
    stroke-width: 2;
    fill: none;
}

@media (max-width: 768px) {
    /* Show hamburger, hide desktop nav */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(250, 249, 246, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 0.5rem 2rem 1rem;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Font sizes: prevent iOS auto-zoom */
    p { font-size: 1rem; }
    .article-card p { font-size: 0.875rem; }
    .article-meta, .article-category, .article-date { font-size: 0.8125rem; }
    .form-note { font-size: 0.875rem; }
    .footer-heading { font-size: 0.875rem; }

    /* Tap targets: min 44px */
    .btn { padding: 0.75rem 1.5rem; font-size: 1rem; }
    .tag-link { padding: 0.5rem 1rem; font-size: 0.875rem; }

    /* Email form */
    .email-form {
        flex-direction: column;
    }

    .email-form button {
        width: 100%;
    }

    .email-form input[type="email"] {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        padding: 4.5rem 0 1.5rem;
    }

    .hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    /* Post */
    .post-header {
        padding: 3.75rem 0 1.5rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.25rem;
    }

    .post-reading-time::before {
        display: none;
    }

    .post-feature-image {
        padding: 0 1rem;
    }

    .post-subscribe-cta {
        padding: 2rem 1rem;
    }

    /* Page header */
    .page-header {
        padding: 3.75rem 0 1.25rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        margin-bottom: 1rem;
    }

    /* Social proof logos */
    .logos {
        gap: 1.5rem;
    }

    .social-proof {
        margin-top: 2.5rem;
    }
}

@media (max-width: 640px) {
    /* Container padding */
    .container,
    .container-narrow {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        padding: 0.5rem 1rem 1rem;
    }

    /* Grids: single column */
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    /* Testimonial */
    .testimonial blockquote {
        font-size: 1.125rem;
    }

    /* Section spacing */
    .section {
        padding: 1.5rem 0;
    }
}

@media (max-width: 375px) {
    h1 { font-size: clamp(1.5rem, 7vw, 2rem); }

    .hero-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Safe areas for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
    .nav {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    .footer {
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
}
