/* ══════════════════════════════════════════════════════════════
   ScrollCue — global.css
   Light theme (cream/black/system sans-serif). Replaces the old
   dark (#050508, DM Serif/DM Sans/DM Mono) stylesheet.

   Built directly against template.js's real output — nav(), footer(),
   hero(), faqHtml(), aiSummaryBlock(), tocHtml(), howToHtml(),
   relatedNav(), breadcrumbHtml(), articleByline() — not a guess.
   If you add/rename a class in template.js, update here too.
══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f7f5f2;
  --cream:     #f0eeeb;
  --ink:       #111111;
  --black:     #000000;
  --muted:     #5a5650;
  --muted-2:   #888888;
  --border:    #e5e3df;
  --border-2:  #e8e6e2;
  --gold:      #9a7b2f;
  --gold-dot:  #d4af37;
}

/* ─── Reset & base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.4px;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
em { font-style: italic; }
strong { font-weight: 700; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #000; color: #fff; padding: 10px 16px; font-size: 14px; font-weight: 600; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { width: 88%; max-width: 1200px; margin: 0 auto; }
.container--narrow { width: 88%; max-width: 760px; margin: 0 auto; }

.main { display: block; }

/* ══════════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-2);
}
.nav-inner {
  width: 88%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.4px; white-space: nowrap;
}
.logo span { color: var(--gold); }
.logo--footer { color: #fff; }
.logo--footer span { color: var(--gold-dot); }

.nav-links { display: flex; align-items: center; }
.nav-links ul { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: inline-block; font-size: 14px; font-weight: 500; color: #444;
  padding: 7px 12px; border-radius: 6px; transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: var(--cream); color: var(--ink); }
.nav-links a.nav-cta {
  background: #000; color: #fff; font-weight: 600; padding: 8px 16px; border-radius: 7px; margin-left: 4px;
}
.nav-links a.nav-cta:hover { opacity: 0.82; background: #000; }

.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #333; margin: 5px 0; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }

@media (max-width: 760px) {
  .nav-links { position: absolute; top: 60px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border-2); display: none; padding: 8px 5% 16px; }
  .nav-links ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links a { padding: 11px 12px; }
  .nav-links a.nav-cta { margin: 8px 0 0; text-align: center; }
  .nav.open .nav-links { display: block; }
  .nav-hamburger { display: flex; flex-direction: column; }
  .nav.open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-hamburger span:nth-child(2) { opacity: 0; }
  .nav.open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Breadcrumb ── */
.breadcrumb-nav { padding: 18px 0 0; }
.breadcrumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-2); }
.breadcrumb-list li { display: flex; align-items: center; gap: 6px; }
.breadcrumb-list li:not(:last-child)::after { content: '/'; color: #ccc; margin-left: 6px; }
.breadcrumb-list a { color: var(--muted-2); }
.breadcrumb-list a:hover { color: var(--ink); }
.breadcrumb-list li:last-child a { color: var(--muted); font-weight: 500; }

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--cream); border-radius: 30px; padding: 6px 14px 6px 10px;
  font-size: 12px; font-weight: 600; color: #555; letter-spacing: 0.03em;
}
.tag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); flex-shrink: 0; }

.ttl { font-size: 44px; line-height: 1.08; letter-spacing: -1px; color: var(--black); margin: 16px 0 18px; }
.ttl-accent { color: var(--muted); font-style: normal; }

.btn {
  display: inline-block; font-size: 15px; font-weight: 600; padding: 12px 22px;
  border-radius: 8px; border: none; cursor: pointer; text-align: center;
  transition: opacity 0.15s, border-color 0.15s, background 0.15s;
}
.btn-primary { background: #000; color: #f5f3f0; }
.btn-primary:hover { opacity: 0.82; }
.btn-ghost { background: transparent; color: #333; border: 1.5px solid #d5d2cd; padding: 10.5px 22px; }
.btn-ghost:hover { border-color: #999; background: var(--bg-alt); }
.btn-white { background: #fff; color: #000; font-weight: 700; }
.btn-white:hover { opacity: 0.88; }
.btn-outline-white { background: transparent; color: #e8e6e2; border: 1.5px solid #333; padding: 10.5px 22px; }
.btn-outline-white:hover { border-color: #666; }
.btn-full { display: block; width: 100%; }
.btn--sm { font-size: 13px; padding: 9px 16px; }

/* Home hero */
.hero { padding: 56px 0 72px; }
.hero-inner { width: 88%; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 72px; }
.hero-text-col { flex: 1; }
.hero-text-col .hero-sub { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 480px; margin-bottom: 0; }
.hero-btns { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 6px; }
.hero-stat-bar { display: flex; align-items: center; gap: 18px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat strong { font-size: 16px; font-weight: 700; color: var(--ink); }
.hero-stat span { font-size: 12px; color: var(--muted-2); }
.hero-stat-divider { width: 1px; height: 28px; background: var(--border); }
.hero-img-col { flex: 0 0 46%; }
.hero-img-col img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 64px rgba(0,0,0,0.13), 0 0 0 1px rgba(0,0,0,0.06); }

/* Standard page hero (centered, single column) */
.section-hero { padding: 48px 0 56px; text-align: left; width: 88%; max-width: 1200px; margin: 0 auto; box-sizing: border-box; }
.article-byline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.article-byline .lbl { font-size: 12px; font-weight: 600; color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.05em; }
.article-byline .lbl:not(:last-child)::after { content: '·'; margin-left: 10px; color: #ccc; }
.meta-link { color: var(--ink); font-weight: 700; }
.badge-wrap { margin-bottom: 16px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 30px; background: var(--cream); color: #555; }
.badge--gold { background: #fbf3df; color: var(--gold); }
.section-hero .ttl { font-size: 40px; margin: 8px 0 16px; max-width: 760px; }
.hero-p { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 640px; margin-bottom: 8px; }
.section-hero .hero-sub { font-size: 15px; line-height: 1.7; color: var(--muted-2); max-width: 640px; margin-bottom: 8px; }
.btn-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 22px 0 10px; }
.secure-note { font-size: 13px; color: var(--muted-2); margin-bottom: 28px; }
.section-hero figure { margin: 0; }
.hero-figure-img { width: 100%; border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05); }

@media (max-width: 1024px) {
  .hero-inner { flex-direction: column-reverse; gap: 40px; }
  .hero-img-col { flex: 0 0 auto; width: 100%; }
  .ttl { font-size: 36px; }
}
@media (max-width: 680px) {
  .ttl { font-size: 28px; letter-spacing: -0.6px; }
  .section-hero .ttl { font-size: 28px; }
  .hero-stat-bar { flex-wrap: wrap; gap: 14px 18px; }
}

/* ══════════════════════════════════════════════════════════════
   AI SUMMARY
══════════════════════════════════════════════════════════════ */
.ai-summary-section {
  background: var(--cream);
  border-left: 10px solid var(--gold);
  padding: 24px 30px;
  margin: 0 auto 32px;
  width: 88%; max-width: 1200px; box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.section--sm { padding-top: 0; padding-bottom: 0; }
.ai-summary-inner { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.ai-summary-label {
  display: inline-flex; align-items: center; gap: 6px;
  flex-shrink: 0; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); background: #fff; border: 1px solid var(--border-2); border-radius: 6px; padding: 6px 11px; margin-top: 2px;
}
.ai-summary-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-dot); flex-shrink: 0; }
.ai-summary, .ai-summary-text, .direct-answer {
  font-size: 15.5px; font-weight: 500; line-height: 1.75; letter-spacing: -0.1px;
  color: var(--ink); flex: 1; min-width: 200px;
}

/* ── Eyebrow ── */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 14px;
}
.section-eyebrow::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #bbb; flex-shrink: 0; }
.section-eyebrow--gold { color: var(--gold); }
.section-eyebrow--gold::before { background: var(--gold-dot); }

/* ══════════════════════════════════════════════════════════════
   SECTIONS — constrained width matching logo-bar-inner
══════════════════════════════════════════════════════════════ */
.section {
  padding: 56px 0;
  width: 88%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* Full-bleed color band — alt background sections break out to full width */
.section-alt {
  width: 100%;
  max-width: 100%;
  background: var(--bg-alt);
  padding-left: calc((100% - min(88vw, 1200px)) / 2);
  padding-right: calc((100% - min(88vw, 1200px)) / 2);
}

.section-header { margin-bottom: 40px; }
.section-h2 { font-size: 32px; line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 12px; }
.section-h2--md { font-size: 28px; margin-top: 2.5rem; }
.section-h2--lg { font-size: 30px; margin-top: 3rem; }
.section-h2--sm { font-size: 22px; }
.section-sub { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 560px; margin-bottom: 2rem; }
.section-lead { font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 640px; margin-bottom: 1rem; }
.section-lead--narrow { max-width: 480px; }

/* ── Panel ── */
.panel { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.panel--highlight { border-color: #000; box-shadow: 0 0 0 1px #000; }

/* ── Generic lists / rows ── */
.feat-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feat-list { display: flex; flex-direction: column; gap: 10px; }
.feat-list li { font-size: 14px; line-height: 1.65; color: var(--muted); padding-left: 18px; position: relative; }
.feat-list li::before { content: '—'; position: absolute; left: 0; color: #bbb; }

.tip-row { padding: 20px 0; border-bottom: 1px solid #ebebeb; }
.tip-row h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.tip-row p { font-size: 14px; line-height: 1.65; color: var(--muted); }

.row-border { padding: 18px 0; border-bottom: 1px solid #ebebeb; }
.row-border h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.row-border p { font-size: 14px; line-height: 1.65; color: var(--muted); }

.choose-row { padding: 16px 0; border-bottom: 1px solid #ebebeb; }
.choose-row h3 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.choose-row p { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ── How-to / TOC ── */
.howto-list { display: flex; flex-direction: column; gap: 22px; }
.howto-item { display: flex; gap: 16px; align-items: flex-start; }
.howto-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #111; color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.feature-step-name { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.howto-text { font-size: 14px; line-height: 1.65; color: var(--muted); }

.toc-panel { margin-bottom: 32px; }
.toc-panel .lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; display: block; }
.toc-panel ol { display: flex; flex-direction: column; gap: 6px; }
.toc-panel a { font-size: 14px; font-weight: 600; color: var(--ink); }
.toc-panel a:hover { color: var(--gold); }

.step-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid #ebebeb; }
.step-num {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: #111; color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.step-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.step-text { font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ── Comparison tables ── */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.cmp-table th, .cmp-table td { padding: 12px 16px; text-align: center; border-bottom: 1px solid #ebebeb; }
.cmp-table thead th { background: var(--bg-alt); font-weight: 700; color: var(--ink); font-size: 12px; }
.cmp-feat { text-align: left !important; font-weight: 600; color: var(--ink); background: #fafafa; }
.cmp-us { font-weight: 700; color: #000; background: var(--bg-alt); }
.cmp-them { color: var(--muted); }

/* ── Nav-card list ── */
.nav-card-list { display: flex; flex-direction: column; gap: 10px; }
.nav-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; transition: box-shadow 0.2s, transform 0.2s; }
.nav-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.07); transform: translateY(-1px); }
.nav-card-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.nav-card-desc { font-size: 13px; color: var(--muted); margin-top: 2px; }
.nav-card-arrow { color: #aaa; flex-shrink: 0; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-amount { font-size: 40px; font-weight: 700; letter-spacing: -1px; color: #000; }
.price-per { font-size: 16px; font-weight: 500; color: #888; }
.price-note { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── Stat / data rows ── */
.stat-row-3, .data-row-3 { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid #ebebeb; align-items: center; }
.col-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.col-value { font-size: 14px; color: var(--muted); }
.col-meta, .col-note { font-size: 13px; color: var(--muted-2); }

.usecase-row { display: grid; grid-template-columns: 1.4fr 1fr 2fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid #ebebeb; align-items: baseline; }
.usecase-label { font-size: 14px; font-weight: 600; color: var(--ink); }
.usecase-tool { font-size: 14px; font-weight: 700; color: #000; }
.usecase-note { font-size: 13px; color: var(--muted); }

/* ── App shell ── */
.app-frame-wrap { position: fixed; top: 60px; left: 0; right: 0; bottom: 0; }
.app-frame-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ══════════════════════════════════════════════════════════════
   Homepage components
══════════════════════════════════════════════════════════════ */
.logo-bar { background: var(--bg-alt); border-top: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2); padding: 26px 0; }
.logo-bar-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; width: 88%; max-width: 1200px; margin: 0 auto; }
.logo-bar-label { font-size: 11px; font-weight: 700; color: #aaa; letter-spacing: 0.09em; text-transform: uppercase; white-space: nowrap; margin-right: 8px; }
.logo-pill { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e0deda; border-radius: 30px; padding: 7px 16px; font-size: 13px; font-weight: 600; color: #333; }
.logo-pill svg { width: 16px; height: 16px; flex-shrink: 0; }

.detail-section { padding: 64px 0 24px; }
.detail-rows { display: flex; flex-direction: column; gap: 24px; width: 88%; max-width: 1200px; margin: 0 auto; box-sizing: border-box; }
.detail-row { display: flex; align-items: center; gap: 60px; background: var(--cream); border-radius: 14px; padding: 56px 64px 0; overflow: hidden; }
.detail-row.flip { flex-direction: row-reverse; background: none; padding: 0; }
.detail-copy { flex: 1; display: flex; flex-direction: column; gap: 14px; padding-bottom: 56px; }
.detail-row.flip .detail-copy { padding-bottom: 0; }
.detail-copy h2 { font-size: 32px; line-height: 1.15; letter-spacing: -0.5px; }
.detail-copy p { font-size: 15px; line-height: 1.75; color: var(--muted); }
.detail-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.detail-link svg { width: 15px; height: 15px; transition: transform 0.15s; }
.detail-link:hover svg { transform: translateX(3px); }
.detail-visual { flex: 1; }
.detail-visual img { width: 100%; border-radius: 10px; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 11px; transition: box-shadow 0.2s, transform 0.2s; }
.feat-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.07); transform: translateY(-2px); }
.feat-card h3 { font-size: 15px; font-weight: 700; color: var(--ink); }
.feat-card p { font-size: 14px; line-height: 1.65; color: var(--muted); flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: #333; margin-top: 4px; }
.card-link svg { width: 13px; height: 13px; transition: transform 0.15s; }
.card-link:hover svg { transform: translateX(3px); }

.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.uc-card { background: var(--cream); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 11px; transition: box-shadow 0.2s, transform 0.2s; }
.uc-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.07); transform: translateY(-2px); }
.uc-card h3 { font-size: 15px; font-weight: 700; color: var(--ink); }
.uc-card p { font-size: 14px; line-height: 1.65; color: var(--muted); flex: 1; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.blog-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.08); transform: translateY(-2px); }
.blog-thumb { height: 190px; background: var(--cream); overflow: hidden; flex-shrink: 0; }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
.blog-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 7px; }
.blog-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #666; background: var(--cream); border-radius: 4px; padding: 3px 8px; width: fit-content; }
.blog-card h3 { font-size: 15px; font-weight: 700; line-height: 1.45; color: var(--ink); }
.blog-card p { font-size: 13px; line-height: 1.65; color: var(--muted); flex: 1; }
.blog-meta { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #ebebeb; }
.blog-meta span { font-size: 12px; color: #aaa; }
.view-all { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 28px; }
.view-all svg { width: 14px; height: 14px; transition: transform 0.15s; }
.view-all:hover svg { transform: translateX(3px); }

/* ── /blog index list ── */
.blog-list { display: flex; flex-direction: column; gap: 0; width: 100%; max-width: 1200px; margin: 0 auto; box-sizing: border-box; }
.blog-list-item { display: block; padding: 22px 0; border-bottom: 1px solid #ebebeb; transition: opacity 0.15s; }
.blog-list-item:hover { opacity: 0.7; }
.blog-card-meta { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.post-meta { font-size: 12px; color: var(--muted-2); }
.blog-card-title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.blog-card-desc { font-size: 14px; line-height: 1.6; color: var(--muted); }

.cta-section { background: #000; padding: 72px 0; border-radius: 16px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 0 48px; }
.cta-text h2 { font-size: 32px; color: #fff; margin-bottom: 10px; letter-spacing: -0.5px; }
.cta-text p { font-size: 15px; line-height: 1.65; color: #9a9a9a; }
.cta-btns { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .detail-row { flex-direction: column; padding: 40px 40px 0; gap: 30px; }
  .detail-row.flip { flex-direction: column; padding: 0; }
  .detail-copy { padding-bottom: 40px; }
  .feat-grid, .uc-grid, .blog-grid, .feat-grid-2, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-inner { flex-direction: column; text-align: center; padding: 0 24px; }
  .cta-btns { justify-content: center; }
  .stat-row-3, .data-row-3, .usecase-row { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 680px) {
  .section-h2 { font-size: 24px; }
  .feat-grid, .uc-grid, .blog-grid, .feat-grid-2, .pricing-grid { grid-template-columns: 1fr; }
  .cta-text h2 { font-size: 24px; }
}

/* ══════════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════════ */
.section-faq {
  padding: 56px 32px;
  background: var(--bg-alt);
  border-radius: 16px;
  margin: 24px auto;
  width: 88%;
  max-width: 1200px;
  box-sizing: border-box;
}
.section-faq .section-h2 { margin-bottom: 24px; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid #dedad6; }
.faq-item:last-child { border-bottom: none; }
.faq-summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--border);
  position: relative; transition: background 0.18s, transform 0.2s; margin-left: 16px;
}
.faq-icon::before, .faq-icon::after {
  content: ''; position: absolute; top: 50%; left: 50%; background: var(--ink);
  transition: transform 0.18s, background 0.18s;
}
.faq-icon::before { width: 10px; height: 1.6px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 1.6px; height: 10px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-icon { background: #111; transform: rotate(45deg); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #fff; }
.faq-answer { padding: 0 0 18px; }
.faq-answer p { font-size: 14px; line-height: 1.75; color: var(--muted); }

/* ── Related nav ── */
.related-nav { padding: 40px 0 0; width: 88%; max-width: 1200px; margin: 0 auto 48px; box-sizing: border-box; border-top: 1px solid var(--border-2); }
.related-nav-inner { display: flex; flex-direction: column; gap: 14px; }
.lbl { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }
.lbl--muted { color: var(--muted-2); }
.related-links { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.related-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: #333;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 16px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, color 0.15s;
}
.related-link::after { content: '→'; font-size: 12px; color: #bbb; transition: transform 0.15s, color 0.15s; }
.related-link:hover { color: var(--gold); border-color: #d8cfa8; box-shadow: 0 4px 16px rgba(0,0,0,0.06); transform: translateY(-1px); }
.related-link:hover::after { color: var(--gold); transform: translateX(2px); }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer { background: #000; border-top: 1px solid #1a1a1a; padding: 56px 0 28px; }
.footer-inner { width: 88%; max-width: 1200px; margin: 0 auto; }
.grid--footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-col h4 { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { font-size: 14px; color: #8a8a8a; transition: color 0.15s; }
.footer-col ul a:hover { color: #ccc; }
.footer-tagline { font-size: 14px; line-height: 1.7; color: #8a8a8a; margin-top: 10px; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid #1a1a1a; padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom span, .footer-bottom a { font-size: 13px; color: #6e6e6e; }
.footer-bottom a:hover { color: #aaa; }

@media (max-width: 1024px) {
  .grid--footer { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .grid--footer { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Access confirmation slip on /success (add to global.css) */
.confirm-slip { margin: 16px 0 0; padding: 0; }
.confirm-slip:empty { display: none; }
.confirm-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0; border-bottom: 1px solid #ebebeb; font-size: 14px;
}
.confirm-row span { color: var(--muted-2); }
.confirm-row strong { color: var(--ink); font-weight: 600; text-align: right; }
.confirm-note {
  font-size: 12.5px; line-height: 1.6; color: var(--muted-2);
  margin-top: 10px;
}


/* ── /success page ─────────────────────────────────────────────────── */

.section--pricing {
  max-width: 560px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.panel--form {
  background: #fff;
  border: 1px solid #ece6d9;
  border-radius: 16px;
  padding: 2.25rem 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.03);
}

/* Header */
.success-panel-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f7ee, #d8f0e2);
  color: #1f9d55;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sc-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sc-pop {
  0%   { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1);   opacity: 1; }
}

.success-sub {
  font-size: 14.5px;
  line-height: 1.6;
  color: #5a5650;
  margin: 0 0 1rem;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* Plan pill */
.plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.pill-starter {
  background: #eef4fb;
  color: #2f5fa0;
}

.pill-pro {
  background: #fbf3df;
  color: #9a7b2f;
}

/* Body / state switching */
.success-body {
  position: relative;
}

#st-name,
#st-code {
  display: none;
}

#st-name {
  display: block;
}

#st-code.active {
  display: block;
  animation: sc-fade-up 0.35s ease;
}

@keyframes sc-fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

#st-name p,
#st-code p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #5a5650;
  margin: 0.6rem 0 0;
}

/* Form */
.success-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #3a3733;
  margin-bottom: 0.45rem;
}

.success-input {
  width: 100%;
  font-size: 15px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #ddd6c5;
  border-radius: 10px;
  background: #fdfcf9;
  color: #26241f;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.success-input:focus {
  outline: none;
  border-color: #c9a94f;
  box-shadow: 0 0 0 3px rgba(201, 169, 79, 0.18);
  background: #fff;
}

.name-err {
  display: none;
  font-size: 12.5px;
  color: #b3432b;
  margin-top: 0.4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 14.5px;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: #26241f;
  color: #fff;
}

.btn-primary:hover {
  background: #3a3733;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-outline {
  background: #fff;
  color: #26241f;
  border: 1px solid #ddd6c5;
  flex: 1;
}

.btn-outline:hover {
  background: #faf8f3;
  border-color: #c9a94f;
}

#generate-btn {
  margin-top: 1.25rem;
}

/* Spinner */
.gen-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sc-spin 0.7s linear infinite;
}

@keyframes sc-spin {
  to { transform: rotate(360deg); }
}

/* Code display */
.code-name {
  color: #9a7b2f;
}

.code-display {
  font-family: 'SF Mono', 'JetBrains Mono', Consolas, monospace;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  word-break: break-all;
  background: #fbf3df;
  border: 1px solid #e6d9a8;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: #6b551f;
  margin-top: 0.4rem;
}

/* Badges */
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.badge-sm {
  font-size: 11.5px;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-blue  { background: #eef4fb; color: #2f5fa0; }
.badge-gold  { background: #fbf3df; color: #9a7b2f; }
.badge-green { background: #e8f7ee; color: #1f9d55; }

/* Confirmation slip */
.confirm-slip {
  margin-top: 1.25rem;
  background: #fafaf8;
  border: 1px dashed #ddd6c5;
  border-radius: 10px;
  padding: 1rem 1.1rem;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 0.3rem 0;
  color: #5a5650;
}

.confirm-row strong {
  color: #26241f;
  font-weight: 600;
}

.confirm-note {
  font-size: 12px;
  line-height: 1.6;
  color: #857f74;
  margin-top: 0.6rem !important;
  padding-top: 0.6rem;
  border-top: 1px solid #ece6d9;
}

/* Divider + actions */
.divider {
  height: 1px;
  background: #ece6d9;
  margin: 1.25rem 0;
}

.code-actions {
  display: flex;
  gap: 0.6rem;
}

/* Help footer */
.success-help {
  text-align: center;
  font-size: 13px;
  color: #857f74;
  margin-top: 1.5rem;
}

.success-help a {
  color: #9a7b2f;
  font-weight: 600;
  text-decoration: none;
}

.success-help a:hover {
  text-decoration: underline;
}

/* Mobile */
@media (max-width: 480px) {
  .panel--form { padding: 1.75rem 1.4rem; }
  .code-actions { flex-direction: column; }
}