*{box-sizing:border-box}body{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',sans-serif;margin:0;color:#111827;background:#ffffff;line-height:1.6}
a{color:#111827;text-decoration:none}a:hover{color:#6b7280;text-decoration:none}
.container{max-width:1200px;margin:0 auto;padding:48px 24px}
header h1{margin:0 0 4px;color:#111827}header .muted{color:#6b7280}
.card{background:#ffffff;border:1px solid #e5e7eb;border-radius:8px;padding:32px;margin:24px 0}
label{display:block;margin-bottom:8px;color:#111827}
input[type=url]{width:100%;padding:14px 16px;border-radius:8px;border:1px solid #cbd5e1;background:#ffffff;color:#111827;font-size:16px;/* Prevents zoom on iOS */}
button{margin-top:16px;padding:16px 24px;border-radius:8px;border:1px solid #d1d5db;background:#111827;color:#ffffff;font-weight:500;cursor:pointer;transition:all 0.2s ease;min-height:44px;font-size:16px;/* Touch-friendly size */}
button:hover{background:#374151;border-color:#9ca3af}
button:disabled{background:#94a3b8;cursor:not-allowed;box-shadow:none}
.microtext{font-size:13px;color:#6b7280;line-height:1.5}
.error{color:#dc2626;margin-top:8px}
.footer{color:#6b7280;font-size:14px}
h3{color:#111827;margin:0 0 20px;font-weight:500;font-size:clamp(16px,4vw,18px)}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:32px}
.bar{background:#e2e8f0;border-radius:999px;height:10px;overflow:hidden;margin:8px 0}
.bar-fill{background:#2563eb;height:100%}
.overall{display:flex;align-items:center;gap:16px}
.overall .score{font-size:42px;font-weight:800;color:#111827;min-width:72px;text-align:center}
.pre{white-space:pre-wrap;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;padding:12px;color:#334155;max-height:400px;overflow:auto}
.muted{color:#6b7280}
.hero-card{background:#ffffff;border:1px solid #e5e7eb;border-radius:8px;padding:48px;margin:24px 0;display:flex;flex-direction:column;gap:24px}
.hero-card h2{margin:0;color:#111827;font-size:32px;font-weight:700}
.hero-intro{margin:0;color:#374151;font-size:clamp(16px,4vw,18px);line-height:1.6}
.hero-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.hero-list li{color:#374151;line-height:1.5;font-size:15px;padding-left:0}
.hero-list strong{color:#111827;font-weight:600}
.hero-note{margin:0;color:#6b7280;font-size:14px}

.pro-hero{display:grid;gap:32px}
.pro-hero .hero-content{display:flex;flex-direction:column;gap:20px}
.pro-hero .hero-form{background:#ffffff;border:1px solid #e2e8f0;border-radius:16px;padding:24px;box-shadow:0 12px 30px rgba(15,23,42,0.12);display:flex;flex-direction:column;gap:12px}
.pro-hero .hero-form label{font-weight:600;color:#111827}
.pro-hero .hero-form input[type=url]{margin-top:4px}
.pro-hero .hero-form button{margin-top:12px;width:100%}
.pro-hero .form-hint{margin:0;color:#6b7280}
.pro-hero .error{margin:4px 0 0}
@media (min-width:960px){
  .pro-hero{grid-template-columns:1.1fr 0.9fr;align-items:start}
  .pro-hero .hero-form{position:sticky;top:32px}
}


/* Executive Summary Styles */
.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;margin-top:16px}
.summary-section h4{color:#111827;margin:0 0 12px;font-size:16px}
.score-badge{display:inline-block;padding:8px 16px;border-radius:8px;font-size:18px;font-weight:700;margin-bottom:12px}
.score-excellent{background:#16a34a;color:white}
.score-good{background:#2563eb;color:white}
.score-fair{background:#f59e0b;color:white}
.score-poor{background:#dc2626;color:white}
.category-list,.metrics-list{list-style:none;padding:0;margin:0}
.category-list li{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid #e2e8f0}
.category-list li:last-child{border-bottom:none}
.cat-name{color:#1f2937}
.cat-score{color:#2563eb;font-weight:600}
.metrics-list li{padding:4px 0;color:#334155}

/* Results Navigation Styles */
.results-nav{display:flex;justify-content:space-between;align-items:center;padding:16px 0;margin-bottom:20px;border-bottom:1px solid #e2e8f0}
.nav-logo{display:flex;align-items:center;gap:8px;text-decoration:none;color:#111827;font-size:18px;font-weight:600}
.nav-logo:hover{text-decoration:none;color:#1d4ed8}
.logo-icon{font-size:24px}
.logo-text{color:#111827}
.new-analysis-btn{background:#2563eb;color:white;padding:8px 16px;border-radius:8px;text-decoration:none;font-weight:600;font-size:14px;transition:background 0.2s ease,box-shadow 0.2s ease;box-shadow:0 4px 12px rgba(37,99,235,0.2)}
.new-analysis-btn:hover{background:#1d4ed8;text-decoration:none;color:white;box-shadow:0 6px 16px rgba(29,78,216,0.25)}

/* Header Card Styles */
.header-card{background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%);border:1px solid #bfdbfe}
.header-content{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}
.url-section h2{margin:0 0 8px;color:#111827;font-size:24px}
.analyzed-url{margin:0;color:#2563eb;font-size:16px}
.analyzed-url a{color:#2563eb;text-decoration:none}
.analyzed-url a:hover{text-decoration:underline}
.overall-score{text-align:center}
.score-circle{display:inline-flex;align-items:center;justify-content:center;width:100px;height:100px;border-radius:50%;border:4px solid;margin-bottom:8px}
.score-circle.score-excellent{background:#ecfdf3;border-color:#0f766e;color:#0f766e}
.score-circle.score-good{background:#eff6ff;border-color:#2563eb;color:#2563eb}
.score-circle.score-fair{background:#fffbeb;border-color:#f59e0b;color:#f59e0b}
.score-circle.score-poor{background:#fef2f2;border-color:#dc2626;color:#dc2626}
.score-number{font-size:28px;font-weight:800}
.score-circle.score-loading{border-color:#7aa2f7;color:#7aa2f7;animation:score-pulse 1.4s ease-in-out infinite}
.score-circle.score-loading .score-number{font-size:30px;letter-spacing:2px}
@keyframes score-pulse{0%,100%{box-shadow:0 0 0 0 rgba(122,162,247,0.35)}50%{box-shadow:0 0 0 12px rgba(122,162,247,0)}}
.score-label{font-size:16px;font-weight:500}
.score-status{margin:0;font-weight:600;color:#334155}
.executive-summary{margin-top:20px;padding-top:20px;border-top:1px solid #e2e8f0}
.executive-summary h3{margin:0 0 12px;color:#111827}
.executive-summary p{margin:0;color:#334155;line-height:1.6}

/* Action Plan Styles */
.action-plan-card{border:1px solid #bfdbfe;background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%)}
.action-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:20px;margin-top:16px}
.action-section{padding:20px;border-radius:12px;border:2px solid;background:white;box-shadow:0 6px 18px rgba(15,23,42,0.08)}
.action-section.urgent{background:linear-gradient(135deg,#fee2e2 0%,#fecaca 100%);border-color:#dc2626}
.action-section.important{background:linear-gradient(135deg,#fef3c7 0%,#fde68a 100%);border-color:#f59e0b}
.action-section.longterm{background:linear-gradient(135deg,#dcfce7 0%,#bbf7d0 100%);border-color:#16a34a}
.action-section h4{margin:0 0 16px;font-size:16px;text-transform:uppercase;letter-spacing:0.5px;color:#111827}
.action-list{margin:0;padding:0;list-style:none}
.action-list li{margin-bottom:12px;padding-left:20px;position:relative;color:#334155;line-height:1.5}
.action-list li:before{content:'•';position:absolute;left:0;color:#2563eb;font-weight:bold}
.action-list .no-items{color:#6b7280;font-style:italic}

/* Category Analysis Styles */
.categories-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(350px,1fr));gap:20px;margin-top:20px}
.category-card{background:#ffffff;border:2px solid #e2e8f0;border-radius:12px;padding:20px;transition:transform 0.2s ease;box-shadow:0 8px 24px rgba(15,23,42,0.08)}
.category-card:hover{transform:translateY(-2px)}
.category-card.excellent{border-color:#3fb950}
.category-card.good{border-color:#0969da}
.category-card.fair{border-color:#bf8700}
.category-card.poor{border-color:#da3633}
.category-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.category-header h4{margin:0;color:#111827;font-size:18px}
.category-score{text-align:right}
.category-score .score{font-size:24px;font-weight:800;color:#111827}
.category-score .max{font-size:16px;color:#6b7280}
.score-bar{background:#e2e8f0;border-radius:8px;height:8px;overflow:hidden;margin-bottom:20px}
.score-fill{height:100%;border-radius:8px;transition:width 0.3s ease}
.category-card.excellent .score-fill{background:#3fb950}
.category-card.good .score-fill{background:#0969da}
.category-card.fair .score-fill{background:#bf8700}
.category-card.poor .score-fill{background:#da3633}
.findings-section,.recommendations-section{margin-bottom:16px}
.findings-section h5,.recommendations-section h5{margin:0 0 8px;font-size:14px;color:#111827;text-transform:uppercase;letter-spacing:0.5px}
.findings-list,.recommendations-list{margin:0;padding:0;list-style:none}
.findings-list li,.recommendations-list li{margin-bottom:8px;padding-left:16px;position:relative;color:#334155;line-height:1.4;font-size:14px}
.findings-list li:before{content:'→';position:absolute;left:0;color:#2563eb}
.recommendations-list li:before{content:'✓';position:absolute;left:0;color:#3fb950}
.evidence-section{margin-top:16px}
.evidence-section summary{color:#6b7280;cursor:pointer;font-size:14px}
.evidence-section summary:hover{color:#334155}
.evidence-list{margin:8px 0 0;padding:0;list-style:none}
.evidence-list li{margin-bottom:4px;font-size:12px;color:#334155}
.evidence-list code{background:#f1f5f9;color:#2563eb;padding:2px 4px;border-radius:4px}
.category-weight{margin-top:16px;padding-top:16px;border-top:1px solid #e2e8f0;text-align:center}
.category-weight small{color:#6b7280}

/* Detailed Category Breakdown Styles */
.category-breakdown-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:20px;margin-top:20px}
.breakdown-card{background:#ffffff;border:2px solid #e2e8f0;border-radius:12px;padding:24px;transition:transform 0.2s ease;box-shadow:0 8px 24px rgba(15,23,42,0.08)}
.breakdown-card:hover{transform:translateY(-2px)}
.breakdown-card.excellent{border-color:#3fb950;background:linear-gradient(135deg,#dcfce7 0%,#bbf7d0 100%)}
.breakdown-card.good{border-color:#2563eb;background:linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%)}
.breakdown-card.fair{border-color:#f59e0b;background:linear-gradient(135deg,#fef3c7 0%,#fde68a 100%)}
.breakdown-card.poor{border-color:#dc2626;background:linear-gradient(135deg,#fee2e2 0%,#fecaca 100%)}
.breakdown-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}
.breakdown-title{flex:1;margin-right:16px}
.breakdown-title h4{margin:0 0 8px;color:#111827;font-size:16px;font-weight:600;line-height:1.3}
.breakdown-weight{font-size:12px;color:#6b7280;text-transform:uppercase;letter-spacing:0.5px}
.breakdown-score-display{text-align:right;min-width:80px}
.breakdown-score-number{font-size:32px;font-weight:800;color:#111827;line-height:1}
.breakdown-score-max{font-size:14px;color:#6b7280;margin-left:2px}
.breakdown-progress{background:#e2e8f0;border-radius:6px;height:6px;overflow:hidden;margin:16px 0}
.breakdown-progress-fill{height:100%;border-radius:6px;transition:width 0.3s ease}
.breakdown-card.excellent .breakdown-progress-fill{background:#3fb950}
.breakdown-card.good .breakdown-progress-fill{background:#2563eb}
.breakdown-card.fair .breakdown-progress-fill{background:#f59e0b}
.breakdown-card.poor .breakdown-progress-fill{background:#dc2626}
.breakdown-evidence,.breakdown-recommendations{margin-bottom:20px}
.breakdown-evidence h5,.breakdown-recommendations h5{margin:0 0 12px;font-size:13px;color:#111827;text-transform:uppercase;letter-spacing:0.5px;font-weight:600}
.breakdown-evidence-list,.breakdown-recommendations-list{margin:0;padding:0;list-style:none}
.breakdown-evidence-list li{margin-bottom:8px;padding:8px 12px;background:#ffffff;border-radius:6px;color:#334155;font-size:13px;line-height:1.4;border-left:3px solid #2563eb;box-shadow:0 4px 12px rgba(15,23,42,0.08)}
.breakdown-recommendations-list li{margin-bottom:8px;padding:8px 12px;background:#ffffff;border-radius:6px;color:#334155;font-size:13px;line-height:1.4;border-left:3px solid #3fb950;box-shadow:0 4px 12px rgba(15,23,42,0.08)}
.breakdown-evidence-list li code,.breakdown-recommendations-list li code{background:#f1f5f9;color:#2563eb;padding:1px 4px;border-radius:3px;font-size:12px}

/* Page Signals Styles */
.signals-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin-top:16px}
.signal-group{background:#ffffff;border:1px solid #e2e8f0;border-radius:12px;padding:20px;box-shadow:0 8px 24px rgba(15,23,42,0.08)}
.signal-group h4{margin:0 0 12px;color:#111827;font-size:16px;border-bottom:1px solid #e2e8f0;padding-bottom:8px}
.signal-list{margin:0;padding:0;list-style:none}
.signal-list li{margin-bottom:8px;color:#334155;line-height:1.4}
.signal-list strong{color:#111827}
.warning{color:#f59e0b;font-weight:600}
.error{color:#dc2626;font-weight:600}
.schema-tag{display:inline-block;background:#2563eb;color:white;padding:2px 6px;border-radius:4px;font-size:12px;margin-right:4px}

/* Detailed Recommendations Styles */
.recommendations-container{margin-top:20px}
.priority-section{margin-bottom:30px}
.priority-section h4{margin:0 0 16px;color:#111827;font-size:18px;display:flex;align-items:center;gap:8px}
.recommendations-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px}
.recommendation-card{background:#ffffff;border:2px solid #e2e8f0;border-radius:12px;padding:20px;transition:transform 0.2s ease;box-shadow:0 8px 24px rgba(15,23,42,0.08)}
.recommendation-card:hover{transform:translateY(-2px)}
.recommendation-card.high{border-color:#ff7b72}
.recommendation-card.medium{border-color:#ffa657}
.recommendation-card.low{border-color:#3fb950}
.rec-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}
.rec-header h5{margin:0;color:#111827;font-size:14px;flex:1;margin-right:12px}
.rec-badges{display:flex;flex-direction:column;gap:4px}
.impact-badge,.effort-badge{padding:2px 6px;border-radius:4px;font-size:11px;font-weight:600;text-transform:uppercase}
.impact-badge.impact-high{background:#da3633;color:white}
.impact-badge.impact-medium{background:#bf8700;color:white}
.impact-badge.impact-low{background:#0969da;color:white}
.effort-badge.effort-high{background:#6c757d;color:white}
.effort-badge.effort-medium{background:#ffa657;color:white}
.effort-badge.effort-low{background:#3fb950;color:white}
.rec-task{margin:0 0 12px;color:#334155;line-height:1.5;font-size:14px}
.rec-evidence{font-size:12px;color:#6b7280}
.rec-evidence code{background:#f1f5f9;color:#2563eb;padding:2px 4px;border-radius:4px}

/* Rich Results Styles */
.rich-results-card{background:linear-gradient(135deg,#eff6ff 0%,#e0f2fe 100%);border:1px solid #bfdbfe}
.rich-results-intro{color:#334155;margin-bottom:20px;line-height:1.6}
.rich-results-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px}
.rich-result-item{display:flex;align-items:flex-start;gap:12px;padding:16px;background:#ffffff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 8px 24px rgba(15,23,42,0.08)}
.rich-result-icon{font-size:20px;flex-shrink:0;margin-top:2px}
.rich-result-item p{margin:0;color:#334155;line-height:1.5;font-size:14px}

/* Category Scores Grid */
.category-scores-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;margin-top:16px}
.category-score-item{background:#ffffff;border:2px solid #e2e8f0;border-radius:12px;padding:18px;transition:transform 0.2s ease;box-shadow:0 6px 20px rgba(15,23,42,0.08)}
.category-score-item:hover{transform:translateY(-2px)}
.category-score-item.excellent{border-color:#3fb950}
.category-score-item.good{border-color:#0969da}
.category-score-item.fair{border-color:#bf8700}
.category-score-item.poor{border-color:#da3633}
.category-name{color:#111827;font-weight:600;margin-bottom:8px;font-size:14px}
.category-score-display{display:flex;align-items:baseline;gap:4px;margin-bottom:8px}
.category-score-display .score-number{font-size:24px;font-weight:800;color:#111827}
.category-score-display .score-max{font-size:14px;color:#6b7280}
.score-bar-mini{background:#e2e8f0;border-radius:4px;height:6px;overflow:hidden}
.score-fill-mini{height:100%;border-radius:4px;transition:width 0.3s ease}
.category-score-item.excellent .score-fill-mini{background:#3fb950}
.category-score-item.good .score-fill-mini{background:#0969da}
.category-score-item.fair .score-fill-mini{background:#bf8700}
.category-score-item.poor .score-fill-mini{background:#da3633}

/* Evidence Deep Dive Styles */
.evidence-container{margin-top:16px}
.evidence-category{margin-bottom:16px;border:1px solid #e2e8f0;border-radius:12px;background:#ffffff;box-shadow:0 6px 18px rgba(15,23,42,0.08)}
.evidence-summary{padding:16px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;color:#111827;font-weight:600}
.evidence-summary:hover{background:#f1f5f9}
.evidence-summary.excellent{border-left:4px solid #3fb950}
.evidence-summary.good{border-left:4px solid #2563eb}
.evidence-summary.fair{border-left:4px solid #f59e0b}
.evidence-summary.poor{border-left:4px solid #dc2626}
.evidence-category-name{flex:1}
.evidence-score{color:#2563eb;font-weight:800}
.evidence-content{padding:0 16px 16px;border-top:1px solid #e2e8f0}
.evidence-item{margin:8px 0;padding:8px;background:#f8fafc;border-radius:8px;font-family:monospace;font-size:13px}
.evidence-key{color:#2563eb;font-weight:600}
.evidence-value{color:#334155;margin-left:8px}

/* Raw Data Styles */
.raw-data-section{margin:16px 0}
.raw-data-section summary{color:#6b7280;cursor:pointer;padding:8px 0}
.raw-data-section summary:hover{color:#334155}
.json-controls{margin:12px 0}
.copy-btn{background:#2563eb;border:0;color:white;padding:8px 12px;border-radius:8px;cursor:pointer;font-size:14px;box-shadow:0 4px 12px rgba(37,99,235,0.2);transition:background 0.2s ease,box-shadow 0.2s ease}
.copy-btn:hover{background:#1d4ed8;box-shadow:0 6px 16px rgba(29,78,216,0.25)}

/* Progress Bar Styles */
.progress-container{margin:16px 0}
.progress-bar{background:#e2e8f0;border-radius:10px;height:20px;overflow:hidden;margin-bottom:12px}
.progress-fill{background:linear-gradient(90deg,#2563eb,#1d4ed8);height:100%;width:0%;transition:width 0.3s ease;border-radius:10px}
.progress-text{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.progress-text span{color:#334155;font-weight:500}
.progress-steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.progress-step{padding:12px 16px;border-radius:12px;background:#ffffff;border:1px solid #e2e8f0;color:#6b7280;font-size:14px;transition:all 0.3s ease;box-shadow:0 4px 12px rgba(15,23,42,0.05)}
.progress-step.active{background:#eff6ff;border-color:#2563eb;color:#2563eb;box-shadow:0 6px 16px rgba(37,99,235,0.15)}
.progress-step.completed{background:#dcfce7;border-color:#16a34a;color:#15803d;box-shadow:0 6px 16px rgba(34,197,94,0.15)}
/* Locked/Premium States */
.score-circle.score-preview{background:#eff6ff;border-color:#2563eb;color:#2563eb}
.lock-banner{border:1px dashed #f59e0b;background:#fffbeb;padding:20px;margin:16px 0;border-radius:16px;color:#92400e}
.lock-banner h3{margin:0 0 8px;color:#92400e}
.lock-banner p{margin:0 0 8px;color:#b45309}
.locked-card{border:1px dashed #e2e8f0;background:#ffffff;border-radius:12px;box-shadow:0 6px 18px rgba(15,23,42,0.08);padding:20px}
.locked-card h3{margin:0 0 8px;color:#111827}
.locked-card p{margin:0;color:#6b7280}
.category-card.category-locked{border:1px dashed #e2e8f0;background:#ffffff;align-items:flex-start}
.locked-header{display:flex;justify-content:flex-end}
.locked-badge{display:inline-block;padding:4px 10px;border-radius:999px;background:#e2e8f0;color:#475569;font-size:12px;font-weight:600;text-transform:uppercase}
.categories-section h3{margin-top:8px}
.categories-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.category-card{display:flex;flex-direction:column;gap:12px;padding:20px;border-radius:12px;border:1px solid #e2e8f0;background:#ffffff;box-shadow:0 8px 24px rgba(15,23,42,0.08)}
.category-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.category-title h4{margin:0;color:#111827}
.category-meta{font-size:12px;color:#6b7280;margin-top:4px}
.category-score-display{display:flex;align-items:baseline;gap:4px;color:#111827}
.category-progress{background:#e2e8f0;border-radius:6px;height:10px;overflow:hidden}
.category-section h5{color:#111827}
.locked-card .muted{color:#6b7280}
.purchase-cta{margin-top:16px;display:flex;flex-direction:column;gap:8px}
.purchase-btn{align-self:flex-start;padding:10px 18px;border-radius:8px;border:0;background:#2563eb;color:#ffffff;font-weight:600;cursor:pointer;box-shadow:0 4px 12px rgba(37,99,235,0.2);transition:background 0.2s ease,box-shadow 0.2s ease}
.purchase-btn:hover{background:#1d4ed8;box-shadow:0 6px 16px rgba(29,78,216,0.25)}
.purchase-btn:disabled{opacity:0.6;cursor:not-allowed}
.download-card{border:1px solid #e2e8f0;background:#ffffff;border-radius:16px;padding:20px;margin:16px 0;box-shadow:0 8px 24px rgba(15,23,42,0.08)}
.download-btn{display:inline-block;padding:10px 18px;border-radius:8px;background:#2563eb;color:#ffffff;font-weight:600;text-decoration:none;border:0;box-shadow:0 4px 12px rgba(37,99,235,0.2);transition:background 0.2s ease,box-shadow 0.2s ease}
.download-btn:hover{text-decoration:none;background:#1d4ed8;box-shadow:0 6px 16px rgba(29,78,216,0.25)}

.site-header{background:#ffffff;border-bottom:1px solid #e2e8f0;box-shadow:0 4px 12px rgba(15,23,42,0.04)}
.header-inner{display:flex;justify-content:space-between;align-items:center;padding:16px 24px}
.brand{font-size:20px;font-weight:700;color:#111827;text-decoration:none}
.brand:hover{text-decoration:none;color:#1d4ed8}
.site-nav{display:flex;gap:16px;align-items:center}
.site-nav a{color:#334155;font-weight:500}
.site-nav a:hover{color:#1d4ed8}
.nav-highlight{padding:6px 14px;border:0;border-radius:999px;background:#2563eb;color:white;font-weight:600;box-shadow:0 4px 12px rgba(37,99,235,0.2);transition:background 0.2s ease,box-shadow 0.2s ease}
.nav-highlight:hover{color:white;background:#1d4ed8;box-shadow:0 6px 16px rgba(29,78,216,0.25)}
.site-footer{border-top:1px solid #e2e8f0;background:#f1f5f9;padding:24px 0;margin-top:40px}

.cta-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.cta-row .purchase-btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center}

.waitlist-form{display:flex;flex-direction:column;gap:12px}
.waitlist-form input[disabled]{opacity:0.6}
.waitlist-form button[disabled]{background:#e2e8f0;color:#949aa5}

.meta-card h3{margin-bottom:12px}
.meta-list{list-style:none;padding:0;margin:0;display:grid;gap:6px;font-size:14px;color:#334155}
.meta-list li strong{color:#111827;margin-right:6px}
.small-print{font-size:12px;color:#6b7280;margin-top:6px}

.download-form{display:flex;flex-direction:column;gap:10px}
.download-form label{color:#111827;font-size:14px}
.download-form input{width:100%;padding:10px;border-radius:8px;border:1px solid #cbd5e1;background:#ffffff;color:#111827}
.download-form .download-btn{align-self:flex-start}
:root {
  --primary:#111827;
  --primary-hover:#374151;
  --accent:#111827;
  --accent-light:#f9fafb;
  --success:#16a34a;
  --success-light:#f0fdf4;
  --warning:#f59e0b;
  --warning-light:#fef3c7;
  --ink:#111827;
  --muted:#6b7280;
  --hero-gradient:#ffffff;
  --optimization-gradient:#ffffff;
}

body {
  font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',sans-serif;
  margin:0;
  background:#ffffff;
  color:#111827;
  line-height:1.6;
}

a {
  color:#111827;
  text-decoration:none;
}

a:hover {
  color:#6b7280;
  text-decoration:none;
}

.container {
  max-width:1200px;
  margin:0 auto;
  padding:48px 24px;
}

.site-header {
  border-bottom:1px solid #e5e7eb;
  background:#ffffff;
  position: relative;
}

.header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:16px 0;
}

.brand {
  font-weight:700;
  font-size:20px;
  color:var(--ink);
}

.primary-nav {
  display:flex;
  gap:16px;
  align-items:center;
  flex-wrap:wrap;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 18px;
  color: #111827;
  padding: 8px;
  cursor: pointer;
  margin: 0;
  min-height: auto;
}

.mobile-menu-toggle:hover {
  color: #6b7280;
  background: none;
}

.primary-nav a {
  color:var(--ink);
  font-weight:500;
}

.nav-cta {
  background:#111827;
  color:#ffffff !important;
  padding:10px 20px;
  border-radius:8px;
  transition:background .2s ease;
}

.nav-cta:hover {
  background:#374151;
  color:#ffffff !important;
  text-decoration:none;
}

.site-footer {
  border-top:1px solid #e5e7eb;
  background:#ffffff;
  padding:48px 0;
  text-align:center;
}

.card {
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:48px;
  margin:32px 0;
}
.card--elevated{
  border:1px solid #d1d5db;
  background:#ffffff;
}

.card--tint {
  background:#f9fafb;
  border-color:#e5e7eb;
}

.card--dark {
  background:#0f172a;
  color:#fff;
}

.section--dark{
  background:#111827;
  color:#f9fafb;
  border-radius:8px;
  margin:48px 0;
  padding:48px;
  border:1px solid #374151;
}
.section--dark h2,
.section--dark h3,
.section--dark h4{
  color:#f8fafc;
}
.section--dark .muted{
  color:#cbd5f5;
}
.section--dark .ghost-link{
  color:#e2e8f0;
}
.section--dark .ghost-link:hover{
  color:#fff;
  text-decoration:underline;
}

.hero-card {
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  display:grid;
  gap:32px;
  padding:48px;
}

.landing-hero {
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  align-items:center;
}

.sample-hero,
.how-hero {
  grid-template-columns:1fr;
  align-items:flex-start;
}

.hero-title {
  font-size:clamp(1.8rem,5vw,3.2rem);
  margin:0 0 20px;
  color:#111827;
  font-weight:600;
  line-height:1.2;
}

.eyebrow {
  text-transform:uppercase;
  letter-spacing:0.1em;
  font-size:11px;
  font-weight:500;
  color:#6b7280;
  margin-bottom:16px;
}

.hero-list {
  list-style:none;
  padding:0;
  margin:24px 0;
  display:flex;
  flex-direction:column;
  gap:16px;
}

.hero-cta {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.primary-pill {
  display:inline-flex;
  align-items:center;
  padding:12px 24px;
  border-radius:6px;
  background:#111827;
  color:#ffffff;
  font-weight:500;
  border:1px solid #111827;
}

.ghost-link {
  color:var(--ink);
  font-weight:500;
}

.content-analysis-form {
  border-radius:8px;
  padding:32px;
  display:flex;
  flex-direction:column;
  gap:16px;
  background:#ffffff;
  border:1px solid #d1d5db;
}

.content-analysis-form input[type=url] {
  width:100%;
  padding:14px;
  border-radius:12px;
  border:1px solid #cbd5e1;
}

.button--primary,
button {
  background:#111827;
  color:#ffffff;
  border:1px solid #111827;
  border-radius:8px;
  padding:16px 24px;
  font-weight:500;
  cursor:pointer;
  transition:all 0.2s ease;
  min-height:44px;
  font-size:16px;
  /* Touch-friendly sizing */
}

.button--primary:hover,
button:hover {
  background:#374151;
  border-color:#374151;
}

button:disabled {
  background:#94a3b8;
  box-shadow:none;
  cursor:not-allowed;
}

.button--secondary {
  border:1px solid rgba(15,23,42,0.15);
  color:var(--ink);
  padding:12px 22px;
  border-radius:999px;
  font-weight:600;
}

.problem-section .problem-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:32px;
}

.solution-row {
  margin-top:24px;
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  align-items:flex-start;
}

.solution-row ul {
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:8px;
}

.trust-bar {
  text-align:center;
}

.trust-logos {
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  justify-content:center;
  font-weight:600;
  color:#1e293b;
}

.section-header {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:32px;
  align-items:flex-start;
  margin-bottom:48px;
}

.sample-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:32px;
}

.sample-grid--detail article {
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:20px;
  background:#f8fbff;
}

.before-after .comparison-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px;
}

.comparison-card {
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:20px;
  background:#fff;
}

.timeline-steps {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:20px;
}

.step-index {
  font-size:32px;
  font-weight:700;
  color:var(--accent);
}

.stat-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:16px;
  margin-top:20px;
}

.stat-badge {
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:24px;
  text-align:center;
}

.stat-value {
  font-size:28px;
  font-weight:700;
  color:#111827;
}

.consulting-cta .cta-grid,
.sample-footer-cta .cta-grid,
.research-notes .cta-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
  align-items:center;
}

.cta-actions {
  display:flex;
  flex-direction:column;
  gap:12px;
}

.progress-overlay {
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.7);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:999;
}

.progress-overlay.is-visible {
  display:flex;
}

.progress-card {
  background:#fff;
  border-radius:24px;
  padding:32px;
  width:min(520px,100%);
  box-shadow:0 40px 100px rgba(15,23,42,0.4);
}

.progress-text {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:12px;
  font-weight:600;
}

.progress-steps {
  margin-top:20px;
  display:grid;
  gap:8px;
}

.progress-step {
  padding:10px 12px;
  border-radius:999px;
  background:#f1f5f9;
  font-size:14px;
}

.progress-step.active {
  background:#dbeafe;
  color:var(--primary);
}

.progress-step.completed {
  background:#dcfce7;
  color:#14532d;
}

.code-block {
  background:#0f172a;
  color:#e2e8f0;
  padding:24px;
  border-radius:16px;
  overflow:auto;
  font-family:'JetBrains Mono','Fira Code',monospace;
}

.rubric-cards {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
}

.rubric-cards article {
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:20px;
}

.methodology-steps {
  display:grid;
  gap:12px;
  padding-left:20px;
}

.evidence-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
}

/* Add mobile menu toggle for smaller screens */
@media (max-width: 960px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .header-inner {
    justify-content: space-between;
  }
  
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  .primary-nav.is-open {
    display: flex;
  }
  
  .primary-nav a {
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 16px;
  }
  
  .primary-nav a:last-child {
    border-bottom: none;
  }
}

/* Mobile-first responsive design */
@media (max-width: 480px) {
  .container {
    padding: 24px 16px;
  }
  
  .hero-card,
  .card {
    padding: 24px 20px;
    margin: 16px 0;
  }
  
  .content-analysis-form {
    padding: 24px 20px;
  }
  
  .section--dark {
    margin: 32px -16px;
    padding: 32px 20px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .problem-section .problem-grid,
  .sample-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hero-title {
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 16px;
  }
  
  .eyebrow {
    font-size: 10px;
    margin-bottom: 12px;
  }
  
  .hero-intro {
    font-size: 16px;
    margin-bottom: 20px;
  }
  
  .hero-list li {
    font-size: 14px;
  }
  
  .hero-list {
    gap: 12px;
    margin: 20px 0;
  }
  
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .trust-logos {
    gap: 16px;
    flex-wrap: wrap;
  }
  
  .cta-actions {
    gap: 16px;
  }
  
  .solution-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .comparison-grid,
  .timeline-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .microtext {
    font-size: 12px;
    line-height: 1.4;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 32px 20px;
  }
  
  .card {
    margin: 20px 0;
  }
  
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  .primary-nav.is-open {
    display: flex;
  }
  
  .primary-nav a {
    padding: 16px 0;
    width: 100%;
    border-bottom: 1px solid #f3f4f6;
    font-size: 16px;
  }
  
  .primary-nav a:last-child {
    border-bottom: none;
  }
  
  .nav-cta {
    margin-top: 8px;
    text-align: center;
    width: 100%;
    padding: 16px 24px !important;
    border-bottom: none !important;
    border-radius: 8px;
    background: #111827 !important;
    color: #ffffff !important;
  }
  
  .hero-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 24px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .problem-section .problem-grid,
  .sample-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .section--dark {
    margin: 40px -20px;
    padding: 40px 24px;
  }
  
  .content-analysis-form {
    padding: 24px;
  }
  
  .content-analysis-form input[type=url] {
    font-size: 16px;
    padding: 16px;
  }
  
  .content-analysis-form button {
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }
  
  .primary-pill,
  .button--secondary {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
    justify-content: center;
  }
  
  .categories-grid,
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .site-footer {
    padding: 32px 0;
  }
}
.hero-intro {
  font-size:18px;
  line-height:1.7;
  color:#1f2937;
}

.stat-label {
  display:block;
  margin-top:4px;
  font-size:14px;
  color:#6b7280;
}
