/* ==========================================================================
   SmartPicks – Affiliate Review Site
   Clean, readable, fast: one web font (Inter, swap), no frameworks.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-tint: #eef2ff;
  --text: #111827;
  --text-2: #374151;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef2ff;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --success: #059669;
  --danger: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 24px rgba(17, 24, 39, .06);
  --shadow-lg: 0 20px 45px rgba(17, 24, 39, .12);
  --max: 1180px;
  --read: 720px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Hind Siliguri", sans-serif;
  --footer-bg: #0f172a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --bg-soft: #121a2e;
    --bg-tint: #1a2240;
    --text: #f1f5f9;
    --text-2: #d1d5db;
    --muted: #9ca3af;
    --border: #253049;
    --primary: #818cf8;
    --primary-dark: #a5b4fc;
    --primary-soft: #1e2550;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 20px 45px rgba(0, 0, 0, .5);
    --footer-bg: #060a16;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 1.8em 0 .6em; font-weight: 800; color: var(--text); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: .2em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.22rem; font-weight: 700; }
p { margin: 0 0 1.15em; }
::selection { background: var(--primary); color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: var(--read); }
.center { text-align: center; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 2px; border-radius: 4px; }

/* Reading progress (article pages) */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); z-index: 60; transition: width .1s linear; }

/* ---------- Disclosure bar ---------- */
.disclosure { background: var(--bg-soft); border-bottom: 1px solid var(--border); font-size: .8rem; color: var(--muted); padding: 7px 0; text-align: center; }
.disclosure a { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.logo img { border-radius: 9px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.nav a { display: block; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .93rem; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.nav a:hover { background: var(--bg-soft); color: var(--text); }
.nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); }
.nav-toggle { display: none; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 6px 12px; font-size: 1.2rem; color: var(--text); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px; }
  .nav li a { padding: 12px 14px; border-radius: 10px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none; line-height: 1.2;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-buy { background: linear-gradient(135deg, var(--accent), #fb923c); color: #1f1300; box-shadow: 0 6px 18px rgba(245, 158, 11, .35); }
.btn-buy:hover { color: #1f1300; box-shadow: 0 10px 24px rgba(245, 158, 11, .45); }
.btn-outline { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.btn-outline:hover { background: var(--primary-soft); color: var(--primary); }
.btn-block { width: 100%; }

/* ---------- Hero (home) ---------- */
.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(900px 400px at 85% -10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
    radial-gradient(600px 300px at -10% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 36px 0 40px; } .hero-feature { transform: none; } }
.eyebrow { display: inline-block; font-size: .82rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px; }
.hero h1 { margin-bottom: 16px; }
.hero p.lead, .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.search-box {
  display: flex; align-items: center; gap: 8px; max-width: 540px; margin-top: 26px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow);
}
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.search-icon { opacity: .6; }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem; padding: 8px 4px; outline: none; }
.trust-badges { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.hero-feature {
  position: relative; display: block; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  text-decoration: none; color: #fff; aspect-ratio: 16 / 11; background: var(--bg-soft); transform: rotate(.6deg); transition: transform .25s;
}
.hero-feature:hover { transform: rotate(0) scale(1.01); color: #fff; }
.hero-feature img { width: 100%; height: 100%; object-fit: cover; }
.hero-feature-body { position: absolute; inset: auto 0 0 0; padding: 70px 24px 22px; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hero-feature-body strong { font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.01em; }
.hero-feature-cta { font-size: .9rem; font-weight: 700; color: #fde68a; }

/* ---------- Sections ---------- */
.section { padding-top: 64px; padding-bottom: 64px; }
.section-tight { padding-top: 44px; padding-bottom: 0; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-heading { margin: 0 0 6px; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.more-link { font-weight: 700; text-decoration: none; font-size: .95rem; }
.more-link:hover { text-decoration: underline; }
.grid { display: grid; gap: 26px; margin-top: 26px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ---------- Cards ---------- */
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-img { position: relative; aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-type { position: absolute; top: 12px; left: 12px; background: rgba(17, 24, 39, .75); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.card-body h3 { margin: 2px 0 0; font-size: 1.13rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-body h3 a { color: var(--text); text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card { position: relative; }
.card-body h3 a:hover { color: var(--primary); }
.card-body p { color: var(--muted); font-size: .94rem; line-height: 1.6; margin: 0; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tag {
  display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 999px; text-decoration: none;
}
.tag-light { background: rgba(255, 255, 255, .92); color: #312e81; }
.meta { font-size: .84rem; color: var(--muted); }
.card-body .meta { display: inline-flex; gap: 14px; flex-wrap: wrap; }
.author-box .meta { line-height: 1.5; }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 18px; }
.category {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: var(--text); background: var(--bg); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.category:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.category .icon { width: 48px; height: 48px; display: grid; place-items: center; font-size: 1.5rem; background: var(--primary-soft); border-radius: 14px; flex: none; }
.cat-text { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.cat-text small { color: var(--muted); font-size: .82rem; }
.cat-arrow { color: var(--muted); transition: transform .15s, color .15s; }
.category:hover .cat-arrow { transform: translateX(4px); color: var(--primary); }

/* Trust / features */
.trust-section { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin: 30px 0; }
.feature { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; font-size: 1.5rem; border-radius: 14px; background: var(--primary-soft); }
.feature h3 { margin: 16px 0 8px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 22px 20px 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

/* ---------- Article ---------- */
article.narrow { padding-bottom: 20px; }
.article-header { padding: 18px 0 6px; }
.article-header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.author-box { display: flex; align-items: center; gap: 12px; margin: 16px 0 22px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
article.narrow > p, .content p, .content li { color: var(--text-2); font-size: 1.07rem; line-height: 1.8; }
.content h2 { padding-top: 6px; scroll-margin-top: 90px; }
.content h3 { scroll-margin-top: 90px; }
.content ul, .content ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.content li { margin: .35em 0; }
.content li::marker { color: var(--primary); font-weight: 700; }
.content a { font-weight: 600; }
.content blockquote { margin: 26px 0; padding: 16px 22px; border-left: 4px solid var(--primary); background: var(--bg-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-2); font-style: italic; }
.content table { margin: 0; }
.content > table, .content > .table-wrap { margin: 24px 0; }

.toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin: 28px 0; }
.toc strong { display: block; margin-bottom: 8px; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; margin: 4px 0; font-size: .96rem; }
.toc a { text-decoration: none; color: var(--text-2); }
.toc a:hover { color: var(--primary); text-decoration: underline; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

.quick-picks { border: 0; background: linear-gradient(135deg, var(--primary-soft), color-mix(in srgb, var(--accent) 10%, var(--bg))); border-radius: var(--radius); padding: 22px 26px; margin: 28px 0; }
.quick-picks h2 { margin-top: 0; font-size: 1.25rem; }
.quick-picks ul { margin: 0; padding-left: 0; list-style: none; }
.quick-picks li { padding: 8px 0; border-bottom: 1px dashed color-mix(in srgb, var(--primary) 25%, transparent); }
.quick-picks li:last-child { border-bottom: 0; }

/* Product box */
.product-box {
  position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: start;
  border: 1px solid var(--border); border-radius: 20px; padding: 24px; margin: 30px 0; background: var(--bg); box-shadow: var(--shadow);
}
.product-box > div:first-child { background: #fff; border-radius: 14px; padding: 10px; border: 1px solid var(--border); }
.product-box > div:first-child img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.product-box .badge { display: inline-block; background: var(--accent); color: #1f1300; font-weight: 800; font-size: .74rem; letter-spacing: .03em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 10px; }
.product-box h3 { margin-top: 0; font-size: 1.35rem; }
.rating { color: var(--accent-dark); font-weight: 700; letter-spacing: .05em; }
.price { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.product-box .btn-buy { margin-top: 6px; }
@media (max-width: 640px) {
  .product-box { grid-template-columns: 1fr; padding: 18px; }
  .product-box > div:first-child { max-width: 260px; }
  .product-box .btn-buy { width: 100%; }
}
.pros-cons { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 16px 0; }
.pros-cons > div { border-radius: 12px; padding: 14px 18px; }
.pros { background: color-mix(in srgb, var(--success) 9%, var(--bg)); }
.cons { background: color-mix(in srgb, var(--danger) 8%, var(--bg)); }
.pros-cons h4 { margin: 0 0 6px; font-size: .95rem; }
.pros h4 { color: var(--success); } .cons h4 { color: var(--danger); }
.pros-cons ul { margin: 0; padding: 0; list-style: none; font-size: .94rem; }
.pros-cons li { padding-left: 24px; position: relative; margin: 4px 0; color: var(--text-2); }
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.cons li::before { content: "✕"; position: absolute; left: 0; color: var(--danger); font-weight: 800; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
thead th { background: var(--bg-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tbody tr:nth-child(even) td, tbody tr:nth-child(even) th[scope="row"] { background: color-mix(in srgb, var(--bg-soft) 60%, transparent); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; margin-bottom: 12px; background: var(--bg); transition: box-shadow .15s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--text-2); }

.callout { background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--primary); padding: 14px 18px; border-radius: var(--radius-sm); margin: 22px 0; color: var(--text-2); }

/* Newsletter */
.newsletter { background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; border-radius: var(--radius); padding: 42px 28px; text-align: center; }
.newsletter h2 { margin-top: 0; color: #fff; }
.newsletter form { display: flex; gap: 8px; max-width: 480px; margin: 18px auto 0; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 200px; padding: 12px 16px; border-radius: 999px; border: 0; font: inherit; }

/* Forms */
.form label { display: block; font-weight: 600; margin: 16px 0 6px; }
.form input, .form textarea { width: 100%; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }

/* ---------- Article photos ---------- */
.featured-img, .content-img { margin: 26px 0; }
.featured-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.content-img img { width: 100%; height: auto; border-radius: 14px; }
.featured-img figcaption, .content-img figcaption { font-size: .76rem; color: var(--muted); margin-top: 8px; }
.featured-img figcaption a, .content-img figcaption a { color: var(--muted); font-weight: 400; }

/* ---------- Deep-dive data visuals ---------- */
.analysis-note { font-size: .9rem; }
.spec-table, .compare-table { font-size: .93rem; }
.spec-table caption, .compare-table caption { caption-side: top; text-align: left; font-weight: 800; padding: 14px 16px 6px; }
.spec-table th[scope="row"] { width: 38%; color: var(--muted); font-weight: 600; white-space: normal; }
.spec-table td, .compare-table td { white-space: normal; }
.spec-group th { background: var(--primary-soft) !important; text-transform: uppercase; letter-spacing: .05em; font-size: .76rem; color: var(--primary); }
.data-source { font-size: .76rem; color: var(--muted); margin: -10px 0 26px; }
.data-source a { color: var(--muted); font-weight: 400; }
.bench-chart { margin: 30px 0; padding: 20px 22px 8px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow); }
.bench-chart figcaption { margin-bottom: 14px; }
.bench-chart figcaption span { color: var(--muted); font-size: .82rem; }
.bench-row { display: grid; grid-template-columns: minmax(110px, 34%) 1fr auto; gap: 12px; align-items: center; margin: 8px 0; font-size: .88rem; }
.bench-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.bench-bar { background: var(--bg-soft); border-radius: 999px; height: 14px; overflow: hidden; }
.bench-bar span { display: block; height: 100%; background: color-mix(in srgb, var(--primary) 55%, var(--bg-soft)); border-radius: 999px; }
.bench-row.is-main .bench-bar span { background: linear-gradient(90deg, var(--accent), #fb923c); }
.bench-row.is-main .bench-label { font-weight: 800; color: var(--text); }
.bench-val { font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; font-weight: 600; }
.bench-chart .data-source { margin: 12px 0 8px; }

/* ---------- Web Stories (Instagram-style rings) ---------- */
.stories { display: flex; gap: 18px; overflow-x: auto; padding: 14px 4px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.story-card { flex: 0 0 132px; scroll-snap-align: start; text-decoration: none; color: var(--text); text-align: center; }
.story-ring { display: block; padding: 3px; border-radius: 20px; background: conic-gradient(from 210deg, var(--accent), #ef4444, #a855f7, var(--primary), var(--accent)); transition: transform .2s; }
.story-card:hover .story-ring { transform: scale(1.04); }
.story-ring img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 17px; border: 3px solid var(--bg); background: var(--bg-soft); }
.story-title { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: .82rem; font-weight: 600; line-height: 1.35; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #cbd5e1; margin-top: 72px; padding: 56px 0 28px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; color: #fff; }
.site-footer p { color: #94a3b8; line-height: 1.7; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px; color: #94a3b8; font-size: .82rem; }
.footer-bottom a { color: #cbd5e1; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; border: 0; font-size: 1.2rem; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: var(--shadow-lg);
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-2px); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
