/* ==========================================================================
   Osman Figish — editorial personal site
   Design system: warm paper palette, Playfair Display (display) + Lora (body)
   ========================================================================== */

:root {
  /* Default Palette — DARK */
  --paper: #050506;
  --paper-glow: #0B0C0E;
  --text: #F4F5F7;
  --text-soft: rgba(244,245,247,0.64);
  --text-muted: rgba(244,245,247,0.40);
  --line: rgba(255,255,255,0.14);
  --line-faint: rgba(255,255,255,0.08);
  --accent: #37BDF8;
  --accent-hover: #38bdf8;
  --accent-text: #050506;
  --field: #0F1012;
  --field-line: rgba(255,255,255,0.14);
  --field-hint: rgba(244,245,247,0.40);
  --card: #121214;
  --portrait: #0B0C0E;

  /* Type */
  --serif-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --serif-text: "Lora", Georgia, "Times New Roman", serif;

  color-scheme: dark;

  /* Layout */
  --column: 820px;
  --gutter: 40px;
}

[data-theme="dark"] {
  --paper: #050506;
  --paper-glow: #0B0C0E;
  --text: #F4F5F7;
  --text-soft: rgba(244,245,247,0.64);
  --text-muted: rgba(244,245,247,0.40);
  --line: rgba(255,255,255,0.14);
  --line-faint: rgba(255,255,255,0.08);
  --accent: #37BDF8;
  --accent-hover: #38bdf8;
  --accent-text: #050506;
  --field: #0F1012;
  --field-line: rgba(255,255,255,0.14);
  --field-hint: rgba(244,245,247,0.40);
  --card: #121214;
  --portrait: #0B0C0E;
  color-scheme: dark;
}

[data-theme="light"] {
  --paper: #ffffff;
  --paper-glow: #f8fafc;
  --text: #050506;
  --text-soft: #334155;
  --text-muted: #64748b;
  --line: #e2e8f0;
  --line-faint: #f1f5f9;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-text: #ffffff;
  --field: #f8fafc;
  --field-line: #cbd5e1;
  --field-hint: #94a3b8;
  --card: #f1f5f9;
  --portrait: #e2e8f0;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  margin: 0;
  background: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--serif-text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

/* soft top glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% -10%, var(--paper-glow) 0%, var(--paper) 55%);
}

img { display: block; max-width: 100%; }

a { color: var(--text); text-decoration: none; }
a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.site { min-height: 100dvh; display: flex; flex-direction: column; }

.content {
  flex: 1;
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 var(--gutter) 64px;
}

/* page fade on load */
.fade-in { animation: page-in .4s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 20px 0 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.015em;
}
.logo:hover { text-decoration: none; }

.logo__avatar {
  width: 36px; height: 36px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: var(--portrait);
  border: 1px solid var(--line);
}
.logo__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.logo__short { display: none; }

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--serif-display);
  font-size: 17px;
}
.menu a:hover { color: var(--text-muted); text-decoration: none; }

.icon-btn,
.mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: var(--text);
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease;
}
.icon-btn { width: 32px; height: 32px; background: transparent; border-radius: 6px; }
.icon-btn:hover { color: var(--text-muted); }

.mode-btn {
  width: 36px; height: 36px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--line-faint);
}
.mode-btn:hover { background: var(--line); }
.mode-btn:focus-visible, .icon-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.mode-btn__sun { display: block; }
.mode-btn__moon { display: none; }
[data-theme="light"] .mode-btn__sun { display: none; }
[data-theme="light"] .mode-btn__moon { display: block; }
[data-theme="dark"] .mode-btn__sun { display: block; }
[data-theme="dark"] .mode-btn__moon { display: none; }

/* ---------- Hero ---------- */
.intro { padding: 112px 0 64px; }

.intro__title {
  margin: 0 0 24px;
  max-width: 28ch;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.016em;
  text-wrap: balance;
}

/* Letter-by-letter reveal (spans injected by script.js) */
.reveal-word { display: inline-block; white-space: nowrap; }
.reveal-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(4px);
  animation: char-rise 300ms ease-out forwards;
}
@keyframes char-rise { to { opacity: 1; transform: translateY(0); } }

.intro__lede {
  margin: 0 0 32px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-soft);
}

/* ---------- Signup form ---------- */
.signup {
  display: flex;
  gap: 8px;
  max-width: 560px;
}
.signup--narrow { max-width: 460px; }

.signup input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 24px;
  font: 15px var(--serif-text);
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 999px;
  outline: none;
  transition: border-color .15s ease;
}
.signup input:focus { border-color: var(--text); }
.signup input::placeholder { color: var(--field-hint); }

.signup button,
.pill-btn {
  font-family: var(--serif-text);
  font-weight: 500;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, transform .15s ease;
}
.signup button { height: 52px; padding: 0 30px; font-size: 14.5px; }
.signup button:hover, .pill-btn:hover { background: var(--accent-hover); text-decoration: none; }
.signup button:active, .pill-btn:active { transform: scale(.98); }

.signup__status { margin: 12px 0 0; font-size: 13px; color: var(--text-muted); min-height: 0; }
.signup__status:empty { display: none; }
.signup__status.is-error { color: #b04a2c; }
.signup__status.is-ok { color: #3a7a3a; }

/* ---------- Praise ---------- */
.praise { padding: 8px 0 32px; }
.praise__eyebrow {
  margin: 0 0 16px;
  font-family: var(--serif-display);
  font-size: 14px;
  color: var(--text-muted);
}
.praise__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.praise__list li { font-size: 16px; line-height: 1.55; }
.praise__quote { display: block; }
.praise__who { display: block; margin-top: 4px; font-size: 14px; color: var(--text-muted); }
.praise__who em { font-family: var(--serif-display); }

/* ---------- Section label ---------- */
.label {
  margin: 56px 0 8px;
  font-family: var(--serif-text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- Free resource ---------- */
.offer { margin: 96px 0; }
.offer .label { margin-top: 0; }

.offer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 48px;
  align-items: center;
}
.offer__copy { display: flex; flex-direction: column; align-items: flex-start; }
.offer__title {
  margin: 0 0 12px;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.offer__sub {
  margin: 0 0 28px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 18px;
  color: var(--text-soft);
}
.pill-btn { display: inline-block; padding: 14px 26px; font-size: 15px; }

.offer__cover {
  display: block;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 17 / 22;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #faf8f4;
  box-shadow: 0 10px 28px rgba(20, 16, 10, .12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.offer__cover:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(20, 16, 10, .16); }
.offer__cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Essays ---------- */
.posts--follow { margin-top: 8px; }

/* ---------- Justin Welsh style Essays / Thoughts layout ---------- */
.essays-tabs {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin: 12px 0 32px;
}

.essays-tab {
  display: inline-block;
  padding: 12px 0;
  margin-bottom: -1px;
  font-family: var(--serif-display);
  font-size: 15.5px;
  letter-spacing: .02em;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
  text-decoration: none;
}

.essays-tab:hover {
  color: var(--text);
  text-decoration: none;
}

.essays-tab.active,
.essays-tab[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--text);
  font-weight: 500;
}

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { padding: 40px 0; border-bottom: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 0; }

.post-list a { display: block; color: var(--text); text-decoration: none; transition: transform .22s ease-out; }
.post-list a:hover { text-decoration: none; transform: translate(6px, -2px); }

@media (prefers-reduced-motion: reduce) {
  .post-list a { transition: none; }
  .post-list a:hover { transform: none; }
}

.post-tags, .post-meta {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 400;
}
.post-tags { margin-bottom: 14px; }

.post-title {
  margin: 0 0 10px;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--text);
}

.post-desc {
  margin: 0 0 18px;
  max-width: 60ch;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-soft);
}

/* Welsh-style "New" pill badge */
.essay-new-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
  padding: 2px 9px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .03em;
  vertical-align: 2px;
  white-space: nowrap;
  color: #0284c7;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 999px;
}

[data-theme="dark"] .essay-new-badge {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.3);
}

/* By topic section styles (Justin Welsh Topics layout) */
.topics-view[hidden],
[hidden] {
  display: none !important;
}

.topics-view {
  margin-bottom: 48px;
}

.topics-lede {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0 0 40px;
  max-width: 60ch;
  line-height: 1.6;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 64px;
  margin-bottom: 32px;
}

@media (max-width: 720px) {
  .topics-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

.topics-cell {
  display: flex;
  flex-direction: column;
}

.topics-cell-title {
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}

.topics-cell-title a {
  color: var(--text);
  text-decoration: none;
}

.topics-cell-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topics-cell-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line-faint);
}

.topics-cell-list li:last-child {
  border-bottom: 0;
}

.topics-cell-list a {
  display: block;
  font-family: var(--serif-text);
  font-size: 16.5px;
  line-height: 1.45;
  color: var(--text);
  text-decoration: none;
  transition: transform .22s ease-out, color .15s ease;
}

.topics-cell-list a:hover {
  text-decoration: none;
  transform: translate(6px, -2px);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .topics-cell-list a { transition: none; }
  .topics-cell-list a:hover { transform: none; }
}

.topics-cell-more {
  margin: 18px 0 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.topics-cell-more a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s ease;
}

.topics-cell-more a:hover {
  color: var(--text);
  text-decoration: none;
}

.filter-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-size: 14px;
  color: var(--text-soft);
}

.filter-notice strong {
  color: var(--text);
}

.filter-notice-clear {
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13.5px;
  padding: 0;
  text-decoration: underline;
}

.filter-notice-clear:hover {
  color: var(--accent-hover);
}

.see-all { margin: 8px 0 96px; font-size: 14.5px; }
.see-all a { color: var(--text-soft); transition: color .15s ease; }
.see-all a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.archive-link { margin: 8px 0 96px; font-size: 14.5px; }

/* ---------- About ---------- */
.bio { padding-bottom: 24px; }
.bio__card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: flex-start;
  margin-top: 16px;
}
.bio__photo {
  width: 200px; height: 200px;
  border-radius: 4px;
  background-color: var(--portrait);
  background-size: cover;
  background-position: 50% 20%;
}
.bio__text { margin: 0 0 14px; max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--text-soft); }
.bio__more { font-size: 14px; }

/* ---------- Bottom CTA ---------- */
.closer { margin-top: 56px; padding-bottom: 8px; border-top: 1px solid var(--line); }
.closer__inner { padding: 56px 0 16px; }
.closer__title {
  margin: 0 0 16px;
  font-family: var(--serif-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.018em;
}
.closer__lede { margin: 0 0 28px; font-size: 16px; line-height: 1.6; color: var(--text-soft); }
.closer__fine { margin: 18px 0 0; font-size: 13px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer {
  width: 100%;
  max-width: var(--column);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-muted);
}
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__links, .footer__social { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__social { margin-top: 14px; }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--text); }

/* ---------- Search modal ---------- */
.finder {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 20px 20px;
  background: rgba(20, 18, 14, .36);
  backdrop-filter: blur(2px);
  animation: finder-in .18s ease;
}
.finder[hidden] { display: none; }
@keyframes finder-in { from { opacity: 0; } }

.finder__box {
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
  animation: finder-pop .2s ease;
}
@keyframes finder-pop { from { transform: translateY(-6px) scale(.985); opacity: 0; } }

.finder__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}
.finder__bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: 16px var(--serif-text);
  color: var(--text);
}
.finder__bar input::placeholder { color: var(--field-hint); }
.finder__esc {
  padding: 3px 8px;
  font: 11px var(--serif-text);
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.finder__results { list-style: none; margin: 0; padding: 6px 0; max-height: 60vh; overflow-y: auto; }
.finder__results li { padding: 10px 16px; cursor: pointer; border-left: 2px solid transparent; }
.finder__results li.is-active { background: var(--card); border-left-color: var(--text); }
.finder__title { font-family: var(--serif-display); font-size: 16px; line-height: 1.3; }
.finder__desc {
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.finder__empty { padding: 16px; text-align: center; font-size: 14px; color: var(--text-muted); }

/* ---------- Theme switch: circular reveal (View Transitions API) ---------- */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) {
  z-index: 2;
  clip-path: circle(0 at var(--rx, 50%) var(--ry, 50%));
  animation: circle-grow .9s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes circle-grow {
  to { clip-path: circle(var(--rr, 150vmax) at var(--rx, 50%) var(--ry, 50%)); }
}


/* ---------- Mobile Navigation Toggle & Drawer ---------- */
.menu-toggle {
  display: none !important;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--line-faint);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all .25s ease;
}
.menu-toggle:hover {
  background: var(--line);
  transform: scale(1.06);
}
.menu-toggle:active {
  transform: scale(0.92);
}
.menu-toggle:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}
.menu-toggle svg {
  display: block;
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.menu-toggle:hover svg {
  transform: rotate(90deg);
}
.menu-toggle svg.menu-toggle__close {
  display: none;
}
.menu-toggle[aria-expanded="true"] svg.menu-toggle__open {
  display: none;
}
.menu-toggle[aria-expanded="true"] svg.menu-toggle__close {
  display: block;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  transition: visibility 0s linear 0.28s;
}
.mobile-nav.is-open {
  visibility: visible;
  pointer-events: auto;
  transition: visibility 0s linear 0s;
}
.mobile-nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 6, 0.72);
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.26s cubic-bezier(0.32, 0.72, 0, 1);
}
.mobile-nav.is-open .mobile-nav__backdrop {
  opacity: 1;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(86vw, 320px);
  height: auto;
  max-height: 85vh;
  background: var(--paper);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-bottom-left-radius: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 18px 48px rgba(0, 0, 0, 0.5);
  transform: translate3d(105%, 0, 0);
  opacity: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.22s ease;
  padding: 18px 20px 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
.mobile-nav.is-open .mobile-nav__panel {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
}
.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif-display);
  font-weight: 500;
  font-size: 19px;
  color: var(--text);
  text-decoration: none;
}
.mobile-nav__brand:hover {
  text-decoration: none;
}
.mobile-nav__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--portrait);
  flex-shrink: 0;
}
.mobile-nav__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mobile-nav__close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--line-faint);
  color: var(--text);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav__close svg {
  display: block;
  transition: transform 0.2s ease;
}
.mobile-nav.is-open .mobile-nav__close svg {
  animation: x-appear 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.06s backwards;
}
@keyframes x-appear {
  0% { transform: rotate(-60deg) scale(0.7); opacity: 0; }
  100% { transform: rotate(0deg) scale(1); opacity: 1; }
}
.mobile-nav__close:hover {
  background: var(--line);
  color: var(--text);
  transform: scale(1.06);
}
.mobile-nav__close:active {
  transform: scale(0.92);
}
.mobile-nav__links {
  display: flex;
  flex-direction: column;
  padding: 4px 0 6px;
  margin: 0;
}
.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px;
  font-family: var(--serif-display);
  font-size: 17.5px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-faint);
  transition: color .15s ease, padding-left .15s ease;
}
.mobile-nav__link:hover,
.mobile-nav__link.active {
  color: var(--accent);
  padding-left: 4px;
  text-decoration: none;
}
.mobile-nav__link svg {
  color: var(--text-muted);
  transition: transform .15s ease;
}
.mobile-nav__link:hover svg {
  transform: translateX(3px);
  color: var(--accent);
}
.mobile-nav.is-open .mobile-nav__link {
  animation: nav-item-reveal 0.36s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.mobile-nav.is-open .mobile-nav__link:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav.is-open .mobile-nav__link:nth-child(2) { animation-delay: 0.09s; }
.mobile-nav.is-open .mobile-nav__link:nth-child(3) { animation-delay: 0.13s; }
.mobile-nav.is-open .mobile-nav__link:nth-child(4) { animation-delay: 0.17s; }

.mobile-nav.is-open .mobile-nav__footer {
  animation: nav-footer-reveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s backwards;
}

@keyframes nav-item-reveal {
  from {
    opacity: 0;
    transform: translate3d(14px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes nav-footer-reveal {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.mobile-nav__footer {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mobile-nav__cta {
  width: 100%;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  box-sizing: border-box;
  transition: background-color .15s ease, transform .15s ease;
}
.mobile-nav__cta:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: scale(0.99);
}
.mobile-nav__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 0 2px;
}


/* ---------- Homepage Lead Magnet Section ---------- */
.lead-magnet {
  margin-bottom: 96px;
  display: flex;
  flex-wrap: wrap;
  gap: 64px;
  align-items: center;
  justify-content: space-between;
}
.lead-magnet__copy {
  flex: 1;
  min-width: 320px;
}
.lead-magnet__tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: var(--text);
}
.lead-magnet__title {
  font-family: var(--serif-display);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}
.lead-magnet__sub {
  font-family: var(--serif-display);
  font-size: 22px;
  font-style: italic;
  color: var(--text-soft);
  margin-bottom: 40px;
}
.lead-magnet__visual {
  flex: 1;
  min-width: 280px;
  display: flex;
  justify-content: center;
}
.lead-magnet__cta--desktop {
  display: block;
}
.lead-magnet__cta--mobile {
  display: none;
}

/* ---------- Responsive (< 768px) ---------- */
@media (max-width: 767px) {
  :root {
    --gutter: 20px;
  }

  /* Prevent horizontal overflow */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  /* Disciplined Editorial Typography Scale */
  body {
    font-size: 16px;
    line-height: 1.55;
  }
  h1, .intro__title, [data-letter-reveal] {
    font-size: clamp(28px, 7vw, 34px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.015em;
  }
  h2, .closer__title, .lead-magnet__title, .offer__title {
    font-size: clamp(22px, 5.5vw, 25px) !important;
    line-height: 1.2 !important;
  }
  h3, .post-title, .resource-title {
    font-size: 19px !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }
  .label {
    font-size: 12px !important;
    letter-spacing: 0.12em !important;
    margin-top: 36px !important;
    margin-bottom: 8px !important;
    color: var(--text-muted) !important;
  }
  p, .intro__lede, .bio__text {
    font-size: 15.5px !important;
    line-height: 1.55 !important;
  }
  .post-desc {
    font-size: 14.5px !important;
    line-height: 1.5 !important;
    margin-bottom: 8px !important;
  }

  /* Topbar & Header */
  .topbar {
    padding: 14px 0;
  }
  .topbar__inner {
    padding: 0 var(--gutter);
  }
  .logo {
    font-size: 20px;
    gap: 10px;
  }
  .logo__avatar {
    width: 34px;
    height: 34px;
  }
  .menu {
    gap: 6px;
  }
  .menu > a {
    display: none !important;
  }
  .menu-toggle {
    display: inline-flex !important;
  }
  .icon-btn, .mode-btn {
    width: 38px;
    height: 38px;
  }

  /* Container Padding (18px-24px) */
  .content {
    padding: 0 var(--gutter) 48px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
  .content[style*="padding-top"] {
    padding-top: 24px !important;
  }

  /* Hero Section (Left-aligned, Clean Editorial Flow) */
  .intro {
    text-align: left !important;
    padding: 20px 0 16px !important;
  }
  .intro__title {
    text-align: left !important;
    margin: 0 0 10px !important;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: none !important;
  }
  .intro__lede {
    text-align: left !important;
    margin: 0 0 14px !important;
    max-width: none !important;
  }

  /* Hero Actions (Centered & Stacked Vertically on Mobile) */
  .hero-actions,
  .hero-cta-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 18px !important;
    text-align: center !important;
  }

  /* Global CTA Button Sizing & Centering on Mobile */
  .pill-btn,
  .hero-actions .pill-btn,
  .hero-cta-group .pill-btn,
  .lead-magnet-card__btn,
  .offer .pill-btn,
  .service-card .pill-btn,
  .newsletter .pill-btn,
  .closer .pill-btn,
  .mobile-nav__cta,
  .signup button,
  .form-submit {
    width: fit-content !important;
    min-height: 44px !important;
    padding: 11px 20px !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* Secondary Hero Link (Explore Services ->) */
  .hero-actions a:not(.pill-btn),
  .hero-cta-group a:not(.pill-btn) {
    width: fit-content !important;
    min-height: 44px !important;
    padding: 10px 18px !important;
    font-size: 14.5px !important;
    border-radius: 999px !important;
    background: var(--line-faint) !important;
    color: var(--text-soft) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* Post List Items */
  .post-list li {
    padding: 18px 0 !important;
  }

  /* Section Work With Me (Left-aligned text, centered button) */
  .work {
    text-align: left !important;
  }
  .work .bio__text {
    text-align: left !important;
  }
  .work .hero-actions {
    align-items: center !important;
    justify-content: center !important;
  }

  /* Section Newsletter (Left-aligned text, centered button) */
  .newsletter {
    text-align: left !important;
  }
  .newsletter .bio__text {
    text-align: left !important;
  }
  .newsletter .pill-btn {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Homepage Lead Magnet Section (#playbook - Left-aligned text, centered visual & CTA) */
  .lead-magnet {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left !important;
    gap: 16px !important;
    margin-bottom: 48px !important;
  }
  .lead-magnet__copy {
    min-width: 0 !important;
    text-align: left !important;
  }
  .lead-magnet__tag {
    font-size: 11px !important;
    margin-bottom: 10px !important;
    text-align: left !important;
  }
  .lead-magnet__title {
    font-size: clamp(22px, 5.5vw, 26px) !important;
    margin-bottom: 8px !important;
    text-align: left !important;
  }
  .lead-magnet__sub {
    font-size: 15.5px !important;
    margin-bottom: 16px !important;
    text-align: left !important;
  }
  .lead-magnet__cta--desktop {
    display: none !important;
  }
  .lead-magnet__visual {
    min-width: 0 !important;
    display: flex !important;
    justify-content: center !important;
    margin: 8px auto 14px !important;
  }
  .lead-magnet__visual .playbook-book {
    width: 170px !important;
  }
  .lead-magnet__cta--mobile {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 4px !important;
  }
  .lead-magnet__cta--mobile .pill-btn {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Closer Section (Left-aligned text, stacked & centered CTA) */
  .closer {
    margin-top: 48px !important;
    text-align: left !important;
  }
  .closer__inner {
    padding: 24px 0 16px !important;
    text-align: left !important;
  }
  .closer__title {
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: clamp(22px, 5.5vw, 25px) !important;
    text-align: left !important;
  }
  .closer__lede {
    margin-left: 0 !important;
    margin-right: 0 !important;
    font-size: 15px !important;
    margin-bottom: 20px !important;
    text-align: left !important;
  }
  .closer__cta-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-top: 16px !important;
    text-align: left !important;
  }
  .closer__cta-tag {
    display: block !important;
    font-size: 17px !important;
    text-align: left !important;
  }
  .closer__cta-group .pill-btn {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Service Cards in services.html (Left-aligned text, centered CTA) */
  .service-card {
    padding: 22px 18px !important;
    margin-top: 18px !important;
    border-radius: 12px;
    text-align: left !important;
  }
  .service-card .pill-btn {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Offer card in index.html / resources.html (Left-aligned text, centered CTA) */
  .offer {
    margin: 40px 0;
  }
  .offer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left !important;
  }
  .offer__copy {
    align-items: flex-start !important;
    text-align: left !important;
  }
  .offer__cover {
    max-width: 170px;
    margin: 0 auto;
  }
  .offer .pill-btn {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Lead magnet card in resources.html (Left-aligned text, centered CTA) */
  .lead-magnet-card {
    flex-direction: column !important;
    text-align: left !important;
    padding: 24px 18px !important;
    gap: 18px !important;
    margin: 28px 0 48px !important;
    align-items: stretch !important;
  }
  .lead-magnet-card__title,
  .lead-magnet-card__tag,
  .lead-magnet-card__desc {
    text-align: left !important;
  }
  .lead-magnet-card__desc {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .lead-magnet-card__action {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .lead-magnet-card__btn {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Bio in about.html */
  .bio__card {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }
  .bio__photo {
    width: 140px;
    height: 140px;
    margin: 0;
  }
  .about__hero-img {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    height: auto;
  }
  .about__signature-img {
    max-width: 150px;
    height: auto;
  }

  /* Tabs navigation */
  .tab-nav {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 5px;
    border-radius: 16px;
    margin: 20px auto 32px;
  }
  .tab-link {
    padding: 7px 13px;
    font-size: 13px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* Resource Hero & Grid */
  .resource-hero {
    flex-direction: column !important;
  }
  .resource-hero__content {
    padding: 22px 18px !important;
  }
  .resource-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  /* Tools layout */
  .tool-row {
    flex-direction: column !important;
    gap: 16px !important;
    margin-bottom: 32px !important;
  }
  .tool-row__img {
    flex: auto !important;
    width: 100% !important;
    min-height: 160px;
  }

  /* Playbook systems list */
  .playbook-system-item {
    flex-direction: column !important;
    gap: 6px !important;
    align-items: flex-start !important;
    padding: 16px 0 !important;
  }

  /* Forms & Inputs */
  .form-input, .form-select, .form-textarea, .signup input {
    font-size: 16px !important;
    min-height: 44px;
    padding: 10px 14px;
    box-sizing: border-box;
  }
  .signup {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .signup button, .form-submit {
    width: fit-content !important;
    min-height: 44px;
    padding: 11px 22px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Post pages */
  .post-layout {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding-top: 20px !important;
    max-width: 100% !important;
  }
  .post-layout aside {
    position: static !important;
    top: auto !important;
    padding-left: 0 !important;
    margin-top: 28px;
    width: 100%;
    box-sizing: border-box;
  }
  .post-layout aside > div {
    padding: 20px 16px !important;
    margin-bottom: 20px !important;
  }
  .post-nav-links {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  .post-nav-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Footer */
  .footer {
    padding: 24px var(--gutter) 36px;
    text-align: center;
  }
  .footer__row {
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
    gap: 14px;
  }
  .footer__links {
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    flex-wrap: wrap;
  }
  .footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 6px;
  }
  .footer__social {
    margin-top: 14px;
    justify-content: center;
    gap: 18px !important;
  }
  .footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
  }
  .footer__copy {
    font-size: 13px;
  }

  /* Finder / Search dialog */
  .finder {
    padding: 5vh 16px 16px;
  }
  .finder__box {
    max-width: 100%;
  }
}

/* Extra small mobile screens (<= 420px) */
@media (max-width: 420px) {
  :root {
    --gutter: 18px;
  }
  .logo__long {
    display: none;
  }
  .logo__short {
    display: inline;
  }
  .tab-nav {
    flex-direction: column;
    border-radius: 12px;
  }
  .tab-link {
    width: 100%;
    box-sizing: border-box;
  }
}

/* ───────── Tabs ───────── */
.tab-nav {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
  margin: 40px auto 64px;
  flex-wrap: wrap;
  background: var(--card);
  padding: 6px;
  border-radius: 32px;
  width: max-content;
  border: 1px solid var(--border);
}
.tab-link {
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  transition: all 0.2s ease;
}
.tab-link:hover {
  color: var(--text);
}
.tab-link.active {
  background: var(--text);
  color: var(--paper);
}

/* ───────── Resource Page Layouts ───────── */
.resource-hero {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .resource-hero {
    flex-direction: row;
    align-items: center;
  }
}
.resource-hero__img {
  flex: 1;
  background: var(--border);
  min-height: 300px;
}
.resource-hero__content {
  flex: 1;
  padding: 48px;
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.resource-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.resource-card__img {
  background: var(--card);
  aspect-ratio: 3/4;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.resource-card__content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.resource-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  font-weight: 600;
}
.resource-title {
  font-size: 24px;
  font-family: var(--serif-display);
  font-weight: 500;
  line-height: 1.2;
}
.resource-desc {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.6;
}

.tool-row {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 64px;
}
@media (min-width: 768px) {
  .tool-row {
    flex-direction: row;
    align-items: flex-start;
  }
}
.tool-row__img {
  flex: 0 0 45%;
  background: var(--card);
  aspect-ratio: 16/9;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.tool-row__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tool-affiliate {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 16px;
}

/* ---------- Author Signature ---------- */
.about__signature {
  margin: 32px 0 52px;
}
.about__signature-img {
  width: 210px;
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 0.94;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
[data-theme="dark"] .about__signature-img {
  filter: invert(1) brightness(1.2);
  opacity: 0.9;
}

/* ---------- Post Page Enhancements (Navigation & Related Links) ---------- */
.post-related-link {
  transition: opacity 0.2s ease;
}
.post-related-link:hover span:first-child {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.post-related-link:hover {
  opacity: 0.8;
}

.post-nav-link {
  transition: color 0.2s ease, transform 0.2s ease;
}
.post-nav-link:hover {
  color: var(--text) !important;
}

/* ---------- Refined Lead Magnet Card (Editorial Style) ---------- */
.lead-magnet-card {
  display: flex;
  align-items: center;
  gap: 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px 40px;
  margin: 48px 0 96px;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .lead-magnet-card {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.08);
}

.lead-magnet-card:hover {
  border-color: var(--field-line);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .lead-magnet-card:hover {
  box-shadow: 0 12px 36px -6px rgba(0, 0, 0, 0.5);
}

.lead-magnet-card__media {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.playbook-book {
  position: relative;
  width: 144px;
  aspect-ratio: 1 / 1.38;
  border-radius: 3px;
  overflow: hidden;
  box-shadow:
    -3px 0 8px -2px rgba(0, 0, 0, 0.25),
    0 16px 28px -6px rgba(0, 0, 0, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: rotateY(-2.5deg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lead-magnet-card:hover .playbook-book {
  transform: rotateY(0deg) translateY(-3px);
  box-shadow:
    -3px 0 10px -2px rgba(0, 0, 0, 0.3),
    0 20px 36px -8px rgba(0, 0, 0, 0.5),
    0 4px 10px rgba(0, 0, 0, 0.2);
}

.playbook-book__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.playbook-book__spine {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.22) 0%,
    rgba(0, 0, 0, 0.04) 45%,
    rgba(255, 255, 255, 0.12) 65%,
    transparent 100%
  );
  pointer-events: none;
}

.lead-magnet-card__body {
  flex: 1;
  min-width: 0;
}

.lead-magnet-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 10px;
}

.lead-magnet-card__title {
  font-family: var(--serif-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 10px;
}

.lead-magnet-card__desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 22px;
  max-width: 390px;
}

.lead-magnet-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--serif-text);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-text);
  background: var(--accent);
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.lead-magnet-card__btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
  background: var(--accent-hover);
  color: var(--accent-text);
  box-shadow: 0 4px 14px rgba(55, 189, 248, 0.3);
}

.lead-magnet-card__btn:active {
  transform: scale(0.98);
}

.lead-magnet-card__btn svg {
  transition: transform 0.2s ease;
}

.lead-magnet-card__btn:hover svg {
  transform: translateX(3px);
}

@media (max-width: 620px) {
  .lead-magnet-card {
    flex-direction: column;
    text-align: left;
    padding: 32px 24px;
    gap: 24px;
  }
  .lead-magnet-card__media {
    display: flex;
    justify-content: center;
    margin: 0 auto;
  }
  .lead-magnet-card__desc {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .lead-magnet-card__action {
    display: flex;
    justify-content: center;
  }
}

