/* ============================================================
   EditsInsta, design tokens
   Instagram brand palette — clean white surfaces, near-black
   text, and the signature blue→purple→pink→orange gradient
   reserved for actions and accents so it reads as "official"
   rather than a generic dark SaaS template.
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-alt: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  --text: #262626;
  --text-dim: #6b7280;
  --text-faint: #9ca3af;

  /* Instagram brand colors */
  --ig-blue: #405de6;
  --ig-purple: #833ab4;
  --ig-magenta: #c13584;
  --ig-pink: #e1306c;
  --ig-red: #fd1d1d;
  --ig-orange: #f56040;
  --ig-yellow: #fcaf45;

  --gradient: linear-gradient(45deg, #405de6 0%, #5851db 15%, #833ab4 35%, #c13584 55%, #e1306c 70%, #fd1d1d 85%, #f77737 100%);
  --gradient-soft: linear-gradient(120deg, rgba(64,93,230,0.08), rgba(193,53,132,0.07), rgba(247,119,55,0.08));
  --gradient-text: linear-gradient(45deg, #833ab4, #e1306c, #f77737);

  /* Solid stand-ins for contexts a gradient can't fill (text color, borders, focus rings) */
  --accent: #c13584;
  --accent-dark: #a02a6d;
  --accent-soft: rgba(193,53,132,0.08);

  --radius-sm: 6px;
  --radius: 12px;
  --max-width: 1080px;

  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max-width); margin-inline: auto; padding-inline: 1.5rem; }

a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(193,53,132,0.35); text-underline-offset: 2px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--ig-pink); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; margin: 0; color: var(--text); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; position: relative; }
.logo { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a { color: var(--text-dim); font-size: 0.92rem; font-weight: 600; text-decoration: none; }
.main-nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-weight: 700 !important;
  font-size: 0.88rem;
  box-shadow: 0 4px 14px rgba(225,48,108,0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(225,48,108,0.38); }
.nav-toggle { display: none; background: none; border: 0; }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 1.5rem 2rem; max-width: 760px; margin: 0 auto; position: relative; }
.hero::before {
  content: "";
  position: absolute;
  top: -60px; left: 50%;
  width: 620px; height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 30% 30%, rgba(64,93,230,0.16), transparent 55%),
              radial-gradient(circle at 70% 40%, rgba(225,48,108,0.14), transparent 55%),
              radial-gradient(circle at 50% 80%, rgba(247,119,55,0.14), transparent 55%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin: 0.9rem 0 1.2rem; line-height: 1.1; }
.lead { color: var(--text-dim); font-size: 1.12rem; max-width: 640px; margin: 0 0 1.75rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0 1.4rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--text-dim); }
.hero-facts strong { color: var(--text); font-family: var(--font-display); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 0.8rem 1.6rem; border-radius: 999px; font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--gradient); color: #fff; border: none; box-shadow: 0 6px 18px rgba(225,48,108,0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(225,48,108,0.4); }
.btn-outline { border: 1.5px solid var(--border-strong); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--ig-pink); color: var(--accent); background: var(--accent-soft); }

/* ---------- Sections ---------- */
.section { padding-block: 3rem; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.75rem; }
.highlight { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-band { text-align: center; }
hr.section-rule { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ---------- Screenshot placeholder slots ---------- */
.screenshot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.screenshot-slot { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.screenshot-slot img { display: block; width: 100%; height: 320px; object-fit: cover; background: var(--surface-2); }
.screenshot-slot figcaption { padding: 0.75rem 1rem; font-size: 0.85rem; color: var(--text-dim); border-top: 1px solid var(--border); }

/* ---------- Grids / entries ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-2, .grid-4 { counter-reset: entry-index; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; }
.card:hover { border-color: transparent; box-shadow: 0 0 0 1.5px var(--ig-pink), 0 10px 24px rgba(193,53,132,0.14); transform: translateY(-2px); }
.card h3 { margin: 0.5rem 0 0.5rem; font-size: 1.05rem; }
.card p { color: var(--text-dim); font-size: 0.92rem; margin: 0; }

.card-icon {
  counter-increment: entry-index;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.card-icon::before { content: counter(entry-index, decimal-leading-zero); }

.compare-card ul { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.compare-card li { padding: 0.5rem 0 0.5rem 1.4rem; position: relative; color: var(--text-dim); font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.compare-card li:last-child { border-bottom: none; }
.compare-card.compare-yes { border-color: var(--ig-pink); }
.compare-card.compare-yes li::before { content: "\2713"; position: absolute; left: 0; color: var(--ig-pink); font-weight: 700; }
.compare-card.compare-no li::before { content: "\2013"; position: absolute; left: 0; color: var(--text-faint); font-weight: 700; }

/* ---------- Shortcuts reference sheet ---------- */
.shortcut-sheet { border-top: 1px solid var(--border); }
.shortcut-row { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.shortcut-row .keys { display: flex; gap: 0.4rem; }
kbd.key { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.78rem; font-weight: 700; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0.28rem 0.55rem; color: var(--text); box-shadow: 0 1px 0 var(--border-strong); }
.shortcut-row .desc { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Comparison table ---------- */
.spec-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.spec-table th, .spec-table td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.spec-table th { font-family: var(--font-display); font-weight: 700; color: var(--text); border-bottom: 2px solid var(--border-strong); }
.spec-table td { color: var(--text-dim); }
.spec-table td.yes { color: var(--ig-pink); font-weight: 600; }
.spec-table td.no { color: var(--text-faint); }
.spec-table tbody tr:hover { background: var(--bg-alt); }

/* ---------- Steps ---------- */
.steps { display: flex; flex-direction: column; gap: 2.25rem; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; border-top: 1px solid var(--border); padding-top: 1.75rem; }
.step-visual { border: 1px solid var(--border); border-radius: var(--radius); background: var(--gradient-soft); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--text-dim); text-align: center; padding: 1rem; }
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ---------- Lists ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 0.7rem 0; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.checklist li:last-child { border-bottom: none; }
.checklist li strong { color: var(--text); font-family: var(--font-display); font-weight: 700; }

.numbered-list { counter-reset: num-list; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.numbered-list li { counter-increment: num-list; padding: 1rem 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.75rem; }
.numbered-list li::before {
  content: counter(num-list, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.numbered-list li:last-child { border-bottom: 1px solid var(--border); }
.numbered-list h4 { margin: 0 0 0.25rem; font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.numbered-list p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--font-display); list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-faint); font-size: 1.2rem; }
.faq details[open] summary::after { content: "\2212"; color: var(--ig-pink); }
.faq p { color: var(--text-dim); margin: 0.75rem 0 0; font-size: 0.92rem; }

/* ---------- Prose ---------- */
.prose h2 { margin-top: 2rem; }
.prose p { color: var(--text-dim); }

/* ---------- Forms ---------- */
.contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 480px; }
.contact-form label { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.88rem; color: var(--text-dim); font-weight: 600; }
.contact-form input, .contact-form textarea { background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0.7rem 0.85rem; color: var(--text); font-family: inherit; font-size: 1rem; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ig-pink); outline: none; box-shadow: 0 0 0 3px rgba(225,48,108,0.12); }
.alert { padding: 0.9rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: 0.92rem; border: 1px solid; }
.alert-success { background: rgba(193,53,132,0.06); border-color: rgba(193,53,132,0.3); color: var(--accent-dark); }
.alert-error { background: rgba(220,38,38,0.06); border-color: rgba(220,38,38,0.3); }

/* ---------- Callout / choice-list ---------- */
.callout { border-left: 3px solid; border-image: var(--gradient) 1; padding: 1rem 1.3rem; color: var(--text-dim); font-size: 0.9rem; margin-top: 1.5rem; background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.callout strong { color: var(--text); font-family: var(--font-display); }

.choice-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; }
.choice-list li { font-size: 0.92rem; color: var(--text-dim); }
.choice-list li strong { color: var(--text); font-family: var(--font-display); font-weight: 700; }

/* ---------- Final CTA ---------- */
.final-cta { max-width: 760px; margin: 3rem auto 0; padding: 4rem 1.5rem; border-radius: var(--radius); background: var(--gradient-soft); text-align: center; }
.final-cta .eyebrow { display: block; }
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.6rem; }
.final-cta .lead { margin-inline: auto; }
.final-cta .hero-actions { justify-content: center; }
.final-cta .fine-print { max-width: 640px; font-size: 0.85rem; color: var(--text-faint); line-height: 1.7; margin: 1rem auto 0; text-align: left; }
.end-mark { text-align: center; padding: 1.5rem 1.5rem 0; font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--text-faint); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 2.5rem 1.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.footer-brand .logo { display: flex; margin-bottom: 0.5rem; }
.footer-brand p { color: var(--text-dim); max-width: 320px; font-size: 0.88rem; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); font-size: 0.88rem; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--ig-pink); }
.footer-copy { width: 100%; color: var(--text-faint); font-size: 0.78rem; margin-top: 1rem; }

/* ---------- Scroll reveal ----------
   Default state is fully visible — nothing on this site is ever hidden
   behind JavaScript by default. JS opts individual elements into the
   fade-in treatment (via .will-animate) only when it can confirm they
   start below the fold; anything already on screen at load, or any
   element JS never gets to in time, simply renders normally. */
.reveal { opacity: 1; transform: none; }
.reveal.will-animate { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.will-animate.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal.will-animate { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) and (min-width: 861px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  .shortcut-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .spec-table { font-size: 0.85rem; }
  .screenshot-grid { grid-template-columns: 1fr; }
  .final-cta .fine-print { text-align: left; }
}
@media (max-width: 720px) {
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--surface); border: 1px solid var(--border); border-top: none; padding: 0.5rem 1.5rem 1rem; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 0.6rem 0; width: 100%; }
  .main-nav a.nav-cta { display: inline-block; width: auto; margin-top: 0.5rem; }
  .nav-toggle { display: flex; flex-direction: column; gap: 4px; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--text); }
}

/* ============================================================
   Animation layer — hero load-in, staggered card/entry reveal,
   animated heading underline, image hover zoom, icon motion.
   ============================================================ */

/* ---- Hero: cascades in on page load, no scroll trigger needed ---- */
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.hero .eyebrow { animation: fadeSlideUp 0.6s ease both; animation-delay: 0.05s; }
.hero h1 { animation: fadeSlideUp 0.6s ease both; animation-delay: 0.15s; }
.hero .lead { animation: fadeSlideUp 0.6s ease both; animation-delay: 0.25s; }
.hero .hero-actions { animation: fadeSlideUp 0.6s ease both; animation-delay: 0.35s; }
.hero .hero-facts { animation: fadeSlideUp 0.6s ease both; animation-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow, .hero h1, .hero .lead, .hero .hero-actions, .hero .hero-facts { animation: none; }
}

/* ---- Animated gradient underline for section headings ---- */
.section h2, .final-cta h2 { position: relative; padding-bottom: 0.6rem; }
.section h2::after, .final-cta h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 3px; width: 46px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.will-animate.is-visible h2::after { transform: scaleX(1); }
.reveal:not(.will-animate) h2::after { transform: scaleX(1); }
.final-cta h2::after { transform: scaleX(1); left: 50%; margin-left: -23px; }

/* ---- Staggered pop-in for cards, screenshots, list entries ----
   Only hidden when a .will-animate ancestor is actively staging the
   fade-in; otherwise cards render normally with no dependency on JS. */
.reveal.will-animate .grid-2 .card,
.reveal.will-animate .grid-4 .card,
.reveal.will-animate .screenshot-grid .screenshot-slot,
.reveal.will-animate .numbered-list li,
.reveal.will-animate .checklist li,
.reveal.will-animate .compare-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.reveal.will-animate.is-visible .grid-2 .card,
.reveal.will-animate.is-visible .grid-4 .card,
.reveal.will-animate.is-visible .screenshot-grid .screenshot-slot,
.reveal.will-animate.is-visible .numbered-list li,
.reveal.will-animate.is-visible .checklist li,
.reveal.will-animate.is-visible .compare-card {
  opacity: 1;
  transform: translateY(0);
}
.grid-4 .card:nth-child(1), .grid-2 .card:nth-child(1), .compare-card:nth-child(1) { transition-delay: 0.05s; }
.grid-4 .card:nth-child(2), .grid-2 .card:nth-child(2), .compare-card:nth-child(2) { transition-delay: 0.12s; }
.grid-4 .card:nth-child(3) { transition-delay: 0.19s; }
.grid-4 .card:nth-child(4) { transition-delay: 0.26s; }
.grid-4 .card:nth-child(5) { transition-delay: 0.33s; }
.grid-4 .card:nth-child(6) { transition-delay: 0.4s; }
.grid-4 .card:nth-child(7) { transition-delay: 0.47s; }
.grid-4 .card:nth-child(8) { transition-delay: 0.54s; }
.screenshot-grid .screenshot-slot:nth-child(1) { transition-delay: 0.05s; }
.screenshot-grid .screenshot-slot:nth-child(2) { transition-delay: 0.14s; }
.screenshot-grid .screenshot-slot:nth-child(3) { transition-delay: 0.23s; }
.screenshot-grid .screenshot-slot:nth-child(4) { transition-delay: 0.32s; }
.numbered-list li:nth-child(1), .checklist li:nth-child(1) { transition-delay: 0.04s; }
.numbered-list li:nth-child(2), .checklist li:nth-child(2) { transition-delay: 0.09s; }
.numbered-list li:nth-child(3), .checklist li:nth-child(3) { transition-delay: 0.14s; }
.numbered-list li:nth-child(4), .checklist li:nth-child(4) { transition-delay: 0.19s; }
.numbered-list li:nth-child(5), .checklist li:nth-child(5) { transition-delay: 0.24s; }
.numbered-list li:nth-child(6), .checklist li:nth-child(6) { transition-delay: 0.29s; }
@media (prefers-reduced-motion: reduce) {
  .grid-2 .card, .grid-4 .card, .screenshot-grid .screenshot-slot, .numbered-list li, .checklist li, .compare-card {
    opacity: 1; transform: none; transition: none;
  }
}

/* ---- Image hover zoom ---- */
.screenshot-slot { overflow: hidden; }
.screenshot-slot img, .screenshot-slot svg { transition: transform 0.45s ease; display: block; width: 100%; height: 320px; }
.screenshot-slot:hover img, .screenshot-slot:hover svg { transform: scale(1.06); }
.screenshot-slot.img-missing img { display: none; }
.screenshot-slot.img-missing { position: relative; }
.screenshot-slot.img-missing::before {
  content: "Add screenshot here";
  display: flex; align-items: center; justify-content: center;
  height: 320px; width: 100%;
  background: var(--surface-2);
  color: var(--text-faint);
  font-family: var(--font-display); font-weight: 600; font-size: 0.85rem;
  border-bottom: 1px dashed var(--border-strong);
}

/* ---- Card icon / step number gentle pop on hover ---- */
.card:hover .card-icon { transform: scale(1.12); transition: transform 0.2s ease; }
.card-icon { display: inline-block; transition: transform 0.2s ease; }
.step:hover .step-num { transform: translateX(3px); }
.step-num { display: inline-block; transition: transform 0.2s ease; }

/* ---- FAQ marker rotate ---- */
.faq summary::after { display: inline-block; transition: transform 0.25s ease, color 0.25s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }

/* ---- Installation checklist (download page) ---- */
.install-checklist { margin-top: 1.25rem; }
.checklist-progress { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--text-dim); background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; display: inline-block; padding: 0.4rem 1rem; margin-bottom: 1rem; }
.checklist-progress span { color: var(--ig-pink); }
.install-phase { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-faint); margin: 1.5rem 0 0.6rem; }
.install-phase:first-of-type { margin-top: 0.5rem; }
.install-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.7rem 0.85rem; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.5rem; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; background: var(--surface); }
.install-item:hover { border-color: var(--border-strong); background: var(--bg-alt); }
.install-item input[type="checkbox"] { width: 19px; height: 19px; flex-shrink: 0; margin-top: 0.15rem; accent-color: var(--ig-pink); cursor: pointer; }
.install-item span { font-size: 0.92rem; color: var(--text-dim); line-height: 1.55; }
.install-item:has(input:checked) { border-color: var(--ig-pink); background: var(--accent-soft); }
.install-item:has(input:checked) span { color: var(--text); text-decoration: line-through; text-decoration-color: var(--text-faint); }

/* ---- Guide article byline (fact-checked + reading time) ---- */
.guide-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: var(--text-faint); margin-top: 1rem; }
.guide-meta-badge { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; color: var(--ig-pink); background: var(--accent-soft); padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.78rem; }
.guide-meta-badge::before { content: "\2713"; }

/* ---- Scroll progress bar ---- */
.scroll-progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0%; background: var(--gradient); z-index: 999; transition: width 0.1s ease-out; }

/* ---- Fact-check / source-note strip ---- */
.source-note { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.82rem; color: var(--text-faint); background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; margin-top: 1rem; }
.source-note strong { color: var(--text-dim); }
