/* ============================================
   PSEO PAGE STYLES
   Styles for all pSEO pages (hub, use-case, edit)
   ============================================ */

/* ----------------------------------------
   HEADER - Shared across all pSEO pages
   ---------------------------------------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust-pill {
  font-size: 0.85rem;
  color: var(--text-dimmed);
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}

.lang-btn:hover {
  background: var(--bg-subtle);
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 200;
}

.lang-menu.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.1s;
}

.lang-option:first-child {
  border-radius: 8px 8px 0 0;
}

.lang-option:last-child {
  border-radius: 0 0 8px 8px;
}

.lang-option:hover {
  background: var(--bg-subtle);
}

.lang-option.active {
  background: var(--primary);
  color: #fff;
}

.header-cta {
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.header-cta:hover {
  background: var(--primary-hover);
}

/* ----------------------------------------
   BREADCRUMB
   ---------------------------------------- */
.breadcrumb {
  padding: 16px 24px;
  font-size: 0.85rem;
  color: var(--text-dimmed);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.2s;
}

.breadcrumb a:hover {
  text-decoration: none;
  background: rgba(var(--primary-rgb), 0.06);
  color: var(--primary);
}

.breadcrumb span {
  margin: 0 8px;
  opacity: 0.5;
}

/* ----------------------------------------
   HUB PAGE STYLES
   ---------------------------------------- */
.hub-hero {
  text-align: center;
  padding: 60px 0 40px;
}

.hub-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.hub-hero .subheadline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 24px;
}

.hub-hero .trust-signals {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-dimmed);
  font-size: 0.9rem;
}

.hub-hero .trust-signals span::before {
  content: '\2713 ';
  color: var(--primary);
}

/* Hub Navigation */
.hub-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 16px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.hub-nav a {
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-subtle);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hub-nav a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.hub-nav a.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

/* Tool Sections */
.tool-section {
  margin: 48px 0;
}

.tool-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.tool-card {
  display: block;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tool-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.15);
}

.tool-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.tool-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tool-card .context {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}

.tool-card .prompt-preview {
  font-size: 0.85rem;
  color: var(--primary);
  font-family: 'SF Mono', Consolas, monospace;
  background: var(--bg-subtle);
  padding: 8px 10px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tool-card .time-estimate {
  font-size: 0.8rem;
  color: var(--text-dimmed);
  margin-top: 8px;
}

/* Secondary Tools */
.secondary-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.secondary-tool {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.secondary-tool:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ----------------------------------------
   PROMPTS SECTION
   ---------------------------------------- */
.prompts-section {
  background: var(--bg-subtle);
  padding: 40px;
  border-radius: 12px;
  margin: 48px 0;
}

.prompts-section h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.prompt-item {
  background: var(--bg);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.prompt-item code {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.9rem;
  flex: 1;
}

.prompt-item button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.prompt-item button:hover {
  background: var(--primary-hover);
}

.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.prompt-scenario {
  font-size: 0.85rem;
  color: var(--text-dimmed);
  font-weight: 500;
}

.prompt-code {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 8px;
}

.prompt-tip {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.prompt-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* Try Prompt Button */
.try-prompt-btn {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(124, 58, 237, 0.1);
  transition: background 0.2s;
}

.try-prompt-btn:hover {
  background: rgba(124, 58, 237, 0.2);
  text-decoration: none;
}

.try-prompt-inline {
  background: rgba(124, 58, 237, 0.15);
  color: var(--primary);
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.try-prompt-inline:hover {
  background: rgba(124, 58, 237, 0.25);
}

/* Copy Button */
.copy-btn,
.copy-btn-sm {
  background: var(--primary);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover {
  background: var(--primary-hover);
}

.copy-btn.copied {
  background: #059669;
}

.more-prompts {
  margin-top: 16px;
}

.more-prompts summary {
  cursor: pointer;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ----------------------------------------
   FAQ SECTION
   ---------------------------------------- */
.faq-section {
  margin: 48px 0;
}

.faq-section h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 16px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item summary::before {
  content: '+';
  margin-right: 12px;
  color: var(--primary);
  font-weight: 600;
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.1);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}

.faq-item[open] summary::before {
  transform: rotate(45deg);
  background: rgba(var(--primary-rgb), 0.15);
}

.faq-item p {
  padding: 0 0 16px 24px;
  color: var(--text-muted);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}

.faq summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  transition: color 0.2s;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq p {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ----------------------------------------
   HUB CTA SECTION
   ---------------------------------------- */
.hub-cta {
  text-align: center;
  padding: 60px 0;
  background: var(--bg-subtle);
  margin: 48px -24px 0;
}

.hub-cta h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.hub-cta a {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
}

.hub-cta a:hover {
  background: var(--primary-hover);
}

/* ----------------------------------------
   SEO FOOTER
   ---------------------------------------- */
.seo-footer {
  padding: 40px 24px;
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
}

.seo-footer nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.seo-footer .link-group h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.seo-footer .link-group a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.2s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.seo-footer .link-group a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.footer {
  text-align: center;
  padding: 32px;
  color: var(--text-dimmed);
  font-size: 0.9rem;
}

/* ----------------------------------------
   USE CASE PAGE HERO
   ---------------------------------------- */
.use-case-hero {
  text-align: center;
  padding: 60px 0 40px;
}

.use-case-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.use-case-hero .subheadline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 24px;
}

.use-case-hero .trust-signals {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-dimmed);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.use-case-hero .trust-signals span::before {
  content: '\2713 ';
  color: var(--primary);
}

/* Answer Capsule */
.answer-capsule {
  background: var(--bg-subtle);
  padding: 20px 24px;
  margin: 0 auto 32px;
  border-radius: 4px;
  font-size: 0.95rem;
  border-left: 3px solid var(--primary);
  max-width: 700px;
  text-align: left;
}

/* Hero Preview (Before/After) */
.hero-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 32px auto;
  max-width: 600px;
}

.hero-preview figure {
  flex: 1;
  margin: 0;
}

.hero-preview img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.hero-preview figcaption {
  font-size: 0.8rem;
  color: var(--text-dimmed);
  text-align: center;
  margin-top: 8px;
}

.hero-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* Testimonial */
.testimonial {
  font-style: italic;
  color: var(--text-muted);
  max-width: 600px;
  margin: 32px auto 0;
  font-size: 1rem;
  padding: 0;
  border: none;
}

.testimonial cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-dimmed);
}

/* ----------------------------------------
   AUDIENCE CONTEXT SECTION
   ---------------------------------------- */
.audience-context {
  background: rgba(var(--primary-rgb), 0.08);
  padding: 40px;
  border-radius: 12px;
  margin: 48px 0;
}

.audience-context h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text);
}

.pain-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.pain-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}

.pain-point::before {
  content: '\2717';
  color: var(--error);
  font-weight: 600;
  flex-shrink: 0;
}

.why-this-tool {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.industry-stat {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  font-size: 0.9rem;
}

.industry-stat strong {
  color: var(--primary);
}

/* ----------------------------------------
   TOOLS SECTION (Use Case Pages)
   ---------------------------------------- */
.tools-section {
  margin: 48px 0;
}

.tools-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* ----------------------------------------
   STEPS SECTION
   ---------------------------------------- */
.steps-section {
  margin: 48px 0;
}

.steps-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.flow {
  counter-reset: step;
}

.flow-step {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.flow-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.step-marker {
  width: 36px;
  height: 36px;
  background: var(--text);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flow-step:hover .step-marker {
  transform: scale(1.1);
}

.key-step .step-marker {
  background: var(--primary);
}

.step-body {
  flex: 1;
  padding-top: 6px;
}

.step-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.key-step .step-body h3::after {
  content: ' \2014 Key step';
  color: var(--primary);
  font-weight: 500;
}

.step-body > p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.inline-note {
  padding: 12px 16px;
  background: var(--bg-subtle);
  border-radius: 4px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ----------------------------------------
   QUICK REFERENCE TABLE
   ---------------------------------------- */
.quick-ref {
  margin: 32px 0;
  overflow-x: auto;
}

.quick-ref table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.quick-ref th,
.quick-ref td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.quick-ref th {
  background: var(--bg-subtle);
  font-weight: 600;
  color: var(--text);
}

.quick-ref code {
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 0.85rem;
  color: var(--primary);
}

/* ----------------------------------------
   EXAMPLES SECTION
   ---------------------------------------- */
.examples-section {
  margin: 48px 0;
}

.examples-section h2 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.example {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.example:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.compare {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.compare figure {
  flex: 1;
  margin: 0;
}

.compare img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  border: 1px solid var(--border);
}

.compare figcaption {
  font-size: 0.8rem;
  color: var(--text-dimmed);
  text-align: center;
  margin-top: 8px;
}

.compare-arrow {
  font-size: 1.5rem;
  color: var(--text-dimmed);
}

.example-details h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.example-details > p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.example-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-subtle);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.example-prompt span {
  color: var(--text-dimmed);
}

.example-prompt code {
  flex: 1;
  color: var(--text);
  font-family: monospace;
}

/* ----------------------------------------
   TROUBLESHOOTING SECTION
   ---------------------------------------- */
.troubleshooting-section {
  margin: 48px 0;
}

.troubleshooting-section h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.issues {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.issue {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
}

.issue summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.issue summary::-webkit-details-marker {
  display: none;
}

.issue summary::before {
  content: '+';
  margin-right: 12px;
  color: var(--primary);
  font-weight: 600;
}

.issue[open] summary::before {
  content: '\2212';
}

.issue-content {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.issue-why {
  margin-bottom: 12px;
}

.issue-why strong {
  color: var(--text);
}

.issue-fix {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-subtle);
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.issue-fix code {
  flex: 1;
  color: var(--text);
  font-family: monospace;
}

.issue-tip {
  margin-top: 12px;
  font-size: 0.9rem;
}

/* ----------------------------------------
   RELATED SECTION
   ---------------------------------------- */
.related-section {
  margin: 48px 0;
}

.related-section h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.related-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
}

.related-link:hover {
  border-color: var(--primary);
}

.related-title {
  font-weight: 500;
}

.related-desc {
  color: var(--text-dimmed);
  font-size: 0.9rem;
}

/* ----------------------------------------
   USE CASE CTA SECTION
   ---------------------------------------- */
.use-case-cta {
  text-align: center;
  padding: 60px 0;
  background: var(--bg-subtle);
  margin: 48px -24px 0;
}

.use-case-cta h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.use-case-cta p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.use-case-cta a {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
}

.use-case-cta a:hover {
  background: var(--primary-hover);
}

/* ----------------------------------------
   EDIT PAGE STYLES
   ---------------------------------------- */
.page {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Opening Section */
.opening {
  padding: 40px 0 32px;
}

.opening h1 {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* TL;DR Box */
.tldr {
  background: var(--bg-subtle);
  padding: 20px 24px;
  margin-bottom: 40px;
  border-radius: 4px;
  font-size: 0.95rem;
  border-left: 3px solid var(--primary);
}

.tldr strong {
  color: var(--text);
}

/* Hero Compare (Before/After) */
.hero-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-before,
.hero-after {
  flex: 0 1 220px;
  margin: 0;
}

.hero-before img,
.hero-after img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  border: 1px solid var(--border);
}

.hero-before figcaption,
.hero-after figcaption {
  font-size: 0.8rem;
  color: var(--text-dimmed);
  text-align: center;
  margin-top: 6px;
}

/* Try Tool Section */
.try-tool {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

/* Tool Frame */
.tool-wrapper {
  margin-bottom: 32px;
}

.tool-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 12px 12px 0 0;
}

.tool-label .arrow {
  font-size: 1.2rem;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

.tool-frame {
  background: var(--bg-subtle);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-top: none;
}

.tool-frame iframe {
  width: 100%;
  height: 500px;
  border: none;
  display: block;
}

/* Section Styling */
section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Inline Prompts */
.inline-prompts {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-subtle);
  border-radius: 6px;
}

.prompts-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.prompt-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.prompt-row:last-child {
  border-bottom: none;
}

.prompt-label {
  font-size: 0.85rem;
  color: var(--text-dimmed);
  min-width: 140px;
}

.prompt-code {
  flex: 1;
  background: white;
  padding: 10px 14px;
  border-radius: 4px;
  font-family: 'SF Mono', Monaco, monospace;
  font-size: 0.85rem;
  color: var(--text);
  border: 1px solid var(--border);
}

/* Browse All Link */
.browse-all-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 16px;
  padding: 8px 0;
}

.browse-all-link:hover {
  text-decoration: underline;
}

/* Use Case Callouts */
.use-case-callouts {
  background: linear-gradient(135deg, #EDE9FE 0%, #f5f3ff 100%);
  border-radius: 12px;
  padding: 24px;
  margin: 40px 0;
}

.use-case-callouts h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text);
}

.use-case-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.use-case-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.use-case-link:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
}

.use-case-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.use-case-content {
  flex: 1;
}

.use-case-title {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.use-case-context {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.use-case-arrow {
  color: var(--primary);
  font-size: 1.2rem;
  align-self: center;
}

/* Closing CTA */
.closing {
  text-align: center;
  padding: 80px 0;
}

.closing h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.closing p {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.closing-cta {
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.closing-cta:hover {
  background: var(--primary-hover);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Header Mobile */
@media (max-width: 600px) {
  .header {
    padding: 12px 16px;
  }

  .header-right {
    gap: 10px;
  }

  .trust-pill {
    display: none;
  }

  .header-cta {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  /* Hub Pages */
  .hub-hero h1 {
    font-size: 1.8rem;
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .prompts-section {
    padding: 24px;
    margin: 32px -12px;
    border-radius: 0;
  }

  .hub-nav {
    gap: 8px;
  }

  .hub-nav a {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  /* Use Case Pages */
  .use-case-hero h1 {
    font-size: 1.8rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .audience-context {
    padding: 24px;
    margin: 32px -12px;
    border-radius: 0;
  }

  .flow-step {
    flex-direction: column;
    gap: 16px;
  }

  .compare {
    flex-direction: column;
  }

  .compare-arrow {
    transform: rotate(90deg);
  }

  .hero-preview {
    flex-direction: column;
    gap: 8px;
  }

  .hero-arrow {
    transform: rotate(90deg);
  }

  .prompt-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Edit Pages */
  .page {
    padding: 0 20px 80px;
  }

  .opening h1 {
    font-size: 1.8rem;
  }

  .prompt-row {
    flex-direction: column;
    align-items: stretch;
  }

  .prompt-label {
    min-width: auto;
  }

  /* Hero before/after stays side-by-side on mobile */
  .hero-compare {
    gap: 8px;
  }
}

/* ============================================
   MOBILE UX IMPROVEMENTS
   ============================================ */
@media (max-width: 768px) {
  /* Collapsible sections on mobile */
  .mobile-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
  }

  .mobile-collapsible.expanded {
    max-height: 5000px;
    transition: max-height 0.5s ease-in;
  }

  .section-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    margin-top: 16px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    min-height: 48px;
  }

  .section-toggle:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  .section-toggle .toggle-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
  }

  .section-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
  }

  /* Hide initial steps content on mobile (show 1 step preview) */
  .process .flow-step:nth-child(n + 2) {
    display: none;
  }

  .process .flow.expanded .flow-step:nth-child(n + 2) {
    display: flex;
  }

  /* Side-by-side before/after images on mobile */
  .compare {
    flex-direction: row !important;
    gap: 8px;
  }

  .compare figure {
    flex: 1;
    min-width: 0;
  }

  .compare img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
  }

  .compare-arrow {
    display: none;
  }

  .compare figcaption {
    font-size: 0.7rem;
    margin-top: 4px;
  }

  .example {
    margin-bottom: 24px;
    padding-bottom: 24px;
  }

  .example-details h3 {
    font-size: 0.9rem;
  }

  .example-details > p {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .example-prompt {
    padding: 10px 12px;
    font-size: 0.8rem;
    flex-wrap: wrap;
  }

  .example-prompt code {
    width: 100%;
    order: 2;
    margin-top: 4px;
    font-size: 0.75rem;
  }

  .example-prompt span {
    order: 1;
  }

  .example-prompt .copy-btn-sm {
    order: 3;
    margin-top: 8px;
    min-height: 44px;
    width: 100%;
  }

  /* Increase touch targets */
  .copy-btn,
  .copy-btn-sm {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .issue summary,
  .faq summary {
    padding: 16px 20px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .related-link {
    padding: 16px 20px;
    min-height: 56px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .related-title {
    font-size: 1rem;
  }

  .related-desc {
    font-size: 0.85rem;
  }

  .inline-prompts .prompt-row {
    padding: 16px 0;
  }

  .inline-prompts .prompt-actions {
    width: 100%;
    margin-top: 8px;
    flex-wrap: wrap;
  }

  .inline-prompts .copy-btn,
  .inline-prompts .try-prompt-btn {
    flex: 1;
    text-align: center;
    min-width: 100px;
  }

  /* Limit examples on mobile - hide 2+ by default */
  .proof .example:nth-child(n + 2) {
    display: none;
  }

  .proof.examples-expanded .example:nth-child(n + 2) {
    display: block;
  }

  .more-examples-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    margin-top: 8px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
    min-height: 48px;
  }

  .more-examples-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  .more-examples-btn.hidden {
    display: none;
  }
}

/* Desktop: hide mobile-only elements */
@media (min-width: 769px) {
  .section-toggle {
    display: none;
  }

  .more-examples-btn {
    display: none;
  }
}

