:root {
  --bg: #0a0a0a;
  --panel: #141210;
  --panel-2: #1c1a16;
  --line: #2c2822;
  --text: #f4f1ea;
  --muted: #a8a094;
  --amber: #ffc800;
  --amber-soft: #ffdd66;
  --radius: 16px;
  --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1.1em; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--max); margin: 0 auto; padding: 18px 20px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.05rem; }
.brand img { border-radius: 9px; }
.site-header nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); font-size: .93rem; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--amber); color: #17130a !important; font-weight: 700;
  padding: 9px 16px; border-radius: 999px;
}

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 40px 20px 60px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  position: relative;
}
.hero::before {
  content: ""; position: absolute; inset: -20% 30% 40% -10%; z-index: -1;
  background: radial-gradient(circle, rgba(255,200,0,.16), transparent 65%);
  filter: blur(40px); pointer-events: none;
}
.eyebrow { color: var(--amber); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.lede { font-size: 1.12rem; color: #ded8cd; max-width: 46ch; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-note { color: var(--muted); font-size: .88rem; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.hero-points li { color: #d6cfc2; font-size: .93rem; padding-left: 22px; position: relative; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.hero-shot img { border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.6); margin-inline: auto; width: 100%; max-width: 560px; }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--amber); color: #17130a; font-weight: 700; font-size: .96rem;
  padding: 13px 22px; border-radius: 999px;
}
.store-badge:hover { background: var(--amber-soft); text-decoration: none; }

/* Strip */
.strip { border-block: 1px solid var(--line); background: var(--panel); }
.strip h2 { max-width: var(--max); margin: 0 auto; padding: 36px 20px 0; font-size: 1.15rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.strip-grid { max-width: var(--max); margin: 0 auto; padding: 20px 20px 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.strip-grid strong { display: block; margin-bottom: 6px; }
.strip-grid p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Features */
.features { max-width: var(--max); margin: 0 auto; padding: 60px 20px; display: grid; gap: 72px; }
.feature { display: grid; grid-template-columns: 1fr .8fr; gap: 48px; align-items: center; }
.feature.reverse .feature-copy { order: 2; }
.feature ul { padding-left: 18px; color: var(--muted); }
.feature li { margin-bottom: 6px; }
.feature figure { margin: 0; }
.feature figure img, .shot-figure img { border-radius: 20px; border: 1px solid var(--line); width: 100%; max-width: 560px; margin-inline: auto; }
.feature figcaption, .shot-figure figcaption { color: var(--muted); font-size: .85rem; margin-top: 12px; text-align: center; max-width: 60ch; margin-inline: auto; }

/* Steps */
.steps { background: var(--panel); border-block: 1px solid var(--line); }
.steps h2 { max-width: var(--max); margin: 0 auto; padding: 56px 20px 0; }
.steps ol { max-width: var(--max); margin: 0 auto; padding: 24px 20px 56px 20px; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--amber); color: #17130a; font-weight: 800; margin-bottom: 12px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Guides */
.guides-preview, .faq, .final-cta { max-width: var(--max); margin: 0 auto; padding: 64px 20px; }
.section-lede { color: var(--muted); max-width: 60ch; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 28px; }
.guide-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); display: flex; flex-direction: column; }
.guide-card:hover { border-color: #4a4234; text-decoration: none; }
.guide-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.guide-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.guide-card h3 { margin-bottom: 8px; }
.guide-card p { color: var(--muted); font-size: .9rem; flex: 1; }
.read { color: var(--amber); font-size: .88rem; font-weight: 600; }

/* FAQ */
.faq-list { display: grid; gap: 10px; margin-top: 24px; max-width: 820px; }
.faq-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq-item summary { cursor: pointer; padding: 18px 0; font-weight: 650; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--amber); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-body { padding-bottom: 18px; color: var(--muted); }
.faq-body p { margin-bottom: .6em; }
.learn-more { font-size: .89rem; font-weight: 600; }

/* CTA */
.final-cta { text-align: center; border-top: 1px solid var(--line); }
.final-cta p { color: var(--muted); max-width: 50ch; margin-inline: auto; }
.cta-callout {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-left: 3px solid var(--amber);
  border-radius: var(--radius); padding: 22px 24px; margin: 36px 0;
}
.cta-callout img { border-radius: 12px; }
.cta-callout div { flex: 1; min-width: 220px; }
.cta-text { font-weight: 700; margin: 0 0 4px; }
.cta-sub { color: var(--muted); font-size: .87rem; margin: 0; }

/* Article pages */
.page { max-width: 760px; margin: 0 auto; padding: 32px 20px 72px; }
.page.article h2 { margin-top: 2.2em; }
.crumbs { color: var(--muted); font-size: .85rem; margin-bottom: 24px; }
.crumbs span { margin: 0 6px; opacity: .5; }
.feature-image { border-radius: var(--radius); border: 1px solid var(--line); margin: 8px 0 28px; width: 100%; }
.answer-first { font-size: 1.13rem; color: #e6e0d4; border-left: 3px solid var(--amber); padding-left: 18px; }
.page.article ul, .page.article ol { padding-left: 22px; list-style: revert; }
.page.article ol.steps-list { list-style: none; padding-left: 0; }
.steps-list { list-style: none; padding: 0; display: grid; gap: 14px; margin: 0 0 1.4em; counter-reset: t; }
.steps-list li { counter-increment: t; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px 16px 54px; position: relative; }
.steps-list li::before { content: counter(t); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--amber); color: #17130a; font-weight: 800; font-size: .85rem; }
.steps-list strong { display: block; margin-bottom: 2px; }
.steps-list p { margin: 0; color: var(--muted); font-size: .93rem; }
.shot-figure { margin: 32px 0; }
.guide-faq, .related { margin-top: 3em; }
.related .guide-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.related .guide-card h3 { font-size: 1rem; }
.related .guide-card p { display: none; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); }
.footer-grid { max-width: var(--max); margin: 0 auto; padding: 52px 20px 32px; display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 36px; }
.footer-blurb { color: var(--muted); font-size: .9rem; margin: 14px 0 18px; max-width: 34ch; }
.footer-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer li a { color: #cfc7ba; font-size: .9rem; }
.copyright { max-width: var(--max); margin: 0 auto; padding: 0 20px 36px; color: var(--muted); font-size: .84rem; }

@media (max-width: 900px) {
  .hero, .feature, .feature.reverse .feature-copy { grid-template-columns: 1fr; order: 0; }
  .hero { padding-top: 20px; gap: 32px; }
  .strip-grid, .steps ol { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .strip-grid, .steps ol, .footer-grid, .hero-points { grid-template-columns: 1fr; }
  .site-header { padding: 14px 16px; }
  .site-header nav { gap: 14px; }
  .cta-callout { flex-direction: column; align-items: flex-start; }
}

/* Programmatic page families */
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 28px; }
.hub-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; color: var(--text); }
.hub-card:hover { border-color: #4a4234; text-decoration: none; }
.hub-card h2, .hub-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.hub-card p { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.hub-grid.compact .hub-card p { margin-bottom: 0; }
.link-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.link-list.columns { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px 24px; }
.link-list li a { color: #ded8cd; }
.page.tool ul { padding-left: 22px; list-style: revert; }
.page.tool ul.link-list { padding-left: 0; list-style: none; }
.page.tool section { margin-top: 2.4em; }
.page.tool h2 { margin-bottom: .6em; }
.tool-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 26px 0 8px; }
.image-credit { color: var(--muted); font-size: .78rem; margin: -18px 0 26px; }
.image-credit a { color: var(--muted); }
.store-badges { display: inline-flex; gap: 10px; flex-wrap: wrap; }
.store-badge.play { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); }
.store-badge.play:hover { background: #262219; border-color: #4a4234; }

/* Glossary */
.glossary { margin: 28px 0 0; }
.glossary .term { border-top: 1px solid var(--line); padding: 22px 0; }
.glossary dt { font-weight: 700; font-size: 1.06rem; margin-bottom: 8px; }
.term-short { display: block; font-weight: 400; font-size: .92rem; color: var(--amber-soft); margin-top: 4px; }
.glossary dd { margin: 0; color: var(--muted); }
.glossary dd p { margin-bottom: .5em; }

/* Programmatic families: fix outlook, comparison table, side-by-side test */
.outlook { color: var(--amber); }
.checked { color: var(--muted); font-size: .85rem; margin-top: -8px; }
.table-wrap { overflow-x: auto; margin: 18px 0 28px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.compare-table thead th { color: var(--text); }
.compare-table tbody th { color: var(--muted); font-weight: 600; width: 28%; }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.test-grid figure { margin: 0; }
.test-grid img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.test-grid figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px; }
@media (max-width: 560px) { .test-grid { grid-template-columns: 1fr; } }

/* Localized pages */
[dir="rtl"] .answer-first { border-left: 0; border-right: 3px solid var(--amber); padding-left: 0; padding-right: 18px; }
[dir="rtl"] .steps-list li { padding: 16px 54px 16px 18px; }
[dir="rtl"] .steps-list li::before { left: auto; right: 16px; }
[dir="rtl"] ul, [dir="rtl"] ol { padding-right: 1.3em; padding-left: 0; }
.app-language-note { color: var(--muted); font-size: .92rem; }
.lang-switch { display: flex; flex-wrap: wrap; gap: 14px; font-size: .9rem; }
.footer-langs { max-width: var(--max); margin: 0 auto; padding: 0 20px 18px; }

/* Online unblur app */
.unblur-app { margin: 8px 0 32px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.drop-zone { display: grid; gap: 6px; place-items: center; text-align: center; padding: 44px 20px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--panel); cursor: pointer; }
.drop-zone:hover, .drop-zone.over { border-color: var(--amber); }
.drop-zone strong { font-size: 1.1rem; }
.drop-zone span { color: var(--muted); font-size: .92rem; }
.app-msg { color: var(--muted); }
.app-msg.error { color: #e8907a; }
.app-spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--amber); border-radius: 50%; animation: spin 0.9s linear infinite; }
.checkout-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 44px 0 0; border: 0; border-radius: var(--radius); background: #fff; overflow: auto; }
.checkout-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.checkout-close { position: absolute; top: 6px; right: 10px; width: 36px; height: 36px; border: 0; background: none; font-size: 28px; line-height: 1; color: #333; cursor: pointer; }
@keyframes spin { to { transform: rotate(360deg); } }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare.single { grid-template-columns: 1fr; }
.compare figure { margin: 0; }
.compare img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.compare figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.btn-primary, .btn-secondary { font: inherit; font-weight: 700; padding: 12px 20px; border-radius: 10px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-primary { background: var(--amber); color: #17130a; border: 0; }
.btn-primary:disabled { opacity: .6; cursor: wait; }
.btn-secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }
@media (max-width: 560px) { .compare { grid-template-columns: 1fr; } }
.web-cta { white-space: nowrap; }
.btn-link { font: inherit; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.app-small { font-size: .9rem; margin-top: 8px; }
.unblur-app code { word-break: break-all; font-size: .85em; }
.human-check { margin: 12px 0; min-height: 0; }
