/* ==========================================================================
   Skandi Buzz Cleverpo: The Online Income Playbook
   Contemporary Digital Business Editorial design system
   Vanilla CSS, no external dependencies
   ========================================================================== */

:root {
  --primary: #5B4BC4;
  --primary-dark: #4a3cad;
  --secondary: #292447;
  --accent: #E8B85D;
  --bg: #F4F2FA;
  --surface: #FFFFFF;
  --text: #242238;
  --muted: #817E96;
  --muted-strong: #5f5c75;
  --highlight: #E8E4FF;
  --border: #DED9ED;

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px -14px rgba(41, 36, 71, .28);
  --shadow-lg: 0 34px 60px -24px rgba(41, 36, 71, .40);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--secondary); line-height: 1.1; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--secondary); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 22px -12px rgba(91, 75, 196, .8); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--secondary); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--highlight); }
.btn-accent { background: var(--accent); color: var(--secondary); }
.btn-accent:hover { background: #f0c776; color: var(--secondary); }
.btn-light { background: #fff; color: var(--secondary); }
.btn-sm { padding: .6em 1.1em; font-size: .88rem; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; text-underline-offset: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.label {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .35em .8em; border-radius: 999px; background: var(--highlight); color: var(--primary);
}
.chip {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: .5em;
  padding: .55em 1em; border-radius: 999px; border: 1px solid var(--border); background: rgba(255,255,255,.7);
  font-size: .9rem; font-weight: 600; color: var(--secondary); cursor: pointer;
  transition: color .3s, border-color .3s, background .3s;
}
.chip:hover { border-color: var(--primary); }
.chip[aria-pressed="true"] { color: #fff; border-color: transparent; background: transparent; }
.chip-count { font-size: .72rem; background: var(--highlight); color: var(--primary); border-radius: 999px; padding: .1em .55em; transition: background .3s, color .3s; }
.chip[aria-pressed="true"] .chip-count { background: rgba(255,255,255,.2); color: #fff; }
.chip-indicator {
  position: absolute; top: 0; left: 0; z-index: 0; border-radius: 999px; background: var(--secondary);
  transition: transform .45s var(--ease), width .45s var(--ease), height .45s var(--ease);
  box-shadow: 0 8px 18px -10px rgba(41,36,71,.7);
}
.skill-chip { display: inline-block; padding: .4em .85em; margin: 0 .4em .5em 0; border-radius: 999px; background: var(--highlight); color: var(--secondary); font-size: .88rem; font-weight: 600; }

/* ---------- Header (non-sticky, scrolls with document) ---------- */
.site-header {
  position: relative; z-index: 30;
  background: rgba(244, 242, 250, .92);
  border-bottom: 1px solid var(--border);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: .65em; text-decoration: none; color: var(--secondary); }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--primary); color: var(--accent); font-weight: 800; font-size: .95rem; letter-spacing: .02em;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18);
  transition: transform .4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-text { font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1; }
.brand-text em { font-style: italic; color: var(--primary); }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.primary-nav ul a {
  position: relative; display: block; padding: .5em .8em; text-decoration: none; color: var(--secondary); font-weight: 600; font-size: .95rem; border-radius: 8px;
}
.primary-nav ul a::after {
  content: ""; position: absolute; left: .8em; right: .8em; bottom: .25em; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.primary-nav ul a:hover::after, .primary-nav ul a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--secondary); transition: transform .3s, opacity .3s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero: Digital Opportunity Drift ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(92vh, 860px);
  display: flex; align-items: center;
  padding: 80px 0 100px;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(91,75,196,.16), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(232,184,93,.18), transparent 70%),
    var(--bg);
}
.hero-drift { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.drift-item { position: absolute; will-change: transform; }
.drift-card {
  position: relative; width: 100%; height: 100%; border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, var(--highlight), #cfc6f7 55%, #f3d79f);
  box-shadow: var(--shadow-lg); border: 6px solid #fff;
  animation: slowDrift 18s ease-in-out infinite alternate;
}
.drift-card img { width: 100%; height: 100%; object-fit: cover; }
.drift-item:nth-child(2) .drift-card { animation-duration: 22s; animation-delay: -4s; }
.drift-item:nth-child(3) .drift-card { animation-duration: 16s; animation-delay: -8s; }
.drift-item:nth-child(4) .drift-card { animation-duration: 24s; animation-delay: -2s; }
.drift-item:nth-child(5) .drift-card { animation-duration: 20s; animation-delay: -10s; }
.drift-item:nth-child(6) .drift-card { animation-duration: 26s; animation-delay: -6s; }
@keyframes slowDrift {
  0% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(10px, -16px, 0) rotate(1.5deg); }
  100% { transform: translate3d(-8px, 10px, 0) rotate(-.5deg); }
}
.d1 { top: 7%; right: 3%; width: 270px; height: 330px; }
.d2 { top: 54%; right: 15%; width: 230px; height: 260px; }
.d3 { top: 12%; right: 26%; width: 190px; height: 210px; }
.d4 { bottom: 5%; right: 36%; width: 210px; height: 150px; }
.d5 { top: 58%; right: -2%; width: 180px; height: 230px; }
.d6 { top: 36%; right: 31%; width: 150px; height: 150px; }
.drift-caption {
  position: absolute; left: 10px; bottom: 10px; padding: .3em .7em; border-radius: 999px;
  background: rgba(255,255,255,.88); color: var(--secondary); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.float-sym {
  position: absolute; font-family: var(--display); font-weight: 700; color: var(--primary); opacity: .14;
  animation: floatSym 12s ease-in-out infinite; pointer-events: none;
}
.float-sym.s1 { top: 14%; left: 46%; font-size: 4rem; }
.float-sym.s2 { bottom: 12%; left: 6%; font-size: 3rem; animation-delay: -3s; color: var(--accent); opacity: .35; }
.float-sym.s3 { top: 72%; left: 52%; font-size: 2.4rem; animation-delay: -6s; }
.float-sym.s4 { top: 8%; left: 4%; font-size: 2.2rem; animation-delay: -9s; color: var(--accent); opacity: .4; }
@keyframes floatSym { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(12deg); } }

.hero-content { position: relative; max-width: 660px; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--primary); }
.mask-line { display: block; overflow: hidden; padding-bottom: .06em; }
.mask-line > span { display: block; transform: translateY(105%); animation: maskUp 1.1s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 130ms + 150ms); }
@keyframes maskUp { to { transform: translateY(0); } }
.hero-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted-strong); max-width: 560px; opacity: 0; animation: fadeUp 1s var(--ease) .7s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-search {
  position: relative; display: flex; align-items: center; gap: 8px; margin-top: 28px;
  background: rgba(255,255,255,.92); border: 1px solid var(--border); border-radius: 999px; padding: 8px 8px 8px 22px;
  box-shadow: var(--shadow); max-width: 580px;
  opacity: 0; animation: fadeUp 1s var(--ease) .9s forwards;
}
.hero-search svg { flex: none; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .7em .2em; font-size: 1rem; outline: none; }
.hero-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91,75,196,.15), var(--shadow); }
.search-status { margin-top: 12px; font-size: .9rem; color: var(--muted-strong); min-height: 1.5em; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; opacity: 0; animation: fadeUp 1s var(--ease) 1.05s forwards; }
.hero-tags button { font-size: .82rem; padding: .4em .85em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 36px; opacity: 0; animation: fadeUp 1s var(--ease) 1.2s forwards; }
.hero-meta div { border-left: 2px solid var(--accent); padding-left: 14px; }
.hero-meta strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--secondary); line-height: 1; }
.hero-meta span { font-size: .85rem; color: var(--muted-strong); }

.rotating-badge { position: absolute; width: 132px; height: 132px; display: grid; place-items: center; }
.rotating-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.rotating-badge text { font-size: 10.5px; letter-spacing: 2.6px; font-weight: 700; fill: var(--secondary); font-family: var(--sans); }
.rotating-badge .badge-core {
  width: 66px; height: 66px; border-radius: 50%; background: var(--accent); display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--secondary); box-shadow: var(--shadow);
}
.hero .rotating-badge { right: 40%; bottom: 8%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: 60px 0; }
.section-dark { background: var(--secondary); color: #dcd8f0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--accent); }
.section-surface { background: var(--surface); }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; margin-bottom: 52px; }
.section-head p { color: var(--muted-strong); margin: 0; }
.section-head.center { grid-template-columns: 1fr; text-align: center; max-width: 760px; margin-inline: auto; }
.big-number { font-family: var(--display); font-size: clamp(5rem, 12vw, 10rem); line-height: .8; color: var(--highlight); font-weight: 700; -webkit-text-stroke: 1.5px var(--primary); }

/* ---------- Media & fallbacks ---------- */
.media, .img-frame {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--highlight) 0%, #cdc4f6 55%, #f2d7a2 100%);
}
.media img, .img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.img-failed img { visibility: hidden; }
.img-failed::after {
  content: attr(data-fallback); position: absolute; left: 18px; bottom: 16px; right: 18px;
  font-family: var(--display); font-size: 1.4rem; font-weight: 600; color: var(--secondary); line-height: 1.15;
}
.js [data-reveal] .media::before, .js .wipe::before {
  content: ""; position: absolute; inset: 0; z-index: 3; background: var(--secondary);
  transform-origin: right; transform: scaleX(1); transition: transform 1.1s var(--ease) .15s;
}
.js [data-reveal].is-visible .media::before, .js .wipe.is-visible::before { transform: scaleX(0); }

/* ---------- Reveal animations ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease), box-shadow .45s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Method cards ---------- */
.method-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 30px; transition: opacity .2s, transform .2s; }
.method-grid.is-switching { opacity: 0; transform: translateY(10px); }
.method-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.method-card::before {
  content: ""; position: absolute; inset: 10px -10px -10px 10px; z-index: -1; border-radius: var(--radius);
  background: var(--highlight); border: 1px solid var(--border); transition: transform .45s var(--ease);
}
.js .method-card[data-reveal].is-visible:hover, .method-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.method-card:hover::before { transform: translate(6px, 6px); }
.method-card .media { aspect-ratio: 16 / 10.5; border-radius: var(--radius) var(--radius) 0 0; }
.method-card:hover .media img { transform: scale(1.07); }
.media .tag {
  position: absolute; z-index: 2; top: 14px; left: 14px; padding: .35em .85em; border-radius: 999px;
  background: rgba(255,255,255,.92); color: var(--secondary); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.media .num {
  position: absolute; z-index: 2; right: 14px; bottom: 6px; font-family: var(--display); font-size: 3.2rem; font-weight: 700; color: #fff; line-height: 1;
  text-shadow: 0 6px 24px rgba(41,36,71,.6);
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.card-body h3 { margin-bottom: .35em; }
.card-body h3 a { color: var(--secondary); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .4s var(--ease); }
.card-body h3 a:hover { background-size: 100% 2px; }
.card-body > p { color: var(--muted-strong); font-size: .96rem; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 6px 0 16px; padding: 14px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.specs div { min-width: 0; }
.specs dt { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.specs dd { margin: 0; font-size: .9rem; font-weight: 600; color: var(--secondary); }
.specs .wide { grid-column: 1 / -1; }
.meters { display: grid; gap: 7px; margin-bottom: 18px; }
.meter { display: grid; grid-template-columns: 82px 1fr; align-items: center; gap: 10px; font-size: .74rem; color: var(--muted-strong); font-weight: 600; }
.meter-track { height: 6px; border-radius: 99px; background: var(--highlight); overflow: hidden; }
.meter-fill { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--primary), #8b7ce6); transition: width 1.2s var(--ease) .3s; }
.meter-fill.amber { background: linear-gradient(90deg, #d9a440, var(--accent)); }
.is-visible .meter-fill, .no-reveal .meter-fill { width: var(--w); }
.meter-note { font-size: .72rem; color: var(--muted); margin: -6px 0 14px; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.card-actions .btn { flex: 1 1 140px; }

@media (min-width: 1040px) {
  .method-grid.editorial { grid-template-columns: repeat(3, 1fr); }
  .method-grid.editorial > .method-card:nth-child(3n+2) { margin-top: 54px; }
  .method-grid.editorial > .method-card:nth-child(3n+3) { margin-top: 24px; }
}

/* ---------- Featured asymmetric grid ---------- */
.featured-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 30px; }
.featured-grid > .method-card:first-child { grid-row: span 2; }
.featured-grid > .method-card:first-child .media { aspect-ratio: auto; min-height: 380px; flex: 1; }
.featured-grid > .method-card:first-child h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.featured-grid > .method-card:not(:first-child) { display: grid; grid-template-columns: 42% 1fr; }
.featured-grid > .method-card:not(:first-child) .media { aspect-ratio: auto; height: 100%; border-radius: var(--radius) 0 0 var(--radius); }
.featured-grid > .method-card:not(:first-child) .specs { display: none; }

/* ---------- Finder panel ---------- */
.finder-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.editorial-copy p { color: var(--muted-strong); }
.editorial-copy .pull {
  font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--secondary); line-height: 1.25;
  border-left: 4px solid var(--accent); padding-left: 22px; margin: 30px 0;
}
.panel {
  position: relative; background: rgba(255,255,255,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-lg);
}
.panel.floating { animation: panelFloat 9s ease-in-out infinite; }
@keyframes panelFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.panel h3 { margin-bottom: .2em; }
.panel .panel-sub { color: var(--muted-strong); font-size: .95rem; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-strong); }
.field select, .field input, .select {
  width: 100%; padding: .75em 1em; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--primary) 50%), linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 2.4em; cursor: pointer;
}
.field input { background-image: none; padding-right: 1em; cursor: text; }
.field select:focus, .field input:focus, .select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(91,75,196,.14); }
.finder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.finder-result { margin-top: 18px; display: grid; gap: 12px; }
.finder-pick {
  display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 16px;
  background: var(--bg); border: 1px solid var(--border); text-decoration: none; color: var(--text);
  animation: fadeUp .6s var(--ease) both;
}
.finder-pick:nth-child(2) { animation-delay: .1s; }
.finder-pick:hover { border-color: var(--primary); color: var(--text); }
.finder-pick .img-frame { width: 74px; height: 74px; border-radius: 12px; }
.finder-pick strong { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--secondary); }
.finder-pick span { font-size: .85rem; color: var(--muted-strong); }
.finder-note { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- Category columns ---------- */
.cat-columns { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.15); border-left: 1px solid rgba(255,255,255,.15); }
.cat-col {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 28px 24px 30px;
  border-right: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); min-height: 220px;
  transition: background .4s;
}
.cat-col:hover { background: rgba(255,255,255,.05); }
.cat-col .vlabel {
  writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-size: 1.6rem; color: var(--accent); font-weight: 600; letter-spacing: .02em;
}
.cat-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.cat-col a { color: #fff; text-decoration: none; font-weight: 600; display: inline-flex; gap: .5em; align-items: baseline; }
.cat-col a:hover { color: var(--accent); }
.cat-col small { display: block; color: #b3aed0; font-size: .82rem; font-weight: 400; }
.cat-col .cat-count { position: absolute; right: 20px; top: 18px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #b3aed0; }
.cat-col .cat-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); transition: width .8s var(--ease); }
.cat-col:hover .cat-bar { width: 100%; }

/* ---------- Guide highlight tiles ---------- */
.guide-tiles { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 260px; gap: 24px; }
.guide-tile {
  position: relative; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; display: flex; align-items: flex-end;
}
.guide-tile:first-child { grid-row: span 2; }
.guide-tile .img-frame { position: absolute; inset: 0; }
.guide-tile .img-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(41,36,71,0) 30%, rgba(41,36,71,.88)); }
.guide-tile.img-failed-parent .img-frame::after { background: linear-gradient(180deg, rgba(41,36,71,.3), rgba(41,36,71,.9)); }
.guide-tile:hover img { transform: scale(1.08); }
.guide-tile .tile-body { position: relative; z-index: 2; padding: 24px; }
.guide-tile h3 { color: #fff; margin-bottom: .3em; }
.guide-tile p { margin: 0; font-size: .92rem; color: #e6e2f7; }
.guide-tile .label { background: var(--accent); color: var(--secondary); margin-bottom: 10px; }

/* ---------- Warning / callouts ---------- */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px 26px; border-radius: var(--radius);
  background: #fff8ea; border: 1px solid #f1dcae; color: var(--text);
}
.callout .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent); display: grid; place-items: center; color: var(--secondary); font-weight: 800; font-size: 1.2rem; }
.callout h3 { font-size: 1.15rem; margin-bottom: .3em; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout.info { background: var(--highlight); border-color: #cfc7f3; }
.callout.info .icon { background: var(--primary); color: #fff; }

.trust-band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before { content: "!"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--secondary); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.check-list.ok li::before { content: "✓"; background: var(--primary); color: #fff; }

/* ---------- Page intro (inner pages) ---------- */
.page-intro { position: relative; padding: clamp(60px, 8vw, 110px) 0 60px; overflow: hidden; }
.page-intro::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(91,75,196,.18), transparent 70%); z-index: -1; }
.page-intro .intro-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; }
.page-intro h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.page-intro p.lead { font-size: 1.2rem; color: var(--muted-strong); max-width: 640px; }
.breadcrumbs { font-size: .85rem; color: var(--muted-strong); margin-bottom: 22px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.breadcrumbs a { color: var(--muted-strong); }

/* ---------- Listings filter bar ---------- */
.filter-shell { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); margin-bottom: 40px; }
.filter-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr) auto; gap: 14px; align-items: end; }
.filter-top .field { margin: 0; }
.chip-row { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; color: var(--muted-strong); font-size: .95rem; }
.results-bar strong { color: var(--secondary); }
.empty-state { text-align: center; padding: 60px 20px; border: 2px dashed var(--border); border-radius: var(--radius); color: var(--muted-strong); }
.empty-state h3 { margin-bottom: .3em; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 820px; font-size: .92rem; }
.compare-table th, .compare-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table th { background: var(--secondary); color: #fff; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.compare-table tr:hover td { background: var(--bg); }
.compare-table a { font-weight: 700; }

/* ---------- Detail pages ---------- */
.detail-hero { padding: 50px 0 60px; }
.detail-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.detail-hero h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.detail-hero .lead { font-size: 1.2rem; color: var(--muted-strong); }
.detail-visual { position: relative; }
.detail-visual .img-frame { border-radius: var(--radius-lg); aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-lg); }
.detail-visual .rotating-badge { left: -40px; bottom: -36px; }
.detail-visual .float-card {
  position: absolute; right: -16px; top: 24px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow); animation: panelFloat 8s ease-in-out infinite; max-width: 220px;
}
.float-card small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.float-card strong { font-family: var(--display); color: var(--secondary); font-size: 1.1rem; }
.quick-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 28px; }
.quick-specs div { background: var(--surface); padding: 16px; }
.quick-specs dt { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.quick-specs dd { margin: 4px 0 0; font-weight: 700; color: var(--secondary); font-size: .95rem; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 50px; align-items: start; }
.detail-main section { padding: 34px 0; border-top: 1px solid var(--border); }
.detail-main section:first-child { border-top: 0; padding-top: 0; }
.detail-main h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.detail-main p, .detail-main li { color: #3a3752; }
.step-list { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 14px; }
.step-list li { counter-increment: step; position: relative; padding: 16px 18px 16px 70px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.step-list li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 18px; top: 12px; font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: var(--primary); }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pros-cons > div { padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.pros-cons h3 { font-size: 1.2rem; }
.pros-cons .pros h3 { color: var(--primary); }
.pros-cons .cons h3 { color: #a8741a; }
.illustrative { margin-top: 18px; padding: 18px 22px; border-radius: 14px; background: var(--highlight); border-left: 4px solid var(--primary); }
.illustrative strong { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 4px; }
.platform-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.platform-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  text-decoration: none; color: var(--secondary); font-weight: 700; transition: border-color .3s, transform .3s var(--ease);
}
.platform-list a:hover { border-color: var(--primary); transform: translateY(-3px); }
.platform-list small { display: block; font-weight: 400; color: var(--muted-strong); font-size: .8rem; }
.spec-panel { position: sticky; top: 24px; }
.spec-panel .panel { padding: 26px; }
.spec-panel dl { margin: 16px 0; display: grid; gap: 12px; }
.spec-panel dt { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.spec-panel dd { margin: 2px 0 0; font-weight: 600; color: var(--secondary); font-size: .95rem; }
.spec-panel .btn { width: 100%; margin-top: 10px; }
.toc-mini { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.toc-mini a { display: block; padding: 5px 0; font-size: .9rem; color: var(--muted-strong); text-decoration: none; }
.toc-mini a:hover { color: var(--primary); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 50px; }
.pager a { display: block; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); text-decoration: none; transition: transform .3s var(--ease), border-color .3s; }
.pager a:hover { transform: translateY(-4px); border-color: var(--primary); }
.pager small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.pager strong { font-family: var(--display); font-size: 1.3rem; color: var(--secondary); }
.pager .next { text-align: right; }
.method-index { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.method-index a { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--secondary); font-weight: 700; }
.method-index a:hover { border-color: var(--primary); }
.method-index span { font-family: var(--display); color: var(--primary); font-size: 1.4rem; }

/* ---------- Guide page ---------- */
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 60px; align-items: start; }
.guide-toc { position: sticky; top: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.guide-toc h2 { font-size: 1.1rem; margin-bottom: .8em; }
.guide-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.guide-toc li { counter-increment: toc; }
.guide-toc a { display: grid; grid-template-columns: 28px 1fr; padding: 6px 0; font-size: .9rem; color: var(--muted-strong); text-decoration: none; transition: color .2s; }
.guide-toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--muted); font-size: .78rem; padding-top: 2px; }
.guide-toc a:hover, .guide-toc a.active { color: var(--primary); }
.guide-toc a.active::before { color: var(--accent); }
.guide-article { padding: 0 0 56px; margin-bottom: 56px; border-bottom: 1px solid var(--border); scroll-margin-top: 24px; }
.guide-article:last-child { border-bottom: 0; }
.guide-article h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.guide-article h3 { margin-top: 1.4em; }
.guide-article p, .guide-article li { color: #3a3752; }
.guide-article .img-frame { border-radius: var(--radius); aspect-ratio: 16 / 7; margin: 24px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mini-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; }
.mini-card h3 { font-size: 1.1rem; margin-top: 0; }
.mini-card p:last-child, .mini-card ul:last-child { margin-bottom: 0; }

/* ---------- Legal / about ---------- */
.legal { max-width: 860px; }
.legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-top: 1.8em; }
.legal p, .legal li { color: #3a3752; }
.legal .updated { color: var(--muted-strong); font-size: .92rem; }
.details-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.details-table th, .details-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.details-table th { width: 34%; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-strong); background: var(--bg); }
.placeholder { display: inline-block; padding: .1em .55em; border-radius: 6px; background: #fff3d6; color: #7a5310; font-weight: 600; font-size: .92em; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-grid .img-frame { border-radius: var(--radius-lg); aspect-ratio: 4 / 3.6; box-shadow: var(--shadow-lg); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.principle { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; transition: transform .4s var(--ease), box-shadow .4s; }
.principle:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.principle .pnum { font-family: var(--display); font-size: 2.4rem; color: var(--accent); font-weight: 700; line-height: 1; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--secondary); color: #c9c4e3; padding: 80px 0 30px; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand .brand-text em { color: var(--accent); }
.footer-brand p { font-size: .95rem; max-width: 340px; }
.footer-heading { font-family: var(--sans); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; font-size: .93rem; }
.footer-col .link-btn { color: #fff; text-decoration: none; font-size: .93rem; }
.footer-col .link-btn:hover { color: var(--accent); }
.footer-col address { font-style: normal; font-size: .9rem; line-height: 1.7; }
.footer-notices { padding: 34px 0; display: grid; gap: 14px; font-size: .88rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-notices p { margin: 0; }
.footer-notices .notice-strong { background: rgba(255,255,255,.06); border: 1px solid rgba(232,184,93,.35); border-radius: 14px; padding: 16px 18px; color: #e6e2f7; }
.footer-notices .notice-strong strong { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.site-footer .placeholder { background: rgba(232,184,93,.18); color: #f3d79f; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 200; max-width: 560px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px; box-shadow: 0 30px 70px -20px rgba(41,36,71,.55);
  transform: translateY(140%); transition: transform .6s var(--ease);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner h2 { font-size: 1.3rem; margin-bottom: .4em; }
.cookie-banner p { font-size: .9rem; color: var(--muted-strong); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cookie-prefs { display: none; margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--bg); font-size: .9rem; }
.cookie-prefs.open { display: grid; gap: 10px; }
.cookie-prefs label { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cookie-prefs input { width: 20px; height: 20px; accent-color: var(--primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .filter-top { grid-template-columns: 1fr 1fr 1fr; }
  .filter-top .field:first-child { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .d3, .d6 { display: none; }
  .hero .rotating-badge { right: 6%; bottom: 4%; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 14px;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 18px 20px 24px; box-shadow: var(--shadow);
  }
  .nav-open .primary-nav { display: flex; }
  .primary-nav ul { flex-direction: column; }
  .primary-nav ul a { padding: .8em .4em; border-bottom: 1px solid var(--border); border-radius: 0; }
  .section-head, .finder-wrap, .trust-band, .detail-hero-grid, .about-grid, .page-intro .intro-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid > .method-card:first-child { grid-row: auto; }
  .featured-grid > .method-card:first-child .media { min-height: 0; aspect-ratio: 16/10; }
  .cat-columns { grid-template-columns: 1fr 1fr; }
  .guide-tiles { grid-template-columns: 1fr 1fr; }
  .guide-tile:first-child { grid-column: span 2; grid-row: auto; }
  .detail-layout, .guide-layout { grid-template-columns: 1fr; }
  .spec-panel, .guide-toc { position: static; }
  .principles { grid-template-columns: 1fr; }
  .quick-specs { grid-template-columns: 1fr 1fr; }
  .hero-drift { opacity: .45; }
  .hero-content { max-width: 100%; }
  .detail-visual .rotating-badge { left: 10px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero { padding: 50px 0 80px; min-height: 0; }
  .d1 { width: 170px; height: 210px; right: -40px; }
  .d2, .d4 { display: none; }
  .d5 { width: 130px; height: 170px; top: 70%; }
  .hero-search { padding-left: 16px; }
  .hero-search .btn { padding: .7em 1em; }
  .hero .rotating-badge { display: none; }
  .featured-grid > .method-card:not(:first-child) { grid-template-columns: 1fr; }
  .featured-grid > .method-card:not(:first-child) .media { aspect-ratio: 16/10; border-radius: var(--radius) var(--radius) 0 0; }
  .cat-columns, .guide-tiles, .pros-cons, .two-col, .finder-grid, .pager, .filter-top { grid-template-columns: 1fr; }
  .guide-tile:first-child { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 20px; }
  .detail-visual .float-card { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .mask-line > span, .hero-lead, .hero-search, .hero-tags, .hero-meta { transform: none; opacity: 1; }
}