/* =====================================================================
   SaaSGuider — Playful & Colorful Design System
   ---------------------------------------------------------------------
   👉 EASY CUSTOMIZATION: Change any value in :root below and it updates
      across the WHOLE site. Think of this as your "Elementor global
      settings" panel — colors, fonts, spacing, radius, shadows.
   ===================================================================== */

:root {
  /* ---- 🎨 BRAND COLORS — Kit 2: Emerald & Ivory (flat/solid) ---- */
  --c-primary:      #059669;   /* main emerald */
  --c-primary-dark: #047857;
  --c-pink:         #0D9488;   /* secondary teal accent */
  --c-coral:        #10B981;   /* light emerald accent  */
  --c-yellow:       #D97706;   /* gold — used for star ratings */
  --c-teal:         #0D9488;
  --c-mint:         #D1FAE5;

  /* ---- 🖌 SURFACES & TEXT (plain) ---- */
  --c-bg:        #F5FAF7;   /* page background */
  --c-surface:   #FFFFFF;   /* cards           */
  --c-ink:       #12241C;   /* headings        */
  --c-body:      #42544B;   /* body text       */
  --c-muted:     #7C8B84;   /* subtle text     */
  --c-border:    #E3EDE7;   /* hairlines       */
  --c-footer:    #0F1E17;   /* dark bands (footer/vendor) — stays dark in both themes */
  --c-footer-tx: #B7C6BD;   /* footer body text */

  /* ---- 🎯 ACCENTS (solid, no gradients) ---- */
  /* These were gradients; now solid colors so the site is fully flat.   */
  --grad-hero:  #059669;   /* primary emerald  */
  --grad-warm:  #D97706;   /* amber            */
  --grad-cool:  #0D9488;   /* teal             */

  /* ---- ✍️ TYPOGRAPHY ---- */
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --fs-hero:   clamp(2.4rem, 6vw, 4.2rem);
  --fs-h2:     clamp(1.8rem, 3.5vw, 2.8rem);
  --fs-h3:     1.3rem;

  /* ---- 📐 SHAPE & SPACE ---- */
  --radius-sm:  12px;
  --radius:     20px;
  --radius-lg:  32px;
  --radius-pill: 999px;
  --gap:        1.5rem;
  --container:  1180px;

  /* ---- 🌫 SHADOWS ---- */
  --shadow-sm: 0 4px 14px rgba(6, 78, 59, .07);
  --shadow:    0 14px 40px rgba(6, 78, 59, .10);
  --shadow-lg: 0 30px 60px rgba(6, 78, 59, .14);
}

/* ---- 🌙 DARK MODE (auto-swaps every surface/text token) ---- */
:root[data-theme="dark"] {
  --c-primary:      #10B981;   /* brighter emerald for dark bg */
  --c-primary-dark: #059669;
  --grad-hero:      #10B981;
  --grad-cool:      #14B8A6;
  --c-bg:      #0E1A15;
  --c-surface: #16241E;
  --c-ink:     #EAF3EE;
  --c-body:    #B8C7BF;
  --c-muted:   #7C8B84;
  --c-border:  #24352C;
  --c-footer:    #0A130F;   /* even deeper band for dark theme */
  --c-footer-tx: #9FB0A6;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .35);
  --shadow:    0 14px 40px rgba(0, 0, 0, .45);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, .55);
}
:root[data-theme="dark"] .site-header { background: rgba(14, 26, 21, .82); }
:root[data-theme="dark"] .eyebrow { background: rgba(16, 185, 129, .16); }
:root[data-theme="dark"] .hero-tags a,
:root[data-theme="dark"] .chip { background: var(--c-surface); }
:root[data-theme="dark"] .badge-free { background: rgba(16,185,129,.18); color: #6EE7B7; }
:root[data-theme="dark"] .badge-freemium { background: rgba(217,119,6,.18); color: #FCD34D; }
:root[data-theme="dark"] .badge-paid { background: rgba(20,184,166,.18); color: #5EEAD4; }

/* theme toggle button */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--c-border);
  background: var(--c-surface); cursor: pointer; font-size: 1.1rem; display: grid;
  place-items: center; box-shadow: var(--shadow-sm); transition: transform .2s;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(-12deg); }

/* ===================== RESET / BASE ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-body);
  background: var(--c-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--c-ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--c-primary); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding: 5rem 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 600;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-primary); background: #E3F3EC; padding: .35rem .9rem;
  border-radius: var(--radius-pill); margin-bottom: 1rem;
}
.section-head { max-width: 620px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { color: var(--c-muted); font-size: 1.05rem; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.6rem; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--grad-hero); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--c-primary); color: var(--c-primary); }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.1rem; }

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(245, 250, 247, .82);  /* matches --c-bg (#F5FAF7) so the sticky bar blends with the page */
  border-bottom: 1px solid var(--c-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: .55rem; font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--c-ink); }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--grad-hero);
  display: grid; place-items: center; color: #fff; font-weight: 800; box-shadow: var(--shadow-sm);
  transform: rotate(-6deg);
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--c-body); font-weight: 500; position: relative; }
.nav-links a:hover { color: var(--c-primary); }
.nav-links a.active { color: var(--c-primary); }
.nav-actions { display: flex; gap: .75rem; align-items: center; }
.burger { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--c-ink); }

/* ===================== HERO ===================== */
.hero { position: relative; overflow: hidden; padding: 4.5rem 0 5.5rem; }
.hero .container { position: relative; z-index: 2; text-align: center; }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -.02em; }
.hero h1 .grad { background: var(--grad-hero); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.2rem; color: var(--c-body); max-width: 620px; margin: 1.2rem auto 2rem; }
.hero-search {
  display: flex; gap: .5rem; max-width: 560px; margin: 0 auto 1.4rem;
  background: var(--c-surface); padding: .5rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow); border: 1px solid var(--c-border);
}
.hero-search input { flex: 1; border: 0; background: none; padding: .6rem 1.1rem; font-size: 1rem; color: var(--c-ink); outline: none; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.hero-tags span { font-size: .85rem; color: var(--c-muted); }
.hero-tags a { background: #fff; border: 1px solid var(--c-border); padding: .3rem .8rem; border-radius: var(--radius-pill); color: var(--c-body); font-size: .85rem; }
.hero-tags a:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* floating decorative blobs */
.blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: .55; z-index: 1; animation: float 8s ease-in-out infinite; }
.blob-1 { width: 220px; height: 220px; background: var(--c-pink);  top: -40px; left: -60px; }
.blob-2 { width: 180px; height: 180px; background: var(--c-teal);  bottom: -50px; right: -40px; animation-delay: 1.5s; }
.blob-3 { width: 120px; height: 120px; background: var(--c-yellow); top: 40px; right: 12%; animation-delay: 3s; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-24px) } }

/* ===================== STATS STRIP ===================== */
.stats { display: flex; flex-wrap: wrap; gap: var(--gap); justify-content: center; }
.stat { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.4rem 2rem; text-align: center; box-shadow: var(--shadow-sm); min-width: 160px; }
.stat b { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--c-primary); }
.stat span { font-size: .9rem; color: var(--c-muted); }

/* ===================== CATEGORY PILLS ===================== */
.cats { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cat-card {
  display: flex; align-items: center; gap: .8rem; padding: 1rem 1.4rem;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
  font-family: var(--font-head); font-weight: 600; color: var(--c-ink);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: #fff; border: 1px solid var(--c-border); }
.cat-card small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--c-muted); font-size: .8rem; }

/* ===================== TOOL / LISTING CARDS ===================== */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.tool-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column;
  position: relative; overflow: hidden; color: var(--c-body);
}
.tool-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--grad-hero); }
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tool-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.tool-logo { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: var(--c-primary); font-size: 1.4rem; box-shadow: var(--shadow-sm); background: #fff; border: 1px solid var(--c-border); overflow: hidden; }
/* real logo images sit on the white tile */
.tool-logo img, .dh-logo img, .alt-logo img, .cat-ico img { width: 68%; height: 68%; object-fit: contain; display: block; }
.tool-top h3 { margin: 0; font-size: var(--fs-h3); }
.tool-top .cat-tag { font-size: .8rem; color: var(--c-primary); font-weight: 600; }
.tool-card p { font-size: .95rem; flex: 1; }
.tool-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--c-border); }
.rating { color: var(--c-yellow); font-weight: 700; font-family: var(--font-head); }
.rating span { color: var(--c-muted); font-weight: 400; font-size: .85rem; }
.badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .25rem .7rem; border-radius: var(--radius-pill); }
.badge-free { background: var(--c-mint); color: #1B7A47; }
.badge-freemium { background: #FFF0C2; color: #A9700B; }
.badge-paid { background: #CCFBF1; color: #0F766E; }

/* ===================== DIRECTORY LAYOUT ===================== */
.dir-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; }
.filters { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); position: sticky; top: 96px; }
.filters h4 { font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); margin: 1.2rem 0 .6rem; }
.filters h4:first-child { margin-top: 0; }
.filter-opt { display: flex; align-items: center; gap: .6rem; padding: .35rem 0; color: var(--c-body); font-size: .95rem; cursor: pointer; }
.filter-opt input { accent-color: var(--c-primary); width: 17px; height: 17px; }
.dir-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.dir-toolbar .count { color: var(--c-muted); }
.search-bar { display: flex; gap: .5rem; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-pill); padding: .4rem; box-shadow: var(--shadow-sm); }
.search-bar input { border: 0; background: none; outline: none; padding: .5rem 1rem; font-size: .95rem; min-width: 220px; color: var(--c-ink); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.chip { padding: .45rem 1rem; border-radius: var(--radius-pill); border: 1px solid var(--c-border); background: #fff; font-size: .88rem; font-weight: 500; color: var(--c-body); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); }
.chip.active { background: var(--grad-hero); color: #fff; border-color: transparent; }

/* ===================== BLOG ===================== */
.post-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-thumb { height: 190px; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; position: relative; }
.post-thumb .tag { position: absolute; top: 1rem; left: 1rem; background: rgba(255,255,255,.9); color: var(--c-ink); font-size: .75rem; font-weight: 700; padding: .3rem .8rem; border-radius: var(--radius-pill); }
.post-body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.post-body h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.post-body h3 a { color: var(--c-ink); }
.post-body h3 a:hover { color: var(--c-primary); }
.post-body p { font-size: .93rem; flex: 1; }
.post-foot { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; font-size: .85rem; color: var(--c-muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-cool); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .85rem; }

.featured-post { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 3rem; }
.featured-post .fp-img { min-height: 340px; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-size: 2rem; font-weight: 800; }
.featured-post .fp-body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }
.featured-post .fp-body h2 { font-size: 2rem; }

/* ===================== NEWSLETTER CTA ===================== */
.cta {
  background: var(--grad-hero); border-radius: var(--radius-lg); padding: 3.5rem 2rem;
  text-align: center; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; font-size: var(--fs-h2); }
.cta p { color: rgba(255,255,255,.9); max-width: 500px; margin: 0 auto 1.8rem; }
.cta-form { display: flex; gap: .5rem; max-width: 460px; margin: 0 auto; background: #fff; padding: .5rem; border-radius: var(--radius-pill); }
.cta-form input { flex: 1; border: 0; background: none; outline: none; padding: .7rem 1.1rem; font-size: 1rem; }
.cta::after { content: ""; position: absolute; width: 300px; height: 300px; background: rgba(255,255,255,.12); border-radius: 50%; top: -120px; right: -80px; }
/* white buttons on the emerald CTA/recommendation band — always dark text so they stay readable in dark mode */
.cta .btn-ghost { background: #fff; color: #12241C; border-color: transparent; position: relative; z-index: 1; }
.cta .btn-ghost:hover { color: var(--c-primary-dark); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--c-footer); color: var(--c-footer-tx); padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
.site-footer h5 { color: #fff; font-family: var(--font-head); margin: 0 0 1rem; font-size: 1rem; }
.site-footer a { color: #C9C4E0; display: block; padding: .3rem 0; font-size: .92rem; }
.site-footer a:hover { color: var(--c-pink); }
.site-footer .logo { color: #fff; margin-bottom: 1rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: #8B85A3; }

/* ===================== ANIMATION UTILITIES ===================== */
/* scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .marquee-track, .float-logo, .blob { animation: none !important; }
}

/* hero rotating word */
.rotator { color: var(--c-primary); display: inline-block; transition: opacity .35s, transform .35s; position: relative; }
.rotator::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; border-radius: 4px; background: var(--c-primary); opacity: .25; }
.rotator.swap { opacity: 0; transform: translateY(-12px); }

/* floating tool logos in hero */
.float-logo { position: absolute; width: 56px; height: 56px; border-radius: 16px; background: #fff; border: 1px solid var(--c-border); box-shadow: var(--shadow); display: grid; place-items: center; animation: bob 6s ease-in-out infinite; z-index: 1; }
.float-logo img { width: 62%; height: 62%; object-fit: contain; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-18px) rotate(4deg); } }

/* infinite logo marquee */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 2.6rem; width: max-content; animation: marq 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: .6rem; white-space: nowrap; font-family: var(--font-head); font-weight: 600; color: var(--c-body); }
.marquee-item img { width: 30px; height: 30px; object-fit: contain; }

/* ===================== LEADERBOARD ===================== */
.board { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.board-row { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.4rem; border-top: 1px solid var(--c-border); transition: background .2s; }
.board-row:first-child { border-top: 0; }
.board-row:hover { background: rgba(5,150,105,.04); }
.rank { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; color: var(--c-muted); width: 30px; text-align: center; flex-shrink: 0; }
.rank.top { color: var(--c-primary); }
.board-logo { width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1px solid var(--c-border); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.board-logo img { width: 66%; height: 66%; object-fit: contain; }
.board-row .grow { flex: 1; min-width: 0; }
.board-row .grow b { color: var(--c-ink); font-family: var(--font-head); }
.board-row .grow small { color: var(--c-muted); display: block; font-size: .85rem; }
.board-row .score { font-family: var(--font-head); font-weight: 800; color: var(--c-primary); font-size: 1.1rem; }
.board-row .score small { display: block; font-weight: 400; color: var(--c-muted); font-size: .72rem; text-align: right; }

/* ===================== COMPARE BAND ===================== */
.compare { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 1.4rem; align-items: center; }
.cmp-card { display: flex; align-items: center; gap: .85rem; }
.cmp-card .board-logo { width: 54px; height: 54px; }
.cmp-card b { font-family: var(--font-head); color: var(--c-ink); font-size: 1.05rem; }
.cmp-card small { display: block; color: var(--c-muted); }
.vs { font-family: var(--font-head); font-weight: 800; color: var(--c-muted); font-size: 1.1rem; }

/* ===================== REVIEW FEED ===================== */
.rev-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.rev-card .stars { color: var(--c-yellow); font-size: 1rem; margin-bottom: .6rem; }
.rev-card p { font-size: .95rem; flex: 1; }
.rev-card .who { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; }
.rev-card .who .avatar { width: 38px; height: 38px; background: var(--c-primary); }
.rev-card .who b { color: var(--c-ink); font-family: var(--font-head); font-size: .9rem; }
.rev-card .who small { color: var(--c-muted); display: block; font-size: .8rem; }
.rev-card .for-tool { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--c-muted); margin-top: .8rem; }
.rev-card .for-tool img { width: 18px; height: 18px; }

/* ===================== HOW IT WORKS ===================== */
.step { text-align: center; padding: 1rem; }
.step .num { width: 58px; height: 58px; border-radius: 50%; background: var(--c-primary); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; display: grid; place-items: center; margin: 0 auto 1.1rem; box-shadow: var(--shadow); }
.step h3 { font-size: 1.15rem; }
.step p { font-size: .92rem; color: var(--c-muted); }

/* ===================== AWARDS ===================== */
.awards { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: center; }
.award { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.2rem 1.6rem; text-align: center; box-shadow: var(--shadow-sm); min-width: 150px; }
.award .medal { font-size: 2rem; }
.award b { display: block; font-family: var(--font-head); color: var(--c-ink); margin-top: .4rem; }
.award small { color: var(--c-muted); font-size: .82rem; }

/* ===================== VENDOR CTA ===================== */
.vendor { background: var(--c-footer); border-radius: var(--radius-lg); padding: 3rem 2.5rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; box-shadow: var(--shadow-lg); }
.vendor h2 { color: #fff; font-size: var(--fs-h2); }
.vendor p { color: rgba(255,255,255,.75); margin: 0; }
.vendor .v-actions { display: flex; gap: .8rem; justify-content: flex-end; flex-wrap: wrap; }
.vendor .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }

/* ===================== VS / COMPARISON PAGE ===================== */
.vs-hero { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 2.5rem 2rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.vs-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--c-primary); }
.vs-tool { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.vs-tool .board-logo { width: 78px; height: 78px; border-radius: 20px; }
.vs-tool h2 { margin: 0; font-size: 1.5rem; }
.vs-tool .rating { font-size: .95rem; }
.vs-mid { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--c-muted); }
.vs-verdict { background: rgba(5,150,105,.06); border: 1px solid rgba(5,150,105,.2); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 1.5rem 0; }
.vs-verdict b { color: var(--c-primary); }

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--c-border); box-shadow: var(--shadow-sm); }
.vstable { width: 100%; border-collapse: collapse; background: var(--c-surface); min-width: 560px; }
.vstable th, .vstable td { padding: .95rem 1.2rem; border-bottom: 1px solid var(--c-border); }
.vstable thead th { background: rgba(5,150,105,.05); font-family: var(--font-head); color: var(--c-ink); font-size: 1rem; text-align: center; position: sticky; top: 0; }
.vstable thead th:first-child { text-align: left; }
.vstable thead .th-tool { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.vstable thead .board-logo { width: 40px; height: 40px; }
.vstable tbody th { text-align: left; font-family: var(--font-body); font-weight: 600; color: var(--c-body); width: 34%; }
.vstable tbody td { text-align: center; color: var(--c-body); }
.vstable tbody tr:hover { background: rgba(5,150,105,.03); }
.vstable .yes { color: var(--c-primary); font-weight: 700; }
.vstable .no { color: var(--c-muted); }
.vstable .win { color: var(--c-primary); font-weight: 700; position: relative; }
.vstable .win::after { content: "★"; font-size: .7rem; margin-left: .25rem; color: var(--c-yellow); }
.vstable tr:last-child td, .vstable tr:last-child th { border-bottom: 0; }

/* ===================== TOOL DETAIL PAGE ===================== */
.breadcrumb { font-size: .88rem; color: var(--c-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--c-muted); }
.breadcrumb a:hover { color: var(--c-primary); }

.detail-hero { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.detail-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--grad-hero); }
.dh-left { display: flex; gap: 1.2rem; align-items: center; }
.dh-logo { width: 84px; height: 84px; border-radius: 22px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; color: var(--c-primary); font-size: 2.2rem; box-shadow: var(--shadow); flex-shrink: 0; background: #fff; border: 1px solid var(--c-border); overflow: hidden; }
.dh-left h1 { font-size: 2rem; margin: 0 0 .3rem; }
.dh-tagline { color: var(--c-muted); margin: 0 0 .6rem; }
.dh-inline { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.dh-inline .rating { font-size: 1rem; }
.verified { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; color: #1B7A47; background: var(--c-mint); padding: .2rem .6rem; border-radius: var(--radius-pill); }
.dh-actions { display: flex; flex-direction: column; gap: .6rem; }

.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; margin-top: 2rem; }
.detail-main > section { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); margin-bottom: 1.5rem; }
.detail-main h2 { font-size: 1.5rem; }
.detail-main h2 .em { font-size: 1.3rem; margin-right: .4rem; }

/* screenshot gallery */
.shots { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: .8rem; }
.shot { border-radius: var(--radius); min-height: 150px; display: grid; place-items: center; color: rgba(255,255,255,.85); font-family: var(--font-head); font-weight: 700; }
.shot.big { grid-row: span 2; min-height: 312px; font-size: 1.4rem; }

/* feature checklist */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 2rem; }
.feature-list li { display: flex; gap: .6rem; align-items: flex-start; color: var(--c-body); }
.feature-list li::before { content: "✓"; color: #fff; background: var(--grad-cool); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; flex-shrink: 0; margin-top: .15rem; }

/* pros & cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.pc-box { border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.pc-box.pros { background: rgba(35,213,200,.10); border: 1px solid rgba(35,213,200,.3); }
.pc-box.cons { background: rgba(255,93,162,.08); border: 1px solid rgba(255,93,162,.28); }
.pc-box h4 { margin: 0 0 .8rem; font-size: 1.05rem; }
.pc-box li { padding: .3rem 0 .3rem 1.6rem; position: relative; color: var(--c-body); font-size: .95rem; }
.pc-box.pros li::before { content: "＋"; position: absolute; left: 0; color: #16A085; font-weight: 800; }
.pc-box.cons li::before { content: "−"; position: absolute; left: 0; color: #C0246E; font-weight: 800; }

/* pricing tiers */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tier { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.tier.popular { border-color: var(--c-primary); box-shadow: var(--shadow); position: relative; }
.tier.popular::after { content: "Popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad-hero); color: #fff; font-size: .7rem; font-weight: 700; padding: .25rem .8rem; border-radius: var(--radius-pill); }
.tier h4 { margin: 0 0 .4rem; }
.tier .price { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--c-ink); }
.tier .price small { font-size: .85rem; color: var(--c-muted); font-weight: 400; }
.tier ul { margin: 1rem 0 0; text-align: left; }
.tier li { padding: .3rem 0 .3rem 1.4rem; position: relative; font-size: .9rem; color: var(--c-body); }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--c-teal); font-weight: 700; }

/* review breakdown */
.review-summary { display: grid; grid-template-columns: 180px 1fr; gap: 2rem; align-items: center; margin-bottom: 1.5rem; }
.rev-score { text-align: center; }
.rev-score b { font-family: var(--font-head); font-size: 3.4rem; color: var(--c-ink); display: block; line-height: 1; }
.rev-score .stars { color: var(--c-yellow); font-size: 1.1rem; }
.rev-score span { color: var(--c-muted); font-size: .85rem; }
.rev-bars { display: flex; flex-direction: column; gap: .4rem; }
.rev-bar { display: flex; align-items: center; gap: .7rem; font-size: .85rem; color: var(--c-muted); }
.rev-bar .track { flex: 1; height: 8px; background: var(--c-border); border-radius: var(--radius-pill); overflow: hidden; }
.rev-bar .fill { height: 100%; background: var(--c-yellow); border-radius: var(--radius-pill); }
.review { border-top: 1px solid var(--c-border); padding: 1.2rem 0; }
.review:last-child { padding-bottom: 0; }
.review-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.review-head .avatar { width: 40px; height: 40px; }
.review-head b { color: var(--c-ink); font-family: var(--font-head); }
.review-head .stars { color: var(--c-yellow); margin-left: auto; }

/* alternatives */
.alt-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--c-border); }
.alt-row:first-of-type { border-top: 0; }
.alt-logo { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--c-primary); font-family: var(--font-head); font-weight: 800; flex-shrink: 0; background: #fff; border: 1px solid var(--c-border); overflow: hidden; }
.alt-row .info { flex: 1; }
.alt-row .info b { color: var(--c-ink); font-family: var(--font-head); }
.alt-row .info small { display: block; color: var(--c-muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--c-border); padding: 1rem 0; }
.faq summary { font-family: var(--font-head); font-weight: 600; color: var(--c-ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--c-primary); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: .8rem 0 0; }

/* sticky sidebar */
.detail-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.5rem; }
.side-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.side-card h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); margin: 0 0 1rem; }
.fact { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--c-border); font-size: .9rem; }
.fact:last-child { border-bottom: 0; }
.fact span { color: var(--c-muted); }
.fact b { color: var(--c-ink); font-family: var(--font-head); }

/* ===================== BLOG POST PAGE ===================== */
.article-hero { text-align: center; max-width: 760px; margin: 0 auto; padding: 3rem 0 1rem; }
.article-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 1rem 0; }
.article-hero .post-foot { justify-content: center; }
.article-cover { height: 360px; border-radius: var(--radius-lg); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 2rem; box-shadow: var(--shadow); margin: 2rem 0; }
.article-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; align-items: start; }
.toc { position: sticky; top: 96px; font-size: .9rem; }
.toc h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); margin: 0 0 .8rem; }
.toc a { display: block; color: var(--c-body); padding: .35rem 0 .35rem .8rem; border-left: 2px solid var(--c-border); }
.toc a:hover, .toc a.active { color: var(--c-primary); border-left-color: var(--c-primary); }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.7rem; margin: 2.2rem 0 .8rem; }
.prose h3 { font-size: 1.25rem; margin: 1.6rem 0 .6rem; }
.prose p, .prose li { font-size: 1.05rem; color: var(--c-body); }
.prose ul { padding-left: 1.2rem; list-style: disc; margin-bottom: 1rem; }
.prose blockquote { border-left: 4px solid var(--c-primary); background: var(--c-surface); padding: 1rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; font-style: italic; color: var(--c-ink); }
.tool-callout { display: flex; gap: 1rem; align-items: center; background: var(--c-surface); border: 1px solid var(--c-border); border-left: 4px solid var(--c-primary); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.5rem 0; box-shadow: var(--shadow-sm); }
.tool-callout .tool-logo { width: 48px; height: 48px; font-size: 1.2rem; }
.tool-callout .info { flex: 1; }
.tool-callout .info b { color: var(--c-ink); font-family: var(--font-head); }
.tool-callout .info small { display: block; color: var(--c-muted); }
.author-box { display: flex; gap: 1rem; align-items: center; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: 1.5rem; margin: 3rem 0; box-shadow: var(--shadow-sm); }
.author-box .avatar { width: 64px; height: 64px; font-size: 1.5rem; }
.author-box b { color: var(--c-ink); font-family: var(--font-head); font-size: 1.1rem; }
.share-bar { display: flex; gap: .6rem; align-items: center; margin: 2rem 0; }
.share-bar span { color: var(--c-muted); font-size: .9rem; }
.share-bar a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--c-border); display: grid; place-items: center; color: var(--c-body); }
.share-bar a:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 940px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .dir-wrap { grid-template-columns: 1fr; }
  .filters { position: static; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .fp-img { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .side-card { flex: 1; min-width: 240px; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: none; }
  .compare { grid-template-columns: 1fr; text-align: center; }
  .cmp-card { justify-content: center; }
  .vendor { grid-template-columns: 1fr; text-align: center; }
  .vendor .v-actions { justify-content: center; }
  .float-logo { display: none; }
  .vs-hero { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .burger { display: block; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .feature-list, .proscons, .tiers, .shots { grid-template-columns: 1fr; }
  .shot.big { grid-row: auto; min-height: 150px; }
  .review-summary { grid-template-columns: 1fr; text-align: center; }
  .detail-hero, .dh-left { flex-direction: column; text-align: center; }
  .dh-actions { width: 100%; }
}
