
/* Plonivo remove.bg-inspired UI refresh.
   Bright, modern, trustworthy, tool-first. */
:root {
  --fi-bg: #f7fbff;
  --fi-sky: #eaf6ff;
  --fi-sky-strong: #dff1ff;
  --fi-surface: #ffffff;
  --fi-surface-soft: #f9fcff;
  --fi-text: #17212b;
  --fi-heading: #101820;
  --fi-muted: #5d6f80;
  --fi-soft: #7d8c9b;
  --fi-line: #d8e8f5;
  --fi-line-strong: #b9d6ec;
  --fi-blue: #0a66c2;
  --fi-blue-dark: #004182;
  --fi-blue-soft: #e7f3ff;
  --fi-cyan: #25b7d3;
  --fi-green: #17a768;
  --fi-yellow: #ffd166;
  --fi-radius: 18px;
  --fi-radius-sm: 12px;
  --fi-shadow: 0 18px 50px rgba(46, 107, 153, .14);
  --fi-shadow-soft: 0 8px 26px rgba(46, 107, 153, .10);
}

* { box-sizing: border-box; }
html {
  background: var(--fi-bg);
  overflow-x: clip;
}
body {
  overflow-x: clip;
  max-width: 100%;
  background:
    radial-gradient(circle at 12% 4%, rgba(37, 183, 211, .18), transparent 28rem),
    radial-gradient(circle at 88% 0%, rgba(10, 102, 194, .13), transparent 30rem),
    linear-gradient(180deg, #ffffff 0, #f7fbff 24rem, #f5faff 100%) !important;
  color: var(--fi-text) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: 0 !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(255, 209, 102, .28) 0 3px, transparent 4px),
    radial-gradient(circle at 76% 22%, rgba(37, 183, 211, .22) 0 4px, transparent 5px),
    radial-gradient(circle at 84% 72%, rgba(10, 102, 194, .10) 0 5px, transparent 6px);
}

.page-header {
  max-width: 1180px !important;
  padding: 14px 18px !important;
  margin: 18px auto 0 !important;
  background: rgba(255,255,255,.88) !important;
  border: 1px solid rgba(216, 232, 245, .9) !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 34px rgba(46, 107, 153, .10) !important;
  backdrop-filter: blur(18px);
}
.logo { color: var(--fi-heading) !important; gap: .55rem !important; align-items: center !important; }
.logo span { color: inherit !important; }
.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}
.logo-word {
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.05em !important;
  color: var(--fi-heading) !important;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.logo-word .logo-o {
  display: inline-block;
  width: 0.78em;
  height: 0.78em;
  margin: 0 0.01em;
  border: 0.16em solid var(--fi-blue);
  border-radius: 50%;
  position: relative;
  top: 0.06em;
  box-sizing: border-box;
  flex-shrink: 0;
}
.logo-word .logo-o::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.08em;
  width: 0.22em;
  height: 0.22em;
  margin-left: -0.11em;
  border-radius: 50%;
  background: var(--fi-cyan);
}
.trust-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: .5rem !important;
}
.trust-logo .logo-mark {
  width: 28px;
  height: 28px;
}
.logo-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: none;
  color: inherit !important;
  font-size: 0 !important;
  box-shadow: none;
  overflow: hidden;
  padding: 0;
}
.logo-icon .logo-mark,
.logo > .logo-mark {
  width: 32px;
  height: 32px;
}
.header-nav {
  gap: .15rem !important;
  flex-wrap: wrap;
  overflow-x: visible !important;
  white-space: normal !important;
}
.nav-link {
  color: #52687b !important;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .52rem .74rem;
  font-weight: 700 !important;
}
.nav-link:hover,
.nav-link.active {
  color: #fff !important;
  background: var(--fi-blue) !important;
  border-color: var(--fi-blue) !important;
}
.header-nav a[href="/linkedin-summary-generator.html"],
.header-nav a[href="/linkedin-hashtag-generator.html"],
.header-nav a[href="/linkedin-text-staircase.html"],
.header-nav a[href="/linkedin-connection-message-generator.html"] {
  display: none !important;
}

.hero {
  max-width: 1180px !important;
  text-align: center !important;
  padding: 2.35rem 1.25rem 1.1rem !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.75rem;
  justify-items: center;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  width: min(92vw, 860px);
  height: 180px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(231,243,255,.92), rgba(255,255,255,.72));
  box-shadow: 0 22px 60px rgba(46, 107, 153, .10);
  z-index: -1;
}
.hero::after {
  content: "Paste draft -> format -> preview -> copy";
  justify-self: center;
  width: auto;
  min-height: 0;
  padding: .45rem .72rem;
  color: #31546f;
  font-size: .76rem;
  line-height: 1.25;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid #c9e6fb;
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 18px rgba(46, 107, 153, .08);
}
body.tool-format .hero::after { content: "Select text -> apply style -> copy output"; }
body.tool-hook .hero::after { content: "Pick hook -> edit draft -> preview -> copy"; }
body.tool-headline .hero::after,
body.tool-summary .hero::after { content: "Define role -> add proof -> copy profile text"; }
body.tool-hashtag .hero::after { content: "Paste draft -> pick tags -> copy set"; }
body.tool-metrics .hero::after { content: "Enter reach -> add reactions -> compare rate"; }
body.tool-staircase .hero::after { content: "Paste lines -> shape staircase -> copy output"; }
body.tool-outreach .hero::after { content: "Pick tone -> personalize -> copy message"; }
body.tool-preview .hero::after { content: "Type post -> check cutoff -> refine opening"; }
body.tool-format .hero::after,
body.tool-hook .hero::after,
body.tool-headline .hero::after,
body.tool-summary .hero::after,
body.tool-hashtag .hero::after,
body.tool-staircase .hero::after,
body.tool-outreach .hero::after,
body.tool-preview .hero::after,
body.tool-metrics .hero::after {
  display: none;
}
.hero h1 {
  color: var(--fi-heading) !important;
  font-size: clamp(1.85rem, 3.6vw, 3.05rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.02em !important;
  max-width: 980px;
  margin: 0 auto .2rem !important;
}
.hero h1 .grad,
.highlight,
.hero-title .highlight {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--fi-blue) !important;
}
.hero p,
.hero-subtitle {
  max-width: 740px;
  font-size: .98rem !important;
  line-height: 1.55;
  color: var(--fi-muted) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.section-sub,
.section-subtitle,
.topic-heading p,
.blog-card p,
.seo-article p,
.growth-section p,
.article-next-steps p,
.article-monetization p,
.blog-monetization p { color: var(--fi-muted) !important; }

.workspace,
.blog-container,
.blog-topic-list,
.page-section,
.growth-section,
.seo-article,
.trust-main,
.legal-main { max-width: 1180px !important; }
.workspace {
  grid-template-columns: minmax(0, 1fr) 410px !important;
  gap: 1.25rem !important;
  padding-top: 0.35rem !important;
  padding-bottom: 2.2rem !important;
}
.preview-col { top: 1rem !important; }

.card,
.workspace-card,
.blog-card,
.blog-content,
.step-card,
.comp-card,
.growth-band,
.article-next-steps,
.article-monetization,
.blog-monetization-inner,
.partner-box,
.article-partner-box,
.li-card,
.magic-card,
.ai-panel-content,
.trust-card,
.legal-card {
  border-radius: var(--fi-radius) !important;
  border: 1px solid rgba(216,232,245,.95) !important;
  box-shadow: var(--fi-shadow-soft) !important;
  background: rgba(255,255,255,.96) !important;
}
.workspace-card,
.blog-content { padding: 1.45rem !important; }
.workspace-card { box-shadow: var(--fi-shadow) !important; }
.preview-col .card { box-shadow: var(--fi-shadow) !important; }
.blog-content { border-top: 5px solid var(--fi-blue) !important; }
.blog-card:hover,
.related-tool:hover,
.template-card:hover,
.article-next-grid a:hover {
  transform: translateY(-3px) !important;
  box-shadow: var(--fi-shadow) !important;
}

.preview-label,
.card-label,
.article-monetization-label,
.growth-eyebrow,
.blog-card-cat,
.badge,
.badge-sponsor,
.sponsor-tag {
  color: var(--fi-blue-dark) !important;
  background: var(--fi-blue-soft) !important;
  border-color: #c9e6fb !important;
  letter-spacing: .06em !important;
}
.blog-card-cat,
.badge,
.badge-sponsor,
.sponsor-tag { border: 1px solid #c9e6fb; border-radius: 999px !important; }

.workspace-tabs,
.preview-toggle,
.toolbar {
  background: #eef7ff !important;
  border: 1px solid #d7ecfc !important;
  border-radius: 999px !important;
}
.workspace-tab,
.tab-btn,
.template-pill-btn {
  color: #52687b !important;
  border-radius: 999px !important;
}
.workspace-tab.active,
.tab-btn.active,
.template-pill-btn.active {
  background: #fff !important;
  color: var(--fi-blue-dark) !important;
  box-shadow: 0 2px 8px rgba(46,107,153,.12) !important;
}

#editor,
.modern-input,
.ai-input,
.template-field-input,
textarea,
input {
  background: #fbfdff !important;
  border-color: #bfdcf2 !important;
  border-radius: 16px !important;
  color: var(--fi-heading) !important;
}
#editor:focus,
.modern-input:focus,
.ai-input:focus,
.template-field-input:focus,
textarea:focus,
input:focus {
  border-color: var(--fi-blue) !important;
  box-shadow: 0 0 0 5px rgba(10,102,194,.12) !important;
}
#editor:empty:before { color: #7d8c9b !important; }

.btn-magic-action,
.btn-magic,
.btn-massive,
.btn-primary,
.btn-cta-action,
.btn-generate {
  background: linear-gradient(135deg, var(--fi-blue), #1687d9) !important;
  color: #fff !important;
  border: 1px solid rgba(0,65,130,.2) !important;
  border-radius: 999px !important;
  box-shadow: 0 14px 32px rgba(10,102,194,.22) !important;
  animation: none !important;
}
.btn-magic-action:hover,
.btn-magic:hover,
.btn-massive:hover,
.btn-primary:hover,
.btn-cta-action:hover,
.btn-generate:hover {
  background: linear-gradient(135deg, #0b70d6, var(--fi-blue-dark)) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 38px rgba(10,102,194,.26) !important;
}
.btn-magic-action:active,
.btn-magic:active,
.btn-massive:active,
.btn-primary:active,
.btn-cta-action:active,
.btn-generate:active { transform: translateY(1px) !important; }
.btn-cta-action.success,
.btn-magic.success-state,
.btn-massive.success { background: var(--fi-green) !important; border-color: var(--fi-green) !important; }

.btn-toolbar-action,
.tool-btn,
.btn-ghost,
.template-card,
.related-tool,
.article-next-grid a,
.topic-nav a {
  border-radius: 14px !important;
  border-color: #d8e8f5 !important;
  background: #fff !important;
  color: #52687b !important;
}
.btn-toolbar-action:hover,
.tool-btn:hover,
.btn-ghost:hover,
.template-card:hover,
.related-tool:hover,
.article-next-grid a:hover,
.topic-nav a:hover {
  color: var(--fi-blue-dark) !important;
  border-color: #b8d8f5 !important;
  background: var(--fi-blue-soft) !important;
}

.partner-box,
.article-partner-box,
.blog-monetization-inner,
.article-next-steps,
.article-monetization {
  background: linear-gradient(180deg, #fff, #f8fcff) !important;
  border-color: #c9e6fb !important;
}
.partner-box a,
.article-partner-box a,
.blog-monetization a,
.blog-read-more,
.related-tool strong,
.article-next-grid a { color: var(--fi-blue-dark) !important; }
.disclaimer,
.affiliate-note,
.article-disclosure,
.char-count,
.editor-stats,
.footer-bottom,
footer,
footer a { color: var(--fi-muted) !important; }
.comp-card.before,
.comp-card.after,
.ad-slot,
.article-ad-slot { background: #fff !important; border-color: var(--fi-line) !important; }
.li-avatar { background: linear-gradient(135deg, #cfe4f7, #edf6ff) !important; }
.li-card { border-color: #d4d2ce !important; }
blockquote { border-left-color: var(--fi-blue) !important; background: var(--fi-blue-soft) !important; }
.toast { border-radius: 999px !important; background: #101820 !important; }
.spinner { border-top-color: var(--fi-blue) !important; }
footer { background: transparent !important; border-color: var(--fi-line) !important; }

.trust-hero,
.legal-hero {
  background: linear-gradient(135deg, #fff, var(--fi-blue-soft)) !important;
  border-bottom: 1px solid var(--fi-line);
}
.trust-footer { color: var(--fi-muted) !important; }

/* ── Trust pages: header + wrap nav on mobile ── */
.trust-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.trust-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1rem;
  max-width: 100%;
}

.trust-nav a,
.trust-logo {
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.trust-nav a {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: nowrap;
}

.trust-nav a:hover {
  color: var(--fi-blue-dark);
}

@media (max-width: 760px) {
  .trust-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .trust-nav {
    width: 100%;
    gap: 0.4rem 0.85rem;
  }

  .trust-nav a {
    font-size: 0.875rem;
  }
}

@media (max-width: 900px) {
  .page-header { margin: 0 !important; border-radius: 0 0 22px 22px !important; border-left: 0 !important; border-right: 0 !important; padding: 10px 14px !important; margin-top: 10px !important; }
  body.tool-metrics .hero {
    padding: 1.15rem 1rem 0.55rem !important;
    gap: 0.45rem !important;
  }
  body.tool-metrics .hero::before,
  body.tool-metrics .hero::after {
    display: none !important;
  }
  body.tool-metrics .workspace {
    padding-top: 0 !important;
  }
  .hero { padding: 1.2rem 1rem 0.5rem !important; gap: 0.42rem !important; }
  .hero::before { top: 0.6rem; height: 110px; border-radius: 22px; opacity: .85; }
  .hero::after { width: auto; }
  body.tool-format .hero::after,
  body.tool-hook .hero::after,
  body.tool-headline .hero::after,
  body.tool-summary .hero::after,
  body.tool-hashtag .hero::after,
  body.tool-staircase .hero::after,
  body.tool-outreach .hero::after,
  body.tool-preview .hero::after,
  body.tool-metrics .hero::after { display: none; }
  .workspace { grid-template-columns: 1fr !important; padding-left: 1rem !important; padding-right: 1rem !important; padding-top: 0 !important; }
  .blog-container { padding-left: 1rem !important; padding-right: 1rem !important; }
  .blog-content { padding: 1.25rem !important; }
  .blog-content h1 { font-size: 1.85rem !important; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 1.68rem !important; line-height: 1.08 !important; }
  body:not(.tool-post) .hero h1 { font-size: 1.68rem !important; line-height: 1.08 !important; }
  .hero p { font-size: .88rem !important; line-height: 1.45 !important; }
  .hero::before {
    left: 12px;
    right: 12px;
    width: auto !important;
    max-width: none;
  }
  .header-nav { padding-bottom: 2px; }
  .workspace-card { padding: 1rem !important; }
  .workspace-tabs { width: 100%; overflow-x: auto; }
  .workspace-tab { flex: 0 0 auto; padding: 6px 10px !important; }
}


/* Tool-specific experience layer: each tool gets its own workflow before SEO/supporting content. */
.tool-journey {
  max-width: 1180px;
  margin: 0 auto 3.4rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(340px, 1.15fr) minmax(260px, .75fr);
  gap: 1rem;
  align-items: stretch;
}
.journey-copy,
.journey-steps,
.journey-note {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(216,232,245,.95);
  box-shadow: var(--fi-shadow-soft);
  border-radius: 22px;
  padding: 1.25rem;
}
.journey-copy { background: linear-gradient(135deg, #fff, var(--fi-blue-soft)); }
.journey-kicker {
  color: var(--fi-blue-dark);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 .55rem;
}
.journey-copy h2 { margin: 0 0 .65rem; color: var(--fi-heading); font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.08; }
.journey-copy p,
.journey-note p { color: var(--fi-muted); line-height: 1.65; margin: 0; }
.journey-steps { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .7rem; counter-reset: none; }
.journey-steps li {
  min-height: 126px;
  border-radius: 18px;
  background: #f8fcff;
  border: 1px solid #d8e8f5;
  padding: .85rem;
  color: #29435d;
  font-weight: 800;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.journey-steps span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fi-blue), var(--fi-cyan));
  color: #fff;
  font-size: .82rem;
  box-shadow: 0 8px 16px rgba(10,102,194,.18);
}
.journey-note { display: flex; flex-direction: column; justify-content: space-between; gap: .9rem; }
.journey-note strong { color: var(--fi-heading); font-size: .95rem; }
.journey-note a {
  align-self: flex-start;
  color: #fff;
  background: linear-gradient(135deg, var(--fi-blue), #1687d9);
  border-radius: 999px;
  padding: .62rem .9rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(10,102,194,.18);
}
.tool-hook .tool-journey .journey-steps li:nth-child(1),
.tool-headline .tool-journey .journey-steps li:nth-child(2),
.tool-summary .tool-journey .journey-steps li:nth-child(3),
.tool-hashtag .tool-journey .journey-steps li:nth-child(4) { background: #fff7d8; border-color: #f6dfa0; }
.tool-metrics .tool-journey .journey-steps li { min-height: 108px; }
.tool-outreach .tool-journey,
.tool-preview .tool-journey,
.tool-staircase .tool-journey { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
.tool-outreach .tool-journey .journey-note,
.tool-preview .tool-journey .journey-note,
.tool-staircase .tool-journey .journey-note { grid-column: 1 / -1; flex-direction: row; align-items: center; }

/* Make lower SEO/supporting blocks feel like documentation, not repeated marketing cards. */
.growth-section { display: grid; gap: 1.15rem; }
.growth-section .growth-band { box-shadow: none !important; }
.growth-section .growth-band:first-child { border-left: 5px solid var(--fi-blue) !important; }
.growth-section .growth-band:nth-child(2) { background: transparent !important; border-style: dashed !important; }
.growth-section .monetization-rail { background: linear-gradient(135deg, #fff, #f8fcff) !important; }
.related-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.related-tool { min-height: 92px !important; }
.faq-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faq-item { border-top: 0 !important; padding: 1rem !important; background: #fff; border: 1px solid #d8e8f5; border-radius: 16px; }
.example-lab { margin-top: -1.2rem; }
.example-lab-inner { border-radius: 26px !important; }
.example-grid { align-items: stretch; }
.example-card:nth-child(2) { transform: translateY(14px); }
.example-card:nth-child(3) { transform: translateY(28px); }
.example-card button { border-radius: 999px !important; }
@media (max-width: 980px) {
  .tool-journey { grid-template-columns: 1fr; margin-top: 0; }
  .journey-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .faq-list { grid-template-columns: 1fr; }
  .tool-outreach .tool-journey .journey-note,
  .tool-preview .tool-journey .journey-note,
  .tool-staircase .tool-journey .journey-note { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .tool-journey { padding: 0 1rem; margin-bottom: 2.2rem; }
  .journey-steps { grid-template-columns: 1fr; }
  .journey-steps li { min-height: 96px; }
  .example-card:nth-child(2), .example-card:nth-child(3) { transform: none; }
}


/* Blog reading mode: editorial layout with optional desktop aside (no HTML changes). */
.blog-reading {
  display: block !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 3rem 1.5rem 4.5rem !important;
}
.blog-reading .blog-content {
  padding: clamp(1.45rem, 4vw, 2.5rem) !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  background: transparent !important;
}
.blog-reading .blog-content h1 {
  max-width: 42rem;
  font-size: clamp(2rem, 4vw, 3.1rem) !important;
  line-height: 1.06 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: .9rem !important;
}
.blog-reading .blog-meta {
  flex-wrap: wrap;
  gap: .55rem 1rem !important;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--fi-line);
  max-width: 42rem;
}
.blog-reading .blog-body {
  max-width: 70ch;
  margin: 0;
  font-size: 1.08rem !important;
  line-height: 1.82 !important;
}
.blog-reading .blog-body h2 {
  margin-top: 2.35rem !important;
  font-size: clamp(1.35rem, 2vw, 1.8rem) !important;
  line-height: 1.18 !important;
}
.blog-reading .blog-body p,
.blog-reading .blog-body li {
  color: #2f4354 !important;
}
.blog-reading .blog-body a {
  color: var(--fi-blue-dark) !important;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.blog-reading .blog-body ul,
.blog-reading .blog-body ol {
  padding-left: 1.25rem !important;
}
.blog-reading .article-next-steps,
.blog-reading .article-monetization {
  border-radius: 16px !important;
  box-shadow: none !important;
}
.blog-reading .article-next-steps {
  margin-top: 2.75rem !important;
  background: linear-gradient(135deg, #f8fcff, #ffffff) !important;
  border-color: #c9e6fb !important;
}
.blog-reading .article-next-steps h2 {
  font-size: 1rem !important;
}
.blog-reading .article-next-steps p {
  font-size: 0.9rem !important;
  margin-bottom: 0.75rem !important;
}
.blog-reading .article-next-grid {
  grid-template-columns: 1fr !important;
  gap: 0.55rem !important;
}
.blog-reading .article-next-grid a {
  border-radius: 12px !important;
  transform: none !important;
  padding: 0.7rem 0.85rem !important;
  font-size: 0.9rem !important;
}
.blog-reading .article-next-grid a span {
  font-size: 0.78rem !important;
}
.blog-reading .article-monetization {
  margin-top: 1.25rem !important;
  max-width: 70ch;
  background: transparent !important;
  border-style: dashed !important;
}
.blog-reading .article-monetization h2 {
  font-size: 1.05rem !important;
}
.blog-reading .article-monetization-grid {
  grid-template-columns: 1fr !important;
}
.blog-reading .article-ad-slot {
  display: none !important;
}
.blog-reading + .blog-sidebar,
.blog-sidebar {
  display: none !important;
}

/* Desktop: body + sticky “use next” aside — fills width without a hollow right gutter. */
@media (min-width: 1040px) {
  .blog-reading .blog-content {
    display: grid !important;
    grid-template-columns: minmax(0, 70ch) minmax(220px, 260px);
    grid-template-areas:
      "title title"
      "meta meta"
      "body aside"
      "partner partner";
    column-gap: clamp(2rem, 3.5vw, 3.25rem);
    align-items: start;
    padding-top: 0.5rem !important;
  }
  .blog-reading .blog-content > h1 { grid-area: title; max-width: 52rem; }
  .blog-reading .blog-content > .blog-meta { grid-area: meta; max-width: 52rem; }
  .blog-reading .blog-body { grid-area: body; max-width: 70ch; }
  .blog-reading .article-next-steps {
    grid-area: aside;
    margin-top: 0 !important;
    position: sticky;
    top: 1.25rem;
    align-self: start;
    padding: 1rem 1.05rem !important;
  }
  .blog-reading .article-monetization {
    grid-area: partner;
    max-width: none;
    margin-top: 2rem !important;
  }
}

@media (max-width: 720px) {
  .blog-reading { padding: 1.4rem 1rem 3rem !important; }
  .blog-reading .blog-content {
    padding: 0 !important;
    border-radius: 0 !important;
  }
  .blog-reading .blog-body {
    max-width: none;
    font-size: 1rem !important;
    line-height: 1.72 !important;
  }
  .blog-reading .article-monetization { max-width: none; }
}


.article-next-steps,
.article-monetization {
  padding: 1.35rem !important;
}
.article-next-steps h2,
.article-monetization h2 {
  margin-top: 0 !important;
  color: var(--fi-heading) !important;
}
.article-next-grid {
  display: grid;
  gap: .8rem;
  margin-top: 1rem;
}
.article-next-grid a {
  display: block;
  padding: .9rem 1rem;
  line-height: 1.35;
  text-decoration: none;
  font-weight: 800;
}
.article-next-grid a span {
  display: block;
  margin-top: .25rem;
  color: var(--fi-muted) !important;
  font-size: .85rem;
  font-weight: 550;
}
.article-monetization-label {
  margin-bottom: .55rem;
}
.article-monetization-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.article-partner-box {
  padding: 1rem;
}
.article-partner-box p {
  margin: .45rem 0 .6rem;
}
.article-disclosure {
  display: block;
  margin-top: .45rem;
  font-size: .78rem;
  line-height: 1.45;
}


/* Editorial author cards for blog reading pages. */
.article-author-card {
  display: flex !important;
  align-items: center;
  gap: .85rem !important;
  margin: .6rem 0 2rem !important;
  padding: 0 0 1.25rem !important;
  border-bottom: 1px solid var(--fi-line) !important;
  color: var(--fi-muted) !important;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 8px 20px rgba(46, 107, 153, .16);
  flex: 0 0 auto;
  background: #fff;
}
.author-copy {
  display: grid;
  gap: .18rem;
  min-width: 0;
}
.author-line {
  color: var(--fi-heading) !important;
  font-size: .96rem !important;
  font-weight: 650;
  line-height: 1.35;
}
.author-line strong { font-weight: 850; }
.author-line em {
  color: var(--fi-muted);
  font-style: normal;
  font-weight: 600;
  margin-left: .45rem;
}
.article-date-line {
  color: var(--fi-muted) !important;
  font-size: .82rem !important;
  line-height: 1.45;
}
@media (max-width: 520px) {
  .article-author-card { align-items: flex-start; gap: .75rem !important; }
  .author-avatar { width: 42px; height: 42px; }
  .author-line em { display: block; margin-left: 0; margin-top: .05rem; }
}


/* Minimal blue refresh: cleaner documentation blocks, brighter accent, fewer filled labels. */
:root {
  --fi-bg: #f8fcff;
  --fi-sky: #edf8ff;
  --fi-sky-strong: #dff3ff;
  --fi-line: #d6ebfb;
  --fi-line-strong: #abd8f7;
  --fi-blue: #0b7ff3;
  --fi-blue-dark: #075fb6;
  --fi-blue-soft: #f1f9ff;
  --fi-cyan: #22c7f2;
  --fi-shadow: 0 18px 48px rgba(11, 127, 243, .11);
  --fi-shadow-soft: 0 8px 24px rgba(11, 127, 243, .075);
}
body {
  background:
    radial-gradient(circle at 12% 4%, rgba(34, 199, 242, .16), transparent 28rem),
    radial-gradient(circle at 88% 0%, rgba(11, 127, 243, .12), transparent 30rem),
    linear-gradient(180deg, #ffffff 0, #f8fcff 24rem, #f6fbff 100%) !important;
}
body::before {
  background-image:
    radial-gradient(circle at 18% 18%, rgba(255, 209, 102, .20) 0 3px, transparent 4px),
    radial-gradient(circle at 76% 22%, rgba(34, 199, 242, .18) 0 4px, transparent 5px),
    radial-gradient(circle at 84% 72%, rgba(11, 127, 243, .08) 0 5px, transparent 6px);
}
.logo-icon,
.journey-steps span {
  background: linear-gradient(135deg, #0b7ff3, #22c7f2) !important;
  box-shadow: 0 10px 22px rgba(11, 127, 243, .18) !important;
}
.btn-magic-action,
.btn-magic,
.btn-massive,
.btn-primary,
.btn-cta-action,
.btn-generate,
.journey-note a {
  background: linear-gradient(135deg, #0b7ff3, #14a7f5) !important;
  border-color: rgba(11, 127, 243, .24) !important;
  box-shadow: 0 12px 28px rgba(11, 127, 243, .18) !important;
}
.btn-magic-action:hover,
.btn-magic:hover,
.btn-massive:hover,
.btn-primary:hover,
.btn-cta-action:hover,
.btn-generate:hover {
  background: linear-gradient(135deg, #168cff, #0770d9) !important;
  box-shadow: 0 16px 34px rgba(11, 127, 243, .21) !important;
}
.btn-toolbar-action:hover,
.tool-btn:hover,
.btn-ghost:hover,
.template-card:hover,
.related-tool:hover,
.article-next-grid a:hover,
.topic-nav a:hover {
  background: #eef8ff !important;
  border-color: #bfe4fb !important;
  color: var(--fi-blue-dark) !important;
}
.preview-label,
.card-label,
.article-monetization-label,
.blog-card-cat,
.badge,
.badge-sponsor,
.sponsor-tag {
  background: #f3faff !important;
  color: var(--fi-blue-dark) !important;
  border-color: #d4ebfb !important;
}
.growth-eyebrow {
  display: inline-block !important;
  width: auto !important;
  max-width: max-content !important;
  padding: 0 !important;
  margin: 0 0 .72rem !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--fi-blue-dark) !important;
  box-shadow: none !important;
  line-height: 1.2 !important;
}
.growth-section {
  gap: 1rem !important;
}
.growth-section .growth-band,
.growth-band {
  border-left: 1px solid var(--fi-line) !important;
  border-color: var(--fi-line) !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: none !important;
}
.growth-section .growth-band:first-child,
.growth-section .growth-band:nth-child(2) {
  border-left: 1px solid var(--fi-line) !important;
  border-style: solid !important;
  background: rgba(255,255,255,.98) !important;
}
.growth-band h2,
.growth-section h2 {
  color: #111827 !important;
  letter-spacing: 0 !important;
}
.growth-band h3,
.growth-section h3 {
  color: #111827 !important;
}
.growth-band p,
.growth-section p {
  color: #5f7083 !important;
}
.growth-point {
  border-top-color: #dbeaf5 !important;
}
.article-next-steps,
.article-monetization,
.partner-box,
.article-partner-box,
.blog-monetization-inner {
  background: #fff !important;
  border-color: var(--fi-line) !important;
}
blockquote {
  background: #f2f9ff !important;
  border-left-color: var(--fi-blue) !important;
}

/* Homepage workbench pass: fewer choices, clearer task order, less SEO weight. */
body.tool-post {
  overflow-x: clip;
}
body.tool-post .hero {
  text-align: left !important;
  justify-items: start !important;
  grid-template-columns: 1fr !important;
  align-items: start;
  padding-top: 1.85rem !important;
  padding-bottom: 0.55rem !important;
  gap: 0.45rem !important;
}
body.tool-post .hero::before {
  left: 1.5rem;
  width: min(calc(100% - 3rem), 760px);
  height: 130px;
  top: 0.85rem;
}
body.tool-post .hero::after {
  content: none;
}
body.tool-post .hero-copy {
  min-width: 0;
}
body.tool-post .hero-flow,
body.tool-post .hero-flow--deferred {
  list-style: none;
  margin: 0;
  padding: .85rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  background: rgba(255,255,255,.94);
  border: 1px solid #d4ebfb;
  border-radius: 18px;
  box-shadow: var(--fi-shadow-soft);
  align-self: stretch;
}
body.tool-post .hero-flow--deferred {
  max-width: 1180px;
  margin: 0 auto 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  width: calc(100% - 2rem);
}
body.tool-post .hero-flow li,
body.tool-post .hero-flow--deferred li {
  min-width: 0;
  border-radius: 12px;
  background: #f6fbff;
  border: 1px solid #dbeaf5;
  padding: .55rem .62rem;
  display: grid;
  gap: .12rem;
}
body.tool-post .hero-flow li span,
body.tool-post .hero-flow--deferred li span {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b7ff3, #22c7f2);
  color: #fff;
  font-size: .72rem;
  font-weight: 850;
  margin-bottom: .15rem;
}
body.tool-post .hero-flow li strong,
body.tool-post .hero-flow--deferred li strong {
  color: var(--fi-heading);
  font-size: .86rem;
  line-height: 1.2;
}
body.tool-post .hero-flow li small,
body.tool-post .hero-flow--deferred li small {
  color: var(--fi-muted);
  font-size: .72rem;
  line-height: 1.35;
  font-weight: 600;
}
body.tool-post .hero h1 {
  max-width: 820px;
  margin-left: 0 !important;
  margin-right: 0 !important;
  font-size: clamp(1.75rem, 3.8vw, 2.65rem) !important;
}
body.tool-post .hero p {
  margin-left: 0 !important;
  max-width: 650px;
  font-size: .9rem !important;
  line-height: 1.48 !important;
}
body.tool-post .workspace {
  align-items: start;
  padding-top: 0 !important;
}
body.tool-post .editor-toolbar,
body.tool-post .formatting-actions,
body.tool-post .editor-stats {
  max-width: 100%;
}
body.tool-post .editor-toolbar {
  gap: .45rem !important;
}
body.tool-post .formatting-actions {
  flex-wrap: wrap !important;
}
body.tool-post #editor {
  min-height: 190px !important;
}
body.tool-post .sponsor-row {
  display: none !important;
}
body.tool-post .workspace-card.is-ready .sponsor-row {
  display: block !important;
  width: 100%;
  max-width: 100%;
  margin-top: 0.35rem;
  text-align: center;
}
.sponsor-row-line {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--fi-muted);
}
.sponsor-row-sep {
  margin-right: 0.2rem;
}
.sponsor-row .badge-sponsor {
  display: inline;
  margin-right: 0.15rem;
  font-size: 0.62rem !important;
  padding: 1px 6px !important;
  vertical-align: baseline;
}
.sponsor-row a {
  font-weight: 600 !important;
  text-decoration: none !important;
  color: #64748b !important;
}
.sponsor-row a:hover {
  text-decoration: underline !important;
  color: var(--fi-blue-dark) !important;
}
.sponsor-row .affiliate-note {
  font-size: inherit !important;
  color: var(--fi-muted) !important;
}
@media (max-width: 640px) {
  body.tool-post .workspace-card.is-ready .workspace-footer {
    gap: 0.6rem;
  }
  body.tool-post .workspace-card.is-ready .sponsor-row {
    margin-top: 0.85rem;
    padding-top: 0.55rem;
    border-top: 1px solid #eef2f6;
    text-align: left;
  }
  .sponsor-row-line {
    font-size: 0.67rem;
    line-height: 1.35;
    color: #94a3b8;
    word-break: break-word;
  }
  .sponsor-row .badge-sponsor {
    background: #f1f5f9 !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
  }
  .sponsor-row a {
    color: #64748b !important;
  }
  .sponsor-row .affiliate-note {
    color: #94a3b8 !important;
  }
}
body.tool-post .home-workflow {
  margin-top: .4rem;
}
body.tool-post .journey-steps li {
  gap: .6rem;
}
body.tool-post .journey-steps li strong {
  display: block;
  color: var(--fi-heading);
  font-size: 1rem;
}
body.tool-post .journey-steps li small {
  display: block;
  color: var(--fi-muted);
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.35;
}
body.tool-post .home-learn-flow {
  padding-top: 0;
}
body.tool-post .home-learn-more {
  margin-top: -1.5rem;
  margin-bottom: 0;
}
body.tool-post .home-learn-more a {
  color: var(--fi-blue-dark);
  font-weight: 600;
  text-decoration: none;
}
body.tool-post .home-learn-more a:hover {
  text-decoration: underline;
}
body.tool-post .home-next-flow {
  padding-top: 2.7rem;
  padding-bottom: 3rem;
}
body.tool-post .flow-card {
  color: inherit;
  text-decoration: none;
  text-align: left !important;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
body.tool-post .flow-card:hover {
  transform: translateY(-3px);
  border-color: #bfe4fb !important;
  box-shadow: var(--fi-shadow-soft) !important;
}
body.tool-post .flow-card .step-icon {
  color: var(--fi-blue-dark);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .08em;
}
body.tool-post .home-seo-note {
  padding-top: 1rem;
}
body.tool-post .home-faq {
  padding-top: 1rem;
}

@media (max-width: 900px) {
  body.tool-post .hero {
    grid-template-columns: 1fr !important;
    text-align: left !important;
    padding-top: 1rem !important;
    padding-bottom: 0.45rem !important;
    gap: 0.35rem !important;
  }
  body.tool-post .hero::before {
    left: 12px;
    width: calc(100% - 24px);
    height: 96px;
  }
  body.tool-post .hero-flow,
  body.tool-post .hero-flow--deferred {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: .62rem;
    gap: .45rem;
  }
  body.tool-post .hero-flow--deferred {
    margin-bottom: .65rem;
    width: auto;
  }
  body.tool-post .hero-flow li small,
  body.tool-post .hero-flow--deferred li small {
    display: none;
  }
  body.tool-post .tool-col {
    order: 1 !important;
  }
  body.tool-post .preview-col {
    order: 2 !important;
    position: static !important;
  }
}

@media (max-width: 560px) {
  .page-header {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: .75rem !important;
    align-items: start !important;
    max-width: 100% !important;
  }
  .header-nav {
    width: 100%;
    max-width: 100%;
    padding-bottom: 4px;
  }
  .nav-link {
    padding: .48rem .64rem !important;
  }
  body.tool-post .hero h1 {
    font-size: 1.68rem !important;
    line-height: 1.08 !important;
  }
  body.tool-post .hero p {
    font-size: .86rem !important;
    line-height: 1.45 !important;
  }
  body.tool-post .hero-flow,
  body.tool-post .hero-flow--deferred {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: .58rem;
  }
  body.tool-post .hero-flow li small,
  body.tool-post .hero-flow--deferred li small {
    display: block;
    font-size: .64rem;
  }
  body.tool-post #editor {
    min-height: 152px !important;
    height: 152px !important;
  }
  body.tool-post .workspace {
    padding-top: 0 !important;
    padding-left: .85rem !important;
    padding-right: .85rem !important;
    max-width: 100% !important;
  }
  body.tool-post .workspace-card,
  body.tool-post .preview-col .card {
    max-width: 100%;
    min-width: 0;
  }
  body.tool-post .btn-magic-action,
  body.tool-post .btn-cta-action {
    font-size: .95rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  body.tool-post .home-next-flow .steps-grid {
    grid-template-columns: 1fr !important;
  }
  body.tool-post .flow-card {
    min-height: 132px;
  }
  body.tool-post .tool-journey {
    padding-left: .85rem !important;
    padding-right: .85rem !important;
  }
}

body.tool-metrics .workspace-tabs {
  width: 100%;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.tool-metrics .workspace-tab {
  white-space: normal;
  line-height: 1.25;
  text-align: center;
  padding: 8px 6px !important;
}
.example-lab,
.tool-journey,
.page-section {
  padding-left: min(1.5rem, 4vw) !important;
  padding-right: min(1.5rem, 4vw) !important;
}
.workspace-footer .btn-magic-action,
.workspace-footer .btn-cta-action {
  max-width: 100%;
}

/* ── Workbench retention shelf ── */
.workspace-shelf {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dbeaf5;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  box-shadow: var(--fi-shadow-soft, 0 1px 3px rgba(0,0,0,.04));
  display: grid;
  gap: 0.75rem;
}
.workspace-shelf.is-active {
  border-color: #b8dfd8;
  background: linear-gradient(180deg, #f8fffe 0%, #ffffff 100%);
}
.shelf-row {
  display: grid;
  gap: 0.55rem;
}
.shelf-row-main {
  grid-template-columns: minmax(0, 1fr);
}
.shelf-draft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.draft-status,
.shelf-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}
.shelf-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.shelf-btn:hover {
  border-color: var(--fi-blue);
  color: var(--fi-blue-dark);
  background: var(--fi-blue-soft);
}
.shelf-btn-primary {
  background: var(--fi-blue);
  border-color: var(--fi-blue);
  color: #fff;
}
.shelf-btn-primary:hover {
  background: var(--fi-blue-dark);
  border-color: var(--fi-blue-dark);
  color: #fff;
}
.shelf-chips {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.shelf-chips::-webkit-scrollbar {
  display: none;
}
.shelf-chip {
  flex: 0 0 auto;
  max-width: min(240px, 78vw);
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 12px;
  padding: 0.45rem 0.65rem;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 0.12rem;
}
.shelf-chip:hover {
  border-color: var(--fi-blue);
  background: var(--fi-blue-soft);
}
.shelf-chip-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shelf-chip-meta {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}
.copy-next-steps {
  border: 1px solid var(--fi-line);
  background: var(--fi-blue-soft);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  display: grid;
  gap: 0.55rem;
}
.copy-next-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fi-blue-dark);
}
.copy-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.template-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
}
.template-fav-btn {
  flex: 0 0 auto;
  font-size: 0.95rem;
  line-height: 1;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
}
.template-fav-btn.is-fav {
  color: #f59e0b;
}
body.tool-post.has-workbench-session .hero-flow,
body.tool-post.has-workbench-session .hero-flow--deferred {
  display: none !important;
}
body.tool-post.has-workbench-session .hero {
  padding-bottom: 0.45rem !important;
}
body.tool-post.has-workbench-session .hero h1 {
  font-size: clamp(1.55rem, 3.6vw, 2.2rem) !important;
}
@media (max-width: 720px) {
  .shelf-draft {
    align-items: flex-start;
    flex-direction: column;
  }
  .copy-next-actions .shelf-btn {
    flex: 1 1 calc(50% - 0.25rem);
    text-align: center;
  }
  .copy-next-actions .shelf-btn-primary {
    flex-basis: 100%;
  }
}

/* ── Core tool mobile order: input first ── */
@media (max-width: 950px) {
  body.tool-format .tool-col,
  body.tool-hook .tool-col,
  body.tool-headline .tool-col,
  body.tool-summary .tool-col,
  body.tool-hashtag .tool-col,
  body.tool-staircase .tool-col,
  body.tool-outreach .tool-col,
  body.tool-metrics .tool-col,
  body.tool-outreach .editor-col {
    order: 1 !important;
  }
  body.tool-format .preview-col,
  body.tool-hook .preview-col,
  body.tool-headline .preview-col,
  body.tool-summary .preview-col,
  body.tool-hashtag .preview-col,
  body.tool-staircase .preview-col,
  body.tool-outreach .preview-col,
  body.tool-metrics .preview-col {
    order: 2 !important;
    position: static !important;
  }
}

@media (min-width: 951px) {
  body.tool-preview .preview-col {
    order: 1;
    position: sticky;
    top: 0.85rem;
    align-self: start;
  }
  body.tool-preview .editor-col {
    order: 2;
  }
  body.tool-preview .preview-col .preview-controls,
  body.tool-preview .preview-col .preview-frame-wrapper {
    width: 100%;
    max-width: none;
  }
  body.tool-preview .preview-frame.device-desktop {
    max-width: min(100%, 660px);
  }
  body.tool-preview .editor-col .card {
    padding: 0.85rem !important;
  }
}

/* ── Copy gate: visible but disabled until ready ── */
.copy-gate-hint {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  line-height: 1.35;
}

.is-empty-preview,
.post-content.is-empty-preview,
#preview-about-body.is-empty-preview,
.li-body.is-empty-preview,
#preview-profile-headline.is-empty-preview,
#preview-feed-headline.is-empty-preview,
#preview-search-headline.is-empty-preview {
  color: #7d8c9b !important;
  font-weight: 400 !important;
}
.workspace-footer .btn-cta-action.is-awaiting-clean,
.workspace-footer .btn-cta-action:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  box-shadow: none !important;
  transform: none !important;
}
.workspace-footer .btn-cta-action.is-awaiting-clean:hover,
.workspace-footer .btn-cta-action:disabled:hover {
  opacity: 0.62;
}

/* ── Accessibility: focus, skip link, contrast ── */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 2000;
  background: #0f172a;
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 2px solid var(--fi-blue);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[contenteditable="true"]:focus-visible,
.workspace-tab:focus-visible,
.tab-btn:focus-visible,
.toggle-btn:focus-visible,
.btn-toolbar-action:focus-visible,
.btn-magic-action:focus-visible,
.btn-cta-action:focus-visible,
.shelf-btn:focus-visible,
.template-card:focus-visible {
  outline: 2px solid var(--fi-blue);
  outline-offset: 2px;
}

.copy-gate-hint {
  color: #475569 !important;
}

.workspace-footer .btn-cta-action:disabled .btn-text,
.workspace-footer .btn-cta-action.is-awaiting-clean .btn-text {
  color: rgba(255, 255, 255, 0.95);
}

.btn-clear {
  min-width: 44px;
  min-height: 44px;
}

.btn-toolbar-action {
  min-height: 36px;
  min-width: 36px;
  justify-content: center;
}

.toast {
  max-width: min(92vw, 420px);
  text-align: center;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}

@media (max-width: 480px) {
  .btn-magic-action,
  .btn-cta-action,
  .btn-copy-msg,
  .btn-toolbar-action,
  .toggle-btn,
  .preview-toggle .tab-btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ── Reduced motion: respect system preference ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0.001ms !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto !important;
  }

  .spinner {
    animation: none !important;
    opacity: 0.65;
  }

  .btn-magic,
  .btn-magic-action,
  .btn-massive,
  .btn-primary,
  .btn-cta-action,
  .btn-generate {
    animation: none !important;
    background-position: 0% 50% !important;
  }

  .btn-magic-action:hover,
  .btn-magic:hover,
  .btn-massive:hover,
  .btn-primary:hover,
  .btn-cta-action:hover,
  .btn-generate:hover,
  .btn-toolbar-action:hover,
  .related-tool:hover,
  .blog-card:hover,
  .template-card:hover,
  .example-card:hover {
    transform: none !important;
  }

  .toast {
    transition: none !important;
    transform: translateX(-50%) !important;
  }

  .toast.show {
    transform: translateX(-50%) !important;
  }

  .example-card:nth-child(2),
  .example-card:nth-child(3) {
    transform: none !important;
  }

  .preview-frame,
  .preview-toggle,
  .workspace-tab,
  .tab-btn,
  .toggle-btn {
    transition: none !important;
  }
}


/* Experimental / coming-soon tool pages (carousel, banner). */
.experimental-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  box-sizing: border-box;
}
.experimental-coming-soon {
  padding-top: 0 !important;
}
.experimental-hero-badge {
  margin: 0 0 0.75rem;
}
.experimental-lead {
  font-size: 1.05rem !important;
  font-weight: 650;
  color: var(--fi-heading) !important;
}
.experimental-notice {
  text-align: left;
  margin-bottom: 1.5rem;
}
.experimental-notice p {
  margin: 0 0 0.75rem;
  color: var(--fi-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}
.experimental-notice p:last-child {
  margin-bottom: 0;
}
.experimental-notice-lead {
  font-weight: 700;
  color: var(--fi-heading) !important;
}
.experimental-alt-heading {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fi-heading);
  text-align: left;
}
.experimental-alt-grid {
  margin-top: 0.85rem;
}
.experimental-alt-grid a {
  text-decoration: none !important;
}
.seo-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem 1rem;
  text-align: left;
}
.seo-article h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  color: var(--fi-heading);
}
.seo-article p {
  margin: 0;
  color: var(--fi-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}
.experimental-preview-shell {
  position: relative;
  margin-top: 1.5rem;
  padding: 0 !important;
  overflow: hidden;
  text-align: left;
}
.experimental-preview-overlay {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.experimental-preview-frame {
  position: relative;
  background: #fff;
  border-bottom: 1px solid var(--fi-line);
}
.experimental-banner-band {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, #dbeafe, #e2e8f0 55%, #cbd5e1);
  color: #475569;
  font-size: 0.82rem;
  font-weight: 650;
}
.experimental-avatar-chip {
  position: absolute;
  left: 1rem;
  bottom: -2.25rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  border: 4px solid #fff;
  background: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}
.experimental-profile-stub {
  padding: 0 1rem 1rem;
}
.experimental-profile-line {
  height: 0.65rem;
  border-radius: 999px;
  background: #e2e8f0;
  margin-bottom: 0.55rem;
}
.experimental-profile-line--name {
  width: 38%;
  max-width: 9rem;
  background: #cbd5e1;
}
.experimental-profile-line--headline {
  width: 72%;
  max-width: 16rem;
}
.experimental-profile-line--meta {
  width: 48%;
  max-width: 10rem;
  margin-bottom: 0;
}
.experimental-preview-caption {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--fi-muted);
}
@media (max-width: 480px) {
  .experimental-page {
    padding-inline: 0.85rem;
  }
  .experimental-banner-band {
    min-height: 96px;
    font-size: 0.76rem;
  }
}
