/* =============================================================
   BEYOND PLAYBOOK — FLOW brand skin
   Restyles the existing FLOW LP to match the PLAYBOOK hub:
   ink #0a0a0a ground · paper #e8e5dc text · gold #c9a961 accents ·
   serif display (Bodoni Moda / Noto Serif JP / Shippori Mincho B1).

   Loaded AFTER each page's inline <style>, so it wins the cascade.
   It (1) re-maps FLOW's existing CSS custom properties to the dark
   palette — which auto-flips every `var(--x)` reference, including
   inline style="" attributes — and (2) restyles the shared
   components (header, hero, sections, cards, CTAs, footer, article,
   forms) that used hard-coded light colours.
   ============================================================= */

/* ---- 1. Token re-map (drives most of the flip automatically) ---- */
:root {
  --bg: #0a0a0a;
  --bg-soft: #14151c;
  --bg-dark: #0a0a0a;
  --text: #e8e5dc;
  --text-soft: rgba(232,229,220,0.62);
  --line: rgba(201,169,97,0.16);
  --accent: #c9a961;          /* emphasis / borders / wordmark → gold */
  --accent-deep: #0a0a0a;
  --gold: #c9a961;
  --gold-bright: #e8c474;
  --gold-deep: #b7973f;
  --red: #d38b8b;
  --green: #8fbf96;

  /* hub display tokens */
  --ink: #0a0a0a;
  --paper: #e8e5dc;
  --gold-line: rgba(201,169,97,0.32);
  --serif: 'Noto Serif JP', serif;
  --display: 'Bodoni Moda', 'Noto Serif JP', serif;
  --mincho: 'Shippori Mincho B1', 'Noto Serif JP', serif;
  --ui: 'Inter', sans-serif;
  --card: #14151c;
  --card-line: rgba(201,169,97,0.18);
}

/* ---- 2. Base ---- */
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--serif) !important;
  background: var(--ink) !important;
  color: var(--text) !important;
  letter-spacing: 0.01em;
}
::selection { background: rgba(201,169,97,0.28); color: #fff; }

/* ---- 3. Header ---- */
header {
  background: linear-gradient(180deg, rgba(10,10,10,0.94) 0%, rgba(10,10,10,0.82) 100%) !important;
  border-bottom: 1px solid var(--gold-line) !important;
  backdrop-filter: blur(8px);
}
.header-inner { max-width: 1180px; }
.logo .brand-logo {
  filter: brightness(0) invert(0.85) sepia(0.7) saturate(2) hue-rotate(15deg) !important;
  opacity: 0.9;
}
.logo .brand-name {
  font-family: var(--display) !important;
  font-weight: 500 !important;
  color: var(--gold) !important;
  letter-spacing: 0.08em !important;
  border-left: 1px solid var(--gold-line) !important;
}
.back-link { color: var(--text-soft) !important; letter-spacing: 0.04em; }
.back-link:hover { color: var(--gold-bright) !important; }

/* header nav links → gold-outline pills (hub .nav-cta) */
.header-cta { gap: 10px !important; }
.header-cta .header-nav-link,
.header-cta .quick {
  font-family: var(--ui) !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  letter-spacing: 0.14em !important;
  color: var(--gold-bright) !important;
  background: transparent !important;
  border: 1px solid var(--gold-line) !important;
  border-bottom: 1px solid var(--gold-line) !important;
  border-radius: 0 !important;
  padding: 9px 16px !important;
  transition: all 0.3s !important;
}
.header-cta .header-nav-link:hover,
.header-cta .quick:hover {
  background: var(--gold) !important;
  color: var(--ink) !important;
  border-color: var(--gold) !important;
}
/* the "◀ BEYOND PLAYBOOK" back-to-hub chip */
.hub-link {
  font-family: var(--ui); font-weight: 500; font-size: 11px;
  letter-spacing: 0.18em; color: var(--text-soft);
  padding: 9px 14px; border: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s; white-space: nowrap;
}
.hub-link:hover { color: var(--gold-bright); border-color: var(--gold-line); }

/* ---- 4. Hero ---- */
.hero {
  background:
    radial-gradient(ellipse at 50% 38%, #101010 0%, #0a0a0a 55%, #050505 100%) !important;
  border-bottom: 1px solid var(--gold-line) !important;
  animation: none !important;
  color: var(--text) !important;
}
/* tone the blue water layers toward the ink/gold family */
.wave-svg.layer-back { fill: rgba(60,66,96,0.14) !important; }
.wave-svg.layer-1    { fill: rgba(70,78,112,0.12) !important; }
.wave-svg.layer-3    { fill: rgba(30,34,54,0.30) !important; }
.wave-svg.layer-top  { fill: rgba(120,110,70,0.10) !important; }
.hero-en {
  font-family: var(--display) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  background-image: linear-gradient(100deg, #a9903f 0%, var(--gold-bright) 30%, #fff6dc 50%, var(--gold-bright) 70%, #a9903f 100%) !important;
  background-color: transparent !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
}
.hero-jp {
  font-family: var(--display) !important;
  font-weight: 500 !important;
  color: var(--paper) !important;
  letter-spacing: 0.04em;
}
.hero .hero-jp { color: var(--paper) !important; }
.hero-lead { color: var(--text-soft) !important; }
.hero .hero-lead { color: rgba(232,229,220,0.78) !important; }
.hero .hero-lead strong { color: var(--gold-bright) !important; }
.hero .cta-note { color: var(--text-soft) !important; }
.hero .cta-note strong { color: var(--gold-bright) !important; }

/* ---- 5. Section common ---- */
.section-label,
.page-meta {
  font-family: var(--ui) !important;
  color: var(--gold) !important;
  letter-spacing: 0.28em !important;
  text-transform: uppercase;
}
.section-title,
.page-title {
  font-family: var(--display) !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  letter-spacing: 0.03em;
  line-height: 1.5 !important;
}
.section-lead,
.page-lead { color: var(--text-soft) !important; }
.section-lead strong,
.page-lead strong { color: var(--gold-bright) !important; }

/* thin gold rule under section titles (hub signature) */
.section-title { position: relative; }

/* ---- 6. Unified CTA buttons (gold, hub-style) ---- */
.cta-btn,
.check-cta-btn,
.btn-start,
.btn-apply,
.submit-btn,
.cta-btn-primary,
.cta-btn-secondary {
  font-family: var(--ui) !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  border-radius: 0 !important;
  transition: all 0.35s ease !important;
}
.cta-btn,
.check-cta-btn,
.cta-btn-secondary {
  background: transparent !important;
  color: var(--gold-bright) !important;
  border: 1px solid var(--gold-line) !important;
}
.cta-btn:hover,
.check-cta-btn:hover,
.cta-btn-secondary:hover {
  background: var(--gold) !important;
  color: var(--ink) !important;
  border-color: var(--gold) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201,169,97,0.18) !important;
}
.cta-btn.primary,
.cta-btn-primary,
.btn-start,
.btn-apply,
.submit-btn {
  background: var(--gold) !important;
  color: var(--ink) !important;
  border: 1px solid var(--gold) !important;
}
.cta-btn.primary:hover,
.cta-btn-primary:hover,
.btn-start:hover,
.btn-apply:hover,
.submit-btn:hover {
  background: var(--gold-bright) !important;
  color: var(--ink) !important;
  border-color: var(--gold-bright) !important;
  box-shadow: 0 10px 30px rgba(201,169,97,0.28) !important;
}
.cta-btn::before { display: none !important; }   /* kill navy ripple */
.check-cta-btn strong { color: var(--ink) !important; }
.check-cta-btn { color: var(--gold-bright) !important; }
.check-cta-btn strong { color: inherit !important; }
.hero .cta-btn { background: transparent !important; color: var(--gold-bright) !important; border-color: var(--gold-line) !important; }
.hero .cta-btn.primary { background: var(--gold) !important; color: var(--ink) !important; border-color: var(--gold) !important; }
.hero .cta-btn:hover { background: var(--gold) !important; color: var(--ink) !important; border-color: var(--gold) !important; }

/* ---- 7. Cards & surfaces (flip hard-coded whites to ink cards) ---- */
.solution-card,
.why-card,
.faq-item,
.stat-card,
.case-card,
.consulting-item,
.article-card,
.num-box,
.pricing-block,
.toc,
.do-box,
.start-screen,
.question-screen,
.result-screen,
.option-btn,
form,
.thanks,
.info-box,
.result-comment {
  background: var(--card) !important;
  border-color: var(--card-line) !important;
}
.solution-card,
.why-card,
.faq-item,
.article-card,
.info-box,
.num-box {
  border: 1px solid var(--card-line) !important;
}
.solution-card:hover,
.article-card:hover,
.why-card:hover {
  border-color: var(--gold-line) !important;
  box-shadow: 0 18px 44px rgba(0,0,0,0.5) !important;
}
.stat-card { border: 1px solid var(--card-line) !important; }
.stat-num { color: var(--gold) !important; font-family: var(--ui) !important; }
.stat-label { color: var(--text-soft) !important; }
.solution-num,
.why-num { color: var(--gold) !important; font-family: var(--ui) !important; }
.solution-body h3,
.why-card h3 { color: var(--text) !important; font-family: var(--display) !important; font-weight: 500 !important; }
.solution-period { background: var(--gold) !important; color: var(--ink) !important; font-weight: 600 !important; }
.solution-body p,
.why-card p,
.consulting-quote,
.consulting-meta,
.case-detail { color: var(--text-soft) !important; }
.solution-body p strong,
.case-result strong,
.case-result strong[style],
.stance-text strong { color: var(--gold-bright) !important; }

/* section alt backgrounds that used --bg-soft now read dark automatically */
.points-section,
.case-section,
.message-section,
.filter-section { background: var(--bg-soft) !important; }
.points-list li { border-bottom-color: var(--line) !important; }
.points-list li::before { color: var(--gold) !important; }
.points-cta strong { color: var(--gold-bright) !important; }

/* case pills / meta */
.case-meta { background: var(--gold) !important; color: var(--ink) !important; }
.case-card { border-left: 4px solid var(--gold) !important; }
.consulting-item { border: 1px dashed var(--card-line) !important; }
.case-result { background: rgba(255,255,255,0.03) !important; }
.case-result strong { color: var(--gold-bright) !important; }

/* speed comparison table */
.speed-table { background: #101018 !important; border: 1px solid var(--card-line) !important; }
.speed-table th { background: rgba(201,169,97,0.06) !important; color: var(--text) !important; }
.speed-table tr { border-bottom-color: rgba(255,255,255,0.06) !important; }
.speed-table td:last-child { color: var(--gold-bright) !important; }

/* pricing (was dark navy → ink) */
.pricing-section { background: #0c0d13 !important; }
.pricing-section .section-title { color: var(--text) !important; }
.pricing-label { color: var(--gold) !important; font-family: var(--ui) !important; }
.pricing-headline { font-family: var(--display) !important; font-weight: 500 !important; color: var(--text) !important; }
.pricing-detail strong { color: var(--gold-bright) !important; }
.pricing-block { border-bottom-color: var(--line) !important; }

/* stance */
.stance-text { border-left-color: var(--gold) !important; color: var(--text) !important; }
.stance-signature { color: var(--gold) !important; font-family: var(--display) !important; }

/* filter (good/bad) */
.filter-block.good h3 { color: var(--gold-bright) !important; border-color: var(--gold-line) !important; font-family: var(--display) !important; font-weight: 500 !important; }
.filter-block.bad h3 { color: var(--red) !important; border-color: rgba(211,139,139,0.4) !important; font-family: var(--display) !important; font-weight: 500 !important; }
.filter-block.good .filter-list li::before { color: var(--gold) !important; }
.filter-block.bad .filter-list li::before { color: var(--red) !important; }

/* faq */
.faq-q { color: var(--text) !important; }
.faq-q::before { color: var(--gold) !important; font-family: var(--ui) !important; }
.faq-a { color: var(--text-soft) !important; }

/* final CTA band */
.final-cta { background: linear-gradient(160deg, #101010, #050505) !important; border-top: 1px solid var(--gold-line); color: var(--text) !important; }
.final-cta-title { font-family: var(--display) !important; font-weight: 500 !important; color: var(--paper) !important; }
.final-cta-sub { color: var(--text-soft) !important; }
.final-cta .cta-note { color: var(--text-soft) !important; }
.final-cta .cta-note strong { color: var(--gold-bright) !important; }

/* floating mobile CTA */
.float-cta { background: #0c0d13 !important; border-top: 1px solid var(--gold-line); }
.float-cta a { background: var(--gold) !important; color: var(--ink) !important; font-family: var(--ui); }

/* ---- 8. Article body ---- */
.breadcrumb { color: var(--text-soft) !important; }
.breadcrumb a { color: var(--text-soft) !important; }
.breadcrumb a:hover { color: var(--gold-bright) !important; }
.article-meta { color: var(--gold) !important; font-family: var(--ui) !important; }
article h1 { font-family: var(--display) !important; font-weight: 500 !important; color: var(--text) !important; }
article h2 {
  font-family: var(--display) !important; font-weight: 500 !important;
  color: var(--text) !important; border-bottom: 1px solid var(--gold-line) !important;
}
article h3 { color: var(--gold-bright) !important; font-family: var(--display) !important; font-weight: 500 !important; }
article p { color: var(--text) !important; }
article p strong { color: var(--gold-bright) !important; }
article a { color: var(--gold-bright) !important; }
.article-lead { background: var(--card) !important; border-left: 4px solid var(--gold) !important; color: var(--text) !important; }
.article-lead strong { color: var(--gold-bright) !important; }
.toc-title { color: var(--gold) !important; font-family: var(--ui) !important; }
.toc a { color: var(--text) !important; }
.toc a:hover { color: var(--gold-bright) !important; }
.toc li::before { color: var(--gold) !important; }
.num-box { border: 2px solid var(--gold-line) !important; }
.num-box-label { color: var(--gold) !important; font-family: var(--ui) !important; }
.num-box-formula { color: var(--gold-bright) !important; font-family: var(--ui) !important; }
.num-box-meaning { color: var(--text-soft) !important; }
.do-box { background: rgba(143,191,150,0.06) !important; border: 1px solid rgba(143,191,150,0.28) !important; }
.do-box-title { color: var(--green) !important; }
.case-card h4 { color: var(--text) !important; }
.case-step { background: rgba(255,255,255,0.03) !important; color: var(--text) !important; }
.case-step strong { color: var(--gold-bright) !important; }
.cta-block { background: linear-gradient(150deg, #14151c 0%, #0a0a0a 100%) !important; border: 1px solid var(--gold-line) !important; }
.cta-block h2 { font-family: var(--display) !important; font-weight: 500 !important; color: var(--paper) !important; }
.cta-block p { color: var(--text-soft) !important; }
.related-title { color: var(--gold) !important; font-family: var(--ui) !important; }
.related a { background: var(--card) !important; color: var(--text) !important; border: 1px solid var(--card-line); }
.related a:hover { background: #1b1c24 !important; }
.related a::after { color: var(--gold) !important; }

/* article-list (index) card text */
.article-date { color: var(--gold) !important; font-family: var(--ui) !important; }
.article-title { color: var(--gold-bright) !important; font-family: var(--display) !important; font-weight: 500 !important; }
.article-excerpt { color: var(--text-soft) !important; }
.article-card .read-more { color: var(--gold) !important; }
.article-card:hover .read-more { color: var(--gold-bright) !important; }

/* ---- 9. Check tool ---- */
.start-en, .q-num, .result-en { color: var(--gold) !important; font-family: var(--ui) !important; }
.start-title, .q-title, .result-label, .thanks h2 { font-family: var(--display) !important; font-weight: 500 !important; color: var(--text) !important; }
.start-title strong { color: var(--gold-bright) !important; }
.start-lead, .result-next-text { color: var(--text-soft) !important; }
.meta-num { color: var(--gold) !important; font-family: var(--ui) !important; }
.meta-label { color: var(--text-soft) !important; }
.progress-text { color: var(--gold-bright) !important; }
.progress-bar { background: rgba(255,255,255,0.08) !important; }
.timer-text { color: var(--text-soft) !important; }
.option-btn { color: var(--text) !important; border: 1px solid var(--card-line) !important; }
.option-btn:hover { border-color: var(--gold) !important; background: rgba(201,169,97,0.08) !important; }
.option-btn::after { color: var(--gold) !important; }
.result-grade { background-image: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-deep) 100%) !important; background-color: transparent !important; -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; color: transparent !important; }
.result-comment { border-left: 4px solid var(--gold) !important; color: var(--text) !important; }
.result-comment strong { color: var(--gold-bright) !important; }
.result-next-title { color: var(--text) !important; }
.result-meta { color: var(--text-soft) !important; border-top-color: var(--line) !important; }
.result-meta strong { color: var(--gold-bright) !important; }
/* score gauge (added markup) */
.score-gauge { max-width: 340px; margin: 0 auto 28px; }
.score-gauge svg { width: 100%; height: auto; display: block; }
.score-gauge .g-track { stroke: rgba(255,255,255,0.08); }
.score-gauge .g-fill { stroke: var(--gold); stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(0.22,1,0.36,1); }
.score-gauge .g-num { font-family: var(--ui); font-weight: 700; fill: var(--gold-bright); }
.score-gauge .g-den { font-family: var(--ui); font-weight: 500; fill: var(--text-soft); }

/* ---- 10. Forms (apply) ---- */
.promise { background: #101018 !important; border: 1px solid var(--card-line); color: var(--text) !important; }
.promise-text strong { color: var(--gold-bright) !important; }
.field label { color: var(--text) !important; }
.field input, .field textarea, .field select {
  background: #101018 !important; color: var(--text) !important;
  border: 1px solid var(--card-line) !important;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold) !important; }
.field .help { color: var(--text-soft) !important; }
.field .radio-group label { border: 1px solid var(--card-line) !important; color: var(--text) !important; }
.field .radio-group label:hover { border-color: var(--gold) !important; }
.field .radio-group input[type="radio"]:checked + span { color: var(--gold-bright) !important; }
.field select option { background: #101018; color: var(--text); }
.privacy-note { color: var(--text-soft) !important; }
.thanks p { color: var(--text-soft) !important; }
.thanks-icon { background: var(--gold) !important; color: var(--ink) !important; }
.thanks .highlight { background: rgba(201,169,97,0.08) !important; color: var(--gold-bright) !important; }

/* ---- 11. Privacy body ---- */
main h1 { font-family: var(--display) !important; font-weight: 500 !important; }
h2[style], .info-box dt { color: var(--gold-bright) !important; }
main > h2 { color: var(--text) !important; }
.lead { color: var(--text-soft) !important; border-bottom-color: var(--line) !important; }

/* ---- 12. Footer ---- */
footer { background: var(--ink) !important; color: var(--text-soft) !important; border-top: 1px solid var(--gold-line); }
.footer-brand .brand-name,
.footer-brand h3,
.footer-brand h4 {
  font-family: var(--display) !important; font-weight: 500 !important;
  color: var(--gold) !important; letter-spacing: 0.06em;
}
.footer-col h4, .footer-col h5 {
  font-family: var(--ui) !important; font-weight: 600 !important;
  color: var(--gold-bright) !important; letter-spacing: 0.24em !important;
  text-transform: uppercase;
}
.footer-brand p { color: var(--text-soft) !important; }
.footer-col a { color: var(--text-soft) !important; }
.footer-col a:hover { color: var(--gold-bright) !important; }
.footer-col a.is-active { color: var(--gold) !important; }
.footer-bottom { color: var(--text-soft) !important; border-top-color: rgba(255,255,255,0.06) !important; }
.footer-bottom a { color: var(--text-soft) !important; }
.footer-bottom a:hover { color: var(--gold-bright) !important; }
footer a { color: var(--text-soft) !important; }
footer a:hover { color: var(--gold-bright) !important; }

/* footer 9-service grid (added on main pages) */
.svc-grid { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.svc-grid li { margin: 0; }
.svc-grid a { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; }
.svc-grid .svc-en { font-family: var(--ui); letter-spacing: 0.12em; }
.svc-grid .svc-active { color: var(--gold) !important; }
.svc-grid .svc-active .svc-en { color: var(--gold) !important; }
.svc-grid .svc-dot { color: var(--text-soft); font-size: 10px; }

/* ---- 13. Newsletter block recolor (index inline section) ---- */
.newsletter-band { background: #0c0d13 !important; border-top: 1px solid var(--gold-line) !important; border-bottom: 1px solid var(--gold-line) !important; }
.newsletter-band h2 { font-family: var(--display) !important; font-weight: 500 !important; color: var(--paper) !important; }
.newsletter-band p { color: var(--text-soft) !important; }
.newsletter-band input {
  background: #101018 !important; border: 1px solid var(--card-line) !important; color: var(--text) !important;
}
.newsletter-band input:focus { border-color: var(--gold) !important; outline: none; }
.newsletter-band button {
  background: var(--gold) !important; color: var(--ink) !important;
  font-family: var(--ui) !important; border: none !important;
}
.newsletter-band button:hover { background: var(--gold-bright) !important; }
.newsletter-band a { color: var(--gold) !important; }

/* ---- 14. Responsive niceties ---- */
@media (max-width: 640px) {
  .header-cta .header-nav-link, .header-cta .quick { padding: 8px 12px !important; letter-spacing: 0.1em !important; }
  .hub-link { display: none; }
  .svc-grid { grid-template-columns: 1fr; }
}
