/* Chapter 01 — Hero Theater (Obsidian Midnight + Champagne Gold) */
.chapter--hero {
  background: var(--obsidian); color: var(--light);
  padding: 52px 0 72px;
}
.hero-ambient {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(62% 55% at 76% 32%, rgba(240, 195, 90, 0.14), transparent 68%),
    radial-gradient(50% 60% at 14% 78%, rgba(29, 78, 216, 0.18), transparent 72%);
}
.hero-layout {
  display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center; gap: 40px;
}
.hero-copy, .hero-theater, .hero-panels, .hero-video-panel { min-width: 0; }
.hero-title { font-size: clamp(2.05rem, 3.65vw, 3.28rem); color: var(--light); margin-bottom: 16px; }
.hero-title em { color: var(--gold); display: inline; }
.nowrap-phrase { white-space: nowrap; }
.hero-lead { margin: 0 0 22px; font-size: 1.02rem; color: var(--light-muted); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.hero-promise {
  padding: 12px 16px; border-left: 2px solid var(--gold);
  background: rgba(14, 23, 42, 0.78); font-size: 0.88rem; color: var(--light-muted);
  display: flex; flex-direction: column; gap: 3px;
}
.hero-promise-compact { color: var(--gold); font-weight: 700; }

/* Hero Dual-Video Cinema Deck */
.hero-theater { display: flex; flex-direction: column; gap: 12px; }
.hero-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hero-tab {
  min-height: 44px; padding: 8px 12px; border-radius: 4px; cursor: pointer;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(245, 247, 252, 0.16);
  color: rgba(245, 247, 252, 0.78); font-size: 0.84rem; font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.hero-tab.is-active {
  background: rgba(240, 195, 90, 0.16); border-color: var(--gold); color: var(--gold);
}
.hero-video-panel {
  border: 1px solid rgba(240, 195, 90, 0.28); background: #0B1222;
}
.hero-frame {
  position: relative; aspect-ratio: 16 / 9; background: #050914; overflow: hidden; cursor: pointer;
}
.hero-poster, .hero-inline-video {
  position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; background: #050914;
}
.play-ring-btn {
  position: absolute; top: 44%; left: 50%; transform: translate3d(-50%, -50%, 0); z-index: 4;
  width: 58px; height: 58px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(7, 12, 24, 0.78); border: 1.5px solid var(--gold); color: var(--gold);
  transition: transform 0.22s ease, background-color 0.22s ease, opacity 0.22s ease;
}
.play-ring-btn svg { margin-left: 3px; }
.hero-frame.is-playing .play-ring-btn, .hero-frame.is-playing .hero-poster,
.detail-media.is-playing .play-ring-btn, .detail-media.is-playing img { display: none; }
.hero-video-dock {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px; border-top: 1px solid rgba(240, 195, 90, 0.16);
}
.hero-video-tag { display: block; font-size: 0.74rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-video-name { display: block; font-size: 0.96rem; color: var(--light); margin: 2px 0; }
.hero-video-summary { margin: 0; font-size: 0.82rem; color: var(--light-muted); }
.hero-video-btns { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }

/* Chapter 02 — Problems (Warm Alabaster + Terracotta) */
.chapter--problems { background: var(--alabaster); color: var(--ink); }
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.problem-card {
  background: #FFFFFF; padding: 24px 22px;
  border: 1px solid rgba(17, 22, 34, 0.1); border-top: 3px solid var(--terracotta);
}
.problem-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.problem-num { font-family: var(--font-serif); font-size: 1.65rem; font-weight: 700; color: var(--terracotta); }
.problem-kicker { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.problem-card h3 { font-size: 1.14rem; margin-bottom: 8px; }
.problem-card p { margin: 0; font-size: 0.92rem; color: var(--ink-muted); }
.problem-closing {
  margin: 26px auto 0; max-width: 740px; text-align: center;
  padding: 16px 20px; background: rgba(184, 90, 58, 0.08); border: 1px solid rgba(184, 90, 58, 0.22);
  font-size: 0.98rem; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.closing-mark { color: var(--terracotta); font-size: 1.1rem; }

/* Chapter 03 — 3-Step Model (Crisp Porcelain + Royal Cobalt + Gold) */
.chapter--steps { background: var(--porcelain); color: var(--ink); }
.steps-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 28px; align-items: start; }
.steps-diagram-card {
  margin: 0; background: #FFFFFF; border: 1px solid rgba(29, 78, 216, 0.18); padding: 14px;
}
.steps-diagram-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.steps-lang-tabs { display: inline-flex; gap: 6px; }
.step-lang-tab {
  min-height: 44px; padding: 0 14px; border-radius: 4px; cursor: pointer;
  background: #F1F5F9; border: 1px solid rgba(17, 22, 34, 0.14); color: var(--ink-muted);
  font-size: 0.84rem; font-weight: 600;
}
.step-lang-tab.is-active { background: var(--cobalt); border-color: var(--cobalt); color: #FFFFFF; }
.steps-diagram-frame { background: #F8FAFC; border: 1px solid rgba(29, 78, 216, 0.1); overflow: hidden; }
.steps-diagram-frame img { width: 100%; height: auto; }
.steps-diagram-cap { margin-top: 10px; font-size: 0.86rem; color: var(--ink-muted); }
.steps-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.step-item {
  background: #FFFFFF; border: 1px solid rgba(29, 78, 216, 0.14);
  border-left: 3px solid var(--cobalt); padding: 18px 20px;
}
.step-badge {
  display: inline-block; margin-bottom: 6px; padding: 3px 10px;
  background: rgba(29, 78, 216, 0.1); color: var(--cobalt);
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.step-content h3 { font-size: 1.08rem; margin-bottom: 5px; }
.step-content p { margin: 0; font-size: 0.92rem; color: var(--ink-muted); }

/* Chapter 05 — Desktop & CapCut (Warm Slate + Emerald) */
.chapter--advantage { background: var(--slate-dark); color: var(--light); }
.advantage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.advantage-card {
  background: rgba(255, 255, 255, 0.03); padding: 22px 20px;
  border: 1px solid rgba(203, 213, 225, 0.14); border-top: 2px solid var(--emerald);
}
.advantage-num { display: block; font-family: var(--font-serif); font-size: 1.5rem; color: var(--emerald); margin-bottom: 10px; }
.advantage-card h3 { font-size: 1.04rem; color: var(--light); margin-bottom: 8px; }
.advantage-card p { margin: 0; font-size: 0.88rem; color: var(--light-muted); }

/* Chapter 06 — Pricing (Pure Ivory + High-Contrast Gold Toggle) */
.chapter--pricing { background: var(--ivory); color: var(--ink); }
.billing-bar {
  display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px;
}
.billing-toggle {
  display: inline-flex; gap: 6px; padding: 5px; border-radius: 8px;
  background: #0B1222; border: 1.5px solid rgba(201, 151, 43, 0.55);
}
.billing-btn {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 5px; cursor: pointer;
  background: transparent; color: rgba(245, 247, 252, 0.78); font-weight: 700; font-size: 0.88rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.18s ease;
}
.billing-btn.is-active { background: var(--gold); color: #070C18; }
.billing-savings-badge {
  display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 999px;
  background: rgba(201, 151, 43, 0.14); border: 1px solid rgba(201, 151, 43, 0.42);
  color: #7C5208; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.02em;
  transition: opacity 0.22s ease;
}
.billing-savings-badge.is-muted { opacity: 0.55; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-card {
  background: #FFFFFF; border: 1px solid rgba(17, 22, 34, 0.12); padding: 26px 22px;
  display: flex; flex-direction: column; transition: transform 0.24s ease, border-color 0.24s ease;
}
.price-card--featured { background: #0B1222; color: var(--light); border: 1.5px solid var(--gold-deep); }
.pricing-grid[data-pricing-grid="month"] .price-card[data-price-tier="pro-month"] {
  border: 2px solid var(--cobalt); transform: translate3d(0, -4px, 0);
}
.pricing-grid[data-pricing-grid="year"] .price-card[data-price-tier="pro-year"] {
  transform: translate3d(0, -4px, 0); border-color: var(--gold);
}
.price-badge {
  display: inline-block; align-self: flex-start; margin-bottom: 12px; padding: 4px 10px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(17, 22, 34, 0.06); color: var(--ink);
}
.price-card--featured .price-badge { background: rgba(240, 195, 90, 0.18); color: var(--gold); }
.price-name { font-size: 1.32rem; font-family: var(--font-serif); margin-bottom: 8px; }
.price-figure { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price-figure strong { font-size: 2rem; letter-spacing: -0.02em; }
.price-card--featured .price-figure strong { color: var(--gold); }
.price-figure span { font-size: 0.9rem; opacity: 0.78; }
.price-alt { margin: 0 0 18px; font-size: 0.84rem; color: var(--ink-muted); }
.price-card--featured .price-alt { color: var(--light-muted); }
.price-points { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price-points li { display: flex; gap: 8px; font-size: 0.9rem; }
.check-dot { color: var(--gold-deep); font-weight: 800; flex-shrink: 0; }
.price-card--featured .check-dot { color: var(--gold); }

.enterprise-band {
  margin-top: 24px; background: var(--obsidian); color: var(--light);
  border: 1px solid rgba(240, 195, 90, 0.34); padding: 26px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.enterprise-copy { max-width: 640px; }
.enterprise-copy h3 { font-family: var(--font-serif); font-size: 1.48rem; margin-bottom: 8px; color: var(--light); }
.enterprise-copy p { margin: 0 0 6px; color: var(--light-muted); font-size: 0.92rem; }
.enterprise-note { font-size: 0.84rem; color: var(--gold); }
.enterprise-actions { display: flex; flex-direction: column; gap: 10px; min-width: 230px; }

/* Chapter 07 — Download & Chapter 08 — FAQ + Footer */
.chapter--download { background: var(--midnight); color: var(--light); }
.dl-page-hero { padding-top: 46px; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dl-card {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(96, 165, 250, 0.22);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 10px;
}
.dl-card--primary { border-color: rgba(240, 195, 90, 0.45); }
.dl-card-head { display: flex; align-items: center; gap: 12px; }
.dl-os-icon {
  width: 44px; height: 44px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(240, 195, 90, 0.14); color: var(--gold); flex-shrink: 0;
}
.dl-badge { display: block; font-size: 0.72rem; font-weight: 700; color: var(--ice); text-transform: uppercase; letter-spacing: 0.08em; }
.dl-card h2, .dl-card h3 { font-family: var(--font-serif); font-size: 1.26rem; color: var(--light); }
.dl-meta { margin: 0; font-size: 0.9rem; color: var(--gold); font-weight: 600; }
.dl-req { margin: 0; font-size: 0.86rem; color: var(--light-muted); }
.dl-sha-box {
  background: rgba(0, 0, 0, 0.34); border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px; font-size: 0.78rem; color: var(--light-muted);
}
.dl-sha-box code { display: block; margin-top: 4px; color: var(--gold); word-break: break-all; font-family: ui-monospace, monospace; }
.dl-actions, .dl-guide-actions, .dl-support-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.dl-foot-note { text-align: center; margin: 18px 0 0; font-size: 0.9rem; color: var(--light-muted); }
.dl-foot-note a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gold); font-weight: 700; text-decoration: underline; }
.dl-support-box { margin-top: 28px; padding: 24px; border: 1px solid rgba(245, 247, 252, 0.16); background: rgba(255, 255, 255, 0.03); }
.dl-guide-steps { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 14px; }
.dl-guide-steps li { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(240, 195, 90, 0.22); padding: 18px 20px; }
.dl-guide-steps p { margin: 6px 0 0; color: var(--light-muted); }

.chapter--faq { background: var(--stone); color: var(--ink); }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #FFFFFF; border: 1px solid #DDD7CA; }
.faq-item summary {
  min-height: 50px; padding: 12px 18px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none;
}
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--gold-deep); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 18px 16px; font-size: 0.92rem; color: var(--ink-muted); }
.legal-wrap { max-width: 780px; }
.legal-body p { font-size: 1rem; color: var(--ink-muted); margin: 0 0 16px; }
.legal-back { margin-top: 24px; }

.site-footer {
  background: #050914; color: var(--light-muted);
  border-top: 1px solid rgba(240, 195, 90, 0.18); padding: 48px 0 26px;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr; gap: 32px; margin-bottom: 28px; }
.footer-desc { margin: 12px 0 18px; font-size: 0.88rem; max-width: 340px; }
.footer-heading { color: var(--gold); font-family: var(--font-serif); font-size: 1.12rem; margin-bottom: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.88rem; }
.footer-bottom {
  padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; }

@media (hover: hover) and (pointer: fine) {
  .play-ring-btn:hover { background: var(--gold); color: var(--obsidian); transform: translate3d(-50%, -50%, 0) scale3d(1.08, 1.08, 1); }
  .footer-links a:hover, .footer-legal a:hover { color: var(--gold); }
}

@media (max-width: 1020px) {
  .hero-layout, .steps-layout, .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid, .problem-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .enterprise-band { flex-direction: column; align-items: stretch; }
}

/* GUARDRAIL-AV2: Mobile 390x844 Hero CTA <=310px + 1-line compact trust badge + compact scrollHeight */
@media (max-width: 720px) {
  .chapter--hero { padding: 10px 0 32px; }
  .hero-layout { gap: 10px; }
  .hero-copy .eyebrow { margin-bottom: 5px; font-size: 0.62rem; line-height: 1.2; letter-spacing: 0.03em; max-width: 100%; }
  .hero-title { font-size: 1.52rem; margin-bottom: 6px; line-height: 1.15; }
  .hero-lead { font-size: 0.84rem; margin-bottom: 9px; line-height: 1.38; }
  .hero-lead-extra, .hero-promise-detail { display: none; }
  .hero-actions { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 8px; margin-bottom: 8px; }
  .hero-btn-main, .hero-btn-sub { min-width: 0; padding: 0 8px; font-size: 0.8rem; white-space: nowrap; }
  .hero-promise {
    padding: 5px 10px; border-left-width: 2px; font-size: 0.76rem;
    flex-direction: row; align-items: center; line-height: 1.25;
  }
  .hero-tabs { gap: 6px; }
  .hero-tab { min-width: 0; font-size: 0.75rem; padding: 6px; white-space: normal; line-height: 1.2; text-align: center; }
  .hero-video-dock { flex-direction: column; align-items: stretch; padding: 10px 12px; gap: 10px; }
  .hero-video-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .problem-card, .step-item, .advantage-card, .price-card, .dl-card, .enterprise-band { padding: 16px; }
  .problem-grid, .advantage-grid, .pricing-grid, .dl-grid { gap: 12px; }
  .advantage-grid { grid-template-columns: minmax(0, 1fr); }
  .billing-toggle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
  .billing-btn { padding: 0 8px; font-size: 0.8rem; }
  .site-footer { padding: 34px 0 22px; }
  .footer-grid { gap: 20px; margin-bottom: 20px; }
}
