/* Product demo sections (rank/lib/Content/Sections/Demos.php) — the <style> blocks of SiteStakes' SectionRenderer.js,
   scoped by .section-<key>. Each section's colors come in as custom properties on the <section> (--sd-accent…).

   Animations: by default every demo shows its finished state (no script, reduced motion, print). demos.js sets
   data-demo-state="ready" (the starting state) on each [data-demo] section, then "run" when it scrolls into view;
   data-demo-off pauses running animations while the section is out of sight. */

[data-demo][data-demo-off] * { animation-play-state: paused !important; }

/* ── speed_demo ─────────────────────────────────────────────────────────────────────────────────────────────── */
.section-speed_demo .sd-phones{display:flex;gap:40px;justify-content:center;align-items:flex-start;flex-wrap:wrap}
.section-speed_demo .sd-phone{width:200px;height:380px;border-radius:28px;border:3px solid var(--border,rgba(0,0,0,0.12));background:white;position:relative;overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,0.08)}
.section-speed_demo .sd-phone-notch{width:80px;height:6px;background:var(--border,rgba(0,0,0,0.1));border-radius:3px;margin:12px auto 0}
.section-speed_demo .sd-phone-screen{padding:20px 16px;height:calc(100% - 30px);display:flex;flex-direction:column}
.section-speed_demo .sd-phone-label{text-align:center;margin-top:12px;font-size:0.85rem;font-weight:700}
.section-speed_demo .sd-phone-time{text-align:center;font-size:0.75rem;color:var(--text-muted);margin-top:4px}
/* finished state: the slow phone still loading, the fast one done */
.section-speed_demo .sd-slow .sd-bar{width:85%;height:4px;background:#ef4444;border-radius:2px;margin:12px 0}
.section-speed_demo .sd-slow .sd-content{opacity:0.3}
.section-speed_demo .sd-fast .sd-bar{width:100%;height:4px;background:var(--sd-accent,#f59e0b);border-radius:2px;margin:12px 0}
.section-speed_demo .sd-fast .sd-content{opacity:1}
.section-speed_demo .sd-hero-ph{height:80px;background:linear-gradient(135deg,#f1f5f9,#e2e8f0);border-radius:8px;margin-bottom:10px}
.section-speed_demo .sd-line{height:8px;background:#e2e8f0;border-radius:4px;margin-bottom:6px}
.section-speed_demo .sd-line.short{width:60%}
.section-speed_demo .sd-btn-ph{height:32px;background:var(--sd-accent,#f59e0b);border-radius:6px;margin-top:auto;opacity:0.3}
.section-speed_demo .sd-fast .sd-btn-ph{opacity:1}
.section-speed_demo .sd-fast .sd-hero-ph{background:linear-gradient(135deg,var(--sd-accent-22,#f59e0b22),var(--sd-accent-11,#f59e0b11))}
.section-speed_demo[data-demo-state="ready"] .sd-bar{width:0}
.section-speed_demo[data-demo-state="ready"] .sd-content{opacity:0}
.section-speed_demo[data-demo-state="run"] .sd-slow .sd-bar{animation:sdSlowLoad 4s ease-in-out infinite}
.section-speed_demo[data-demo-state="run"] .sd-slow .sd-content{animation:sdSlowReveal 4s ease-in-out infinite}
.section-speed_demo[data-demo-state="run"] .sd-fast .sd-bar{animation:sdFastLoad 4s ease-in-out infinite}
.section-speed_demo[data-demo-state="run"] .sd-fast .sd-content{animation:sdFastReveal 4s ease-in-out infinite}
@keyframes sdSlowLoad{0%{width:0}60%{width:45%}80%{width:70%}100%{width:85%}}
@keyframes sdSlowReveal{0%,70%{opacity:0}100%{opacity:0.3}}
@keyframes sdFastLoad{0%{width:0}15%{width:100%}100%{width:100%}}
@keyframes sdFastReveal{0%{opacity:0}15%{opacity:1}100%{opacity:1}}
@media(max-width:500px){.section-speed_demo .sd-phones{gap:20px}.section-speed_demo .sd-phone{width:160px;height:300px}}

/* ── file_size_animation ───────────────────────────────────────────────────────────────────────────────────── */
.section-file_size_animation .fsa-wrap{max-width:480px;margin:0 auto;text-align:center}
.section-file_size_animation .fsa-bars{display:flex;flex-direction:column;gap:16px;margin-top:24px}
.section-file_size_animation .fsa-bar-row{display:flex;align-items:center;gap:12px}
.section-file_size_animation .fsa-bar-label{width:80px;text-align:right;font-size:0.75rem;font-weight:600;color:var(--text-muted);flex-shrink:0}
.section-file_size_animation .fsa-bar-track{flex:1;height:36px;background:var(--surface,rgba(0,0,0,0.03));border-radius:8px;overflow:hidden;position:relative}
.section-file_size_animation .fsa-bar-fill{height:100%;border-radius:8px;display:flex;align-items:center;padding:0 12px}
.section-file_size_animation .fsa-bar-fill.from{width:100%;background:linear-gradient(90deg,#ef4444,#dc2626)}
.section-file_size_animation .fsa-bar-fill.to{width:var(--fsa-to,3%);background:linear-gradient(90deg,var(--fsa-accent,#6366f1),var(--fsa-accent-cc,#6366f1cc))}
.section-file_size_animation .fsa-bar-size{font-size:0.8rem;font-weight:800;color:white;white-space:nowrap}
.section-file_size_animation .fsa-bar-fill.narrow{position:relative}
.section-file_size_animation .fsa-bar-fill.narrow .fsa-bar-size{position:absolute;left:calc(100% + 8px);top:50%;transform:translateY(-50%);color:var(--text,#0f172a)}
.section-file_size_animation .fsa-savings{margin-top:20px;font-size:1.1rem;font-weight:800;background:linear-gradient(135deg,var(--fsa-accent,#6366f1),#22c55e);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
/* the "after" bar starts as big as the "before" one and shrinks to its size */
.section-file_size_animation[data-demo-state="ready"] .fsa-bar-fill.to{width:100%}
.section-file_size_animation[data-demo-state="run"] .fsa-bar-fill.to{transition:width 2s cubic-bezier(0.4,0,0.2,1) 0.3s}
.section-file_size_animation[data-demo-state="run"] .fsa-bar-fill.from .fsa-bar-size{animation:fsaPulse 2s ease-out}
@keyframes fsaPulse{0%{opacity:1}50%{opacity:0.5}100%{opacity:1}}

/* ── discovery_demo ────────────────────────────────────────────────────────────────────────────────────────── */
.section-discovery_demo .dd-wrap{max-width:780px;margin:0 auto}
.section-discovery_demo .dd-search{display:flex;gap:8px;margin-bottom:32px;align-items:center;flex-wrap:wrap}
.section-discovery_demo .dd-input{flex:1;min-width:200px;padding:12px 16px;border-radius:10px;border:2px solid var(--border,rgba(0,0,0,0.1));font-size:0.95rem;font-family:var(--font-body);background:var(--bg,white);color:var(--text);outline:none}
.section-discovery_demo .dd-input:focus{border-color:var(--dd-accent,#0d9488)}
.section-discovery_demo .dd-city{padding:12px 16px;border-radius:10px;border:2px solid var(--border,rgba(0,0,0,0.1));font-size:0.85rem;font-family:var(--font-body);background:var(--bg,white);color:var(--text-muted);min-width:140px}
.section-discovery_demo .dd-btn{padding:12px 24px;border-radius:10px;border:none;background:linear-gradient(135deg,var(--dd-accent,#0d9488),var(--dd-accent-dd,#0d9488dd));color:white;font-weight:700;font-size:0.9rem;cursor:default;white-space:nowrap}
.section-discovery_demo .dd-clusters{display:flex;flex-direction:column;gap:16px}
.section-discovery_demo .dd-cluster{background:var(--surface,rgba(0,0,0,0.02));border:1px solid var(--border,rgba(0,0,0,0.08));border-radius:14px;padding:20px 24px;transition:border-color 0.2s}
.section-discovery_demo[data-demo-state="ready"] .dd-cluster{opacity:0}
.section-discovery_demo[data-demo-state="run"] .dd-cluster{animation:ddFadeIn 0.5s ease-out both}
.section-discovery_demo .dd-cluster.converted{border-left:4px solid #22c55e}
.section-discovery_demo .dd-cluster-top{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex-wrap:wrap}
.section-discovery_demo .dd-cluster-label{font-size:1rem;font-weight:700;color:var(--text);font-family:var(--font-heading)}
.section-discovery_demo .dd-intent{font-size:0.68rem;font-weight:700;text-transform:uppercase;letter-spacing:0.4px;padding:3px 10px;border-radius:6px;white-space:nowrap}
.section-discovery_demo .dd-converted{font-size:0.72rem;font-weight:700;color:#22c55e;display:flex;align-items:center;gap:4px;margin-left:auto}
.section-discovery_demo .dd-pills{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.section-discovery_demo .dd-pill{font-size:0.78rem;padding:4px 12px;border-radius:20px;border:1px solid var(--border,rgba(0,0,0,0.1));color:var(--text-secondary,#64748b);background:var(--bg,white)}
.section-discovery_demo .dd-cluster-foot{display:flex;align-items:center;justify-content:space-between}
.section-discovery_demo .dd-kw-count{font-size:0.75rem;color:var(--text-muted)}
.section-discovery_demo .dd-draft-btn{font-size:0.8rem;font-weight:600;padding:6px 16px;border-radius:8px;border:none;background:linear-gradient(135deg,var(--dd-accent,#0d9488),var(--dd-accent-cc,#0d9488cc));color:white;cursor:default}
.section-discovery_demo .dd-draft-btn.done{background:rgba(34,197,94,0.1);color:#22c55e;border:1px solid rgba(34,197,94,0.2)}
.section-discovery_demo .dd-caption{text-align:center;margin-top:24px;font-size:0.9rem;font-weight:600;color:var(--text)}
@keyframes ddFadeIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.section-discovery_demo .dd-search{flex-direction:column}.section-discovery_demo .dd-input,.section-discovery_demo .dd-city,.section-discovery_demo .dd-btn{width:100%}}

/* ── blog_output_demo ──────────────────────────────────────────────────────────────────────────────────────── */
.section-blog_output_demo .bo-wrap{max-width:900px;margin:0 auto}
.section-blog_output_demo .bo-frame{border-radius:16px;border:1px solid var(--border,rgba(0,0,0,0.1));overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,0.06)}
.section-blog_output_demo .bo-toolbar{display:flex;align-items:center;gap:12px;padding:12px 20px;background:var(--surface,#f8fafc);border-bottom:1px solid var(--border,rgba(0,0,0,0.08));flex-wrap:wrap}
.section-blog_output_demo .bo-dots{display:flex;gap:6px}
.section-blog_output_demo .bo-dot{width:10px;height:10px;border-radius:50%}
.section-blog_output_demo .bo-title-bar{flex:1;font-size:0.85rem;font-weight:700;color:var(--text);font-family:var(--font-heading);min-width:200px}
.section-blog_output_demo .bo-badge{font-size:0.68rem;font-weight:700;padding:3px 10px;border-radius:6px;text-transform:uppercase;letter-spacing:0.3px}
.section-blog_output_demo .bo-badge.published{background:rgba(34,197,94,0.1);color:#22c55e}
.section-blog_output_demo .bo-wc{font-size:0.75rem;color:var(--text-muted)}
.section-blog_output_demo .bo-body{display:grid;grid-template-columns:1fr 220px;min-height:420px}
.section-blog_output_demo .bo-content{padding:28px 32px;position:relative;overflow:hidden}
.section-blog_output_demo .bo-content::after{content:'';position:absolute;bottom:0;left:0;right:0;height:80px;background:linear-gradient(transparent,var(--bg,white));pointer-events:none}
.section-blog_output_demo .bo-h1{font-size:1.25rem;font-weight:800;color:var(--text);margin:0 0 16px;font-family:var(--font-heading);line-height:1.3}
.section-blog_output_demo .bo-qa{padding:14px 18px;border-left:4px solid var(--bo-accent,#7c3aed);background:var(--bo-accent-08,#7c3aed08);border-radius:0 10px 10px 0;margin:0 0 20px;font-size:0.82rem;color:var(--text-secondary,#64748b);line-height:1.6}
.section-blog_output_demo .bo-qa-label{font-size:0.68rem;font-weight:700;text-transform:uppercase;letter-spacing:0.4px;color:var(--bo-accent,#7c3aed);margin-bottom:6px}
.section-blog_output_demo .bo-h2{font-size:1rem;font-weight:700;color:var(--text);margin:20px 0 8px;font-family:var(--font-heading)}
.section-blog_output_demo .bo-p{font-size:0.82rem;color:var(--text-secondary,#64748b);line-height:1.7;margin:0 0 12px}
.section-blog_output_demo .bo-faq{margin-top:20px;padding-top:16px;border-top:1px solid var(--border,rgba(0,0,0,0.06))}
.section-blog_output_demo .bo-faq-label{font-size:0.72rem;font-weight:700;text-transform:uppercase;letter-spacing:0.4px;color:var(--text-muted);margin-bottom:10px}
.section-blog_output_demo .bo-faq-q{font-size:0.82rem;font-weight:600;color:var(--text);padding:8px 0;border-bottom:1px solid var(--border,rgba(0,0,0,0.04));display:flex;align-items:center;gap:6px}
.section-blog_output_demo .bo-sidebar{padding:20px 18px;background:var(--surface,#f8fafc);border-left:1px solid var(--border,rgba(0,0,0,0.06))}
.section-blog_output_demo .bo-side-title{font-size:0.72rem;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;color:var(--text-muted);margin-bottom:14px}
.section-blog_output_demo .bo-check{display:flex;align-items:flex-start;gap:8px;font-size:0.78rem;color:var(--text-secondary,#64748b);margin-bottom:10px;line-height:1.4}
.section-blog_output_demo .bo-check-icon{flex-shrink:0;font-size:0.85rem;margin-top:1px}
.section-blog_output_demo .bo-score{margin-top:20px;padding-top:16px;border-top:1px solid var(--border,rgba(0,0,0,0.06));text-align:center}
.section-blog_output_demo .bo-score-num{font-size:2rem;font-weight:800;background:linear-gradient(135deg,var(--bo-accent,#7c3aed),#22c55e);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;line-height:1}
.section-blog_output_demo .bo-score-label{font-size:0.7rem;color:var(--text-muted);margin-top:4px}
.section-blog_output_demo .bo-caption{text-align:center;margin-top:24px;font-size:0.9rem;font-weight:600;color:var(--text)}
@media(max-width:768px){.section-blog_output_demo .bo-body{grid-template-columns:1fr}.section-blog_output_demo .bo-sidebar{border-left:none;border-top:1px solid var(--border,rgba(0,0,0,0.06))}}

/* ── attribution_demo ──────────────────────────────────────────────────────────────────────────────────────── */
.section-attribution_demo .ad-wrap{max-width:920px;margin:0 auto}
.section-attribution_demo .ad-grid{display:grid;grid-template-columns:1fr 40px 1fr;gap:0;align-items:center}
.section-attribution_demo .ad-card{border-radius:16px;overflow:hidden;box-shadow:0 16px 48px rgba(0,0,0,0.06)}
.section-attribution_demo .ad-builder{background:var(--surface,#f8fafc);border:1px solid var(--border,rgba(0,0,0,0.1))}
.section-attribution_demo .ad-lead{background:linear-gradient(145deg,#1e1b4b,#312e81);border:1px solid rgba(139,92,246,0.2)}
.section-attribution_demo .ad-connector{display:flex;align-items:center;justify-content:center}
.section-attribution_demo[data-demo-state="ready"] .ad-builder,
.section-attribution_demo[data-demo-state="ready"] .ad-lead,
.section-attribution_demo[data-demo-state="ready"] .ad-connector{opacity:0}
.section-attribution_demo[data-demo-state="run"] .ad-builder{animation:adSlideIn 0.6s ease-out 0.1s both}
.section-attribution_demo[data-demo-state="run"] .ad-connector{animation:adFadeIn 0.4s ease-out 0.5s both}
.section-attribution_demo[data-demo-state="run"] .ad-lead{animation:adSlideIn 0.6s ease-out 0.7s both}
.section-attribution_demo .ad-connector-line{display:flex;flex-direction:column;align-items:center;gap:4px}
.section-attribution_demo .ad-connector-dot{width:6px;height:6px;border-radius:50%;background:var(--ad-accent,#e11d48);opacity:0.4}
.section-attribution_demo .ad-connector-dot:nth-child(2){opacity:0.6}
.section-attribution_demo .ad-connector-dot:nth-child(3){opacity:0.8}
.section-attribution_demo .ad-connector-arrow{font-size:1.2rem;color:var(--ad-accent,#e11d48);font-weight:700}
.section-attribution_demo .ad-section-label{font-size:0.68rem;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;padding:12px 20px;border-bottom:1px solid var(--border,rgba(0,0,0,0.06))}
.section-attribution_demo .ad-builder .ad-section-label{color:var(--text-muted)}
.section-attribution_demo .ad-lead .ad-section-label{color:rgba(255,255,255,0.4);border-color:rgba(255,255,255,0.06)}
.section-attribution_demo .ad-builder-body{padding:20px}
.section-attribution_demo .ad-presets{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap}
.section-attribution_demo .ad-preset{padding:6px 14px;border-radius:8px;font-size:0.78rem;font-weight:600;border:1px solid var(--border,rgba(0,0,0,0.1));background:var(--bg,white);color:var(--text-muted);display:flex;align-items:center;gap:5px;cursor:default}
.section-attribution_demo .ad-preset.active{border-color:var(--ad-accent,#e11d48);background:var(--ad-accent-10,#e11d4810);color:var(--ad-accent,#e11d48)}
.section-attribution_demo .ad-field{margin-bottom:12px}
.section-attribution_demo .ad-field-label{font-size:0.7rem;font-weight:600;color:var(--text-muted);margin-bottom:4px}
.section-attribution_demo .ad-field-value{padding:8px 12px;border-radius:8px;border:1px solid var(--border,rgba(0,0,0,0.1));font-size:0.82rem;color:var(--text);background:var(--bg,white);font-family:var(--font-body)}
.section-attribution_demo .ad-url-preview{padding:8px 12px;border-radius:8px;background:var(--bg,white);border:1px solid var(--border,rgba(0,0,0,0.1));font-size:0.72rem;color:var(--text-muted);font-family:'SF Mono',Menlo,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:12px}
.section-attribution_demo .ad-qr-row{display:flex;align-items:center;gap:12px}
.section-attribution_demo .ad-qr{width:64px;height:64px;border-radius:8px;background:white;border:1px solid var(--border,rgba(0,0,0,0.08));display:flex;align-items:center;justify-content:center;font-size:0.6rem;color:var(--text-muted);padding:4px;flex-shrink:0}
.section-attribution_demo .ad-qr svg{width:100%;height:100%}
.section-attribution_demo .ad-copy-btn{padding:6px 16px;border-radius:8px;background:var(--ad-accent,#e11d48);color:white;font-size:0.78rem;font-weight:700;border:none;cursor:default}
.section-attribution_demo .ad-lead-body{padding:20px}
.section-attribution_demo .ad-lead-top{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.section-attribution_demo .ad-lead-avatar{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#7c3aed,#a78bfa);display:flex;align-items:center;justify-content:center;color:white;font-weight:700;font-size:15px;font-family:var(--font-heading);flex-shrink:0}
.section-attribution_demo .ad-lead-name{font-size:0.95rem;font-weight:700;color:white}
.section-attribution_demo .ad-lead-time{font-size:0.72rem;color:rgba(255,255,255,0.4)}
.section-attribution_demo .ad-lead-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 12px;border-radius:7px;font-size:0.75rem;font-weight:700;margin-bottom:14px}
.section-attribution_demo .ad-lead-rows{display:flex;flex-direction:column;gap:8px}
.section-attribution_demo .ad-lead-row{display:flex;align-items:flex-start;gap:8px;font-size:0.78rem}
.section-attribution_demo .ad-lead-row-icon{flex-shrink:0;width:20px;text-align:center;font-size:0.85rem}
.section-attribution_demo .ad-lead-row-label{color:rgba(255,255,255,0.4);min-width:70px;flex-shrink:0}
.section-attribution_demo .ad-lead-row-value{color:rgba(255,255,255,0.8);font-weight:500}
.section-attribution_demo .ad-caption{text-align:center;margin-top:28px;font-size:0.9rem;font-weight:600;color:var(--text)}
@keyframes adSlideIn{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@keyframes adFadeIn{from{opacity:0}to{opacity:1}}
@media(max-width:768px){.section-attribution_demo .ad-grid{grid-template-columns:1fr;gap:16px}.section-attribution_demo .ad-connector{transform:rotate(90deg)}}

/* ── seo_score_demo ────────────────────────────────────────────────────────────────────────────────────────── */
/* The ring's filled angle is a typed property so it can be animated (browsers without @property jump to the end). */
@property --ssd-deg{syntax:'<angle>';inherits:false;initial-value:0deg}
.section-seo_score_demo .ssd-wrap{max-width:700px;margin:0 auto}
.section-seo_score_demo .ssd-frame{border-radius:16px;border:1px solid var(--border,rgba(0,0,0,0.1));overflow:hidden;box-shadow:0 20px 60px rgba(0,0,0,0.06)}
.section-seo_score_demo .ssd-toolbar{display:flex;align-items:center;gap:12px;padding:14px 20px;background:var(--surface,#f8fafc);border-bottom:1px solid var(--border,rgba(0,0,0,0.08))}
.section-seo_score_demo .ssd-dots{display:flex;gap:6px}
.section-seo_score_demo .ssd-dot{width:10px;height:10px;border-radius:50%}
.section-seo_score_demo .ssd-page-title{flex:1;font-size:0.85rem;font-weight:600;color:var(--text);font-family:var(--font-heading)}
.section-seo_score_demo .ssd-body{padding:28px;display:grid;grid-template-columns:160px 1fr;gap:32px;align-items:start}
.section-seo_score_demo .ssd-ring-wrap{text-align:center}
.section-seo_score_demo .ssd-ring{--ssd-deg:var(--ssd-to,223.2deg);width:130px;height:130px;border-radius:50%;background:conic-gradient(var(--ssd-color,#f59e0b) 0deg,var(--ssd-color,#f59e0b) var(--ssd-deg),var(--border,rgba(0,0,0,0.08)) var(--ssd-deg));display:flex;align-items:center;justify-content:center;margin:0 auto}
.section-seo_score_demo .ssd-ring-inner{width:100px;height:100px;border-radius:50%;background:var(--bg,white);display:flex;flex-direction:column;align-items:center;justify-content:center}
.section-seo_score_demo .ssd-ring-num{font-size:2.2rem;font-weight:800;color:var(--ssd-color,#f59e0b);font-family:var(--font-heading);line-height:1;font-variant-numeric:tabular-nums}
.section-seo_score_demo .ssd-ring-label{font-size:0.7rem;font-weight:600;color:var(--text-muted);margin-top:2px}
.section-seo_score_demo .ssd-right{flex:1}
.section-seo_score_demo .ssd-cats{margin-bottom:24px}
.section-seo_score_demo .ssd-cat{margin-bottom:12px}
.section-seo_score_demo .ssd-cat-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.section-seo_score_demo .ssd-cat-label{font-size:0.78rem;font-weight:600;color:var(--text)}
.section-seo_score_demo .ssd-cat-score{font-size:0.75rem;font-weight:700}
.section-seo_score_demo .ssd-cat-bar{height:8px;border-radius:4px;background:var(--border,rgba(0,0,0,0.06));overflow:hidden}
.section-seo_score_demo .ssd-cat-fill{height:100%;border-radius:4px;width:var(--w,0%)}
.section-seo_score_demo .ssd-checks{border-top:1px solid var(--border,rgba(0,0,0,0.06));padding-top:16px}
.section-seo_score_demo .ssd-checks-title{font-size:0.7rem;font-weight:700;text-transform:uppercase;letter-spacing:0.4px;color:var(--text-muted);margin-bottom:10px}
.section-seo_score_demo .ssd-check{display:flex;align-items:center;gap:8px;font-size:0.8rem;color:var(--text-secondary,#64748b);margin-bottom:6px;line-height:1.4}
.section-seo_score_demo .ssd-check-icon{flex-shrink:0;font-size:0.9rem}
.section-seo_score_demo .ssd-caption{text-align:center;margin-top:24px;font-size:0.9rem;font-weight:600;color:var(--text)}
.section-seo_score_demo[data-demo-state="ready"] .ssd-ring{--ssd-deg:0deg}
.section-seo_score_demo[data-demo-state="ready"] .ssd-cat-fill{width:0}
.section-seo_score_demo[data-demo-state="run"] .ssd-ring{transition:--ssd-deg 1.5s ease-out}
.section-seo_score_demo[data-demo-state="run"] .ssd-cat-fill{transition:width 1.2s ease-out}
@media(max-width:600px){.section-seo_score_demo .ssd-body{grid-template-columns:1fr;text-align:center}.section-seo_score_demo .ssd-ring{margin-bottom:8px}}

/* ── location_map_demo ─────────────────────────────────────────────────────────────────────────────────────── */
.section-location_map_demo .lm-wrap{max-width:920px;margin:0 auto}
.section-location_map_demo .lm-grid{display:grid;grid-template-columns:280px 1fr;gap:0;border-radius:16px;overflow:hidden;border:1px solid var(--border,rgba(0,0,0,0.1));box-shadow:0 20px 60px rgba(0,0,0,0.06)}
.section-location_map_demo .lm-list{background:var(--surface,#f8fafc);border-right:1px solid var(--border,rgba(0,0,0,0.06))}
.section-location_map_demo .lm-list-header{padding:14px 18px;font-size:0.72rem;font-weight:700;text-transform:uppercase;letter-spacing:0.4px;color:var(--text-muted);border-bottom:1px solid var(--border,rgba(0,0,0,0.06));display:flex;justify-content:space-between;align-items:center}
.section-location_map_demo .lm-list-count{font-size:0.68rem;font-weight:600;padding:2px 8px;border-radius:10px;background:var(--lm-accent-15,#05966915);color:var(--lm-accent,#059669)}
.section-location_map_demo .lm-city{display:flex;align-items:center;gap:10px;padding:12px 18px;border-bottom:1px solid var(--border,rgba(0,0,0,0.03))}
.section-location_map_demo .lm-city.published{border-left:3px solid #22c55e}
.section-location_map_demo .lm-city.generating{border-left:3px solid #f59e0b}
.section-location_map_demo .lm-city.active{background:var(--lm-accent-08,#05966908)}
.section-location_map_demo[data-demo-state="ready"] .lm-city,
.section-location_map_demo[data-demo-state="ready"] .lm-preview-card{opacity:0}
.section-location_map_demo[data-demo-state="run"] .lm-city{animation:lmFadeIn 0.4s ease-out both}
.section-location_map_demo[data-demo-state="run"] .lm-city.generating{animation:lmFadeIn 0.4s ease-out both,lmPulse 2s ease-in-out infinite 0.8s}
.section-location_map_demo[data-demo-state="run"] .lm-preview-card{animation:lmSlideIn 0.5s ease-out 0.7s both}
.section-location_map_demo .lm-city-info{flex:1;min-width:0}
.section-location_map_demo .lm-city-name{font-size:0.85rem;font-weight:600;color:var(--text);font-family:var(--font-heading)}
.section-location_map_demo .lm-city-status{font-size:0.68rem;font-weight:600;text-transform:uppercase;letter-spacing:0.3px;margin-top:1px}
.section-location_map_demo .lm-city-score{font-size:0.72rem;font-weight:700;color:var(--text-muted)}
.section-location_map_demo .lm-preview{padding:24px;background:var(--bg,white)}
.section-location_map_demo .lm-preview-label{font-size:0.68rem;font-weight:700;text-transform:uppercase;letter-spacing:0.4px;color:var(--text-muted);margin-bottom:14px}
.section-location_map_demo .lm-preview-card{border-radius:12px;border:1px solid var(--border,rgba(0,0,0,0.08));overflow:hidden}
.section-location_map_demo .lm-preview-hero{padding:20px 22px;background:linear-gradient(135deg,var(--lm-accent-10,#05966910),var(--lm-accent-05,#05966905))}
.section-location_map_demo .lm-preview-title{font-size:1rem;font-weight:800;color:var(--text);font-family:var(--font-heading);margin-bottom:4px}
.section-location_map_demo .lm-preview-url{font-size:0.72rem;color:var(--lm-accent,#059669);font-family:'SF Mono',Menlo,monospace}
.section-location_map_demo .lm-preview-body{padding:18px 22px}
.section-location_map_demo .lm-preview-sim{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:7px;font-size:0.72rem;font-weight:700;margin-bottom:14px}
.section-location_map_demo .lm-preview-sim.safe{background:rgba(34,197,94,0.1);color:#22c55e}
.section-location_map_demo .lm-preview-sim.warn{background:rgba(245,158,11,0.1);color:#f59e0b}
.section-location_map_demo .lm-preview-schemas{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.section-location_map_demo .lm-preview-schema{font-size:0.7rem;font-weight:600;padding:3px 10px;border-radius:6px;background:var(--surface,#f1f5f9);color:var(--text-secondary,#64748b)}
.section-location_map_demo .lm-preview-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.section-location_map_demo .lm-preview-stat{padding:10px 14px;border-radius:8px;background:var(--surface,#f8fafc);border:1px solid var(--border,rgba(0,0,0,0.04))}
.section-location_map_demo .lm-preview-stat-val{font-size:0.9rem;font-weight:800;color:var(--text);font-family:var(--font-heading)}
.section-location_map_demo .lm-preview-stat-label{font-size:0.65rem;color:var(--text-muted);margin-top:1px}
.section-location_map_demo .lm-caption{text-align:center;margin-top:24px;font-size:0.9rem;font-weight:600;color:var(--text)}
@keyframes lmFadeIn{from{opacity:0;transform:translateX(-8px)}to{opacity:1;transform:translateX(0)}}
@keyframes lmSlideIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes lmPulse{0%,100%{opacity:1}50%{opacity:0.6}}
@media(max-width:700px){.section-location_map_demo .lm-grid{grid-template-columns:1fr}.section-location_map_demo .lm-list{border-right:none;border-bottom:1px solid var(--border,rgba(0,0,0,0.06))}}

/* ── timeline ──────────────────────────────────────────────────────────────────────────────────────────────── */
.section-timeline .timeline-wrap{max-width:1200px;margin:0 auto}
.section-timeline .timeline-header{text-align:center;margin-bottom:56px}
.section-timeline .timeline-header h2{font-family:var(--font-heading,sans-serif);font-weight:800;font-size:36px;letter-spacing:-0.025em;line-height:1.15;color:#0f172a;margin:0 0 12px 0}
.section-timeline .timeline-header p{font-family:var(--font-body,sans-serif);font-size:17px;color:#475569;max-width:640px;margin:0 auto;line-height:1.5}
.section-timeline .timeline-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;position:relative}
.section-timeline .timeline-grid::before{content:'';position:absolute;top:28px;left:5%;right:5%;height:2px;background:linear-gradient(to right,#10b981 0%,#14b8a6 25%,#3b82f6 50%,#6366f1 75%,#8b5cf6 100%);opacity:0.35;z-index:0}
.section-timeline .timeline-tile{position:relative;z-index:1;background:white;border-radius:16px;padding:24px 20px 20px;box-shadow:0 1px 3px rgba(0,0,0,0.04),0 4px 16px rgba(0,0,0,0.04);border:1px solid rgba(0,0,0,0.05);display:flex;flex-direction:column;transition:transform 0.2s,box-shadow 0.2s}
.section-timeline .timeline-tile:hover{transform:translateY(-3px);box-shadow:0 4px 12px rgba(0,0,0,0.08),0 12px 32px rgba(0,0,0,0.06)}
.section-timeline .timeline-dot{width:14px;height:14px;border-radius:50%;border:3px solid white;margin:0 auto 16px auto;box-shadow:0 0 0 3px rgba(0,0,0,0.06)}
.section-timeline .timeline-stage-label{text-align:center;font-family:var(--font-heading,sans-serif);font-weight:700;font-size:11px;letter-spacing:0.08em;text-transform:uppercase;padding:5px 12px;border-radius:999px;display:inline-block;margin:0 auto 16px auto;align-self:center}
.section-timeline .timeline-icon{font-size:36px;text-align:center;margin-bottom:10px;line-height:1}
.section-timeline .timeline-title{font-family:var(--font-heading,sans-serif);font-weight:700;font-size:16px;line-height:1.3;color:#0f172a;margin:0 0 14px 0;text-align:center;min-height:42px}
.section-timeline .timeline-bullets{list-style:none;padding:0;margin:0 0 20px 0;flex:1}
.section-timeline .timeline-bullets li{font-family:var(--font-body,sans-serif);font-size:13.5px;line-height:1.45;color:#334155;padding:6px 0 6px 18px;position:relative;border-bottom:1px solid #f1f5f9}
.section-timeline .timeline-bullets li:last-child{border-bottom:none}
.section-timeline .timeline-bullets li::before{content:'';position:absolute;left:4px;top:14px;width:4px;height:4px;border-radius:50%;background:currentColor;opacity:0.4}
.section-timeline .timeline-outcome{margin-top:auto;padding:10px 14px;border-radius:8px;text-align:center;font-family:var(--font-heading,sans-serif);font-weight:700;font-size:13px;letter-spacing:-0.005em}
@media (max-width:900px){
  .section-timeline{padding:40px 16px}
  .section-timeline .timeline-header{margin-bottom:36px}
  .section-timeline .timeline-header h2{font-size:26px}
  .section-timeline .timeline-header p{font-size:15px}
  .section-timeline .timeline-grid{grid-template-columns:1fr;gap:0;padding-left:32px}
  .section-timeline .timeline-grid::before{top:0;bottom:0;left:14px;right:auto;width:2px;height:auto;background:linear-gradient(to bottom,#10b981 0%,#14b8a6 25%,#3b82f6 50%,#6366f1 75%,#8b5cf6 100%)}
  .section-timeline .timeline-tile{margin-bottom:16px;padding:20px}
  .section-timeline .timeline-dot{position:absolute;left:-25px;top:28px;margin:0}
  .section-timeline .timeline-stage-label{align-self:flex-start;margin-left:0}
  .section-timeline .timeline-icon{text-align:left}
  .section-timeline .timeline-title{text-align:left;min-height:0}
}

/* Reduced motion: the finished state, nothing moves. */
@media (prefers-reduced-motion: reduce){
  [data-demo] *, .section-timeline .timeline-tile{animation:none!important;transition:none!important}
  .section-timeline .timeline-tile:hover{transform:none}
}
