/* ================================================================
   GLOBAL DESIGN SYSTEM — LIGHT THEME ONLY
   Rathish AI Tech – Apple-inspired clean aesthetic
   ================================================================ */

:root {
  /* Exact Colors Specified */
  --color-bg:           #FFFFFF;
  --color-mint-glow:    #CDEFDD;
  --color-text:         #1D1D1F;
  --color-text-soft:    #6E6E73;
  --color-accent:       #0071E3;
  --color-accent-hover: #0077ED;
  --color-surface:      #F5F5F7;
  --color-footer:       #F5F5F7;
  --color-border:       #E8E8ED;
  --color-card-border:  #EEF0F2;
  --color-prompt-bg:    #1D1D1F;
  --color-prompt-text:  #F5F5F7;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* Layout */
  --container:     1120px;
  --radius-sm:     0.5rem;
  --radius-md:     0.75rem;
  --radius-lg:     1rem;
  --radius-xl:     1rem;   /* 16px */
  --radius-full:   9999px;

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   250ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm:   0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 6px 18px rgba(29, 29, 31, 0.08);
  --shadow-hover:0 12px 28px rgba(29, 29, 31, 0.12);
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
  background-color: var(--color-bg);
  color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

/* ── Focus Styles (accessibility) ────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Layout Utilities ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 640px) {
  .container { padding-inline: var(--space-8); }
}

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl)); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
  color: var(--color-text);
}

/* ── Article Body (Markdown prose) ───────────────────────────── */
.prose {
  max-width: 720px;
  font-size: 1.1rem; /* ~17.6px */
  line-height: 1.75;
  color: #3A3A3C;
}

@media (max-width: 640px) {
  .prose {
    font-size: 1.025rem; /* ~16.4px */
  }
}

/* Lead paragraph: slightly larger to hook the reader */
.prose > p:first-of-type,
.prose > div > p:first-of-type {
  font-size: 1.25rem; /* 20px */
  line-height: 1.6;
  color: #2C2C2E;
  font-weight: 400;
  margin-bottom: 1.4em;
}

@media (max-width: 640px) {
  .prose > p:first-of-type,
  .prose > div > p:first-of-type {
    font-size: 1.125rem; /* 18px */
  }
}

.prose p {
  margin-bottom: 1.3em;
  color: #3A3A3C;
}

/* Headings with smooth scroll margin and mint accent */
.prose h2,
.prose h3,
.prose h4 {
  scroll-margin-top: 88px;
}

.prose h2 {
  font-size: 1.7rem; /* 27.2px */
  font-weight: 700;
  color: #1D1D1F;
  letter-spacing: -0.015em;
  margin-top: 2em;
  margin-bottom: 0.8em;
  line-height: 1.25;
  border-bottom: none;
  padding-bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.prose h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1em;
  background-color: #CDEFDD;
  border-radius: 4px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .prose h2 {
    font-size: 1.4rem; /* 22.4px */
    gap: 10px;
  }
}

.prose h3 {
  font-size: 1.3rem; /* ~21px */
  font-weight: 600;
  color: #1D1D1F;
  letter-spacing: -0.01em;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .prose h3 {
    font-size: 1.2rem;
  }
}

/* Lists */
.prose ul {
  list-style: none;
  padding-left: 0;
  margin: 1.2em 0 1.5em 0;
}

.prose ul > li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 0.65em;
  line-height: 1.7;
  color: #3A3A3C;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #1D1D1F;
  opacity: 0.75;
}

/* Step cards for numbered lists */
.prose ol {
  list-style: none;
  counter-reset: prose-step;
  padding-left: 0;
  margin: 1.5em 0 1.8em 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prose ol > li {
  counter-increment: prose-step;
  position: relative;
  padding: 14px 18px 14px 50px;
  background: #F9F9FB;
  border: 1px solid #E8E8ED;
  border-radius: 12px;
  line-height: 1.65;
  color: #3A3A3C;
  margin-bottom: 0;
}

.prose ol > li::before {
  content: counter(prose-step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #1D1D1F;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Strong text */
.prose strong {
  font-weight: 600;
  color: #1D1D1F;
}

/* Inline code */
.prose :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: #F5F5F7;
  padding: 0.2em 0.5em;
  border-radius: 6px;
  color: #1D1D1F;
  border: 1px solid #E8E8ED;
  word-break: break-word;
}

/* Links */
.prose a {
  color: #0071E3;
  text-decoration: underline;
  text-decoration-color: rgba(0, 113, 227, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.prose a:hover {
  text-decoration-color: #0071E3;
}

/* Callouts / Blockquotes */
.prose blockquote {
  position: relative;
  margin: 1.6em 0;
  padding: 18px 20px 18px 50px;
  background: #EAF8F0;
  border: 1px solid #A3E3BE;
  border-left: 4px solid #34C759;
  border-radius: 12px;
  font-style: normal;
  color: #1D1D1F;
  line-height: 1.65;
}

.prose blockquote::before {
  content: "💡";
  position: absolute;
  left: 18px;
  top: 18px;
  font-size: 18px;
  line-height: 1;
}

.prose blockquote p {
  margin: 0;
  color: #2C2C2E;
}

.prose blockquote p + p {
  margin-top: 0.8em;
}

.prose blockquote.callout-note {
  background: #F5F5F7;
  border: 1px solid #D2D2D7;
  border-left: 4px solid #86868B;
}

.prose blockquote.callout-note::before {
  content: "ℹ️";
}

.prose blockquote.callout-warning {
  background: #FFF8E6;
  border: 1px solid #FFE082;
  border-left: 4px solid #FF9500;
}

.prose blockquote.callout-warning::before {
  content: "⚠️";
}

/* Images and captions */
.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid #E8E8ED;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  margin: 2em auto 0.6em;
}

.prose em:only-child,
.prose p > em:only-child,
.prose figcaption {
  display: block;
  text-align: center;
  font-size: 14px;
  color: #6E6E73;
  font-style: normal;
  margin-top: 6px;
  margin-bottom: 1.8em;
}

/* Tables */
.prose table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.8em 0;
  border: 1px solid #E8E8ED;
  border-radius: 12px;
  overflow: hidden;
  font-size: 15px;
}

.prose th {
  background: #F5F5F7;
  color: #1D1D1F;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #E8E8ED;
}

.prose td {
  padding: 12px 16px;
  border-bottom: 1px solid #E8E8ED;
  color: #3A3A3C;
}

.prose tr:last-child td {
  border-bottom: none;
}

.prose tbody tr:nth-child(even) {
  background: #FAFAFC;
}

/* Horizontal rule divider */
.prose hr {
  border: none;
  height: 1px;
  background-color: #E8E8ED;
  margin: 2.5em 0;
}

/* Gentle fade-up animation */
@media (prefers-reduced-motion: no-preference) {
  .prose h2,
  .prose h3,
  .prose img,
  .prose blockquote,
  .prose table {
    animation: proseFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes proseFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.65rem 1.4rem;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast),
              color var(--transition-fast),
              transform var(--transition-fast),
              border-color var(--transition-fast),
              box-shadow var(--transition-fast);
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-text);
  color: #FFFFFF !important;
}

.btn-primary:hover {
  background: #333336;
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--color-text) !important;
  border-color: #D2D2D7;
}

.btn-secondary:hover {
  background: var(--color-surface);
}

/* ── Apple-Style Single Slim Sticky Header ────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 64px;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: background-color var(--transition-fast),
              border-color var(--transition-fast),
              box-shadow var(--transition-fast);
}

.site-header.header-scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-text);
  line-height: 1;
}

.social-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #86868B;
  background-color: transparent;
  transition: color var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
}

.social-icon:hover {
  color: var(--color-text);
  background-color: rgba(0, 0, 0, 0.05);
}

@media (max-width: 640px) {
  .site-header {
    height: 56px;
  }
  .logo-text {
    font-size: 0.95rem;
  }
  .social-icon {
    width: 34px;
    height: 34px;
  }
}

/* ── Hero Section (Light Theme with Soft Mint Glow) ───────────── */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  background-color: var(--color-bg);
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

/* Soft mint glow fading to white at the top */
.hero-mint-glow {
  position: absolute;
  top: -100px;
  left: 0;
  right: 0;
  width: 100%;
  height: 520px;
  background: radial-gradient(ellipse 80% 50% at 50% 25%, #CDEFDD 0%, rgba(205, 239, 221, 0.45) 45%, rgba(255, 255, 255, 0) 80%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

/* Small white badge with thin mint border & dark green text */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.95rem;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  border: 1px solid #A3E3BE;
  color: #156637;
  font-size: clamp(0.72rem, 2.2vw, 0.8125rem);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: var(--space-5);
  max-width: 100%;
  line-height: 1.35;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28CD41;
  flex-shrink: 0;
}

/* Large tight headline in solid #1D1D1F */
.hero-title {
  font-size: clamp(1.8rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #1D1D1F;
  margin-bottom: var(--space-4);
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 2.5vw, 1.125rem);
  color: var(--color-text-soft);
  line-height: 1.55;
  max-width: 100%;
  margin-bottom: var(--space-6);
  font-weight: 400;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.hero-btn-primary {
  background: #1D1D1F;
  color: #FFFFFF !important;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.6rem;
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(29, 29, 31, 0.15);
}

.hero-btn-primary:hover {
  background: #333336;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 29, 31, 0.2);
}

.hero-link-secondary {
  color: var(--color-accent) !important;
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.hero-link-secondary:hover {
  color: var(--color-accent-hover) !important;
  text-decoration: underline;
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .hero-badge {
    font-size: 0.72rem;
    padding: 0.28rem 0.7rem;
    gap: 0.4rem;
  }
  .hero-actions {
    gap: 0.75rem;
  }
}

/* ── Instant Search Bar ───────────────────────────────────────── */
.search-container {
  width: 100%;
  max-width: 560px;
  margin: var(--space-4) auto 0;
  padding: 0 var(--space-2);
  position: relative;
  z-index: 4;
}

.search-box {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
  height: 50px;
  min-height: 48px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-sizing: border-box;
}

.search-box:focus-within {
  border-color: #34C759;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.22);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: #86868B;
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px; /* Exactly 16px to prevent iOS auto-zoom */
  line-height: 1.4;
  color: var(--color-text);
  outline: none;
  padding: 0.5rem 0;
}

.search-input::placeholder {
  color: #86868B;
  opacity: 1;
}

.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
  display: none;
  -webkit-appearance: none;
}

.search-clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border-radius: var(--radius-full);
  background: #E8E8ED;
  color: var(--color-text);
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 0.5rem;
  position: relative;
  transition: background-color var(--transition-fast);
}

/* 44px touch target area on touch/mobile devices */
.search-clear-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 44px;
  min-height: 44px;
}

.search-clear-btn:hover {
  background: #D2D2D7;
}

.search-clear-btn.visible {
  display: flex;
}

.search-shortcut-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #86868B;
  background: #F5F5F7;
  border: 1px solid #D2D2D7;
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
  user-select: none;
}

@media (max-width: 640px) {
  .search-shortcut-hint {
    display: none;
  }
  .search-box {
    height: 48px;
    padding: 0 0.85rem;
  }
}

/* ── Live Search Status Line & Empty State ────────────────────── */
.search-status-bar {
  display: flex;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 500;
  margin-top: var(--space-4);
  padding: 0.45rem 0.85rem;
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: var(--radius-md);
  width: fit-content;
}

.search-empty-state {
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) var(--space-6);
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  max-width: 540px;
  margin: var(--space-8) auto;
  box-shadow: var(--shadow-card);
}

.search-empty-icon {
  color: var(--color-text-soft);
  margin-bottom: var(--space-4);
  display: flex;
  justify-content: center;
}

.search-empty-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.search-empty-text {
  font-size: var(--text-base);
  color: var(--color-text-soft);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

/* ── Section Header ───────────────────────────────────────────── */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-header {
  margin-bottom: var(--space-8);
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.025em;
  margin-bottom: var(--space-2);
}

.section-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  max-width: 60ch;
  line-height: 1.5;
}

/* ── Prompt Cards & Grid ──────────────────────────────────────── */
.prompt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .prompt-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .prompt-grid { grid-template-columns: repeat(3, 1fr); }
}

.prompt-card {
  background: #FFFFFF;
  border: 1px solid var(--color-card-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(29, 29, 31, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease;
  height: 100%;
  box-sizing: border-box;
}

.prompt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(29, 29, 31, 0.12);
}

.prompt-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface);
}

.prompt-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.prompt-card:hover .prompt-card-image img {
  transform: scale(1.04);
}

.prompt-card-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.prompt-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: var(--space-2);
  color: #1D1D1F;
}

.prompt-card-title a {
  color: #1D1D1F !important;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.prompt-card-title a:hover {
  color: var(--color-accent) !important;
}

.prompt-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  line-height: 1.5;
  margin-bottom: var(--space-4);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prompt-card-link {
  color: var(--color-accent) !important;
  font-size: var(--text-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  text-decoration: none;
}

.prompt-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.prompt-card:hover .prompt-card-link svg {
  transform: translateX(3px);
}

/* ── AI Tools I Use In My Videos ──────────────────────────────── */
.tools-section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--color-border);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.tool-card {
  background: #F5F5F7;
  border-radius: 16px;
  border: none;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: none;
  box-sizing: border-box;
  transition: transform var(--transition-fast);
}

.tool-card:hover {
  transform: translateY(-2px);
}

.tool-card-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1D1D1F;
  margin-bottom: var(--space-2);
}

.tool-card-role {
  font-size: 0.875rem;
  color: #6E6E73;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }
}

@media (max-width: 480px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  .tool-card {
    padding: var(--space-4);
  }
  .tool-card-name {
    font-size: var(--text-base);
  }
  .tool-card-role {
    font-size: var(--text-xs);
  }
}

/* ── How It Works Section ──────────────────────────────────────── */
.how-it-works-section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-top: 1px solid var(--color-border);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.step-card {
  background: #F5F5F7;
  border-radius: 16px;
  border: none;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: none;
  box-sizing: border-box;
}

.step-badge {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: #1D1D1F;
  color: #FFFFFF;
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1D1D1F;
  margin-bottom: var(--space-2);
}

.step-desc {
  font-size: 0.875rem;
  color: #6E6E73;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* ── Pagination ───────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination a {
  color: var(--color-text);
  background: #FFFFFF;
  border: 1px solid var(--color-border);
}

.pagination a:hover {
  background: var(--color-surface);
  border-color: #D2D2D7;
}

.pagination .current {
  background: #1D1D1F;
  color: #FFFFFF;
  border: 1px solid #1D1D1F;
}

.pagination .disabled {
  color: #A1A1A6;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: not-allowed;
}

/* ── Prompt Page Layout (Content + Sidebar) ───────────────────── */
.prompt-page-wrapper {
  display: block;
  max-width: 768px;
  margin: 0 auto;
  padding: var(--space-6) 0 clamp(2.5rem, 5vw, 4rem);
}

.prompt-page-wrapper.has-sidebar {
  max-width: 100%;
  margin: 0;
}

@media (min-width: 1024px) {
  .prompt-page-wrapper.has-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-10);
    align-items: start;
  }
}

.prompt-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .prompt-page-wrapper.has-sidebar .prompt-sidebar {
    display: block;
    position: sticky;
    top: 88px;
  }
}

/* ── Breadcrumbs ──────────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  margin-bottom: var(--space-4);
}

.breadcrumbs a {
  color: var(--color-text-soft);
}

.breadcrumbs a:hover {
  color: var(--color-accent);
}

.breadcrumbs-sep {
  color: #A1A1A6;
  font-size: 0.8em;
}

.breadcrumbs-current {
  color: var(--color-text);
  font-weight: 500;
}

/* ── Jump Link Line ───────────────────────────────────────────── */
.jump-link-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.jump-link-desc {
  color: var(--color-text);
  font-size: 0.9375rem;
  line-height: 1.45;
  flex: 1 1 300px;
}

.jump-single-link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.jump-single-link:hover {
  text-decoration: underline;
}

/* Multi-prompt pill buttons */
.prompt-pills-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pills-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-soft);
}

.prompt-pills-list {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.prompt-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.45rem 0.95rem;
  min-height: 44px;
  box-sizing: border-box;
  background: #FFFFFF;
  border: 1px solid #D2D2D7;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0071E3;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.prompt-pill-btn:hover {
  background: #F5F5F7;
  border-color: #0071E3;
  transform: translateY(-1px);
}

.prompt-pill-btn svg {
  color: #0071E3;
}

/* ── Prompt Box (Collapsible Code Block with Inner Scroll & Drag Handle) ── */
@keyframes promptPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.65), 0 4px 20px rgba(0, 0, 0, 0.15);
  }
  35% {
    box-shadow: 0 0 0 10px rgba(0, 113, 227, 0.22), 0 8px 30px rgba(0, 113, 227, 0.25);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 113, 227, 0), 0 4px 20px rgba(0, 0, 0, 0.15);
  }
}

.prompt-box {
  position: relative;
  background: #1D1D1F;
  border-radius: 16px;
  padding: var(--space-5) var(--space-6) var(--space-4);
  margin: var(--space-8) 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  scroll-margin-top: 88px;
  transition: box-shadow 0.3s ease;
}

.prompt-box.pulse-highlight,
.prompt-box:target {
  animation: promptPulse 1.2s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .prompt-box.pulse-highlight,
  .prompt-box:target {
    animation: none;
    outline: 2px solid #0071E3;
    outline-offset: 4px;
  }
}

/* Sticky Header: stays fixed at top while text scrolls */
.prompt-box-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #1D1D1F;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
}

.prompt-box-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.prompt-box-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.prompt-box-note {
  font-size: 0.8125rem;
  color: #A1A1A6;
  font-weight: 400;
  line-height: 1.35;
}

.prompt-anchor-alias {
  position: absolute;
  top: -88px;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Copy button: light pill on dark box */
.copy-btn {
  background: #FFFFFF;
  color: #1D1D1F;
  border: none;
  border-radius: var(--radius-full);
  padding: 0.45rem 1.1rem;
  min-height: 44px;
  box-sizing: border-box;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.copy-btn:hover {
  background: #E8E8ED;
  transform: translateY(-1px);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

.copy-btn.copied {
  background: #34C759 !important;
  color: #FFFFFF !important;
}

/* Scrollable wrapper: 200px max on desktop, 180px on mobile */
.prompt-content-wrapper {
  position: relative;
  max-height: 200px;
  min-height: 120px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  transition: max-height 300ms cubic-bezier(0.16, 1, 0.3, 1), height 300ms cubic-bezier(0.16, 1, 0.3, 1);
  padding-bottom: 1.5rem;
  /* Slim subtle scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) rgba(255, 255, 255, 0.04);
}

.prompt-content-wrapper::-webkit-scrollbar {
  width: 6px;
}

.prompt-content-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;
}

.prompt-content-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
}

.prompt-content-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.38);
}

.prompt-content pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.65;
  color: #F5F5F7;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Soft fade gradient at bottom of collapsed box */
.prompt-fade {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  margin-top: -48px;
  background: linear-gradient(to bottom, rgba(29, 29, 31, 0) 0%, rgba(29, 29, 31, 0.95) 75%, #1D1D1F 100%);
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Drag Handle on desktop */
.prompt-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  cursor: ns-resize;
  user-select: none;
  margin-top: 4px;
  padding: 6px 0;
  touch-action: none;
}

.drag-bar {
  width: 44px;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), width var(--transition-fast);
}

.prompt-drag-handle:hover .drag-bar {
  background: rgba(255, 255, 255, 0.45);
  width: 54px;
}

/* View full prompt / Show less button wrap */
.prompt-expand-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-3);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prompt-toggle-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  padding: 0.55rem 1.35rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  transition: all var(--transition-fast);
}

.prompt-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.prompt-toggle-btn .toggle-icon {
  transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Expanded state */
.prompt-box.is-expanded .prompt-content-wrapper {
  max-height: none;
  overflow-y: visible;
}

.prompt-box.is-expanded .prompt-fade {
  opacity: 0;
  visibility: hidden;
}

.prompt-box.is-expanded .prompt-toggle-btn .toggle-icon {
  transform: rotate(180deg);
}

/* Short prompt: when text fits without overflowing */
.prompt-box.is-short .prompt-fade,
.prompt-box.is-short .prompt-drag-handle,
.prompt-box.is-short .prompt-expand-wrap {
  display: none !important;
}

.prompt-box.is-short .prompt-content-wrapper {
  max-height: none !important;
  height: auto !important;
  overflow-y: visible !important;
  padding-bottom: 0 !important;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
  .prompt-box {
    padding: var(--space-4) var(--space-4) var(--space-3);
  }
  .prompt-content-wrapper {
    max-height: 180px;
  }
  .prompt-drag-handle {
    display: none; /* Mobile uses natural touch-swipe scroll */
  }
  .prompt-toggle-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prompt-content-wrapper {
    transition: none !important;
  }
  .prompt-toggle-btn .toggle-icon {
    transition: none !important;
  }
}

/* ── YouTube / Prompt Thumbnail on prompt page ────────────────── */
.yt-thumbnail {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-card-border);
  box-shadow: var(--shadow-card);
  margin: var(--space-8) 0;
  background: var(--color-surface);
}

.yt-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Tools I Used Card ────────────────────────────────────────── */
.tools-used-card {
  background: #F5F5F7;
  border: 1px solid #E8E8ED;
  border-radius: 16px;
  padding: 18px 22px;
  margin: var(--space-6) 0 var(--space-8);
  box-sizing: border-box;
}

.tools-used-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .tools-used-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 12px;
  }
  .tools-used-card {
    padding: 16px;
  }
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tool-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid #E8E8ED;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6E6E73;
  flex-shrink: 0;
}

.tool-icon svg {
  width: 18px;
  height: 18px;
}

.tool-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tool-role {
  font-size: 0.75rem; /* 12px */
  color: #6E6E73;
  line-height: 1.25;
  margin-bottom: 2px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.tool-name {
  font-size: 0.9375rem; /* 15px */
  font-weight: 600;
  color: #1D1D1F;
  line-height: 1.3;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* ── Table of Contents (On this page) ─────────────────────────── */
.toc-card {
  background: #F5F5F7;
  border: 1px solid #E8E8ED;
  border-radius: 14px;
  padding: 16px 20px;
  margin: var(--space-6) 0 var(--space-8);
  box-sizing: border-box;
}

.toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toc-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-icon {
  color: #6E6E73;
}

.toc-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1D1D1F;
  letter-spacing: -0.01em;
}

.toc-toggle-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #6E6E73;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.toc-toggle-btn:hover {
  background: #E8E8ED;
  color: #1D1D1F;
}

.toc-chevron {
  transition: transform 0.25s ease;
}

.toc-card.is-collapsed .toc-chevron {
  transform: rotate(180deg);
}

.toc-list {
  list-style: none;
  counter-reset: toc-count;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid #E8E8ED;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-card.is-collapsed .toc-list {
  display: none;
}

.toc-list li {
  font-size: 0.9375rem;
  line-height: 1.45;
}

.toc-list a {
  color: #3A3A3C;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  transition: color 0.15s ease;
}

.toc-list a::before {
  content: "•";
  color: #86868B;
  font-weight: bold;
}

.toc-list a:hover {
  color: #0071E3;
}

/* ── In-Article and Below-Article Live Ad Placements ──────────── */
.in-article-ad-wrap,
.below-article-ad-wrap {
  margin: 0;
}

.prompt-sidebar .sidebar-sticky-inner {
  position: sticky;
  top: 88px;
}

/* ── More Prompts Grid on prompt page ─────────────────────────── */
.more-prompts-section {
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-border);
}

/* ── AdSense Live Containers (Plain transparent with reserved min-height) ── */
.ad-container {
  margin: 0;
  text-align: center;
  background: transparent;
  border: none;
  width: 100%;
}

.ad-format-banner {
  min-height: 250px;
}

.ad-format-rectangle {
  min-height: 250px;
  width: 100%;
}

.ad-format-infeed {
  min-height: 120px;
}

.ad-slot-wrap {
  margin: 24px 0;
  min-height: 250px;
  width: 100%;
  clear: both;
}

.ad-slot-a {
  margin: 24px 0;
}

.ad-slot-b {
  margin: 24px 0;
}

.ad-slot-c {
  margin: 24px 0;
}

/* Dev-only Ad Container Preview (Active ONLY when PUBLIC_ADSENSE_ENABLED=true without live ca-pub client) */
.ad-dev-preview {
  border: 1.5px dashed #0071E3;
  background: rgba(0, 113, 227, 0.04);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  padding: 20px;
  box-sizing: border-box;
}

.ad-dev-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  color: #0071E3;
}

.ad-dev-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ad-dev-specs {
  font-size: 11px;
  color: var(--color-text-secondary);
}

/* ── Footer (Light Gray #F5F5F7) ──────────────────────────────── */
.site-footer {
  background-color: #F5F5F7;
  border-top: 1px solid var(--color-border);
  padding: clamp(3rem, 5vw, 4.5rem) 0 var(--space-8);
  color: var(--color-text);
  margin-top: auto;
}

/* Row 1: About my channel panel */
.footer-panel {
  background: #FFFFFF;
  border: 1px solid var(--color-card-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.footer-panel-left {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex: 1 1 auto;
  min-width: 0;
}

.footer-avatar-wrap {
  flex-shrink: 0;
}

.footer-avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.footer-panel-info {
  display: flex;
  flex-direction: column;
}

.footer-panel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1D1D1F;
  margin-bottom: var(--space-2);
}

.footer-panel-bio {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.55;
  max-width: 65ch;
  margin: 0;
}

.footer-panel-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Subscribe on YouTube: dark pill */
.footer-btn-yt {
  background: #1D1D1F !important;
  color: #FFFFFF !important;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.footer-btn-yt:hover {
  background: #333336 !important;
  transform: translateY(-1px);
}

/* Follow on Facebook: white pill with border */
.footer-btn-fb {
  background: #FFFFFF !important;
  color: #1D1D1F !important;
  border: 1px solid #D2D2D7 !important;
  border-radius: var(--radius-full);
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.footer-btn-fb:hover {
  background: var(--color-surface) !important;
  border-color: #B0B0B5 !important;
  transform: translateY(-1px);
}

/* Row 2: Three tidy columns */
.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #1D1D1F;
  margin-bottom: var(--space-2);
}

.footer-brand-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.footer-brand-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1D1D1F;
}

.footer-brand-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.footer-social-strip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #86868B;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.footer-icon-btn:hover {
  color: #1D1D1F;
  border-color: #B0B0B5;
  transform: translateY(-1px);
}

.footer-nav-groups {
  display: contents;
}

.footer-col-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1D1D1F;
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-soft);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-accent);
}

/* Row 3: Bottom strip */
.footer-bottom-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-soft);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  margin: 0;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #FFFFFF;
  border: 1px solid #D2D2D7;
  color: #1D1D1F;
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  min-height: 44px;
  box-sizing: border-box;
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.back-to-top:hover {
  background: var(--color-surface);
  border-color: #B0B0B5;
}

@media (max-width: 768px) {
  .footer-columns {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .footer-nav-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  .footer-panel {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-panel-actions {
    width: 100%;
  }
  .footer-panel-actions .btn {
    flex: 1;
    text-align: center;
  }
}

/* ── Legal & Content Pages ────────────────────────────────────── */
.legal-page {
  padding-top: var(--space-8);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  max-width: 820px;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  color: #1D1D1F;
}

.footer-about {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}

@media (max-width: 640px) {
  .footer-about {
    flex-direction: column;
    text-align: center;
  }
}

/* ── Contact Form ─────────────────────────────────────────────── */
.contact-form {
  background: #FFFFFF;
  border: 1px solid var(--color-card-border);
  border-radius: 16px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.form-group {
  margin-bottom: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #1D1D1F;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: var(--color-text);
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #34C759;
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.22);
}

/* ── Skip Link (keyboard only) ────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: #1D1D1F;
  color: #FFFFFF !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ── Utility ─────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.text-soft { color: var(--color-text-soft); }
.mt-auto { margin-top: auto; }


/* ── Cookie Consent Banner ────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  left: var(--space-4);
  max-width: 480px;
  margin-left: auto;
  z-index: 1000;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-sizing: border-box;
}

.cookie-banner p {
  font-size: 0.8125rem;
  color: var(--color-text-soft);
  line-height: 1.4;
  margin: 0;
}

.cookie-banner a {
  color: var(--color-accent);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
}

/* ── External Download Card ───────────────────────────────────── */
.download-card {
  background: #F5F5F7;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0;
  scroll-margin-top: 84px;
  transition: box-shadow 0.3s ease;
}

.download-card.pulse-highlight {
  animation: promptPulse 1.4s ease-out;
}

.download-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.download-card-main {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  flex: 1 1 280px;
  min-width: 0;
}

.download-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  color: #6E6E73;
}

.download-card-info {
  flex: 1;
  min-width: 0;
}

.download-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.download-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
}

.download-card-size {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6E6E73;
  background: #E8E8ED;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.download-card-desc {
  font-size: 0.92rem;
  color: var(--color-text-soft);
  margin: 0;
  line-height: 1.45;
}

.download-card-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  color: #6E6E73;
}

.download-card-contents li {
  margin: 0;
}

.download-card-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #1D1D1F;
  color: #FFFFFF !important;
  border-radius: var(--radius-full);
  padding: 0.6rem 1.4rem;
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.download-btn:hover {
  background: #000000;
  transform: translateY(-1px);
}

.download-card-note {
  font-size: 0.75rem;
  color: #6E6E73;
  text-align: center;
  line-height: 1.25;
}

@media (max-width: 640px) {
  .download-card {
    padding: var(--space-4);
  }
  .download-card-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .download-card-action {
    width: 100%;
    align-items: stretch;
  }
  .download-btn {
    width: 100%;
  }
}
