/* OneBuffer Studio — SEO How-To & FAQ Guides Stylesheet (PC, iPad, Phone) */
:root {
  --bg: #F6F5F1;
  --paper: #FFFFFF;
  --ink: #121212;
  --ink-soft: #3F3D39;
  --muted: #6E6A63;
  --border: rgba(18, 18, 18, 0.1);
  --accent: #10B981;
  --accent-dark: #065F46;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* Sticky Top Navigation */
.guide-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 245, 241, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.guide-nav-inner {
  max-width: 960px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.guide-brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; font-weight: 800; font-size: 0.95rem; letter-spacing: -0.02em;
}
.guide-brand-dot { width: 10px; height: 10px; border-radius: 50%; background: #FF7A1A; }
.guide-nav-links { display: flex; align-items: center; gap: 16px; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }
.guide-nav-links a { text-decoration: none; }
.guide-nav-links a:hover { color: var(--ink); }

/* Main Article Container */
.guide-wrap { max-width: 820px; margin: 0 auto; padding: 32px 20px 76px; }
.hub-wrap { max-width: 1020px; margin: 0 auto; padding: 36px 20px 76px; }

.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-bottom: 18px;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.guide-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 5px 11px; border-radius: 999px; background: rgba(18, 18, 18, 0.06); color: var(--ink-soft);
  margin-bottom: 14px;
}
h1.guide-title {
  font-size: clamp(1.75rem, 3.8vw, 2.55rem); font-weight: 800; line-height: 1.16;
  letter-spacing: -0.03em; margin-bottom: 14px; color: var(--ink);
}
.guide-lead { font-size: 1.06rem; color: var(--ink-soft); margin-bottom: 18px; max-width: 68ch; }
.guide-meta {
  display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--mono); font-size: 11.5px;
  color: var(--muted); padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid var(--border);
}

/* App Store Conversion CTA Card (Top & Bottom of Every Guide) */
.app-cta-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: #11151C; color: #F8FAFC; border-radius: 20px; padding: 20px 22px;
  margin: 24px 0 30px; box-shadow: 0 14px 34px rgba(17, 21, 28, 0.14);
}
.app-cta-left { display: flex; align-items: center; gap: 15px; min-width: 0; }
.app-cta-icon { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.12); }
.app-cta-name { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 3px; }
.app-cta-desc { font-size: 0.86rem; color: #CBD5E1; line-height: 1.45; }
.app-store-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: #FFFFFF; color: #0B0F14; text-decoration: none;
  padding: 12px 18px; border-radius: 13px; font-weight: 800; font-size: 0.9rem;
  white-space: nowrap; flex-shrink: 0; transition: transform .15s ease, box-shadow .15s ease;
}
.app-store-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,255,255,0.2); }
.app-store-btn small { display: block; font-size: 9.5px; font-weight: 600; opacity: 0.72; line-height: 1; margin-bottom: 2px; }
.app-store-btn strong { display: block; font-size: 0.92rem; line-height: 1.05; }

/* Article Body & How-To Steps */
.guide-section { margin-bottom: 34px; }
.guide-section h2 {
  font-size: clamp(1.28rem, 2.5vw, 1.6rem); font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 14px; color: var(--ink);
}
.guide-section p { color: var(--ink-soft); margin-bottom: 14px; }
.step-cards { display: flex; flex-direction: column; gap: 14px; }
.step-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 20px; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start;
}
.step-num {
  width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #FFFFFF;
  font-family: var(--mono); font-weight: 800; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
}
.step-card h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.step-card p { margin-bottom: 0; font-size: 0.94rem; color: var(--ink-soft); }
.step-card code {
  font-family: var(--mono); font-size: 0.84em; background: rgba(18, 18, 18, 0.06);
  padding: 2px 6px; border-radius: 6px; color: #0F172A;
}

.callout-box {
  background: #FFFFFF; border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 14px; padding: 15px 18px; margin: 20px 0; font-size: 0.92rem; color: var(--ink-soft);
}

/* Comparison Table (Alternative / vs Pages) */
.cmp-table-wrap {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  background: var(--paper); border: 1px solid var(--border); border-radius: 16px; margin: 16px 0 24px;
}
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 520px; }
.cmp-table th {
  text-align: left; padding: 13px 15px; font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  background: rgba(18, 18, 18, 0.03); border-bottom: 1px solid var(--border);
}
.cmp-table th.hi { color: var(--accent-dark); background: rgba(16, 185, 129, 0.09); }
.cmp-table td { padding: 12px 15px; border-bottom: 1px solid rgba(18, 18, 18, 0.06); color: var(--ink-soft); vertical-align: top; }
.cmp-table td:first-child { font-weight: 700; color: var(--ink); }
.cmp-table td.hi { background: rgba(16, 185, 129, 0.04); font-weight: 600; color: var(--ink); }
.cmp-table tr:last-child td { border-bottom: none; }

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--paper); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 18px;
  font-weight: 700; font-size: 0.98rem; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--mono); font-size: 1.15rem; color: var(--muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; color: var(--ink); }
.faq-answer { padding: 0 18px 16px; font-size: 0.93rem; color: var(--ink-soft); border-top: 1px solid rgba(18,18,18,0.05); padding-top: 12px; }

/* Related Guides Grid & Hub Cards */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 18px; }
.guide-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  background: var(--paper); border: 1px solid var(--border); border-radius: 18px;
  padding: 20px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.guide-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18,18,18,0.07); }
.guide-card-head { display: flex; align-items: center; gap: 12px; }
.guide-card-icon { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex-shrink: 0; }
.guide-card-tag { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.guide-card h3 { font-size: 1.05rem; font-weight: 800; line-height: 1.3; color: var(--ink); margin-top: 8px; }
.guide-card p { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }
.guide-card-foot { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--ink); }

/* Rich Editorial SEO Components (Screenshots, Code Blocks, Verdicts, ToC) */
.guide-toc {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px;
}
.guide-toc a {
  font-family: var(--mono); font-size: 11px; font-weight: 600; text-decoration: none;
  padding: 6px 12px; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--border); color: var(--ink-soft); transition: border-color .15s ease, color .15s ease;
}
.guide-toc a:hover { border-color: var(--ink); color: var(--ink); }

.guide-shot-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 20px 0 26px;
}
.guide-shot-row.cols-2 { grid-template-columns: repeat(2, 1fr); }
.guide-shot-fig {
  background: var(--paper); border: 1px solid var(--border); border-radius: 16px;
  padding: 10px; text-align: center;
}
.guide-shot-fig img {
  width: 100%; height: auto; border-radius: 11px; display: block;
  border: 1px solid rgba(18, 18, 18, 0.06);
}
.guide-shot-fig figcaption {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  margin-top: 8px; line-height: 1.4;
}

.guide-code {
  background: #0F141A; color: #E2E8F0; border-radius: 14px; padding: 16px 18px;
  font-family: var(--mono); font-size: 0.83rem; line-height: 1.65;
  overflow-x: auto; margin: 16px 0 22px; border: 1px solid rgba(255,255,255,0.08);
}
.guide-code .c-dim { color: #64748B; }
.guide-code .c-hi { color: #34D399; font-weight: 600; }

.guide-verdict-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 24px;
}
.guide-verdict-card {
  background: var(--paper); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px;
}
.guide-verdict-card.is-yes { border-top: 3px solid var(--accent); }
.guide-verdict-card.is-alt { border-top: 3px solid #94A3B8; }
.guide-verdict-card h3 {
  font-size: 0.96rem; font-weight: 800; margin-bottom: 10px; color: var(--ink);
}
.guide-verdict-card ul, .guide-checklist {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  font-size: 0.9rem; color: var(--ink-soft);
}
.guide-verdict-card li, .guide-checklist li { position: relative; padding-left: 18px; }
.guide-verdict-card.is-yes li::before, .guide-checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent-dark); font-weight: 800;
}
.guide-verdict-card.is-alt li::before {
  content: '→'; position: absolute; left: 0; top: 0; color: var(--muted); font-weight: 700;
}
.guide-section h3 { font-size: 1.06rem; font-weight: 800; margin: 18px 0 8px; color: var(--ink); }
.guide-section ul.guide-checklist { margin: 12px 0 18px; }

/* Footer */
.guide-footer {
  border-top: 1px solid var(--border); padding: 28px 20px 44px; text-align: center;
  font-size: 0.85rem; color: var(--muted);
}
.guide-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 10px; }
.guide-footer-links a { text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.guide-footer-links a:hover { text-decoration: underline; }

/* Responsive: iPad & Phone */
@media (max-width: 768px) {
  .guide-wrap, .hub-wrap { padding: 24px 16px 60px; }
  .app-cta-card { flex-direction: column; align-items: stretch; padding: 18px; gap: 14px; }
  .app-store-btn { width: 100%; }
  .step-card { grid-template-columns: 30px 1fr; padding: 15px; gap: 12px; }
  .step-num { width: 28px; height: 28px; font-size: 0.82rem; }
  .guide-shot-row, .guide-shot-row.cols-2, .guide-verdict-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .guide-nav-inner { padding: 11px 14px; }
  .guide-nav-links { gap: 11px; font-size: 0.8rem; }
  .guides-grid { grid-template-columns: 1fr; }
}
