@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #090d0b;
  --bg-soft: #0e1411;
  --surface: #121a16;
  --surface-2: #18231e;
  --ink: #f4f6f0;
  --muted: #9ea9a0;
  --dim: #69766c;
  --accent: #b8f34a;
  --accent-ink: #101508;
  --line: rgba(237, 244, 228, 0.12);
  --line-bright: rgba(184, 243, 74, 0.34);
  --danger: #ff877b;
  --radius: 22px;
  --radius-sm: 13px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  --max: 1200px;
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 74% 12%, rgba(184, 243, 74, 0.09), transparent 27rem),
    radial-gradient(circle at 12% -4%, rgba(184, 243, 74, 0.04), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select {
  font: inherit;
}

/* UI chrome uses Plus Jakarta Sans */
.btn, .desktop-nav a, .menu-toggle, .logo,
.panel-status, .drop-title, .drop-hint, .output-metric,
.tool-link, .blog-tag, .post-tag-label, .filter-btn,
.toc-title, .toc-list a, .badge-soon, .new-badge,
.blog-read-link, .blog-meta, .card-footer, .post-meta-row,
.nl-note, .razorpay-note, .footer-inner {
  font-family: var(--font-head);
}

button {
  cursor: pointer;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 50;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 11, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.logo span {
  color: var(--accent);
}

.desktop-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-left: auto;
}

.desktop-nav a {
  font-family: var(--font-head);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--ink);
}

.desktop-nav a.active-nav {
  color: var(--accent);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-head);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn-quiet {
  min-height: 42px;
  padding: 0 1rem;
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink);
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

/* ── HERO ── */
.hero {
  padding: clamp(5.5rem, 10vw, 9rem) 0 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.94fr) minmax(380px, 0.82fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3.6rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0 0 2.5rem;
  max-width: 680px;
  color: #fff;
}

.hero-copy > p {
  max-width: 500px;
  margin: 0 0 3rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.privacy-note {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-top: 2.2rem;
  color: var(--dim);
  font-size: 0.88rem;
}

.privacy-note svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex: none;
}

/* ── TOOL PANEL ── */
.tool-panel {
  position: relative;
  padding: 1.15rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(19, 28, 24, 0.98), rgba(13, 19, 16, 0.98));
  box-shadow: var(--shadow);
}

.tool-panel::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 75% 4%, rgba(184, 243, 74, 0.14), transparent 38%);
}

.tool-panel > * {
  position: relative;
  z-index: 1;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.2rem 0.25rem 1rem;
}

.panel-header h2,
.panel-header h1 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
}

.panel-status {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 600;
}

/* ── DROPZONE ── */
.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  min-height: 222px;
  align-content: center;
  padding: 1.4rem;
  background: rgba(4, 8, 6, 0.35);
  border: 1px dashed rgba(237, 244, 228, 0.2);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  transition: border-color 160ms ease, background 160ms ease;
  cursor: pointer;
}

.dropzone.is-dragging,
.dropzone:hover {
  border-color: var(--line-bright);
  background: rgba(184, 243, 74, 0.035);
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  height: 46px;
  width: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--accent);
}

.drop-title {
  color: var(--ink);
  font-weight: 560;
}

.drop-hint {
  color: var(--dim);
  font-size: 0.82rem;
}

.preview-image {
  width: 100%;
  height: 152px;
  object-fit: contain;
  display: none;
  border-radius: 10px;
  margin-bottom: 0.6rem;
}

.has-image .upload-icon,
.has-image .drop-title,
.has-image .drop-hint {
  display: none;
}

.has-image .preview-image {
  display: block;
}

.control-row {
  margin-top: 1.05rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  align-items: center;
}

.control-row label,
.field label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.quality-wrap {
  display: grid;
  grid-template-columns: 1fr 46px;
  gap: 0.75rem;
  align-items: center;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.quality-value {
  color: var(--ink);
  font-size: 0.84rem;
  text-align: right;
}

select,
input[type="number"],
input[type="text"],
input[type="email"] {
  height: 46px;
  width: 100%;
  color: var(--ink);
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 0 0.8rem;
  outline: none;
}

select:focus,
input:focus-visible {
  border-color: var(--line-bright);
}

.output-row {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.output-metric {
  font-size: 0.82rem;
  color: var(--dim);
}

.output-metric strong {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 560;
}

/* ── SECTIONS ── */
.section {
  padding: clamp(5rem, 8vw, 7.5rem) 0;
}

.section-rule {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading h2 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0;
}

.section-heading p {
  max-width: 400px;
  color: var(--muted);
  margin: 0.5rem 0 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ── TOOLS GRID ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tool-card {
  min-height: 278px;
  display: flex;
  flex-direction: column;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 180ms ease, transform 180ms ease;
}

.tool-card:hover,
.tool-card:focus-within {
  border-color: var(--line-bright);
  transform: translateY(-3px);
}

.tool-card-icon {
  height: 52px;
  width: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--accent);
  background: rgba(184, 243, 74, 0.08);
  margin-bottom: 2.15rem;
}

.tool-card h3 {
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 0.6rem;
  line-height: 1.15;
}

.tool-card p {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.72;
  margin: 0 0 1.5rem;
}

.tool-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: auto;
}

/* ── WHY / TRUST ── */
.trust-grid {
  display: grid;
  grid-template-columns: 0.8fr repeat(3, 1fr);
  gap: 2.2rem;
}

.trust-grid h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.trust-item h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}

.trust-item p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ── PRO BAND ── */
.pro-band {
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 28px;
  border: 1px solid var(--line-bright);
  background:
    radial-gradient(circle at 88% 10%, rgba(184, 243, 74, 0.19), transparent 30%),
    var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2.5rem;
}

.pro-band h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #fff;
}

.pro-band p {
  color: var(--muted);
  max-width: 590px;
  margin: 0;
}

.pro-action {
  flex: none;
  text-align: right;
}

.pro-action small {
  display: block;
  color: var(--dim);
  margin-top: 0.7rem;
}

/* ── PRO TOOLS GRID (coming soon cards) ── */
.pro-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.pro-tool-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.88rem;
  color: var(--muted);
}

.pro-tool-item .lock-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
  opacity: 0.5;
}

.pro-tool-item strong {
  color: var(--ink);
  display: block;
  font-size: 0.88rem;
  letter-spacing: -0.02em;
}

.badge-soon {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 20px;
  background: rgba(184, 243, 74, 0.1);
  color: var(--accent);
  border: 1px solid rgba(184, 243, 74, 0.22);
  margin-left: auto;
  flex-shrink: 0;
}

.razorpay-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--dim);
}

.razorpay-note strong { color: var(--muted); }

/* ── BLOG CARDS ── */
.blog-card {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.blog-card:hover {
  border-color: var(--line-bright);
  transform: translateY(-3px);
}

.blog-thumb {
  height: 196px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

/* Swap with your real thumbnail: <img src="images/thumb.jpg" alt=""> inside .blog-thumb */
.blog-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-thumb img { transform: scale(1.04); }

/* Gradient placeholders — replace with <img> later */
.ph-1 { background: linear-gradient(145deg, #0d1f14, #071008); }
.ph-2 { background: linear-gradient(145deg, #0a1a2e, #060d14); }
.ph-3 { background: linear-gradient(145deg, #1a140a, #100a04); }
.ph-4 { background: linear-gradient(145deg, #1a0a14, #100408); }
.ph-5 { background: linear-gradient(145deg, #0a141a, #04080e); }
.ph-6 { background: linear-gradient(145deg, #14140a, #0a0a04); }

.blog-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(9,13,11,0.6) 100%);
}

.blog-body {
  padding: 1.6rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-tag {
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.blog-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.035em;
  line-height: 1.25;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.blog-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 0 0 1.1rem;
  flex: 1;
}

.blog-meta {
  font-size: 0.75rem;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.blog-read-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
}

/* Featured blog card — spans full width */
.blog-card.featured-post {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 260px;
}

.blog-card.featured-post .blog-thumb {
  width: 42%;
  height: auto;
  flex-shrink: 0;
  font-size: 4rem;
}

.blog-card.featured-post .blog-body {
  justify-content: center;
  padding: 2rem 2.5rem;
}

.blog-card.featured-post h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  letter-spacing: -0.05em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.blog-card.featured-post p {
  font-size: 0.95rem;
  max-width: 480px;
}

.new-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 20px;
  background: var(--accent);
  color: var(--accent-ink);
  margin-bottom: 0.65rem;
}

/* ── NEWSLETTER ── */
.newsletter-band {
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.newsletter-band h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  letter-spacing: -0.06em;
  line-height: 1.05;
  margin: 0 0 0.55rem;
}

.newsletter-band p {
  color: var(--muted);
  margin: 0;
  font-size: 0.94rem;
  max-width: 380px;
}

.nl-form {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.nl-form input[type="email"] {
  width: 240px;
  height: 48px;
}

.nl-note {
  font-size: 0.75rem;
  color: var(--dim);
  margin-top: 0.65rem;
}

/* ── FOOTER ── */
.site-footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  padding: 2.3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.footer-links a:hover {
  color: var(--ink);
}

/* ── TOOL PAGES ── */
.page-intro {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem;
  max-width: 740px;
}

.page-intro h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
  margin: 0 0 1.15rem;
}

.page-intro p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.workspace {
  padding-bottom: clamp(3.4rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(340px, 1fr) 315px;
  gap: 1rem;
}

.workspace .tool-panel {
  padding: clamp(1rem, 3vw, 1.45rem);
}

.sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem;
}

.sidebar h2 {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.sidebar p,
.sidebar li {
  color: var(--muted);
  font-size: 0.88rem;
}

.sidebar ol,
.sidebar ul {
  padding-left: 1.15rem;
  margin: 0;
}

.sidebar li + li {
  margin-top: 0.7rem;
}

.large-dropzone {
  min-height: 320px;
}

.large-dropzone .preview-image {
  height: 240px;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 1rem;
}

.fields.three {
  grid-template-columns: repeat(3, 1fr);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.preset {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.preset:hover,
.preset.is-selected {
  color: var(--accent);
  border-color: var(--line-bright);
  background: rgba(184, 243, 74, 0.06);
}

.palette-output {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.swatch {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-soft);
  color: var(--ink);
  padding: 0;
}

.swatch-color {
  display: block;
  height: 62px;
}

.swatch-code {
  display: block;
  padding: 0.55rem 0.25rem;
  font-size: 0.71rem;
  color: var(--muted);
}

/* ── STATIC PAGES ── */
.content-page {
  max-width: 790px;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.content-page h1 {
  font-family: var(--font-head);
  font-weight: 900;
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  letter-spacing: -0.065em;
  line-height: 1;
}

.content-page h2 {
  font-family: var(--font-head);
  font-weight: 700;
  margin: 2.7rem 0 0.85rem;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.content-page p,
.content-page li {
  color: var(--muted);
}

.content-page ul {
  padding-left: 1.3rem;
}

.content-page a {
  color: var(--accent);
}

.guide-list {
  display: grid;
  gap: 1rem;
  margin-top: 2.3rem;
}

.guide-card {
  padding: 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}

.guide-card h2 {
  margin: 0 0 0.5rem;
}

.notice {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 1rem 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}

/* ── BLOG LISTING PAGE ── */
.blog-hero {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 2.5rem;
}

.blog-hero h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
  margin: 0 0 1rem;
}

.blog-hero p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 540px;
  margin: 1rem 0 2.5rem;
  line-height: 1.7;
}

.filter-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  transition: all 160ms ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--line-bright);
  color: var(--accent);
  background: rgba(184, 243, 74, 0.06);
}

/* ── BLOG POST PAGE ── */
.reading-bar {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  z-index: 19;
}

.reading-progress {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.1s linear;
}

/* ── BLOG POST PAGE WRAPPER — fixes alignment ── */
.post-page-wrap {
  width: min(980px, calc(100% - 3rem));
  margin: 0 auto;
}

.post-header {
  padding: clamp(3.5rem, 7vw, 5rem) 0 2.5rem;
  max-width: 720px;
}

.post-header h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.065em;
  margin: 1rem 0 0;
  color: var(--ink);
}

.post-tag-label {
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.post-meta-row {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--dim);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.post-divider {
  margin: 0;
  padding: 0;
  border: none;
  border-top: 1px solid var(--line);
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 220px;
  gap: 4rem;
  align-items: start;
  padding: clamp(3rem, 5vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
}

/* Prose */
.post-prose {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.88;
}

.post-prose h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  letter-spacing: -0.05em;
  color: var(--ink);
  margin: 2.8rem 0 1rem;
  line-height: 1.1;
}

.post-prose h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 2.2rem 0 0.75rem;
}

.post-prose p { margin-bottom: 1.4rem; }
.post-prose strong { color: var(--ink); font-weight: 600; }
.post-prose em { color: var(--accent); font-style: normal; }

.post-prose ul,
.post-prose ol {
  padding-left: 1.3rem;
  margin: 0 0 1.4rem;
}

.post-prose li { margin-bottom: 0.55rem; }
.post-prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.post-prose code {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.84em;
  background: var(--surface-2);
  color: var(--accent);
  padding: 0.15em 0.4em;
  border-radius: 5px;
  border: 1px solid var(--line);
}

.callout {
  border-left: 2.5px solid var(--accent);
  background: rgba(184, 243, 74, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.3rem;
  margin: 1.5rem 0;
}

.callout.note {
  border-color: #64b5f6;
  background: rgba(100, 181, 246, 0.05);
}

.callout.warning {
  border-color: #ffb74d;
  background: rgba(255, 183, 77, 0.05);
}

.callout-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}

.callout.note .callout-label { color: #64b5f6; }
.callout.warning .callout-label { color: #ffb74d; }
.callout p { margin: 0; font-size: 0.93rem; }

/* Post CTA block */
.post-cta {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 1.6rem 1.75rem;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-sm);
  background: rgba(184, 243, 74, 0.04);
  margin-top: 3rem;
}

.post-cta-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(184, 243, 74, 0.1);
  border: 1px solid rgba(184, 243, 74, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
}

.post-cta-text {
  flex: 1;
  min-width: 180px;
}

.post-cta-text strong {
  display: block;
  font-size: 0.97rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.post-cta-text span {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
}

.post-cta .btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #101508 !important;
  font-weight: 700;
  min-height: 44px;
  padding: 0 1.1rem;
  font-size: 0.88rem;
}

/* TOC sidebar */
.post-sidebar { position: sticky; top: 92px; }

.toc-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 1.1rem;
}

.toc-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.85rem;
}

.toc-list { display: flex; flex-direction: column; gap: 0.15rem; }

.toc-list a {
  font-size: 0.8rem;
  color: var(--dim);
  padding: 0.3rem 0.5rem;
  border-radius: 6px;
  border-left: 2px solid transparent;
  display: block;
  line-height: 1.4;
  transition: all 140ms ease;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(184, 243, 74, 0.05);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all 200ms ease;
  z-index: 30;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--line-bright);
  color: var(--accent);
}

.post-nav-end {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .post-layout { grid-template-columns: 1fr; gap: 0; padding-top: 2.5rem; }
  .post-sidebar { display: none; }
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    padding: 1.2rem 1.5rem;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }

  .desktop-nav.is-open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }

  .hero-grid,
  .workspace,
  .trust-grid { grid-template-columns: 1fr; }

  .hero { padding-top: 3.5rem; }
  .tools-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 215px; }
  .tool-card-icon { margin-bottom: 1.3rem; }

  .section-heading,
  .pro-band,
  .newsletter-band,
  .footer-inner { display: block; }

  .section-heading p { margin-top: 1rem; }
  .pro-action { margin-top: 1.8rem; text-align: left; }
  .footer-links { margin-top: 1.2rem; }
  .nl-form { margin-top: 1.5rem; }
  .pro-tools-grid { margin-top: 1.5rem; }

  .blog-card.featured-post { flex-direction: column; grid-column: auto; }
  .blog-card.featured-post .blog-thumb { width: 100%; height: 200px; }
}

@media (max-width: 700px) {
  .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(var(--max), calc(100% - 2rem)); }
  .hero-copy { margin-bottom: 2.3rem; }
  .hero h1 { font-size: clamp(2.6rem, 15vw, 3.25rem); }
  .fields, .fields.three { grid-template-columns: 1fr; }
  .palette-output { grid-template-columns: repeat(2, 1fr); }
  .nl-form input[type="email"] { width: 100%; }
  .pro-tools-grid { grid-template-columns: 1fr; }
  .post-nav-end { flex-direction: column; }
}

/* ── BLOG GRID — responsive override fix ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

@media (max-width: 860px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-card.featured-post {
    grid-column: auto;
    flex-direction: column;
  }
  .blog-card.featured-post .blog-thumb {
    width: 100%;
    height: 200px;
  }
  .blog-card.featured-post .blog-body {
    padding: 1.6rem;
  }
}

@media (max-width: 540px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card.featured-post {
    grid-column: auto;
  }
}

/* Featured post link wrapper */
.blog-grid > a:first-child {
  grid-column: 1 / -1;
}

@media (max-width: 540px) {
  .blog-grid > a:first-child {
    grid-column: auto;
  }
}

/* ── TOOL SWITCHER BAR ── */
.tool-switcher {
  border-bottom: 1px solid var(--line);
  background: rgba(9,13,11,0.6);
}

.tool-switcher-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.tool-switcher-inner::-webkit-scrollbar { display: none; }

.tool-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
  margin-bottom: -1px;
}

.tool-switch-btn:hover { color: var(--ink); }

.tool-switch-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.tool-switch-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(184,243,74,0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.tool-switch-btn.active .tool-switch-icon {
  background: rgba(184,243,74,0.18);
}
