/* =====================================================
   GainFrame — Clinical Fitness Minimalism
   Monochrome design system matching Theme.swift
   ===================================================== */

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

:root {
    /* Palette — monochrome + rare sage accent */
    --color-bg: #ffffff;
    --color-surface: #F2F2F7;
    --color-text: #111111;
    --color-text-secondary: #6B7280;
    --color-text-tertiary: #9CA3AF;
    --color-border: rgba(0, 0, 0, 0.06);
    --color-sage: #6B8F71;
    --color-sage-light: rgba(107, 143, 113, 0.08);
    --color-brand-red: #E84C3D;
    --color-dark: #111111;

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing — 8pt grid */
    --sp-xs: 4px;
    --sp-sm: 8px;
    --sp-md: 16px;
    --sp-lg: 24px;
    --sp-xl: 40px;
    --sp-2xl: 64px;
    --sp-section: 120px;

    /* Radii */
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-full: 9999px;

    /* Shadow */
    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.04);
    --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.06);
    --shadow-phone: 0 24px 64px rgba(0, 0, 0, 0.10);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* =====================================================
   COMMON
   ===================================================== */

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 var(--sp-xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--sp-md);
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--color-text);
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    max-width: 540px;
    margin: 0 auto var(--sp-2xl);
    line-height: 1.7;
}

/* App Store Badge */
.appstore-badge {
    height: 52px;
    width: auto;
    display: block;
}

.appstore-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.appstore-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */

.scroll-reveal,
.scroll-reveal-left,
.scroll-reveal-right,
.parallax-float,
.badge-pop,
.tilt-in,
.hero-text-stagger,
.hero-image-stagger {
    opacity: 0;
    will-change: transform, opacity;
}

.scroll-reveal {
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal-left {
    transform: translateX(-48px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal-right {
    transform: translateX(48px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.parallax-float {
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.badge-pop {
    transform: scale(0.7);
    transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tilt-in {
    transform: perspective(800px) rotateX(6deg) translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-text-stagger {
    transform: translateY(24px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-image-stagger {
    transform: translateY(48px) scale(0.94);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.15s;
}

/* Visible states */
.scroll-reveal.visible,
.scroll-reveal-left.visible,
.scroll-reveal-right.visible,
.parallax-float.visible,
.tilt-in.visible,
.hero-text-stagger.visible,
.hero-image-stagger.visible {
    opacity: 1;
    transform: none;
}

.badge-pop.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.reveal-delay-1 {
    transition-delay: 0ms;
}

.reveal-delay-2 {
    transition-delay: 80ms;
}

.reveal-delay-3 {
    transition-delay: 160ms;
}

.reveal-delay-4 {
    transition-delay: 240ms;
}

.reveal-delay-5 {
    transition-delay: 320ms;
}

.reveal-delay-6 {
    transition-delay: 400ms;
}

.reveal-delay-7 {
    transition-delay: 480ms;
}

.reveal-delay-8 {
    transition-delay: 560ms;
}

@media (prefers-reduced-motion: reduce) {

    .scroll-reveal,
    .scroll-reveal-left,
    .scroll-reveal-right,
    .parallax-float,
    .badge-pop,
    .tilt-in,
    .hero-text-stagger,
    .hero-image-stagger {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =====================================================
   HERO
   ===================================================== */

.hero {
    padding: var(--sp-section) 0 var(--sp-2xl);
}

/* =====================================================
   SOCIAL PROOF STRIP
   ===================================================== */

.social-proof {
    padding: 0 0 var(--sp-xl);
}

.proof-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-xl);
    padding: var(--sp-lg) var(--sp-xl);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.proof-item {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
}

.proof-item svg {
    flex-shrink: 0;
    color: var(--color-text);
    opacity: 0.5;
}

.proof-value {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
}

.proof-label {
    font-size: 0.82rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
    white-space: nowrap;
}

.proof-divider {
    width: 1px;
    height: 24px;
    background: var(--color-border);
    flex-shrink: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.75rem;
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.035em;
    margin-bottom: var(--sp-lg);
    color: var(--color-text);
}

.hero-title .accent-underline,
.blog-header-title .accent-underline {
    position: relative;
    display: inline-block;
}

.hero-title .accent-underline::after,
.blog-header-title .accent-underline::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--color-brand-red);
    border-radius: 3px;
    opacity: 0.7;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--sp-md);
    max-width: 460px;
    line-height: 1.7;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    margin: 0 0 var(--sp-xl) 0;
    max-width: 460px;
}

.hero-chip {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
    white-space: nowrap;
}

.hero-chip svg {
    flex-shrink: 0;
    color: var(--color-text);
    opacity: 0.6;
}

.hero-mockup {
    display: flex;
    justify-content: center;
}

.hero-mockup-image {
    max-width: 100%;
    height: auto;
    max-height: 680px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.10));
}

/* =====================================================
   PHONE FRAME (reusable CSS-only iPhone bezel)
   ===================================================== */

.phone-frame {
    position: relative;
    display: inline-block;
    padding: 12px;
    border-radius: 44px;
    background: #1a1a1a;
    box-shadow:
        0 0 0 2px #333,
        0 24px 64px rgba(0, 0, 0, 0.18),
        0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Dynamic Island notch */
.phone-frame::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #111;
    border-radius: 20px;
    z-index: 10;
}

/* Right side button (power) */
.phone-frame::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 120px;
    width: 4px;
    height: 48px;
    background: #2a2a2a;
    border-radius: 0 4px 4px 0;
}

.phone-frame img,
.phone-frame video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 32px;
    object-fit: cover;
}

/* Size variants */
.phone-frame.phone-frame-hero {
    max-width: 320px;
}

.phone-frame.phone-frame-feature {
    max-width: 300px;
}

.phone-frame.phone-frame-blog {
    max-width: 280px;
}

.phone-placeholder {
    width: 280px;
    height: 580px;
    border-radius: 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-md);
    position: relative;
    box-shadow: var(--shadow-phone);
    overflow: hidden;
}

/* Dynamic Island notch */
.phone-placeholder::before {
    content: '';
    position: absolute;
    top: 14px;
    width: 90px;
    height: 26px;
    background: var(--color-text);
    border-radius: 20px;
    opacity: 0.12;
}

.phone-placeholder .placeholder-label {
    color: var(--color-text-tertiary);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    padding: 0 var(--sp-lg);
}

.phone-placeholder .placeholder-icon {
    font-size: 2rem;
    opacity: 0.15;
}

/* =====================================================
   HOW IT WORKS
   ===================================================== */

.how-it-works {
    padding: var(--sp-section) 0;
    background: var(--color-surface);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}

.step {
    text-align: left;
    padding: var(--sp-lg);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.step-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: var(--sp-sm);
}

.step-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 var(--sp-md);
    background: var(--color-surface);
    color: var(--color-text);
}

.step-icon svg {
    width: 22px;
    height: 22px;
}

/* Top-left icon for tabbed How It Works */
.step-icon-tl {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-md);
    background: var(--color-surface);
    color: var(--color-accent);
}

.step-icon-tl svg {
    width: 20px;
    height: 20px;
}

/* Tab bar */
.hiw-tabs {
    display: flex;
    justify-content: center;
    gap: var(--sp-xs);
    margin-bottom: var(--sp-xl);
}

.hiw-tab {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
}

.hiw-tab:hover {
    color: var(--color-text);
    border-color: var(--color-text-tertiary);
}

.hiw-tab.active {
    background: var(--color-dark);
    border-color: var(--color-dark);
    color: #fff;
}

/* Tab panels */
.hiw-panels {
    position: relative;
}

.hiw-panel {
    display: none;
    opacity: 0;
    animation: hiwFadeIn 0.35s ease forwards;
}

.hiw-panel.active {
    display: block;
}

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

/* Step progress indicator (01 — 02 — 03) */
.hiw-progress {
    position: relative;
    height: 40px;
    margin-bottom: var(--sp-lg);
}

.hiw-progress-track {
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-border);
    border-radius: 1px;
}

.hiw-progress-fill {
    position: absolute;
    top: 7px;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--color-dark), #444);
    border-radius: 1px;
    transform: scaleX(0.5);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hiw-progress-dots {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hiw-dot-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hiw-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-border);
    transition: background 0.35s ease, box-shadow 0.35s ease;
    box-shadow: none;
}

.hiw-dot.active {
    background: var(--color-dark);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.hiw-dot-label {
    font-family: 'SF Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--color-text-tertiary);
}

.step h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: var(--sp-xs);
    color: var(--color-text);
}

.step p {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    line-height: 1.55;
}

/* =====================================================
   FEATURE SECTIONS
   ===================================================== */

.feature-section {
    padding: var(--sp-section) 0;
}

.feature-section.alt-bg {
    background: var(--color-surface);
}

.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.feature-split.reverse {
    direction: rtl;
}

.feature-split.reverse>* {
    direction: ltr;
}

.feature-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--color-text);
    color: var(--color-bg);
    margin-bottom: var(--sp-md);
    letter-spacing: 0.01em;
}

.feature-badge.sage-badge {
    background: var(--color-sage-light);
    color: var(--color-sage);
}

.feature-badge.pro-badge {
    background: var(--color-text);
    color: var(--color-bg);
}

.feature-text h2 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: var(--sp-lg);
    color: var(--color-text);
}

.feature-text p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: var(--sp-lg);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: var(--sp-sm) 0;
    padding-left: 28px;
    position: relative;
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.55;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-text);
    font-weight: 700;
    font-size: 0.95rem;
}

.feature-images {
    display: flex;
    justify-content: center;
}

.feature-image-mockup {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.08));
}

/* Video embeds (blog posts) */
.feature-video-mockup {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.08));
}

.post-hero-image video,
.post-body video {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    filter: drop-shadow(0 16px 48px rgba(0, 0, 0, 0.08));
}

/* =====================================================
   FEATURE CARDS GRID
   ===================================================== */

.features {
    padding: var(--sp-section) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}

.feature-card {
    padding: var(--sp-xl);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-md);
    color: var(--color-text);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-icon.sage-icon {
    background: var(--color-sage-light);
    color: var(--color-sage);
}

.pro-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-bg);
    background: var(--color-text);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    margin-left: var(--sp-xs);
    vertical-align: middle;
    letter-spacing: 0.05em;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--sp-sm);
    color: var(--color-text);
}

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

/* =====================================================
   CTA
   ===================================================== */

.cta {
    padding: var(--sp-section) 0;
    text-align: center;
    background: var(--color-surface);
}

.cta .section-title {
    font-size: 2.75rem;
    margin-bottom: var(--sp-md);
}

.cta-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--sp-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* =====================================================
   NEWSLETTER
   ===================================================== */

.newsletter-section {
    padding: var(--sp-2xl) 0;
    background: var(--color-dark);
    text-align: center;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: var(--sp-sm);
}

.newsletter-desc {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto var(--sp-lg);
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto var(--sp-md);
}

.newsletter-input {
    flex: 1;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: #fff;
    border: none;
    border-radius: var(--radius-full);
    outline: none;
    transition: box-shadow 0.2s ease;
}

.newsletter-input::placeholder {
    color: var(--color-text-tertiary);
}

.newsletter-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.newsletter-btn {
    padding: 14px 28px;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-text-secondary);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.15s ease;
}

.newsletter-btn:hover {
    background: var(--color-text-tertiary);
    transform: translateY(-1px);
}

.newsletter-btn:active {
    transform: translateY(0);
}

.newsletter-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.newsletter-status {
    min-height: 1.25rem;
    margin: 0 0 var(--sp-xs);
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.newsletter-status.is-error {
    color: #ff9b9b;
}

.newsletter-status.is-success {
    color: #b8f3c8;
}

.newsletter-note {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.02em;
}

@media (max-width: 640px) {
    .newsletter-section {
        padding: var(--sp-xl) 0;
    }

    .newsletter-title {
        font-size: 1.4rem;
    }

    .newsletter-desc {
        font-size: 0.92rem;
        padding: 0 var(--sp-md);
    }

    .newsletter-form {
        flex-direction: column;
        padding: 0 var(--sp-md);
    }

    .newsletter-btn {
        padding: 14px 24px;
    }
}

/* =====================================================
   FOOTER
   ===================================================== */

.footer {
    padding: var(--sp-xl) 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer-links {
    display: flex;
    gap: var(--sp-lg);
    justify-content: center;
    margin-bottom: var(--sp-md);
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}

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

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

/* =====================================================
   RESPONSIVE — Tablet
   ===================================================== */

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-split {
        gap: 48px;
    }

    .hero .container {
        gap: 48px;
    }
}

/* =====================================================
   RESPONSIVE — Mobile
   ===================================================== */

@media (max-width: 768px) {
    :root {
        --sp-section: 80px;
    }

    .container {
        padding: 0 var(--sp-md);
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .hero {
        padding: var(--sp-2xl) 0 var(--sp-xl);
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--sp-xl);
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
        gap: 8px 16px;
        justify-items: center;
    }

    .hero-chip {
        font-size: 0.82rem;
    }

    .hero-chip:not(:last-child)::after {
        display: none;
    }

    .hero-cta {
        display: flex;
        justify-content: center;
    }

    .hero-mockup-image {
        max-height: 480px;
        max-width: calc(100vw - 32px);
    }

    /* Social Proof — Mobile */
    .proof-strip {
        flex-wrap: wrap;
        gap: var(--sp-md);
        padding: var(--sp-md);
        justify-content: center;
    }

    .proof-divider {
        display: none;
    }

    .proof-item {
        min-width: 120px;
        justify-content: center;
    }

    /* Nav CTA — Mobile */
    .nav-cta-btn {
        padding: 5px 12px !important;
        font-size: 0.75rem !important;
    }

    .feature-image-mockup {
        max-height: 480px;
        max-width: calc(100vw - 32px);
    }

    .phone-placeholder {
        width: 240px;
        height: 500px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-md);
    }

    .feature-split,
    .feature-split.reverse {
        grid-template-columns: 1fr;
        gap: var(--sp-xl);
        text-align: center;
        direction: ltr;
    }

    .feature-text h2 {
        font-size: 1.75rem;
    }

    .feature-list li {
        text-align: left;
    }

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

    .cta .section-title {
        font-size: 2rem;
    }
}

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

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

    .phone-placeholder {
        width: 200px;
        height: 420px;
    }
}

/* =====================================================
   BLOG NAV
   ===================================================== */

.blog-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--sp-md) 0;
}

.blog-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.blog-nav-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    text-decoration: none;
    color: var(--color-text);
}

.blog-nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.blog-nav-wordmark {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.blog-nav-links {
    display: flex;
    align-items: center;
    gap: var(--sp-lg);
}

.nav-comics-target {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-comics-target > a:not(.nav-mascot-link) {
    position: relative;
    z-index: 3;
}

.blog-nav-links a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
    transition: color 0.2s ease;
}

.blog-nav-links a:hover,
.blog-nav-links a.active {
    color: var(--color-text);
}

.nav-mascot-link {
    position: absolute;
    display: block;
    width: 70px;
    height: 56px;
    overflow: hidden;
    pointer-events: auto;
    opacity: 0;
    z-index: 1;
    transform: translateX(-50%) translateY(18px) rotate(3deg);
    animation: navMascotPop 860ms cubic-bezier(0.2, 0.85, 0.18, 1.12) 900ms forwards,
        navMascotBob 4.4s ease-in-out 2s infinite;
}

.nav-mascot-link--desktop {
    left: 50%;
    bottom: 8px;
}

.nav-mascot-link--mobile {
    display: none;
}

.nav-mascot-link img {
    position: absolute;
    left: 50%;
    bottom: -34px;
    width: 72px;
    height: 72px;
    object-fit: contain;
    transform: translateX(-50%);
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.14));
}

@keyframes navMascotPop {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(18px) rotate(3deg);
    }
    72% {
        opacity: 1;
        transform: translateX(-50%) translateY(-5px) rotate(-2deg);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
}

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

/* Nav CTA Button */
.nav-cta-btn {
    background: var(--color-text) !important;
    color: var(--color-bg) !important;
    padding: 6px 16px !important;
    border-radius: var(--radius-full) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-cta-btn:hover {
    background: #333 !important;
    transform: scale(1.05);
}

/* ---- Hamburger Menu ---- */
.blog-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 110;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-hamburger--open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger--open span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger--open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-mascot-link--desktop {
        display: none;
    }

    .nav-mascot-link--mobile {
        display: block;
        right: 42px;
        top: 16px;
        left: auto;
        width: 60px;
        height: 50px;
        z-index: 104;
        transform: translateY(16px) rotate(4deg);
        animation: navMascotMobilePop 820ms cubic-bezier(0.2, 0.85, 0.18, 1.12) 900ms forwards,
            navMascotMobileBob 4.4s ease-in-out 2s infinite;
    }

    .nav-mascot-link--mobile img {
        width: 62px;
        height: 62px;
        bottom: -29px;
    }

    @keyframes navMascotMobilePop {
        0% {
            opacity: 0;
            transform: translateY(16px) rotate(4deg);
        }
        72% {
            opacity: 1;
            transform: translateY(-4px) rotate(-2deg);
        }
        100% {
            opacity: 1;
            transform: translateY(0) rotate(0deg);
        }
    }

    @keyframes navMascotMobileBob {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        50% { transform: translateY(-3px) rotate(-1deg); }
    }

    .blog-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: auto;
        right: 20px;
        width: min(230px, calc(100vw - 40px));
        background: #fff;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 12px 20px 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        z-index: 100;
    }

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

    .blog-nav-links a {
        width: 100%;
        padding: 10px 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .blog-nav-links a:last-child {
        border-bottom: none;
        padding-top: 12px;
    }

    .nav-cta-btn {
        background: var(--color-text) !important;
        color: var(--color-bg) !important;
        padding: 10px 20px !important;
        border-radius: var(--radius-full) !important;
        text-align: center;
        width: 100%;
    }
}

/* =====================================================
   BLOG HEADER
   ===================================================== */

.blog-header {
    padding: var(--sp-2xl) 0 var(--sp-xl);
    text-align: center;
}

.blog-header-title {
    font-family: var(--font-display);
    font-size: 3.25rem;
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: var(--color-text);
    margin-bottom: var(--sp-md);
}

.blog-header-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}


/* =====================================================
   POST META
   ===================================================== */

.post-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-sm);
    margin-bottom: var(--sp-sm);
}

.post-category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: var(--color-text);
    color: var(--color-bg);
}

.post-date {
    font-size: 0.82rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
}



.margin-top-grid {
    margin-top: var(--sp-xl);
}

/* =====================================================
   BLOG GRID
   ===================================================== */

.blog-grid-section {
    padding: 0 0 var(--sp-section);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-lg);
}

.blog-card {
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg);
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.18);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-surface);
    flex-shrink: 0;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.04);
}

.placeholder-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-card-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

.blog-card-content {
    padding: var(--sp-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: var(--sp-sm);
}

.blog-card-content p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* =====================================================
   EARLY ACCESS BANNER
   ===================================================== */

.early-access-banner {
    padding: var(--sp-lg) 0 0;
}

.early-access-inline {
    display: flex;
    align-items: center;
    gap: var(--sp-xl);
    padding: var(--sp-lg) var(--sp-xl);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.early-access-text {
    flex: 1;
    min-width: 0;
}

.early-access-text h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 4px;
}

.early-access-text p {
    color: var(--color-text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}

.early-access-inline .email-capture {
    flex-shrink: 0;
}

/* Sticky floating download pill — bottom-right */
.blog-floating-pill {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: rgba(17, 17, 17, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    border-radius: 980px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    animation: pillSlideIn 0.5s ease-out;
}

.blog-floating-pill:hover {
    background: rgba(50, 50, 50, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.blog-floating-pill svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

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

@media (max-width: 480px) {
    .blog-floating-pill {
        bottom: 16px;
        right: 16px;
        padding: 10px 18px;
        font-size: 0.8rem;
    }
}

.testflight-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: var(--sp-md);
    position: relative;
}

@media (max-width: 768px) {
    .early-access-inline {
        flex-direction: column;
        text-align: center;
        gap: var(--sp-lg);
    }
}

/* =====================================================
   BLOG CTA
   ===================================================== */

.blog-cta {
    padding: 0 0 var(--sp-section);
}

.blog-cta-card {
    text-align: center;
    padding: var(--sp-2xl) var(--sp-xl);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.blog-cta-card h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: var(--sp-sm);
}

.blog-cta-card p {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: var(--sp-xl);
    line-height: 1.7;
}

.blog-cta-actions {
    display: flex;
    justify-content: center;
}

/* =====================================================
   BLOG RESPONSIVE — Tablet
   ===================================================== */

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }


}

/* =====================================================
   BLOG RESPONSIVE — Mobile
   ===================================================== */

@media (max-width: 768px) {
    .blog-header-title {
        font-size: 2.25rem;
    }



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

    .blog-cta-card h2 {
        font-size: 1.6rem;
    }
}

/* =====================================================
   BLOG POST / ARTICLE PAGE
   ===================================================== */

.post-container {
    max-width: 760px;
    margin: 0 auto;
}

/* Side gutter on narrow viewports — without this, body text runs to the edge
   on phones because .post-container has no padding and the viewport equals
   container width. */
@media (max-width: 800px) {
    .post-container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

.post-header {
    padding: var(--sp-2xl) 0 var(--sp-xl);
}

.post-header .post-meta {
    margin-bottom: var(--sp-lg);
}

.post-read-time {
    font-size: 0.82rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
}

.post-title {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: var(--sp-md);
}

.post-subtitle {
    font-size: 1.2rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

/* Hero Image — restrained shadow, lets the cover breathe */
.post-hero-image {
    margin: 0 calc(-1 * var(--sp-xl)) var(--sp-2xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

/* Reset any inline shadow from older posts that hard-code a heavier one */
.post-hero-image > img,
.post-hero-image[style*="box-shadow"] {
    box-shadow: none !important;
}

.post-hero-image img {
    width: 100%;
    display: block;
}

/* When a phone frame is inside post-hero-image, center it */
.post-hero-image:has(.phone-frame) {
    border: none;
    overflow: visible;
    display: flex;
    justify-content: center;
    background: none;
}

.post-hero-image .phone-frame img {
    width: 100%;
    border-radius: 32px;
}

/* Body Typography — editorial rhythm */
.post-body {
    padding-bottom: var(--sp-2xl);
}

.post-body h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.022em;
    color: var(--color-text);
    margin: 80px 0 var(--sp-md);
    line-height: 1.18;
}

/* Slightly smaller weight for h3 sub-sections to anchor scan flow */
.post-body h3 {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.012em;
    color: var(--color-text);
    margin: var(--sp-xl) 0 var(--sp-sm);
    line-height: 1.3;
}

.post-body p {
    font-size: 1.08rem;
    line-height: 1.78;
    color: var(--color-text-secondary);
    margin-bottom: var(--sp-lg);
}

/* LEDE — the front-loaded answer paragraph (auto-applied to first <p>
   after the first <h2> in the post body, no class required).
   Treated as an editorial pull-paragraph: bigger, darker, sage anchor. */
.post-body h2:first-of-type + p,
.post-lede {
    font-size: 1.22rem !important;
    color: var(--color-text) !important;
    line-height: 1.6 !important;
    padding-left: var(--sp-lg);
    border-left: 3px solid var(--color-sage);
    margin: var(--sp-lg) 0 var(--sp-xl);
}

.post-body h2:first-of-type + p strong,
.post-lede strong {
    color: var(--color-text);
    font-weight: 700;
}

.post-body strong {
    color: var(--color-text);
    font-weight: 600;
}

.post-body em {
    font-style: italic;
}

.post-body ul,
.post-body ol {
    margin-bottom: var(--sp-lg);
    padding-left: var(--sp-lg);
}

.post-body li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: var(--sp-sm);
}

.post-body li strong {
    color: var(--color-text);
}

/* Divider — editorial three-dot signature instead of a flat rule */
.post-divider {
    border: none;
    background: none;
    height: auto;
    margin: var(--sp-2xl) 0;
    text-align: center;
    overflow: visible;
    color: var(--color-sage);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1;
}

.post-divider::before {
    content: '· · ·';
    letter-spacing: 0.6em;
    font-size: 1.5rem;
    color: var(--color-sage);
    display: inline-block;
    padding-left: 0.6em; /* compensates for trailing letter-spacing so dots look centered */
}

/* Ordered Steps */
.post-steps {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.post-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 48px;
    margin-bottom: var(--sp-lg);
}

.post-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 32px;
    height: 32px;
    background: var(--color-text);
    color: var(--color-bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
}

/* Feature Grid */
.post-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-md);
    margin: var(--sp-xl) 0;
}

.post-feature-card {
    padding: var(--sp-lg);
    background: var(--color-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* Pro variant — green accent */
.post-feature-card--pro {
    border-left: 3px solid #22c55e;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.03), transparent);
}

/* Con variant — amber accent */
.post-feature-card--con {
    border-left: 3px solid #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.03), transparent);
}

.post-feature-icon {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--sp-sm);
}

.post-feature-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.post-feature-card--pro .post-feature-icon svg {
    color: #22c55e;
}

.post-feature-card--con .post-feature-icon svg {
    color: #f59e0b;
}

.post-feature-card h3 {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: var(--sp-xs);
}

.post-feature-card--pro h3 {
    color: #16a34a;
}

.post-feature-card--con h3 {
    color: #d97706;
}

.post-feature-card p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

/* Callout / Blockquote — sage anchor, refined typography */
.post-callout {
    margin: var(--sp-xl) 0;
    padding: var(--sp-lg) var(--sp-xl);
    background: var(--color-sage-light);
    border-left: 3px solid var(--color-sage);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-callout p {
    font-size: 1.05rem !important;
    font-style: italic;
    color: var(--color-text) !important;
    line-height: 1.65 !important;
}

.post-callout p:last-child {
    margin-bottom: 0 !important;
}

/* Quick Answer block — AEO/featured-snippet target.
   ALWAYS the first content block after the H1, before the prose body.
   Visually distinct from regular .post-callout: white card, brand-red accent,
   non-italic body, eyebrow-style "QUICK ANSWER" label, modest elevation. */
.post-callout.post-quick-answer {
    margin: 0 0 var(--sp-xl) 0;
    padding: var(--sp-xl);
    background: var(--color-bg);
    border-left: 4px solid var(--color-brand-red);
    border-top: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-card);
}

.post-callout.post-quick-answer p {
    font-size: 1.1rem !important;
    font-style: normal !important;
    color: var(--color-text) !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}

.post-callout.post-quick-answer p strong {
    display: block;
    color: var(--color-brand-red);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: var(--sp-sm);
}

@media (max-width: 640px) {
    .post-callout.post-quick-answer {
        padding: var(--sp-lg);
    }
    .post-callout.post-quick-answer p {
        font-size: 1rem !important;
    }
}

/* CTA */
.post-cta {
    display: flex;
    justify-content: center;
    padding: var(--sp-xl) 0;
}

/* Inline Phone Screenshot — floats right alongside text */
.post-inline-screenshot {
    float: right;
    width: 240px;
    margin: 0 0 var(--sp-lg) var(--sp-xl);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.post-inline-screenshot img {
    width: 100%;
    display: block;
}

.post-inline-screenshot figcaption {
    padding: 8px 12px;
    font-size: 0.78rem;
    color: var(--color-text-tertiary);
    text-align: center;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

/* Full-width inline figure (screenshots, dashboards, charts shown in flow).
   Replaces the inline style="width:100%; border-radius:12px;..." that the
   static site set on every <img> inside <figure class="post-figure">. The
   MDX converter strips inline styles for JSX safety, so the rule lives here. */
.post-figure {
    margin: var(--sp-lg) 0;
}

.post-figure img,
.post-figure video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

.post-figure figcaption {
    margin-top: 8px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

/* Clear the float after inline screenshots */
.post-body .post-divider {
    clear: both;
}

@media (max-width: 600px) {
    .post-inline-screenshot {
        float: none;
        width: 100%;
        max-width: 280px;
        margin: 0 auto var(--sp-lg);
    }
}

/* Comparison Layout (DEXA vs AI post) */
.comparison-flex {
    display: flex;
    gap: var(--sp-lg);
    margin: var(--sp-xl) 0;
    align-items: stretch;
}

.comparison-flex.single {
    justify-content: center;
}

.comparison-card {
    flex: 1;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: var(--sp-md);
    display: flex;
    flex-direction: column;
}

.comparison-flex.single .comparison-card {
    max-width: 400px;
}

.img-wrapper {
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.comparison-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin: var(--sp-sm) 0 0;
    font-family: var(--font-body);
}

@media (max-width: 600px) {
    .comparison-flex {
        flex-direction: column;
    }

    .comparison-flex.single .comparison-card {
        max-width: 100%;
    }

    .img-wrapper {
        overflow: visible;
    }

    .img-wrapper img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }
}

/* ============================================================
   Tables — editorial / Ringer-style
   Sits on the page, not in a card. Authority via typography +
   strong rule lines, not via box chrome. First column anchors
   each row. Last column (typically GainFrame) gets a sage tint
   to make it scannable as "this column = our app".
   ============================================================ */
.post-table-wrapper {
    margin: var(--sp-2xl) 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* No outer border — table sits on page like editorial data */
    border: none;
    border-radius: 0;
    /* Top + bottom heavy rules act as visual brackets */
    border-top: 2px solid var(--color-text);
    border-bottom: 2px solid var(--color-text);
}

.post-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.55;
    white-space: normal;
}

.post-table thead {
    background: transparent;
}

.post-table th {
    padding: 18px 20px 14px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text);
    text-align: left;
    border-bottom: 1px solid var(--color-text);
    white-space: nowrap;
}

/* Highlight the GainFrame column (last) — column-level sage tint */
.post-table th:last-child,
.post-table td:last-child {
    background: var(--color-sage-light);
    border-left: 1px solid rgba(107, 143, 113, 0.16);
}

.post-table th:last-child {
    color: var(--color-sage);
}

.post-table td {
    padding: 18px 20px;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}

/* First column = anchor — bolder + darker */
.post-table td:first-child {
    color: var(--color-text);
    font-weight: 600;
}

.post-table td strong {
    color: var(--color-text);
    font-weight: 600;
}

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

/* Row hover — barely-there sage tint */
.post-table tbody tr {
    transition: background-color 0.12s ease;
}

.post-table tbody tr:hover td:not(:last-child) {
    background: rgba(107, 143, 113, 0.04);
}

.post-table tbody tr:hover td:last-child {
    background: rgba(107, 143, 113, 0.14);
}

/* ============================================================
   Modifier: .post-table.gainframe-first
   Place GainFrame in the FIRST data column (column 2 overall — after Feature label)
   instead of the last column. Used for comparison tables wider than the viewport —
   keeps GainFrame visible without horizontal scroll. The competitor that gets
   pushed off-screen on narrow viewports should be the LEAST important one.
   ============================================================ */
.post-table.gainframe-first th:last-child,
.post-table.gainframe-first td:last-child {
    background: transparent;
    border-left: none;
}

.post-table.gainframe-first th:last-child {
    color: var(--color-text);
}

.post-table.gainframe-first th:nth-child(2),
.post-table.gainframe-first td:nth-child(2) {
    background: var(--color-sage-light);
    border-left: 1px solid rgba(107, 143, 113, 0.16);
}

.post-table.gainframe-first th:nth-child(2) {
    color: var(--color-sage);
}

.post-table.gainframe-first tbody tr:hover td {
    background: rgba(107, 143, 113, 0.04);
}

.post-table.gainframe-first tbody tr:hover td:nth-child(2) {
    background: rgba(107, 143, 113, 0.14);
}

@media (max-width: 768px) {
    .post-table-wrapper {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }

    .post-table th {
        padding: 14px 14px 11px;
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }

    .post-table td {
        padding: 14px 14px;
        font-size: 0.88rem;
    }
}

/* ============================================================
   Related Articles — chevron list
   Extracted from inline styles used in older posts so new posts
   can just use `<div class="post-related">` + plain markup.
   ============================================================ */
.post-related {
    margin-top: var(--sp-2xl);
    padding-top: var(--sp-xl);
    border-top: 1px solid var(--color-border);
}

.post-related h2,
.post-related h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.012em;
    color: var(--color-text);
    margin: 0 0 var(--sp-md);
}

.post-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.post-related li {
    margin: 0;
    padding: 0;
}

.post-related a {
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.post-related a:hover {
    color: var(--color-sage);
    transform: translateX(2px);
}

.post-related a::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    /* Chevron-double-right SVG inline as a mask — color picks up `color` */
    background-color: var(--color-text-tertiary);
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M13 5l7 7-7 7M5 5l7 7-7 7'/></svg>");
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M13 5l7 7-7 7M5 5l7 7-7 7'/></svg>");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    transition: background-color 0.15s ease;
}

.post-related a:hover::before {
    background-color: var(--color-sage);
}

/* Footer */
.post-footer {
    padding: var(--sp-xl) 0 var(--sp-2xl);
    border-top: 1px solid var(--color-border);
}

.post-back-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    text-decoration: none;
    transition: letter-spacing 0.3s ease;
}

.post-back-link:hover {
    letter-spacing: 0.02em;
}

/* Tips List */
.post-tips {
    counter-reset: tip;
    list-style: none;
    padding-left: 0;
}

.post-tips li {
    counter-increment: tip;
    position: relative;
    padding-left: 48px;
    margin-bottom: var(--sp-lg);
}

.post-tips li::before {
    content: counter(tip);
    position: absolute;
    left: 0;
    top: 2px;
    width: 32px;
    height: 32px;
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
}

/* =====================================================
   EMAIL CAPTURE FORM
   ===================================================== */

.email-capture {
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
}

.email-capture-heading {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: var(--sp-xs);
    color: var(--color-text);
}

.email-capture-sub {
    font-size: 0.9rem;
    color: var(--color-text-tertiary);
    margin-bottom: var(--sp-md);
}

.email-capture-form {
    display: flex;
    gap: var(--sp-sm);
    align-items: stretch;
}

.email-capture-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s ease;
}

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

.email-capture-form input[type="email"]::placeholder {
    color: var(--color-text-tertiary);
}

.email-capture-form button {
    padding: 12px 24px;
    background: var(--color-text);
    color: var(--color-bg);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.email-capture-form button:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.email-capture-privacy {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    margin-top: var(--sp-sm);
}

@media (max-width: 480px) {
    .email-capture-form {
        flex-direction: column;
    }

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

/* =====================================================
   BLOG POST RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }

    .post-hero-image {
        margin: 0 0 var(--sp-xl);
    }

    .post-feature-grid {
        grid-template-columns: 1fr;
    }

    .post-body h2 {
        font-size: 1.35rem;
    }

    /* TestFlight CTA — mobile */
    .post-cta {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }

    .post-cta h3 {
        font-size: 1.25rem !important;
    }

    .post-cta p {
        font-size: 0.85rem !important;
    }

    .testflight-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.9rem;
        box-sizing: border-box;
    }

    .testflight-btn svg {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
}

/* =====================================================
   RESEARCH PAPER CARD (Blog Hero)
   ===================================================== */

.research-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--sp-xl) var(--sp-xl) var(--sp-lg);
    margin-bottom: var(--sp-2xl);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.25s ease;
    position: relative;
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}

.research-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--color-surface);
    color: var(--color-text-secondary);
    border: 1px solid var(--color-border);
    margin-bottom: var(--sp-md);
}

.research-card-badge svg {
    color: var(--color-text-tertiary);
}

.research-card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: var(--sp-sm);
}

.research-card-authors {
    font-size: 0.88rem;
    color: var(--color-text-tertiary);
    margin-bottom: var(--sp-md);
    line-height: 1.5;
}

.research-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--sp-md);
}

.research-card-journal {
    font-weight: 600;
    font-style: italic;
    color: var(--color-text);
}

.research-card-dot {
    color: var(--color-text-tertiary);
}

.research-card-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-full);
    background: #e8f5e9;
    color: #2e7d32;
}

.research-card-stat {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--sp-sm) var(--sp-md);
    margin-bottom: var(--sp-md);
    border-left: 3px solid var(--color-text);
}

.research-card-link {
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
    transition: letter-spacing 0.25s ease;
}

.research-card:hover .research-card-link {
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .research-card {
        padding: var(--sp-lg) var(--sp-md) var(--sp-md);
    }

    .research-card-title {
        font-size: 1.1rem;
    }

    .research-card-stat {
        font-size: 0.9rem;
    }
}

/* =====================================================
   SIDE-BY-SIDE PHONES (Precision BF)
   ===================================================== */

.side-by-side-phones {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--sp-lg);
}

.side-by-side-phones .phone-frame {
    flex: 1;
    max-width: 280px;
}

.side-by-side-phones .phone-frame img {
    width: 100%;
    border-radius: 32px;
}

@media (max-width: 600px) {
    .side-by-side-phones {
        flex-direction: column;
        align-items: center;
        gap: var(--sp-md);
    }

    .side-by-side-phones .phone-frame {
        max-width: 260px;
    }
}

/* =====================================================
   DEXA COMPARISON CARD
   ===================================================== */
.dexa-card {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-elevated);
    overflow: hidden;
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
}

.dexa-images {
    display: flex;
    width: 100%;
    /* Create a fixed landscape window for the side-by-side */
    aspect-ratio: 16 / 10;
}

.dexa-img-wrap {
    flex: 1;
    position: relative;
    /* Force 50% width so they perfectly split */
    width: 50%;
    overflow: hidden;
    background: var(--color-surface);
    /* fallback if image doesn't load */
}

/* Add a subtle border between the two if they touch */
.dexa-img-wrap:first-child {
    border-right: 1px solid var(--color-border);
}

.dexa-img-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* contain or cover? The user's dexa image is a tall document, the app is a tall phone.
       If we use cover, it'll crop the tops/bottoms aggressively. 
       If we use contain with a surface background, the whole thing fits. Let's use cover 
       but center it on the most important data, then offer a stacked mobile view. */
    object-fit: cover;
    object-position: center 20%;
    /* Biased towards the top where the main data usually is */
}

.dexa-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.dexa-label-app {
    background: rgba(107, 143, 113, 0.9);
    /* var(--color-sage) with opacity */
}

/* Stat comparison row */
.dexa-stats {
    display: flex;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.dexa-stat {
    flex: 1;
    text-align: center;
    padding: 16px 8px;
    border-right: 1px solid var(--color-border);
}

.dexa-stat:last-child {
    border-right: none;
}

.dexa-stat-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-tertiary);
    margin-bottom: 6px;
}

.dexa-stat-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.dexa-stat-value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.dexa-stat-app {
    color: var(--color-sage);
}

.dexa-stat-match {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .dexa-card {
        max-width: 100%;
        border-radius: var(--radius-sm);
    }

    /* On mobile, stacking them prevents them from becoming tiny unreadable slivers */
    .dexa-images {
        flex-direction: column;
        aspect-ratio: auto;
    }

    .dexa-img-wrap {
        width: 100%;
        aspect-ratio: 16 / 10;
        /* Fixed height ratio per image when stacked */
    }

    .dexa-img-wrap:first-child {
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .dexa-stat-value {
        font-size: 0.9rem;
    }

    .dexa-stat-label {
        font-size: 0.6rem;
    }

    .dexa-stat {
        padding: 12px 6px;
    }
}

/* =====================================================
   FEATURES HUB PAGE
   ===================================================== */

/* Hero */
.features-hub-hero {
    padding: var(--sp-section) 0 var(--sp-2xl);
    text-align: center;
    background: var(--color-bg);
}

.features-hub-hero .blog-header-title {
    font-family: var(--font-display);
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    max-width: 720px;
    margin: 0 auto var(--sp-lg);
    color: var(--color-text);
}

.features-hero-image-wrapper {
    max-width: 900px;
    margin: var(--sp-xl) auto 0;
}

.features-hero-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

.features-hub-hero .blog-header-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto var(--sp-xl);
    line-height: 1.7;
}

/* Category sections */
.features-category {
    padding: var(--sp-2xl) 0;
}

.features-category.alt-bg {
    background: var(--color-surface);
}

.features-category-header {
    text-align: center;
    margin-bottom: var(--sp-xl);
}

.features-category-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: var(--sp-sm);
}

.features-category-desc {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Category badges */
.feature-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: var(--sp-md);
    background: var(--color-text);
    color: var(--color-bg);
}

.feature-badge.sage-badge {
    background: var(--color-sage);
    color: #fff;
}

.feature-badge.pro-badge {
    background: var(--color-brand-red);
    color: #fff;
}

/* Feature link grid — 2 columns */
.features-link-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-lg);
    max-width: 900px;
    margin: 0 auto;
}

/* Feature link cards */
.feature-link-card {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-md);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--sp-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
}

/* Override the feature-icon for hub page — inline with text, not stacked */
.feature-link-card .feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-bottom: 0;
}

.feature-link-content h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.feature-link-content p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* Personas section */
.personas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-lg);
    max-width: 900px;
    margin: 0 auto;
}

.persona-card {
    text-align: center;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--sp-xl) var(--sp-lg);
}

.persona-emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto var(--sp-md);
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.persona-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--sp-sm);
}

.persona-card p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* CTA section (features page uses generic .cta) */
.cta {
    padding: var(--sp-section) 0;
    text-align: center;
    background: var(--color-bg);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin: var(--sp-md) auto var(--sp-xl);
    max-width: 480px;
}

/* ======================== RESPONSIVE ======================== */
@media (max-width: 768px) {
    .features-hub-hero .blog-header-title {
        font-size: 2.25rem;
    }

    .features-hub-hero .blog-header-subtitle {
        font-size: 1.05rem;
    }

    .features-category-title {
        font-size: 1.75rem;
    }

    .features-link-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-md);
    }

    .personas-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-md);
    }

    .features-category {
        padding: var(--sp-xl) 0;
    }

    .features-hub-hero {
        padding: var(--sp-2xl) 0 var(--sp-xl);
    }
}

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

    .features-hub-hero .blog-header-title {
        font-size: 1.85rem;
    }
}

/* =====================================================
   LANDING PAGE v2 — Modern Dark Hero + Premium Refinements
   ===================================================== */

/* ---- DARK HERO ---- */
.hero-dark {
    background: #0C0C0E;
    position: relative;
    overflow: hidden;
    padding: 140px 0 96px;
}

/* Subtle radial glow behind content */
.hero-dark::before {
    content: "";
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 700px;
    background: radial-gradient(ellipse at center,
        rgba(107, 143, 113, 0.18) 0%,
        rgba(232, 76, 61, 0.08) 40%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
}



.hero-dark .container {
    position: relative;
    z-index: 1;
}

/* Dark hero text overrides */
.hero-dark .hero-title {
    font-size: 4.5rem;
    color: #FFFFFF;
    letter-spacing: -0.04em;
    line-height: 1.04;
    font-weight: 900;
    margin-bottom: 20px;
}

.hero-dark .hero-title .accent-underline {
    color: #FFFFFF;
}

.hero-dark .hero-title .accent-underline::after {
    background: var(--color-brand-red);
    height: 5px;
    opacity: 0.8;
    bottom: 1px;
}

.hero-dark .hero-subtitle {
    color: rgba(255,255,255,0.62);
    font-size: 1.2rem;
    line-height: 1.65;
    max-width: 460px;
    margin-bottom: 20px;
}

/* Feature chips on dark bg */
.hero-dark .hero-features {
    margin: 0 0 36px 0;
}

.hero-dark .hero-chip {
    color: rgba(255,255,255,0.50);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-dark .hero-chip svg {
    color: rgba(255,255,255,0.45);
    opacity: 1;
}

/* App Store badge on dark bg — glow on hover */
.hero-dark .app-store-badge-link {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.hero-dark .app-store-badge-link:hover {
    transform: translateY(-2px) scale(1.04);
    filter: drop-shadow(0 8px 24px rgba(255,255,255,0.15));
}

/* ---- DARK → LIGHT TRANSITION STRIP ---- */
.hero-bridge {
    background: linear-gradient(180deg, #0C0C0E 0%, var(--color-surface) 100%);
    height: 160px;
    margin-top: -1px;
}

/* ---- REFINED SOCIAL PROOF ---- */
.social-proof-v2 {
    position: relative;
    z-index: 5;
    margin-top: -100px;
    padding: 0;
    background: transparent;
}

.proof-strip-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #F7F7F8;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.06);
    overflow: hidden;
}

.proof-item-v2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    gap: 4px;
}

.proof-item-v2:not(:last-child) {
    border-right: 1px solid rgba(0,0,0,0.06);
}

.proof-num {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 1;
}

.proof-desc {
    font-size: 0.78rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
}

/* ---- REFINED FEATURE BADGES ---- */
.feature-badge-v2 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border: 1.5px solid rgba(0,0,0,0.12);
    background: transparent;
    color: var(--color-text-secondary);
    margin-bottom: 18px;
}

/* ---- REFINED FEATURE HEADINGS ---- */
.feature-section-v2 .feature-text h2 {
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--color-text);
    margin-bottom: 20px;
}

.feature-section-v2 .feature-text p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

/* ---- FEATURE CARD GRID — HOVER UPGRADE ---- */
.feature-card-v2 {
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(107,143,113,0.0), rgba(232,76,61,0.0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card-v2:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(107,143,113,0.4), rgba(232,76,61,0.25));
}

.feature-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.08);
}

/* ---- DARK CTA SECTION ---- */
.cta-dark {
    background: #0C0C0E;
    padding: var(--sp-section) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-dark::before {
    content: "";
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse at center,
        rgba(107, 143, 113, 0.15) 0%,
        transparent 65%);
    pointer-events: none;
}

.cta-dark .section-title {
    color: #FFFFFF;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.cta-dark .cta-subtitle {
    color: rgba(255,255,255,0.55);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.cta-dark .app-store-badge-link:hover img {
    filter: brightness(1.05);
}

/* ---- HERO MOCKUP ROW (video card + stats side-by-side) ---- */
.hero-mockup-row {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: 100%;
}

.hero-video-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 32px;
    padding: 16px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

.hero-video-card video {
    display: block;
    width: 240px;
    height: auto;
    border-radius: 20px;
}

/* ---- STATS COL (right of video) ---- */
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-stats-col {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-top: 0;
    flex-wrap: nowrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat-num {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}

/* ---- RESPONSIVE — hero dark ---- */
@media (max-width: 768px) {
    .hero-dark {
        padding: 100px 0 72px;
        text-align: center;
        overflow-x: hidden;
    }

    .hero-dark .container {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .hero-dark .hero-title {
        font-size: 2.85rem;
    }

    .hero-dark .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Features grid: single column on mobile to prevent overflow */
    .hero-dark .hero-features {
        grid-template-columns: 1fr;
        max-width: 100%;
        text-align: left;
        margin-left: auto;
        margin-right: auto;
        display: inline-grid;
    }

    /* Video + stats: stack vertically on mobile */
    .hero-mockup-row {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }

    .hero-video-card {
        width: 100%;
        max-width: 280px;
        padding: 12px;
    }

    .hero-video-card video {
        width: 100%;
    }

    /* Stats become a horizontal row below the card */
    .hero-stats-col {
        flex-direction: row;
        gap: 32px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .proof-strip-v2 {
        flex-wrap: wrap;
        gap: 0;
    }

    .proof-item-v2 {
        min-width: 50%;
    }

    .proof-item-v2:nth-child(1),
    .proof-item-v2:nth-child(3) {
        border-right: 1px solid rgba(0,0,0,0.06);
    }

    .proof-item-v2:nth-child(1),
    .proof-item-v2:nth-child(2) {
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }

    .proof-item-v2:nth-child(3),
    .proof-item-v2:nth-child(4) {
        border-right: none;
    }

    .cta-dark .section-title {
        font-size: 2.2rem;
    }

    .feature-section-v2 .feature-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-dark .hero-title {
        font-size: 2.1rem;
        letter-spacing: -0.02em;
    }

    .hero-dark .container {
        padding-left: 20px;
        padding-right: 20px;
    }

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

    .hero-video-card {
        max-width: 240px;
    }
}

/* =====================================================
   REPLACES VALUE ANCHORING
   ===================================================== */

.replaces-tag {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent, #66bb6a);
    margin-top: var(--sp-md);
    padding: 8px 16px;
    border: 1px dashed var(--color-accent, #66bb6a);
    border-radius: var(--radius-sm);
    display: inline-block;
    letter-spacing: 0.01em;
}

/* =====================================================
   HERO TRUST COPY
   ===================================================== */

.hero-trust-copy {
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    opacity: 0.8;
    letter-spacing: 0.01em;
    margin: 0;
}

/* =====================================================
   FAQ SECTION
   ===================================================== */

.faq-section {
    padding: var(--sp-section) 0;
    background: var(--color-surface);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

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

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-question {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    padding: var(--sp-md) 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-md);
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--color-accent, #66bb6a);
}

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

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-question::after {
    content: '\2212';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 0 var(--sp-md) 0;
}

.faq-answer p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
}
