/* ===================================================================
   JSM.solutions / Opsgenie 遷移指南
   Design language: authentic Atlassian first-party art direction
   (flat bold colour blocks, angled dividers, heavy black headlines,
    saturated blue pill CTAs, yellow icon tiles, hand-drawn sparks,
    faint grid texture). Built to taste-skill discipline.
   =================================================================== */

:root {
  /* Brand blue (single reserved accent that keeps everything calm) */
  --blue: #1868DB;
  --blue-600: #0C66E4;
  --blue-700: #0055CC;
  --blue-800: #09326C;
  --blue-soft: #E9F2FF;
  --blue-soft-2: #CCE0FF;

  /* Ink */
  --ink: #172B4D;
  --ink-2: #44546F;
  --ink-3: #626F86;
  --ink-4: #8590A2;
  --line: #DCDFE4;
  --line-2: #EBECF0;

  /* Surfaces */
  --bg: #FFFFFF;
  --bg-grey: #F1F2F4;
  --bg-grey-2: #F7F8F9;
  --navy: #0B1F44;
  --navy-2: #091E42;

  /* Atlassian expressive palette (decorative) */
  --yellow: #FFC716;
  --yellow-tile: #FFE380;
  --yellow-soft: #FFF7D6;
  --teal: #1D9AAA;
  --teal-soft: #C6EDF2;
  --purple: #6E5DC6;
  --purple-2: #8270DB;
  --purple-soft: #DFD8FD;
  --lime: #4BCE97;
  --green-700: #1F845A;
  --orange: #E56910;
  --orange-soft: #FFE2BD;
  --magenta: #CD519D;
  --coral: #F15B50;
  --red: #C9372C;

  /* Product accents */
  --jsm: #1868DB;
  --compass: #6E5DC6;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --tile: 14px;

  --shadow-sm: 0 1px 1px rgba(9,30,66,.08), 0 0 1px rgba(9,30,66,.12);
  --shadow: 0 8px 16px -8px rgba(9,30,66,.18), 0 2px 4px rgba(9,30,66,.06);
  --shadow-lg: 0 20px 44px -16px rgba(9,30,66,.26), 0 6px 16px -10px rgba(9,30,66,.16);

  --maxw: 1180px;
  --nav-h: 72px;

  --font: 'Plus Jakarta Sans', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
.section__sub, .sol-note, .hero__lead { text-wrap: balance; }
strong { color: var(--ink); font-weight: 700; }
code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  background: var(--blue-soft); color: var(--blue-700);
  padding: .12em .45em; border-radius: 6px; font-size: .86em; font-weight: 600;
  white-space: nowrap;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons (Atlassian saturated blue pills) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: .82em 1.5em; border-radius: 10px; cursor: pointer; min-height: 44px;
  border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(12,102,228,.5); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-700); transform: translateY(-2px); }
.btn--lg { padding: 1em 1.85em; font-size: 1.06rem; }
.btn--block { width: 100%; margin-top: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 0 rgba(9,30,66,.04); }
.nav__inner { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.18rem; letter-spacing: -.03em; color: var(--ink); }
.brand__mark { display: inline-flex; }
.brand__dot { color: var(--blue); }

.nav__links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__links a {
  font-size: .9rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; text-align: center;
  padding: .5em .6em; border-radius: 8px; transition: color .15s ease, background .15s ease;
}
.nav__links a:hover { color: var(--blue-700); background: var(--blue-soft); }
.nav__cta { padding: .6em 1.2em; min-height: 40px; }

/* ---------- Language switcher ---------- */
.lang { position: relative; }
.lang__btn { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--ink-2); padding: .5em .75em; border-radius: 8px; border: 1px solid var(--line); transition: border-color .15s ease, color .15s ease; white-space: nowrap; }
summary.lang__btn { list-style: none; }
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn::marker { content: none; }
.lang__btn:hover { border-color: var(--blue); color: var(--blue-700); }
.lang__btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.lang[open] .lang__btn { border-color: var(--blue); color: var(--blue-700); }
.lang__menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; min-width: 150px; z-index: 120; }
.lang__menu li a { display: block; padding: .55em .75em; border-radius: 7px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.lang__menu li a:hover { background: var(--blue-soft); color: var(--blue-700); }
.lang__menu li a.is-current { color: var(--blue-700); background: var(--blue-soft); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; margin-left: auto; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (flat colour block + angled cut, Atlassian style) ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 56px) 0 110px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1; background: var(--blue-soft);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5vw), 0 100%);
}
.hero__bg::before { /* faint grid */
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(9,30,66,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(9,30,66,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 100% at 70% 20%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(120% 100% at 70% 20%, #000 30%, transparent 80%);
}
/* flat colour confetti shapes */
.hero__bg::after {
  content: ""; position: absolute; width: 104px; height: 104px; right: 4%; top: 30%;
  background: var(--yellow); border-radius: 28px; transform: rotate(14deg); opacity: .9;
  box-shadow: -230px -150px 0 -36px var(--teal-soft), -120px 240px 0 -30px var(--purple-soft);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; position: relative; }

/* ---------- Hero countdown (Opsgenie end-of-support) ---------- */
.countdown {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  background: #fff; border: 2px solid var(--ink); border-radius: 12px;
  padding: 11px 18px; margin-bottom: 16px;
  box-shadow: 4px 4px 0 var(--yellow);
}
.countdown__ic { align-self: center; font-size: 1.05rem; line-height: 1; }
.countdown__label { font-size: .92rem; font-weight: 700; color: var(--ink); }
.countdown__num {
  font-size: 1.85rem; font-weight: 800; color: var(--red);
  letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums;
}
.countdown__unit { font-size: .95rem; font-weight: 800; color: var(--red); }
/* Hero 倒數計時置中於面板上方 */
.hero__visual .countdown { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }

/* ---------- Countdown banner (below timeline) ---------- */
.cd-banner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 16px;
  margin: 44px auto 0; max-width: 780px;
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: 24px 32px; text-align: center;
}
.cd-banner__ic { font-size: 1.7rem; line-height: 1; }
.cd-banner__text { font-size: 1.05rem; font-weight: 700; color: rgba(255,255,255,.9); margin: 0; }
.cd-banner__num { font-size: 2.7rem; font-weight: 800; color: var(--yellow); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cd-banner__unit { font-size: 1.15rem; font-weight: 800; color: var(--yellow); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .01em;
  color: var(--ink); background: var(--yellow-tile);
  padding: .45em 1em; border-radius: 8px; margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; color: var(--ink); text-wrap: wrap; }
.grad { color: var(--blue); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-style: wavy; text-decoration-thickness: 5px; text-underline-offset: .22em; text-decoration-skip-ink: none; }
.hero__sc { display: block; font-size: .4em; font-weight: 700; color: var(--ink-3); margin-top: .5em; letter-spacing: 0; }
.hero__lead { margin-top: 22px; font-size: 1.14rem; color: var(--ink-2); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__stats { display: flex; gap: 40px; margin-top: 44px; padding-top: 30px; border-top: 2px solid rgba(9,30,66,.1); }
.hero__stats .stat { text-align: center; }
.stat__num { display: block; font-size: 2.1rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; }
.stat__unit { font-size: 1rem; font-weight: 800; margin-left: 2px; }
.stat__label { font-size: .88rem; color: var(--ink-3); margin-top: 7px; display: block; font-weight: 500; }

/* ---------- Hero visual: branching journey (yellow tiles + sparks + grid) ---------- */
.hero__visual { position: relative; }
.journey {
  position: relative; background: #fff; border: 2px solid var(--ink);
  border-radius: var(--radius-xl); padding: 30px 26px 34px;
  box-shadow: 10px 12px 0 rgba(23,43,77,.9);
}
.journey::before { /* faint grid inside panel */
  content: ""; position: absolute; inset: 14px; border-radius: 18px;
  background-image: linear-gradient(rgba(9,30,66,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(9,30,66,.045) 1px, transparent 1px);
  background-size: 30px 30px; pointer-events: none;
}
.blob { position: absolute; z-index: 2; pointer-events: none; }
.blob--yellow { width: 46px; height: 46px; background: var(--yellow); border-radius: 12px; transform: rotate(16deg); top: -18px; left: 34px; }
.blob--teal { width: 30px; height: 30px; background: var(--teal); border-radius: 50%; right: -12px; top: 44%; }
.blob--magenta { width: 0; height: 0; right: 30px; bottom: -14px;
  border-left: 16px solid transparent; border-right: 16px solid transparent; border-bottom: 26px solid var(--magenta); transform: rotate(18deg); }

.journey__source, .jcard { position: relative; z-index: 1; }
.journey__source {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 2px solid var(--ink); border-radius: var(--tile);
  padding: 14px 18px; box-shadow: 3px 3px 0 var(--blue-soft-2);
}
.jnode__icon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  font-size: 1.25rem; color: #fff; flex-shrink: 0;
}
.jnode__icon.compass { background: var(--purple); }
/* real Atlassian product logo marks (SVG already includes the yellow tile) */
.jnode__logo { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; display: block; }
.jcard .jnode__logo { margin: 6px 0 4px; }
.path-card__logo-ico { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: block; }
.sc-logo { width: 54px; height: 54px; display: block; margin-bottom: 16px; }
.sc-logo--sm { width: 40px; height: 40px; margin-bottom: 0; border-radius: 10px; }
.th-logo { width: 22px; height: 22px; vertical-align: middle; display: inline-block; }
.jnode__text { display: flex; flex-direction: column; }
.jnode__name { font-weight: 800; color: var(--ink); font-size: 1rem; }
.jnode__desc { font-size: .78rem; color: var(--ink-3); }

.journey__branch { width: 100%; height: 54px; margin: 2px 0; position: relative; z-index: 1; }
.branch-line { stroke: var(--ink); stroke-width: 2.2; fill: none; stroke-linecap: round; }
.branch-dot { fill: var(--ink); }

.journey__targets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; z-index: 1; }
.jcard {
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 2px solid var(--ink); border-radius: var(--tile); padding: 16px 16px 18px;
}
.jcard--jsm { box-shadow: 3px 3px 0 var(--yellow); }
.jcard--compass { box-shadow: 3px 3px 0 var(--purple-soft); }
.jcard__opt { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.jcard--jsm .jcard__opt { color: var(--green-700); }
.jcard .jnode__icon { margin: 6px 0 4px; }
.jcard__name { font-weight: 800; color: var(--ink); font-size: .98rem; line-height: 1.2; }
.jcard__desc { font-size: .78rem; color: var(--ink-3); }
.badge { position: absolute; top: 12px; right: 12px; font-size: .66rem; font-weight: 800; padding: .28em .7em; border-radius: 6px; }
.badge--rec { background: var(--green-700); color: #fff; }
/* spark emphasis near recommended */
.jcard--jsm::before, .jcard--jsm::after {
  content: ""; position: absolute; background: var(--ink); border-radius: 2px;
}
.jcard--jsm::before { width: 2px; height: 11px; top: -16px; left: 22px; transform: rotate(-22deg); }
.jcard--jsm::after { width: 2px; height: 11px; top: -14px; left: 34px; transform: rotate(14deg); }

/* ---------- Urgency strip ---------- */
.strip { background: var(--navy); color: #fff; position: relative; }
.strip__inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 26px; padding: 18px 24px; font-size: .94rem; }
.strip__item { color: rgba(255,255,255,.82); }
.strip__item strong { color: var(--yellow); }
.strip__sep { width: 1px; height: 16px; background: rgba(255,255,255,.22); }

/* ---------- Service Collection hero image ---------- */
.sc-hero { display: flex; justify-content: center; margin: 0 auto 32px; }
.sc-hero__img { width: 100%; max-width: 400px; height: auto; display: block; }

/* ---------- Solutions / ITSM practice cards ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.sol-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.sol-card:hover { border-color: var(--ink); box-shadow: 6px 8px 0 var(--blue-soft-2); transform: translateY(-3px); }
.sol-card--accent { border-color: var(--ink); box-shadow: 5px 6px 0 var(--yellow); }
.sol-card--accent:hover { box-shadow: 7px 9px 0 var(--yellow); }
.sol-card__badge {
  position: absolute; top: -11px; left: 18px;
  font-size: .68rem; font-weight: 800; letter-spacing: .01em;
  background: var(--navy); color: #fff; padding: .32em .72em; border-radius: 6px;
}
.sol-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sol-card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--yellow-tile); display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.sol-card__title h3 { font-size: 1.06rem; line-height: 1.2; }
.sol-card__en { font-size: .72rem; font-weight: 700; color: var(--ink-4); letter-spacing: .02em; }
.sol-card__pain { font-size: .9rem; color: var(--ink-2); margin-bottom: 16px; }
.sol-ticks { display: flex; flex-direction: column; gap: 9px; margin-top: auto; }
.sol-ticks li { position: relative; padding-left: 26px; font-size: .88rem; color: var(--ink); line-height: 1.45; }
.sol-ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 7'/%3E%3C/svg%3E") center/11px no-repeat;
}
.sol-card--accent .sol-ticks li::before { background-color: var(--green-700); }
.sol-note {
  margin-top: 30px; text-align: center; font-size: .98rem; color: var(--ink-2);
  background: var(--blue-soft); border: 1px solid var(--blue-soft-2);
  border-radius: var(--radius); padding: 16px 24px;
}
.sol-note strong { color: var(--blue-700); }

@media (max-width: 1080px) { .sol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sol-grid { grid-template-columns: 1fr; } }

/* ---------- Teams（不同團隊怎麼用 JSM） ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.team-card { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 24px 22px; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.team-card:hover { border-color: var(--ink); box-shadow: 6px 8px 0 var(--blue-soft-2); transform: translateY(-3px); }
.team-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.team-card__ic { width: 48px; height: 48px; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; }
.team-card__title h3 { font-size: 1.06rem; line-height: 1.25; }
.team-card__en { font-size: .73rem; font-weight: 700; color: var(--ink-4); letter-spacing: .02em; }
.team-card__lead { font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
.team-ticks { display: flex; flex-direction: column; gap: 8px; }
.team-ticks li { position: relative; padding-left: 24px; font-size: .87rem; color: var(--ink); line-height: 1.45; }
.team-ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 7'/%3E%3C/svg%3E") center/10px no-repeat;
}
.team-card__proof { margin-top: auto; padding-top: 14px; margin-bottom: 0; font-size: .82rem; font-weight: 600; color: var(--green-700); }
.team-card__proof::before { content: ""; display: block; border-top: 1px dashed var(--line); margin-bottom: 10px; }
.team-proof-bar { margin-top: 30px; text-align: center; font-size: .95rem; color: var(--ink-2); background: var(--bg-grey-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; }
.team-proof-bar strong { color: var(--blue-700); }

@media (max-width: 1080px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- Industries (tabbed) ---------- */
.ind-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 26px; }
.ind-tab {
  font-family: inherit; font-size: .98rem; font-weight: 700; color: var(--ink-2);
  background: #fff; border: 2px solid var(--line); border-radius: 10px;
  padding: .68em 1.3em; cursor: pointer; min-height: 46px;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.ind-tab:hover { border-color: var(--blue); color: var(--blue-700); }
.ind-tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.ind-panel {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-xl);
  padding: 34px 34px 30px; box-shadow: 8px 10px 0 rgba(23,43,77,.9);
}
.ind-intro { font-size: 1.05rem; color: var(--ink-2); max-width: 900px; margin-bottom: 26px; text-wrap: pretty; }
.ind-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.ind-col h3 {
  display: flex; align-items: center; gap: 10px; font-size: 1.1rem;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--line-2);
}
.ind-col h3 span.ind-col__ic { width: 34px; height: 34px; border-radius: 9px; background: var(--yellow-tile); display: grid; place-items: center; font-size: 1.02rem; flex-shrink: 0; }
.ind-list { display: flex; flex-direction: column; gap: 12px; }
.ind-list li { position: relative; padding-left: 26px; font-size: .94rem; color: var(--ink); line-height: 1.5; text-wrap: pretty; }
.ind-list--prod li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 7'/%3E%3C/svg%3E") center/11px no-repeat;
}
.ind-list--use li::before { content: "→"; position: absolute; left: 3px; top: 0; font-weight: 800; color: var(--blue); }
.ind-proof {
  margin-top: 26px; padding-top: 20px; border-top: 2px dashed var(--line);
  display: flex; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; font-size: .92rem; color: var(--ink-3);
}
.ind-proof__stat { font-weight: 800; color: var(--blue-700); font-size: 1rem; }
.ind-proof__clients { color: var(--ink-2); }
.ind-proof__clients strong { color: var(--ink); font-weight: 700; }

@media (max-width: 760px) {
  .ind-cols { grid-template-columns: 1fr; gap: 24px; }
  .ind-panel { padding: 24px 20px; box-shadow: 5px 6px 0 rgba(23,43,77,.9); }
}

/* ---------- Plans (version comparison) ---------- */
.plans-hl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 4px 0 34px; }
.plans-hl__item {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-lg); padding: 26px 18px;
}
.plans-hl__art { width: 92px; height: 92px; display: block; }
.plans-hl__art svg { width: 100%; height: 100%; display: block; }
.plans-hl__item strong { font-size: 1.04rem; color: var(--ink); font-weight: 800; }

.plans-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-lg); }
.plans-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .94rem; }
.plans-table th, .plans-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.plans-table thead th { background: var(--navy); color: #fff; font-weight: 700; font-size: .98rem; border-bottom: 0; }
.plans-table thead th:first-child { background: var(--navy); }
.plans-table thead th small { font-weight: 500; opacity: .8; font-size: .76rem; }
.plans-table thead th:first-child { border-top-left-radius: var(--radius); }
.plans-table thead th:last-child { border-top-right-radius: var(--radius); }
.plans-table tbody th[scope="row"], .plans-table__feat { text-align: left; font-weight: 600; color: var(--ink); white-space: nowrap; }
.plans-table tbody tr:nth-child(even) td, .plans-table tbody tr:nth-child(even) th { background: var(--bg-grey-2); }
.plans-table td.muted { color: var(--ink-4); }
/* 選中方案欄高亮（由上方切換鈕控制） */
.plans-table.sel-0 tbody td:nth-child(2),
.plans-table.sel-1 tbody td:nth-child(3),
.plans-table.sel-2 tbody td:nth-child(4) {
  background: var(--blue-soft) !important; color: var(--ink); font-weight: 600;
  box-shadow: inset 2px 0 0 var(--blue), inset -2px 0 0 var(--blue);
}
.plans-table.sel-0 thead th:nth-child(2),
.plans-table.sel-1 thead th:nth-child(3),
.plans-table.sel-2 thead th:nth-child(4) { background: var(--blue-700); color: #fff; }

.plans-hint { text-align: center; font-size: .9rem; color: var(--ink-3); margin-bottom: 16px; }
.plans-table thead th.plans-col { cursor: pointer; user-select: none; transition: background .15s ease; }
.plans-table thead th.plans-col:hover { background: var(--blue-700); }
.plans-table thead th.plans-col:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }
.plans-rec { display: inline-block; font-size: .62rem; font-weight: 800; background: var(--yellow); color: var(--ink); padding: .15em .5em; border-radius: 5px; margin-left: 4px; vertical-align: middle; }
.plans-table .ck, .plans-table .cr { display: inline-block; width: 23px; height: 23px; border-radius: 50%; }
.plans-table .ck { background: var(--green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 7'/%3E%3C/svg%3E") center/13px no-repeat; }
.plans-table .cr { background: var(--line-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238590A2' stroke-width='3.4' stroke-linecap='round'%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3C/svg%3E") center/12px no-repeat; }
.plans-note { margin-top: 16px; font-size: .82rem; color: var(--ink-3); text-align: center; }

@media (max-width: 720px) {
  .plans-hl { grid-template-columns: 1fr; gap: 14px; }
  .plans-hl__item { flex-direction: row; justify-content: flex-start; gap: 16px; padding: 18px 20px; text-align: left; }
  .plans-hl__art { width: 60px; height: 60px; flex-shrink: 0; }
  .plans-hint { font-size: .82rem; }
  .plans-table { min-width: 580px; font-size: .85rem; }
  .plans-table th, .plans-table td { padding: 11px 11px; }
  .plans-table thead th { font-size: .9rem; }
  .plans-table tbody th[scope="row"], .plans-table thead th.plans-table__feat { white-space: normal; }
  .plans-table td { text-wrap: pretty; }
}

/* ---------- Mobile app section ---------- */
.mobile__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.mobile__lead { font-size: 1.12rem; color: var(--ink-2); margin-top: 18px; max-width: 520px; }
.mobile__ticks { display: flex; flex-direction: column; gap: 11px; margin-top: 22px; }
.mobile__ticks li { position: relative; padding-left: 28px; font-size: .98rem; color: var(--ink); }
.mobile__ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

.app-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.appbadge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border-radius: 11px; padding: 8px 17px; min-height: 54px; transition: transform .15s ease, box-shadow .2s ease; }
.appbadge:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -12px rgba(0,0,0,.6); }
.appbadge__ic { width: 24px; height: 24px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.appbadge__ic svg { width: 100%; height: 100%; display: block; }
.appbadge__txt { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.appbadge__txt small { font-size: .6rem; font-weight: 500; letter-spacing: .02em; }
.appbadge__txt strong { font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.appbadge__txt small { color: #fff; }

.mobile__visual { display: flex; justify-content: center; }
.mobile__shot { width: 100%; max-width: 460px; height: auto; display: block; }
.phone { width: 290px; background: #0B1F44; border-radius: 40px; padding: 10px; position: relative; box-shadow: 0 30px 60px -22px rgba(9,30,66,.55), 0 0 0 2px rgba(9,30,66,.1); }
.phone__screen { background: #fff; border-radius: 32px; overflow: hidden; min-height: 520px; }
.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 4px; font-size: .74rem; font-weight: 700; color: var(--ink); }
.phone__status-ic { letter-spacing: 1px; font-size: .58rem; }
.phone__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 18px 12px; border-bottom: 1px solid var(--line-2); }
.phone__back, .phone__more { font-size: 1.3rem; font-weight: 700; width: 22px; flex-shrink: 0; }
.phone__back { color: var(--blue); }
.phone__more { color: var(--ink-3); text-align: right; }
.phone__title { text-align: center; font-size: .84rem; font-weight: 700; color: var(--ink); line-height: 1.25; }
.phone__title small { font-size: .72rem; font-weight: 600; color: var(--blue); }
.ticket { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.ticket__ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: .92rem; flex-shrink: 0; background: var(--blue-soft); }
.ticket__ico--b { background: var(--yellow-soft); }
.ticket__ico--c { background: #FFECE8; }
.ticket__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ticket__t { font-size: .82rem; font-weight: 600; color: var(--ink); }
.ticket__meta { display: flex; align-items: center; gap: 8px; font-size: .66rem; color: var(--ink-4); font-weight: 600; }
.pill { font-style: normal; font-size: .6rem; font-weight: 800; padding: .2em .5em; border-radius: 4px; letter-spacing: .02em; white-space: nowrap; }
.pill--blue { background: var(--blue-soft); color: var(--blue-700); }
.pill--yellow { background: var(--yellow-soft); color: #8A6D00; }

@media (max-width: 920px) {
  .mobile__inner { grid-template-columns: 1fr; gap: 40px; }
  .mobile__visual { order: -1; }
}

/* ---------- Lightbox (enlarge feature screenshots) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 4vw;
  background: rgba(9,30,66,.84); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; animation: lb-fade .18s ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img { max-width: 96vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.5); background: #fff; }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; width: 46px; height: 46px;
  font-size: 2rem; line-height: 1; color: #fff; background: rgba(255,255,255,.14);
  border: 0; border-radius: 50%; cursor: pointer; transition: background .15s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,.28); }
.feature-card__img img { transition: transform .25s ease; }
.feature-card__img:hover img { transform: scale(1.02); }

/* ---------- FAQ inline comparison table ---------- */
.faq-table-wrap { overflow-x: auto; margin: 14px 0 16px; -webkit-overflow-scrolling: touch; }
.faq-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 380px; }
.faq-table th, .faq-table td { padding: 9px 12px; border: 1px solid var(--line); text-align: center; }
.faq-table thead th { background: var(--bg-grey-2); color: var(--ink); font-weight: 700; }
.faq-table tbody td:first-child, .faq-table thead th:first-child { text-align: left; font-weight: 600; color: var(--ink); white-space: nowrap; }
.faq-table .yes { color: var(--green-700); font-weight: 800; }
.faq-table .no { color: var(--ink-4); font-weight: 800; }

/* ---------- Section base ---------- */
.section { padding: 100px 0; position: relative; }
.section--alt { background: var(--bg-grey); }
.section--dark {
  background: var(--navy); color: #fff;
  clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%);
  margin-top: -1px; padding-top: calc(100px + 3vw);
}
.section--dark + .section--dark { clip-path: none; padding-top: 100px; }

.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.12; }
.section--dark .section__head h2 { color: #fff; }
.section__sub { margin-top: 16px; font-size: 1.1rem; color: var(--ink-2); }
.section--dark .section__sub { color: rgba(255,255,255,.82); }
.section--dark code { background: rgba(76,154,255,.2); color: #9DC8FF; }

/* ---------- Why (asymmetric bento) ---------- */
.why { display: grid; grid-template-columns: 1.12fr .88fr; gap: 22px; align-items: stretch; }
.why__col { display: grid; grid-template-rows: 1fr 1fr; gap: 22px; }
.why__lead {
  position: relative; overflow: hidden; background: var(--blue); color: #fff;
  border-radius: var(--radius-lg); padding: 40px 38px; display: flex; flex-direction: column;
}
.why__lead::after { content: ""; position: absolute; width: 90px; height: 90px; right: 26px; top: 26px; background: var(--yellow); border-radius: 22px; transform: rotate(16deg); opacity: .9; }
.why__lead h3 { color: #fff; font-size: 1.6rem; line-height: 1.22; margin-bottom: 14px; position: relative; }
.why__lead p { color: rgba(255,255,255,.92); font-size: 1.04rem; position: relative; }
.why__link { margin-top: auto; padding-top: 22px; font-weight: 800; color: #fff; align-self: flex-start; border-bottom: 2px solid var(--yellow); position: relative; }
.info-card__icon--on-accent { background: rgba(255,255,255,.18); }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-soft-2); }
.info-card__icon { font-size: 1.7rem; width: 56px; height: 56px; border-radius: var(--tile); display: grid; place-items: center; background: var(--yellow-tile); margin-bottom: 18px; }
.info-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.info-card p { color: var(--ink-2); font-size: .98rem; }

/* ---------- Service Collection ---------- */
.sc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sc-card {
  position: relative; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: 26px 22px 24px; box-shadow: 6px 6px 0 var(--blue-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sc-card:hover { transform: translateY(-4px); box-shadow: 9px 9px 0 var(--blue-soft); }
.sc-card--jsm { box-shadow: 6px 6px 0 var(--yellow); }
.sc-card--jsm:hover { box-shadow: 9px 9px 0 var(--yellow); }
.sc-tile {
  width: 54px; height: 54px; border-radius: var(--tile); background: var(--yellow);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px;
  box-shadow: inset 0 0 0 2px var(--ink);
}
.sc-card h3 { font-size: 1.12rem; line-height: 1.25; margin-bottom: 10px; }
.sc-card p { font-size: .92rem; color: var(--ink-2); }
.sc-badge {
  position: absolute; top: -12px; left: 20px; font-size: .68rem; font-weight: 800;
  background: var(--green-700); color: #fff; padding: .3em .7em; border-radius: 6px;
}
.sc-note { text-align: center; max-width: 760px; margin: 26px auto 0; font-size: .92rem; color: var(--ink-3); }
.sc-note--platform { margin-top: 18px; }

.sc-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 44px; }
.sc-vs { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-lg); padding: 28px 28px 24px; }
.sc-vs--in { box-shadow: 6px 6px 0 var(--blue-soft); }
.sc-vs--out { box-shadow: 6px 6px 0 var(--orange-soft); }
.sc-vs__head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.sc-vs__head h4 { font-size: 1.18rem; }
.sc-tile--sm { width: 40px; height: 40px; font-size: 1.15rem; margin-bottom: 0; border-radius: 10px; }
.sc-tile--orange { background: var(--orange); }
.sc-vs__lead { font-weight: 700; color: var(--ink); margin-bottom: 16px; font-size: .98rem; }
.sc-vs dl { display: grid; gap: 0; }
.sc-vs dl > div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.sc-vs dt { font-weight: 700; color: var(--ink-3); font-size: .9rem; }
.sc-vs dd { color: var(--ink-2); font-size: .94rem; }

/* ---------- Feature showcase ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 6px 6px 0 var(--blue-soft); transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 9px 9px 0 var(--blue-soft); }
.feature-card__img { background: var(--bg-grey-2); border-bottom: 2px solid var(--ink); aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 14px; overflow: hidden; }
.feature-card__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 6px; box-shadow: var(--shadow-sm); }
.feature-card__body { padding: 20px 22px 24px; }
.feature-card__tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--blue-700); background: var(--blue-soft); padding: .3em .7em; border-radius: 6px; margin-bottom: 10px; }
.feature-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature-card p { font-size: .92rem; color: var(--ink-2); }
.feature-card--wide { grid-column: 1 / -1; flex-direction: row; }
.feature-card--wide .feature-card__img { border-bottom: 0; border-right: 2px solid var(--ink); aspect-ratio: 16 / 7; flex: 1 1 56%; }
.feature-card--wide .feature-card__body { flex: 1 1 44%; align-self: center; padding: 28px 32px; }

/* ---------- Paths ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.path-card {
  position: relative; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: 34px 32px; box-shadow: 8px 8px 0 var(--blue-soft); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.path-card--compass { box-shadow: 8px 8px 0 var(--purple-soft); }
.path-card:hover { transform: translateY(-4px); box-shadow: 12px 12px 0 var(--blue-soft); }
.path-card--compass:hover { box-shadow: 12px 12px 0 var(--purple-soft); }
.path-card__top { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.path-card__opt { font-size: .76rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.path-card--jsm .path-card__opt { color: var(--green-700); }
.path-card__logo { display: flex; align-items: center; gap: 12px; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.path-card__icon { width: 44px; height: 44px; border-radius: var(--tile); display: grid; place-items: center; color: #fff; font-size: 1.25rem; flex-shrink: 0; }
.path-card__icon.jsm { background: var(--blue); }
.path-card__icon.compass { background: var(--purple); }
.path-card__tag { font-weight: 700; color: var(--ink); margin-bottom: 20px; font-size: 1rem; }
.path-card__foot { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--ink-3); }
.path-card__foot::before { content: "★ "; color: var(--yellow); }

.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink-2); font-size: .98rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-700); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--blue-soft); -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
.compare th, .compare td { padding: 18px 20px; text-align: center; border-bottom: 1px solid var(--line-2); }
.compare thead th { background: var(--ink); color: #fff; }
.compare__feat, .compare tbody th { text-align: left; font-weight: 700; color: var(--ink); }
.compare tbody th { background: var(--bg-grey-2); width: 32%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td, .compare tbody tr:hover th { background: var(--blue-soft); }
.th-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 800; color: #fff; }
.th-pill__mark { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; background: var(--purple); color: #fff; font-size: .8rem; flex-shrink: 0; }
.compare .yes { font-size: 0; line-height: 0; }
.compare .yes::before {
  content: ""; display: inline-block; width: 26px; height: 26px; border-radius: 50%; vertical-align: middle;
  background: var(--green-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 7'/%3E%3C/svg%3E") center/15px no-repeat;
}
.compare .no { color: var(--ink-4); font-size: 1.15rem; }
.compare__note { text-align: center; margin-top: 20px; font-size: .92rem; color: var(--ink-3); }
.compare__note a { color: var(--blue-700); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Steps (dark) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 26px 22px; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.step:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); border-color: var(--yellow); }
.step__num { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; color: var(--yellow); line-height: 1; margin-bottom: 14px; }
.step h3 { color: #fff; font-size: 1.12rem; margin-bottom: 12px; }
.step ul li { position: relative; padding-left: 18px; font-size: .9rem; color: rgba(255,255,255,.78); margin-bottom: 8px; }
.step ul li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }

.parallel-note { display: flex; align-items: center; gap: 24px; margin-top: 34px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-left: 4px solid var(--yellow); border-radius: var(--radius); padding: 24px 28px; }
.parallel-note__num { font-size: 2.7rem; font-weight: 800; color: var(--yellow); line-height: 1; letter-spacing: -.03em; flex-shrink: 0; }
.parallel-note__num span { font-size: 1rem; font-weight: 800; margin-left: 2px; }
.parallel-note h4 { color: #fff; font-size: 1.14rem; margin-bottom: 6px; }
.parallel-note p { color: rgba(255,255,255,.82); font-size: .95rem; }

.migrated { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.migrated__col { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 26px; }
.migrated__col h4 { color: var(--yellow); font-size: 1.02rem; margin-bottom: 16px; }

/* ---------- Migration journey timeline（序列階段 + 平行軌道） ---------- */
.jtl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 12px; }
.jtl-step { position: relative; padding: 0 20px 0 0; }
.jtl-step__num {
  width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(120% 120% at 32% 26%, #FFE684, var(--yellow));
  color: var(--navy); font-weight: 800; font-size: 1.08rem; display: grid; place-items: center;
  position: relative; z-index: 2;
  box-shadow: 0 6px 18px -4px rgba(255,199,22,.5), inset 0 1px 1px rgba(255,255,255,.6);
}
.jtl-step:not(:last-child)::before { content: ""; position: absolute; top: 22px; left: 50px; right: 12px; height: 2px; background: linear-gradient(90deg, rgba(255,199,22,.6), rgba(255,255,255,.1)); z-index: 0; }
.jtl-step:not(:last-child)::after { content: "›"; position: absolute; top: 8px; right: 4px; color: rgba(255,199,22,.75); font-size: 1.6rem; font-weight: 700; line-height: 1; z-index: 1; }
.jtl-step__phase { display: inline-block; margin: 13px 0 4px; font-size: .72rem; font-weight: 800; letter-spacing: .05em; color: var(--yellow); }
.jtl-step h3 { color: #fff; font-size: 1.04rem; margin-bottom: 10px; }
.jtl-step ul { display: flex; flex-direction: column; gap: 7px; }
.jtl-step ul li { position: relative; padding-left: 14px; font-size: .86rem; color: rgba(255,255,255,.8); line-height: 1.5; }
.jtl-step ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); }

.jtl-parallel { margin-top: 46px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 20px 50px -30px rgba(0,0,0,.7); }
.jtl-parallel__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.jtl-parallel__badge { background: var(--yellow); color: var(--navy); font-weight: 800; font-size: .74rem; padding: .35em .8em; border-radius: 6px; white-space: nowrap; }
.jtl-parallel__head h4 { color: #fff; font-size: 1.05rem; }
.jtl-pcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.jtl-runbar { display: flex; align-items: center; gap: 14px; margin-top: 14px; background: rgba(75,206,151,.1); border: 1px solid rgba(75,206,151,.3); border-radius: 12px; padding: 15px 20px; }
.jtl-runbar__ic { font-size: 1.35rem; line-height: 1; flex-shrink: 0; }
.jtl-runbar p { font-size: .9rem; color: rgba(255,255,255,.88); line-height: 1.55; }
.jtl-runbar strong { color: var(--lime); }
.jtl-pcard { background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.025)); border: 1px solid rgba(255,255,255,.1); border-top: 3px solid var(--yellow); border-radius: 14px; padding: 20px 20px 22px; box-shadow: 0 12px 30px -18px rgba(0,0,0,.6); }
.jtl-pcard--run { border-top-color: var(--lime); }
.jtl-pcard h5 { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1rem; margin-bottom: 3px; }
.jtl-pcard__ic { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 1.05rem; flex-shrink: 0; }
.jtl-pcard__by { display: block; font-size: .74rem; color: rgba(255,255,255,.5); margin-bottom: 14px; padding-left: 42px; }
.jtl-pcard ul { display: flex; flex-direction: column; gap: 7px; }
.jtl-pcard ul li { position: relative; padding-left: 14px; font-size: .84rem; color: rgba(255,255,255,.82); line-height: 1.45; }
.jtl-pcard ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; border-radius: 50%; background: var(--yellow); }
.jtl-pcard p { font-size: .86rem; color: rgba(255,255,255,.82); line-height: 1.55; }
.jtl-note { margin-top: 16px; font-size: .8rem; color: rgba(255,255,255,.6); }

@media (max-width: 860px) {
  .jtl-steps { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .jtl-step:not(:last-child)::before, .jtl-step:not(:last-child)::after { display: none; }
}
@media (max-width: 820px) { .jtl-pcards { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .jtl-steps { grid-template-columns: 1fr; gap: 26px; }
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { font-size: .86rem; padding: .45em .9em; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #DCE3F0; }

/* ---------- Timeline ---------- */
.tl { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 880px; margin: 0 auto; }
.tl__line { position: absolute; top: 26px; left: 8%; right: 8%; height: 3px; background: linear-gradient(90deg, var(--yellow), var(--red)); border-radius: 3px; opacity: .3; }
.tl__item { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px 26px 24px; margin-top: 36px; box-shadow: 6px 6px 0 var(--yellow-soft); }
.tl__item--danger { box-shadow: 6px 6px 0 var(--orange-soft); }
.tl__dot { position: absolute; top: -54px; left: 50%; transform: translateX(-50%); width: 18px; height: 18px; border-radius: 50%; border: 4px solid var(--bg); }
.tl__item--warn .tl__dot { background: var(--yellow); }
.tl__item--danger .tl__dot { background: var(--red); }
.tl__date { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.tl__item h3 { font-size: 1.06rem; margin: 6px 0 14px; }
.tl__item ul li { position: relative; padding-left: 22px; margin-bottom: 9px; color: var(--ink-2); font-size: .95rem; }
.tl__item ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green-700); font-weight: 800; }
.tl__item--danger ul li::before { content: "!"; color: var(--red); }

.cta-band {
  margin-top: 50px; background: var(--blue); border-radius: var(--radius-lg); padding: 38px 40px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; overflow: hidden; position: relative;
}
.cta-band::after { content: ""; position: absolute; width: 110px; height: 110px; right: -34px; top: -40px; background: var(--yellow); border-radius: 28px; transform: rotate(18deg); opacity: .9; z-index: 0; pointer-events: none; }
.cta-band h3 { color: #fff; font-size: 1.5rem; position: relative; z-index: 1; }
.cta-band p { color: rgba(255,255,255,.92); margin-top: 4px; position: relative; z-index: 1; }
.cta-band .btn--primary { background: #fff; color: var(--blue-700); position: relative; z-index: 1; }
.cta-band .btn--primary:hover { background: var(--yellow-soft); }

/* ---------- FAQ ---------- */
.faq-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 36px; }
.faq-tab {
  font-family: inherit; font-size: .96rem; font-weight: 700; color: var(--ink-2);
  background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: .65em 1.4em; cursor: pointer;
  transition: all .15s ease; min-height: 44px;
}
.faq-tab:hover { border-color: var(--blue); color: var(--blue-700); }
.faq-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.faq-list { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.faq-item.is-open { box-shadow: var(--shadow); border-color: var(--blue); }
.faq-q { width: 100%; text-align: left; font-family: inherit; cursor: pointer; display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; background: none; border: 0; font-size: 1.04rem; font-weight: 700; color: var(--ink); }
.faq-q__no { flex-shrink: 0; font-weight: 800; color: var(--blue-700); font-size: .9rem; background: var(--blue-soft); border-radius: 7px; padding: .25em .55em; line-height: 1.5; }
.faq-q__text { flex: 1; }
.faq-q__ic { flex-shrink: 0; width: 24px; height: 24px; position: relative; margin-top: 3px; }
.faq-q__ic::before, .faq-q__ic::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); background: var(--blue); border-radius: 2px; }
.faq-q__ic::before { width: 14px; height: 2px; }
.faq-q__ic::after { width: 2px; height: 14px; transition: transform .25s ease; }
.faq-item.is-open .faq-q__ic::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a__inner { padding: 0 22px 22px 70px; color: var(--ink-2); font-size: .98rem; }
.faq-a__inner p { margin-bottom: 10px; }
.faq-a__inner ul { margin: 6px 0 10px; }
.faq-a__inner ul li { position: relative; padding-left: 18px; margin-bottom: 7px; }
.faq-a__inner ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.faq-a__inner strong { color: var(--ink); }
.faq-a__inner a { color: var(--blue-700); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.faq-a__inner .hl { color: var(--blue-700); font-weight: 800; }

/* ---------- Contact ---------- */
.contact__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.contact__copy h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.18; }
.contact__copy p { color: rgba(255,255,255,.84); margin-top: 16px; font-size: 1.05rem; }
.contact__points { margin-top: 22px; display: grid; gap: 10px; }
.contact__points li { position: relative; padding-left: 28px; color: rgba(255,255,255,.92); }
.contact__points li::before { content: "✓"; position: absolute; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--green-700); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }

.contact__card { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.contact__card h3 { font-size: 1.3rem; margin-bottom: 22px; }
.contact__line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-2); color: var(--ink); transition: color .15s ease; }
.contact__line:hover { color: var(--blue-700); }
.contact__ic { width: 42px; height: 42px; border-radius: var(--tile); background: var(--yellow-tile); display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.contact__lbl { display: block; font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.contact__line span:last-child { font-weight: 700; font-size: .98rem; line-height: 1.3; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-2); color: rgba(255,255,255,.7); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; padding: 56px 24px 36px; }
.footer .brand { color: #fff; }
.footer__brand p { margin-top: 12px; font-size: .9rem; }
.footer__brand a { color: var(--blue-400, #85B8FF); font-weight: 600; }
.footer__brand a:hover { text-decoration: underline; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__nav a { font-size: .92rem; color: rgba(255,255,255,.7); transition: color .15s ease; }
.footer__nav a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; }
.footer__bottom .container { font-size: .82rem; color: rgba(255,255,255,.5); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

/* ===================================================================
   Responsive / mobile optimisation
   =================================================================== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { max-width: 480px; }
  .why { grid-template-columns: 1fr; }
  .why__col { grid-template-rows: auto auto; }
  .cards-3 { grid-template-columns: 1fr; }
  .sc-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 1100px) {
  /* 多國語系：較長的導覽標籤在中等寬度會擠壓換行，提早收進漢堡選單（對所有語言都安全） */
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.is-menu-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; padding: 12px 20px 20px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.is-menu-open .nav__links a { padding: .85em .6em; font-size: 1rem; text-align: left; white-space: normal; }
}

@media (max-width: 760px) {
  :root { --radius-lg: 16px; --radius-xl: 22px; }

  .hero { padding: calc(var(--nav-h) + 36px) 0 72px; }
  .hero__bg { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6vw), 0 100%); }
  .hero__bg::after { width: 80px; height: 80px; right: -10px; top: 8px; box-shadow: none; }
  .hero__title { font-size: clamp(2rem, 8.5vw, 2.7rem); }
  .hero__lead { font-size: 1.05rem; }
  .hero__actions { gap: 10px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__stats { gap: 22px; flex-wrap: wrap; margin-top: 36px; }
  .stat__num { font-size: 1.8rem; }

  .journey { padding: 24px 18px 28px; box-shadow: 6px 7px 0 rgba(23,43,77,.9); }

  .section { padding: 68px 0; }
  .section--alt, .section--dark { }
  .section--dark { clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0 100%); padding-top: calc(68px + 5vw); }
  .section__head { margin-bottom: 40px; }
  .section__sub { font-size: 1.02rem; }

  .steps { grid-template-columns: 1fr; }
  .paths, .migrated, .tl, .sc-grid, .sc-compare, .feature-grid { grid-template-columns: 1fr; }
  .feature-card--wide { flex-direction: column; }
  .feature-card--wide .feature-card__img { border-right: 0; border-bottom: 2px solid var(--ink); aspect-ratio: 16 / 10; }
  .sc-card, .sc-vs { box-shadow: 5px 5px 0 var(--blue-soft); }
  .sc-card--jsm { box-shadow: 5px 5px 0 var(--yellow); }
  .tl__line, .tl__dot { display: none; }
  .tl__item { margin-top: 0; }

  .why__lead { padding: 32px 26px; }
  .why__lead h3 { font-size: 1.4rem; }
  .path-card, .tl__item, .table-wrap { box-shadow: 5px 5px 0 var(--blue-soft); }
  .path-card--compass { box-shadow: 5px 5px 0 var(--purple-soft); }

  .parallel-note { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; }
  .cta-band { padding: 28px 24px; text-align: center; justify-content: center; }
  .cta-band .btn { width: 100%; }

  .faq-q { font-size: .98rem; padding: 18px; gap: 10px; }
  .faq-a__inner { padding: 0 18px 20px 18px; }

  .strip__sep { display: none; }
  .strip__inner { gap: 8px 18px; font-size: .88rem; }

  .footer__inner { flex-direction: column; gap: 24px; padding: 44px 24px 28px; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .hero__stats { gap: 18px; }
  .stat { flex: 1 1 28%; }
  .journey__targets { grid-template-columns: 1fr; }
  .journey__branch { display: none; }
  .journey__source { margin-bottom: 14px; }
}
