/* =============================================
   Market Navigator™ — V2 Design Layer
   "Wayfinding instrument for Taiwan manufacturers"
   Layered on top of style.css — backend untouched
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700;900&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* V2 brand — navigator / chart instrument */
  --ink: #0B1B3F;          /* deep chart navy */
  --ink-soft: #14264f;
  --signal: #1d5fd4;       /* heading / bearing blue */
  --signal-light: #e7eefb;
  --brass: #C08A3E;        /* compass brass — the one warm note */
  --brass-light: #f7eede;
  --paper: #FBFAF7;        /* warm chart paper */
  --paper-2: #F3F1EA;

  /* override fonts to V2 pairing */
  --font-display: 'Manrope', 'Noto Sans TC', system-ui, sans-serif;
  --font-sans: 'Noto Sans TC', 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ---- base re-skin ---- */
body.v2 {
  background: var(--paper);
  color: #243049;
  font-family: var(--font-sans);
}

/* ---- V2 top nav ---- */
.v2nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(251,250,247,0.85);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(11,27,63,0.08);
}
.v2nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.v2brand { display: flex; align-items: baseline; gap: 9px; font-family: var(--font-display); }
.v2brand .mark {
  font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -0.02em;
}
.v2brand .tm { font-size: 9px; color: var(--brass); font-weight: 700; transform: translateY(-6px); }
.v2brand .sub {
  font-size: 11px; color: #6b7791; font-weight: 500; letter-spacing: .02em;
  padding-left: 9px; margin-left: 2px; border-left: 1px solid rgba(11,27,63,.14);
}
.v2nav-links { display: flex; align-items: center; gap: 4px; }
.v2nav-links a {
  font-size: 14px; font-weight: 500; color: #44506b; padding: 8px 14px;
  border-radius: 9px; transition: all .18s;
}
.v2nav-links a:hover { background: rgba(11,27,63,.05); color: var(--ink); }
.v2nav-links a.active { color: var(--signal); font-weight: 700; }
.v2nav-cta {
  background: var(--ink) !important; color: #fff !important; font-weight: 600 !important;
  padding: 9px 18px !important; border-radius: 10px !important;
}
.v2nav-cta:hover { background: var(--signal) !important; }
.v2nav-toggle { display:none; background:none; border:none; font-size:24px; color:var(--ink); cursor:pointer; }

/* ---- hero ---- */
.v2hero { position: relative; overflow: hidden; background: var(--paper); }
.v2hero-grid {
  max-width: 1180px; margin: 0 auto; padding: 80px 24px 72px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.v2eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 22px;
}
.v2eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: var(--brass); display: inline-block;
}
.v2hero h1 {
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  font-size: clamp(34px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.025em; margin-bottom: 22px;
}
.v2hero h1 .accent { color: var(--signal); position: relative; white-space: nowrap; }
.v2hero h1 .accent::after {
  content:""; position:absolute; left:0; right:0; bottom:2px; height:10px;
  background: var(--brass); opacity:.20; z-index:-1; border-radius:2px;
}
.v2hero p.lede {
  font-size: 17px; line-height: 1.85; color: #4a5670; max-width: 520px; margin-bottom: 32px;
}
.v2hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.v2btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 12px; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap;
}
.v2btn-primary {
  background: var(--ink); color: #fff; box-shadow: 0 8px 22px rgba(11,27,63,.18);
}
.v2btn-primary:hover { background: var(--signal); transform: translateY(-1px); box-shadow: 0 12px 28px rgba(29,95,212,.28); }
.v2btn-ghost {
  background: transparent; color: var(--ink); border: 1.5px solid rgba(11,27,63,.18);
}
.v2btn-ghost:hover { border-color: var(--ink); background: rgba(11,27,63,.03); }

.v2hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.v2stat .num {
  font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--ink);
  letter-spacing: -.02em; line-height: 1;
}
.v2stat .lbl { font-size: 12.5px; color: #6b7791; margin-top: 5px; }

/* ---- compass signature card ---- */
.v2compass {
  position: relative; aspect-ratio: 1; border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0%, var(--paper-2) 78%);
  border: 1px solid rgba(11,27,63,.10);
  box-shadow: 0 30px 60px rgba(11,27,63,.10), inset 0 1px 0 #fff;
  display: flex; align-items: center; justify-content: center;
}
.v2compass svg { width: 86%; height: 86%; }

/* ---- section shell ---- */
.v2section { padding: 84px 0; }
.v2wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.v2wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.v2kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 14px;
}
.v2h2 {
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; letter-spacing: -.02em;
}
.v2lede { font-size: 16px; line-height: 1.8; color: #55617a; }

/* ---- "why" pain list ---- */
.v2pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.v2pain {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid rgba(11,27,63,.09); border-radius: 14px;
  padding: 20px 22px; transition: border-color .2s, transform .2s;
}
.v2pain:hover { border-color: rgba(29,95,212,.4); transform: translateY(-2px); }
.v2pain .dot {
  width: 30px; height: 30px; border-radius: 9px; background: var(--signal-light);
  color: var(--signal); display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0; font-size: 15px;
}
.v2pain .t { font-size: 15px; color: #2b3650; line-height: 1.6; font-weight: 500; padding-top: 3px; }

/* ---- tool cards ---- */
.v2tools { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.v2tool {
  position: relative; background: #fff; border: 1px solid rgba(11,27,63,.10);
  border-radius: 20px; padding: 34px 32px; overflow: hidden;
  transition: transform .2s, box-shadow .25s, border-color .2s;
}
.v2tool:hover { transform: translateY(-3px); box-shadow: 0 24px 48px rgba(11,27,63,.10); border-color: rgba(29,95,212,.35); }
.v2tool .rail { position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.v2tool.assess .rail { background: linear-gradient(90deg, var(--signal), #5b8def); }
.v2tool.audit .rail { background: linear-gradient(90deg, var(--brass), #d8b06a); }
.v2tool .ico {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; font-size: 24px; margin-bottom: 18px;
}
.v2tool.assess .ico { background: var(--signal-light); }
.v2tool.audit .ico { background: var(--brass-light); }
.v2tool .name { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a93a8; margin-bottom: 6px; }
.v2tool h3 { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 12px; letter-spacing: -.01em; }
.v2tool .desc { font-size: 14.5px; color: #55617a; line-height: 1.7; margin-bottom: 20px; }
.v2tool ul { list-style: none; margin-bottom: 24px; }
.v2tool li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #3c4862; padding: 6px 0; }
.v2tool li::before { content: "→"; color: var(--brass); font-weight: 700; flex-shrink: 0; }
.v2tool .go {
  display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center;
  padding: 13px; border-radius: 11px; font-weight: 600; font-size: 15px; transition: all .2s;
}
.v2tool.assess .go { background: var(--ink); color: #fff; }
.v2tool.assess .go:hover { background: var(--signal); }
.v2tool.audit .go { background: var(--brass); color: #fff; }
.v2tool.audit .go:hover { background: #a9762e; }

/* ---- roadmap / plan strip ---- */
.v2plan { background: var(--ink); color: #fff; }
.v2plan .v2kicker { color: var(--brass); }
.v2plan .v2h2 { color: #fff; }
.v2plan .v2lede { color: #b9c2d6; }
.v2roadmap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 40px; position: relative; }
.v2step { position: relative; padding: 0 16px; }
.v2step .ph {
  font-family: var(--font-mono); font-size: 12px; color: var(--brass); font-weight: 500; margin-bottom: 14px;
}
.v2step .node {
  width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--brass);
  position: relative; z-index: 2; margin-bottom: 18px;
}
.v2step.current .node { background: var(--brass); box-shadow: 0 0 0 5px rgba(192,138,62,.22); }
.v2step .line { position: absolute; top: 30px; left: 7px; right: -50%; height: 1.5px; background: rgba(255,255,255,.16); z-index: 1; }
.v2step:last-child .line { display: none; }
.v2step h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.v2step p { font-size: 13px; color: #9aa6c0; line-height: 1.6; }
.v2step .tag { display:inline-block; font-size:10px; font-weight:700; letter-spacing:.05em; padding:2px 8px; border-radius:100px; margin-top:8px; }
.v2step.current .tag { background: var(--brass); color: var(--ink); }
.v2step .tag.soon { background: rgba(255,255,255,.1); color: #b9c2d6; }

/* ---- about / EASC ---- */
.v2split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.v2feature { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.v2feature .fi { font-size: 20px; flex-shrink: 0; }
.v2feature .ft { font-size: 14.5px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.v2feature .fd { font-size: 13.5px; color: #5c6884; line-height: 1.65; }

/* ---- CTA band ---- */
.v2cta-band {
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  border-radius: 24px; padding: 56px 48px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.v2cta-band h2 { font-family: var(--font-display); font-size: clamp(24px,3.2vw,32px); font-weight: 800; margin-bottom: 14px; letter-spacing: -.02em; }
.v2cta-band p { font-size: 16px; color: #b9c2d6; margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.v2cta-band .v2btn-primary { background: var(--brass); color: var(--ink); }
.v2cta-band .v2btn-primary:hover { background: #d8b06a; }

/* ---- footer ---- */
.v2footer { background: var(--ink); color: #9aa6c0; padding: 56px 0 32px; }
.v2footer a { color: #b9c2d6; transition: color .2s; }
.v2footer a:hover { color: #fff; }
.v2footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.v2footer-brand .mark { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: #fff; }
.v2footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.v2footer-col h5 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7791; margin-bottom: 14px; }
.v2footer-col a { display: block; font-size: 14px; margin-bottom: 9px; }
.v2footer-bottom { padding-top: 24px; font-size: 12.5px; color: #6b7791; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---- responsive ---- */
@media (max-width: 880px) {
  .v2hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .v2compass { max-width: 320px; margin: 0 auto; }
  .v2tools, .v2pain-grid, .v2split { grid-template-columns: 1fr; }
  .v2roadmap { grid-template-columns: 1fr; gap: 28px; }
  .v2step { padding-left: 28px; }
  .v2step .line { top: 7px; left: 6px; right: auto; bottom: -28px; width: 1.5px; height: auto; }
  .v2step:last-child .line { display: none; }
  .v2split { gap: 32px; }
  .v2nav-links { display: none; }
  .v2nav-links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid rgba(11,27,63,.1); padding: 12px 24px; gap: 4px; }
  .v2nav-links.open a { padding: 12px; }
  .v2nav-toggle { display: block; }
  .v2cta-band { padding: 40px 24px; }
}

/* ---- V2 overrides for tool pages (assessment/audit form heroes) ---- */
body.v2 .audit-hero {
  background: linear-gradient(180deg, #FBFAF7 0%, #F3F1EA 100%);
  border-bottom: 1px solid rgba(11,27,63,.08);
}
body.v2 .audit-hero h1 { color: var(--ink) !important; font-family: var(--font-display); }
body.v2 .audit-form-card { background: #fff; }
/* keep existing form component colors intact; only reskin page chrome */


/* ---- V2.8.3 readability refinement for SME owners ---- */
body.v2 { font-size: 16px; }
body.v2 .q-title { font-size: 17px !important; line-height: 1.55 !important; }
body.v2 .q-hint, body.v2 .q-type, body.v2 .q-max-note { font-size: 14px !important; line-height: 1.65 !important; }
body.v2 .q-opt { font-size: 15.5px !important; line-height: 1.45 !important; padding: 10px 15px !important; }
body.v2 .input-field { font-size: 16px !important; min-height: 46px; }
body.v2 .result-card p, body.v2 .result-card div { line-height: 1.75; }
#easc-overlay { font-size: 16px !important; }
#easc-overlay [style*="font-size:11px"] { font-size: 13.5px !important; }
#easc-overlay [style*="font-size:12px"] { font-size: 14px !important; }
#easc-overlay [style*="font-size:13px"] { font-size: 15px !important; }
#easc-overlay [style*="font-size:13.5px"] { font-size: 15.5px !important; }
#easc-overlay [style*="font-size:14px"] { font-size: 16px !important; }
#easc-overlay [style*="font-size:15px"] { font-size: 16.5px !important; }
#easc-overlay p, #easc-overlay div { line-height: 1.75; }
#easc-overlay button, #easc-overlay a { font-size: 16px; }
.report-section, .ai-block, .report-header { font-size: 16px; }
.report-section [style*="font-size:12px"] { font-size: 14px !important; }
.report-section [style*="font-size:13px"] { font-size: 15px !important; }
.report-section [style*="font-size:14px"] { font-size: 16px !important; }
.easc-official-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.easc-official-link:hover { color: var(--signal); }
