/* Modern Clean Minimalist Design System v4 */
:root {
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-subtle-hover: #e2e8f0;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    
    --accent-emerald: #059669;
    --accent-emerald-light: #ecfdf5;
    --accent-emerald-border: #a7f3d0;
    
    --accent-indigo: #4f46e5;
    --accent-indigo-light: #eef2ff;
    
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-dark: #0f172a;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Bookerly', 'Newsreader', Georgia, serif;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 10px 30px -4px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    --shadow-elevated: 0 20px 45px -10px rgba(15, 23, 42, 0.1), 0 8px 20px -4px rgba(15, 23, 42, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header-nav {
    border-bottom: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-mark {
    font-size: 1.35rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-ghost-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: color 0.15s;
}

.nav-ghost-link:hover {
    color: var(--text-primary);
}

.btn-shortcut-pill {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-sans);
}

.btn-shortcut-pill:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.nav-pack-btn {
    background: var(--text-primary);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-sans);
}

.nav-pack-btn:hover {
    background: #27272a;
    transform: translateY(-1px);
    box-shadow: var(--shadow-subtle);
}

/* Content Container */
.content-wrapper {
    max-width: 880px;
    margin: 0 auto;
    padding: 48px 20px 100px;
}

/* Hero Section */
.hero-block {
    text-align: center;
    margin-bottom: 40px;
}

.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    box-shadow: var(--shadow-subtle);
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-emerald);
}

.hero-headline {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hero-serif-accent {
    font-family: var(--font-serif);
    font-weight: 500;
    font-style: italic;
    color: var(--accent-emerald);
}

.hero-subline {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 20px;
}

.hero-free-hook {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-emerald-light);
    border: 1px solid var(--accent-emerald-border);
    color: var(--accent-emerald);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
}

/* Central Action Card */
.action-card-container {
    margin-bottom: 64px;
}

.drop-card {
    background: var(--bg-surface);
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-lg);
    padding: 44px 32px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.2s ease;
    cursor: pointer;
}

.drop-card:hover, .drop-card.drag-over {
    border-color: var(--text-primary);
    border-style: solid;
    box-shadow: var(--shadow-elevated);
    transform: translateY(-2px);
}

.drop-icon-wrap {
    width: 60px;
    height: 60px;
    background: var(--bg-subtle);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: transform 0.2s ease;
}

.drop-card:hover .drop-icon-wrap {
    transform: scale(1.08);
}

.drop-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.drop-subheading {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.btn-text-link {
    background: none;
    border: none;
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

.btn-text-link:hover {
    color: var(--accent-emerald);
}

.drop-badges-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.mini-badge {
    background: var(--bg-subtle);
    color: var(--text-secondary);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.drop-instant-try {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.btn-instant-sample {
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
    border: 1px solid var(--accent-emerald-border);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-sans);
}

.btn-instant-sample:hover {
    background: var(--accent-emerald);
    color: #ffffff;
}

/* Active File State */
.file-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-subtle);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 22px;
    text-align: left;
}

.file-info-group {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
}

.file-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.file-name {
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 440px;
}

.file-stats {
    font-size: 0.84rem;
    color: var(--accent-emerald);
    font-weight: 700;
}

.btn-remove-file {
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.btn-remove-file:hover {
    color: #ef4444;
}

.progress-box {
    margin-bottom: 22px;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.progress-status {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.btn-primary, .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--text-primary);
    color: #ffffff;
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: var(--text-primary);
}

/* Samples Bar */
.samples-bar {
    margin-top: 20px;
    text-align: center;
}

.samples-lead {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 10px;
}

.samples-pill-group {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.sample-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
    transition: all 0.15s ease;
    font-family: var(--font-sans);
}

.sample-btn:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

/* 3-Option Pricing Section */
.pricing-section {
    margin-bottom: 80px;
}

.section-label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 4px;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 580px;
    margin: 0 auto 36px;
}

.pricing-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pricing-plan-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    position: relative;
}

.plan-featured {
    border: 2px solid var(--accent-emerald);
    box-shadow: var(--shadow-elevated);
}

.plan-ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-emerald);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.plan-tier-name {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.plan-price-wrap {
    display: flex;
    align-items: baseline;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.plan-currency {
    font-size: 1.6rem;
    font-weight: 700;
}

.plan-amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.plan-capacity {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-emerald);
    margin-bottom: 6px;
}

.plan-book-equivalent {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-tertiary);
    background: var(--bg-subtle);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 20px;
}

.plan-features {
    list-style: none;
    margin-bottom: 28px;
    flex-grow: 1;
}

.plan-features li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.45;
}

.plan-features li strong {
    color: var(--text-primary);
}

.btn-plan {
    width: 100%;
    padding: 13px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-sans);
    text-align: center;
}

.btn-plan-ghost {
    background: var(--bg-subtle);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-plan-ghost:hover {
    background: var(--bg-subtle-hover);
    border-color: var(--border-medium);
}

.btn-plan-primary {
    background: var(--text-primary);
    color: #ffffff;
    border: 1px solid var(--text-primary);
}

.btn-plan-primary:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.btn-plan-emerald {
    background: var(--accent-emerald);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-plan-emerald:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35);
}

/* Archives Directory Section */
.archives-section {
    margin-bottom: 80px;
}

.archives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.archive-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}

.archive-card:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.archive-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.archive-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.archive-title-arrow {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.archive-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
    flex-grow: 1;
}

.archive-tip-box {
    background: var(--accent-emerald-light);
    border: 1px solid var(--accent-emerald-border);
    border-radius: var(--radius-md);
    padding: 14px 20px;
    font-size: 0.88rem;
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Download & Cloud Options Section */
.downloads-section {
    margin-bottom: 80px;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.download-option-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    box-shadow: var(--shadow-subtle);
}

.download-option-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.download-option-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.download-option-body {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Shortcut Modal & Guide */
.shortcut-guide-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 80px;
    box-shadow: var(--shadow-card);
}

.shortcut-guide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.shortcut-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.shortcut-platform {
    background: var(--bg-subtle);
    padding: 18px;
    border-radius: var(--radius-md);
}

.shortcut-platform h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.shortcut-platform ol {
    margin-left: 18px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Before / After Section */
.preview-comparison-section {
    margin-bottom: 80px;
}

.comparison-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.display-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
}

.panel-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    align-self: flex-start;
}

.tag-warning {
    background: #fee2e2;
    color: #991b1b;
}

.tag-success {
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
}

.mock-page {
    border-radius: var(--radius-sm);
    padding: 22px;
    flex-grow: 1;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Realistic Scanned PDF Pain */
.mock-scan {
    background: linear-gradient(135deg, #f5efe1 0%, #ece2cb 100%);
    border: 1px solid #d4c5a9;
    box-shadow: inset 16px 0 20px -8px rgba(80, 60, 30, 0.14), inset 0 0 8px rgba(0,0,0,0.03);
    font-family: var(--font-serif);
    font-size: 0.82rem;
    line-height: 1.4;
    color: #383229;
    transform: rotate(-0.35deg);
    position: relative;
}

.mock-scan::before {
    content: "SCAN ARTIFACT • MARGIN CUTOFF";
    position: absolute;
    top: 6px;
    right: 8px;
    font-family: var(--font-sans);
    font-size: 0.62rem;
    font-weight: 700;
    color: #9a8870;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.mock-scan-header {
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: #2b251e;
    letter-spacing: 0.05em;
    border-bottom: 1px dashed #cfbe9f;
    padding-bottom: 6px;
}

.mock-scan-lines p {
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #3b3429;
    letter-spacing: -0.01em;
}

.mock-scan-smudge {
    font-size: 0.72rem;
    color: #8c7b64;
    font-style: italic;
    background: rgba(180, 160, 130, 0.15);
    padding: 6px 10px;
    border-radius: 4px;
    margin: 10px 0;
    border-left: 3px solid #bba789;
}

.mock-pain-list {
    list-style: none;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e0d4be;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mock-pain-list li {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    color: #b91c1c;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Pristine Reflowed Bookerly Cure */
.mock-reflow {
    background: #fcfbf7;
    border: 1px solid #ede8dc;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    font-family: var(--font-serif);
    font-size: 1.02rem;
    line-height: 1.75;
    color: #1a1a1a;
}

.mock-reflow-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 0.76rem;
    font-weight: 700;
    color: #059669;
    padding-bottom: 10px;
    border-bottom: 1px solid #ede8dc;
    margin-bottom: 14px;
}

.mock-reflow-pill {
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 1px solid #a7f3d0;
}

.mock-chapter {
    font-weight: 800;
    font-size: 1.22rem;
    margin-bottom: 10px;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.mock-dropcap {
    float: left;
    font-size: 3rem;
    line-height: 0.8;
    padding-top: 4px;
    padding-right: 8px;
    font-weight: 800;
    color: #1e3a29;
    font-family: var(--font-serif);
}

.mock-art-plate {
    margin: 14px 0;
    text-align: center;
    padding: 12px;
    background: #f7f5ee;
    border: 1px solid #ebe5d8;
    border-radius: var(--radius-sm);
}

.mock-art-img {
    max-height: 110px;
    margin: 0 auto 6px;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

.mock-art-caption {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.78rem;
    color: #57534e;
}

.mock-cure-list {
    list-style: none;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #ede8dc;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mock-cure-list li {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    color: #047857;
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-caption {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: left;
}

.comparison-action-center {
    text-align: center;
}

.btn-sample-trigger {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font-sans);
    box-shadow: var(--shadow-subtle);
}

.btn-sample-trigger:hover {
    border-color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

/* Compact FAQ */
.compact-faq {
    max-width: 720px;
    margin: 0 auto 40px;
}

.faq-headline {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 22px;
    text-align: center;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-row {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    box-shadow: var(--shadow-subtle);
    transition: border-color 0.15s;
}

.faq-row[open] {
    border-color: var(--border-medium);
}

.faq-summary {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    outline: none;
}

.faq-detail {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-overlay.open {
    display: flex;
}

.modal-container {
    background: #ffffff;
    width: 100%;
    max-width: 1060px;
    height: 88vh;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}

.modal-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-light);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
}

.modal-badge {
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.modal-book-name {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-modal-convert {
    background: var(--text-primary);
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
}

.btn-modal-convert:hover {
    opacity: 0.9;
}

.btn-modal-dismiss {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.btn-modal-dismiss:hover {
    color: var(--text-primary);
}

.modal-frame {
    width: 100%;
    flex-grow: 1;
    border: none;
    background: #ffffff;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-light);
    background: #ffffff;
    padding: 36px 24px;
}

.footer-inner {
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    color: var(--text-tertiary);
}

.footer-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
}

.footer-nav-links a:hover {
    color: var(--text-primary);
}

/* Responsive Mobile-First Polish */
@media (max-width: 840px) {
    .header-inner {
        padding: 12px 16px;
    }
    .content-wrapper {
        padding: 20px 16px 50px;
    }
    .hero-block {
        margin-bottom: 24px;
    }
    .hero-headline {
        font-size: clamp(2rem, 8vw, 2.65rem);
        line-height: 1.15;
    }
    .hero-subline {
        font-size: 1.02rem;
        line-height: 1.55;
        margin-bottom: 16px;
    }
    .hero-free-hook {
        font-size: 0.85rem;
        padding: 10px 14px;
        line-height: 1.45;
    }
    .preview-comparison-section {
        margin: 36px auto 28px;
    }
    .comparison-display {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .display-panel {
        padding: 22px 18px;
        border-radius: var(--radius-lg);
    }
    .mock-page {
        padding: 18px 14px;
        margin-bottom: 14px;
    }
    .mock-art-plate {
        padding: 8px;
        margin: 10px 0;
    }
    .mock-art-img {
        max-height: 75px;
    }
    .mock-pain-list li, .mock-cure-list li {
        font-size: 0.82rem;
        line-height: 1.45;
    }
    .btn-sample-trigger {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        font-size: 0.92rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .pricing-grid-3 {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
        gap: 20px;
    }
    .pricing-plan-card {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
    }
    .btn-plan {
        min-height: 48px;
        font-size: 0.98rem;
    }
    .archives-grid, .downloads-grid, .shortcut-grid {
        grid-template-columns: 1fr;
    }
    .button-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .drop-card {
        padding: 22px 16px;
    }
    .search-input-group, .link-input-group {
        flex-direction: column;
        gap: 10px;
    }
    .book-search-input, .link-url-input {
        width: 100%;
        font-size: 16px; /* prevent iOS auto-zoom */
        padding: 14px 16px;
    }
    .btn-fetch-link {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }
    .input-mode-tabs {
        display: flex;
        width: 100%;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
        gap: 4px;
        padding: 4px;
        border-radius: var(--radius-full);
    }
    .mode-tab {
        flex: 1 1 0;
        justify-content: center;
        padding: 10px 6px;
        font-size: 0.82rem;
        white-space: nowrap;
    }
    .mode-tab .tab-pill {
        display: none;
    }
    .search-suggestions-row {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        margin-top: 14px;
    }
    .search-chip {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 0.82rem;
        padding: 8px 12px;
    }
    .bookshelf-stage {
        padding: 16px 8px 12px;
    }
    .bookshelf-track {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 16px;
    }
    .shelf-book-item {
        scroll-snap-align: start;
    }
    .email-capture-card {
        padding: 28px 18px;
    }
    .email-form {
        flex-direction: column;
        gap: 12px;
    }
    .email-input {
        width: 100%;
        font-size: 16px;
        padding: 14px 16px;
    }
    .btn-email-submit {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }
    .modal-overlay {
        padding: 10px;
    }
    .bonus-card-popup, .account-card-popup, .book-details-card {
        padding: 24px 18px;
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-lg);
    }
    .modal-container {
        height: 94vh;
        max-height: 94vh;
        border-radius: var(--radius-lg);
    }
    .book-details-layout {
        flex-direction: column;
    }
    .site-footer {
        padding: 28px 16px;
    }
    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .footer-nav-links a, .footer-nav-links button {
        margin: 0 8px;
    }
}

@media (max-width: 520px) {
    .header-inner {
        padding: 10px 14px;
    }
    .brand-logo {
        font-size: 1.15rem;
        gap: 6px;
    }
    .logo-mark {
        font-size: 1.2rem;
    }
    .header-actions {
        gap: 8px;
    }
    .btn-account-pill {
        font-size: 0.78rem;
        padding: 7px 10px;
        gap: 4px;
        white-space: nowrap;
    }
    .btn-menu-trigger {
        font-size: 0.78rem;
        padding: 7px 10px;
    }
    .hero-headline {
        font-size: 2.1rem;
        line-height: 1.18;
    }
    .hero-subline {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    .hero-free-hook {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    .mode-tab {
        font-size: 0.76rem;
        padding: 9px 4px;
    }
    .modal-overlay {
        padding: 8px;
        align-items: flex-end;
    }
    .bonus-card-popup, .account-card-popup, .book-details-card {
        padding: 22px 16px 28px;
        border-radius: 20px 20px 0 0;
    }
    .chat-drawer-container {
        width: 100%;
        max-width: 100%;
    }
}
