/* ============================================================
   芮淇勞資顧問 — Redesign token system
   Brand constants + 3 directions (a/b/c) × light/dark themes.
   Direction = shape/spacing/accent.  Theme = color surfaces.
   They are orthogonal: [data-dir] × [data-theme] compose.
   ============================================================ */

#ivy-app {
  /* —— brand constants (never change) —— */
  --navy:    #1B3F78;
  --navy-2:  #2C5494;
  --navy-700:#163461;
  --navy-900:#0c244a;
  --navy-950:#081a38;
  --ink-soft:#6A7E9C;
  --leaf:    #8FC859;
  --teal:    #5BB39A;
  --sky:     #3B8BC7;
  --amber:   #F4A623;
  --amber-soft:#FFE7C2;
  --paper:   #F7F9F5;
  --paper-2: #FFFFFF;
  --line-lt: #E3E7DE;

  --grad:     linear-gradient(135deg, #8FC859 0%, #5BB39A 45%, #3B8BC7 100%);
  --grad-rev: linear-gradient(135deg, #3B8BC7 0%, #5BB39A 50%, #8FC859 100%);
  --grad-soft:linear-gradient(135deg, rgba(143,200,89,.16), rgba(91,179,154,.14), rgba(59,139,199,.16));

  /* type */
  --sans: "Noto Serif TC", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --fz-display: clamp(40px, 5.6vw, 78px);
  --fz-h1: clamp(32px, 3.6vw, 50px);
  --fz-h2: clamp(26px, 2.6vw, 38px);
  --fz-section: clamp(30px, 8vw, 48px);  /* 各 section 主標統一：桌機 48px、手機自動縮到 ~31px（避免斷字） */
  --fz-h3: clamp(19px, 1.5vw, 24px);
  --fz-body: 16.5px;
  --fz-sm: 1rem;
  --fz-xs: 1rem;

  --maxw: 1200px;
}

/* ============================================================
   THEME — light (default)
   ============================================================ */
#ivy-app, #ivy-app[data-theme="light"] {
  --bg:        var(--paper);
  --bg-2:      #EEF3EC;
  --surface:   #FFFFFF;
  --surface-2: #F4F7FA;
  --surface-3: #FBFCFA;
  --ink:       var(--navy);
  --ink-2:     var(--navy-2);
  --ink-mute:  var(--ink-soft);
  --line:      var(--line-lt);
  --line-strong:#CFD9E6;
  --on-grad:   #ffffff;
  --halo:      rgba(27,63,120,.05);
  --dot:       rgba(59,139,199,.30);
  --wave:      rgba(59,139,199,.22);
  --band-bg:   var(--navy);   /* dark editorial band */
  --band-ink:  #EAF1FB;
  --band-soft: #B9CBE6;
}

/* ============================================================
   THEME — dark
   ============================================================ */
#ivy-app[data-theme="dark"] {
  --bg:        var(--navy-950);
  --bg-2:      #0a2042;
  --surface:   rgba(255,255,255,.045);
  --surface-2: rgba(255,255,255,.07);
  --surface-3: rgba(255,255,255,.03);
  --ink:       #EAF1FB;
  --ink-2:     #C7D8F0;
  --ink-mute:  #8AA0C0;
  --line:      rgba(255,255,255,.12);
  --line-strong: rgba(255,255,255,.20);
  --on-grad:   #06183a;
  --halo:      rgba(143,200,89,.06);
  --dot:       rgba(120,180,230,.26);
  --wave:      rgba(120,180,230,.18);
  --band-bg:   #06112a;
  --band-ink:  #EAF1FB;
  --band-soft: #94abce;
}
#ivy-app[data-theme="dark"] body { color-scheme: dark; }

/* ============================================================
   DIRECTION A — 精緻顧問  (refined / editorial / authority)
   hairline borders · small radius · restrained gradient · tight
   ============================================================ */
#ivy-app[data-dir="a"] {
  --radius: 5px;
  --radius-lg: 7px;
  --radius-pill: 6px;
  --bd-w: 1px;
  --shadow: none;
  --shadow-lg: 0 1px 0 var(--line);
  --card-bd: var(--line-strong);
  --card-bg: var(--surface);
  --sec-pad: clamp(72px, 9vw, 132px);
  --gap: 20px;
  --eyebrow-ls: .28em;
  --head-weight: 700;
  --btn-radius: 6px;
  --accent-line: 2px;           /* thin underline accents */
  --texture: none;
}

/* ============================================================
   DIRECTION B — 現代 SaaS  (airy · soft cards · gradient accents)
   ============================================================ */
#ivy-app[data-dir="b"] {
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --bd-w: 1px;
  --shadow: 0 2px 4px rgba(27,63,120,.05), 0 14px 34px -20px rgba(27,63,120,.20);
  --shadow-lg: 0 6px 16px rgba(27,63,120,.07), 0 34px 70px -34px rgba(27,63,120,.30);
  --card-bd: var(--line);
  --card-bg: var(--surface);
  --sec-pad: clamp(84px, 10vw, 150px);
  --gap: 26px;
  --eyebrow-ls: .2em;
  --head-weight: 800;
  --btn-radius: 999px;
  --accent-line: 4px;
  --texture: dots;
}

/* ============================================================
   DIRECTION C — 溫暖社群  (warm · friendly · figures featured)
   ============================================================ */
#ivy-app[data-dir="c"] {
  --radius: 12px;
  --radius-lg: 12px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --bd-w: 1.5px;
  --shadow: 0 3px 6px rgba(27,63,120,.06), 0 18px 40px -24px rgba(91,179,154,.28);
  --shadow-lg: 0 8px 20px rgba(27,63,120,.08), 0 40px 80px -36px rgba(91,179,154,.34);
  --card-bd: var(--line);
  --card-bg: var(--surface);
  --sec-pad: clamp(80px, 9.5vw, 140px);
  --gap: 28px;
  --eyebrow-ls: .16em;
  --head-weight: 800;
  --btn-radius: 999px;
  --accent-line: 6px;
  --texture: none;
}
/* warm paper for direction C light */
#ivy-app[data-dir="c"][data-theme="light"] {
  --bg: #FAF8F2;
  --bg-2: #F1F1E6;
  --surface-2: #F6F4EC;
}

/* ============================================================
   芮淇勞資顧問 — Redesign structure & components
   All color/shape via theme.css variables. Direction-specific
   structural tweaks live at the bottom.
   ============================================================ */

#ivy-app * { box-sizing: border-box; }
#ivy-app, #ivy-app { margin: 0; padding: 0; }
/* Blocksy 浮動 glass 頁首避讓:錨點跳轉時目標頂部留白 */
#ivy-app #course, #ivy-app #why, #ivy-app #inst, #ivy-app #faq { scroll-margin-top: 110px; }
@media (max-width: 999.98px) { #ivy-app #course, #ivy-app #why, #ivy-app #inst, #ivy-app #faq { scroll-margin-top: 80px; } }
#ivy-app { scroll-behavior: smooth; overflow-x: clip; }
#ivy-app {
  font-family: var(--sans);
  font-size: var(--fz-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  letter-spacing: .02em;
  /* clip (not hidden) horizontal overflow: entrance animations (.from-r/.from-l translateX)
     and decorative .m-halo glows sit off-screen; clip prevents the page from scrolling
     sideways on mobile without breaking the sticky nav (hidden would, and also fails to
     clip here due to body→viewport overflow propagation). */
  overflow-x: clip;
  transition: background .4s ease, color .4s ease;
}
#ivy-app a { color: inherit; text-decoration: none; }
#ivy-app button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
#ivy-app img, #ivy-app svg { display: block; max-width: 100%; }
#ivy-app ::selection { background: rgba(91,179,154,.28); }
/* 響應式換行工具：br-m 只在手機(≤640px)換行；m-only 只在手機顯示；d-only 只在桌機顯示（如分隔符「·」） */
@media (min-width: 641px) { #ivy-app .br-m, #ivy-app .m-only { display: none; } }
@media (max-width: 640px) { #ivy-app .d-only { display: none; } }

#ivy-app .container { width: min(var(--maxw), 90vw); margin: 0 auto; }

/* —— Back to Top：空心圓 + 進度環（綠→藍漸層）+ 上箭頭 —— */
#ivy-app .to-top {
  position: fixed; right: clamp(16px, 3.5vw, 30px); bottom: clamp(16px, 3.5vw, 30px);
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255,255,255,.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 6px 20px rgba(27,63,120,.18); cursor: pointer; z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.92);
  transition: opacity .3s ease, transform .3s ease, visibility .3s, box-shadow .25s ease;
}
#ivy-app .to-top.show { opacity: 1; visibility: visible; transform: none; }
#ivy-app .to-top:hover { box-shadow: 0 10px 28px rgba(27,63,120,.28); }
#ivy-app .to-top .tt-ring { position: absolute; width: 56px; height: 56px; transform: rotate(-90deg); }
#ivy-app .to-top .tt-track { fill: none; stroke: rgba(27,63,120,.15); stroke-width: 3.5; }
#ivy-app .to-top .tt-prog { fill: none; stroke: url(#ttGrad); stroke-width: 3.5; stroke-linecap: round; transition: stroke-dashoffset .12s linear; }
#ivy-app .to-top .tt-arrow { position: relative; width: 21px; height: 21px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#ivy-app[data-theme="dark"] .to-top { background: rgba(12,36,74,.55); }
#ivy-app[data-theme="dark"] .to-top .tt-track { stroke: rgba(255,255,255,.18); }
#ivy-app[data-theme="dark"] .to-top .tt-arrow { stroke: #EAF1FB; }
#ivy-app .gradtext {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
#ivy-app .mono { font-family: var(--mono); }

/* —— shared eyebrow + section head —— */
#ivy-app .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: var(--fz-xs);
  letter-spacing: var(--eyebrow-ls); text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500;
}
#ivy-app .eyebrow .ln { width: 26px; height: 1px; background: var(--grad); }

#ivy-app .sec-head { max-width: 720px; margin: 0 auto clamp(48px, 6vw, 76px); text-align: center; }
/* 賣點區：標題＋第一張卡片釘住，第二三張往上疊到第一張上面，疊完後整段一起捲走。
   padding-bottom 讓標題的 sticky 容器與卡片同時釋放（一起滑走、不互相穿過）。 */
#ivy-app .sells .sec-head { position: sticky; top: 75px; padding-bottom: 285px; margin-bottom: 0; pointer-events: none; }
#ivy-app .sec-head.left { margin-left: 0; text-align: left; }
#ivy-app .sec-head .eyebrow { margin-bottom: 18px; font-size: 1rem; }
#ivy-app .sec-title {
  font-size: var(--fz-section); line-height: 1.16; font-weight: var(--head-weight);
  letter-spacing: normal; margin: 0; color: var(--ink); text-wrap: balance;
}
#ivy-app .sec-sub {
  font-size: 1.2rem; line-height: 1.75; color: var(--ink-2);
  margin: 18px auto 0; max-width: 580px;
}
#ivy-app .sec-head.left .sec-sub { margin-left: 0; }

#ivy-app section { padding: var(--sec-pad) 0; position: relative; }

/* —— buttons —— */
#ivy-app .btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 24px; border-radius: var(--btn-radius);
  font-weight: 600; font-size: 1rem; letter-spacing: .02em; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
#ivy-app .btn .arr { transition: transform .2s ease; }
#ivy-app .btn:hover .arr { transform: translateX(3px); }
#ivy-app .btn-primary { background: var(--ink); color: var(--bg); }
#ivy-app[data-theme="dark"] .btn-primary { background: var(--grad); color: var(--on-grad); }
#ivy-app .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
#ivy-app .btn-grad { background: var(--grad); color: var(--on-grad); }
#ivy-app .btn-grad:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(59,139,199,.5); }
#ivy-app .btn-line {
  background: transparent; border: var(--bd-w) solid var(--card-bd); color: var(--ink);
}
#ivy-app .btn-line:hover { border-color: var(--sky); color: var(--ink); }

/* —— glass button · frosted fill + flowing gradient border —— */
#ivy-app .btn-glass {
  position: relative;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
          backdrop-filter: blur(10px) saturate(1.3);
  border: none;
  isolation: isolate;
  overflow: hidden;
}
/* flowing gradient ring (animated) */
#ivy-app .btn-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(115deg, #8FC859, #5BB39A, #3B8BC7, #5BB39A, #8FC859);
  background-size: 280% 280%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: glassFlow 5s linear infinite;
  pointer-events: none;
  z-index: 1;
}
/* soft inner sheen — the "bubble" highlight */
#ivy-app .btn-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 25% 12%, rgba(255,255,255,.55), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
#ivy-app .btn-glass > * { position: relative; z-index: 2; }
#ivy-app .btn-glass:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgba(59,139,199,.55); }
@keyframes glassFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 280% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  #ivy-app .btn-glass::before { animation: none; }
}
#ivy-app .btn .dot {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: #06C755; color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0;
}

/* —— line-icon chip —— */
#ivy-app .ico-line { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================ background motifs */
#ivy-app .motif { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
#ivy-app .motif > * { position: absolute; }
#ivy-app .sec-inner { position: relative; z-index: 1; }

#ivy-app .m-dots {
  inset: 0;
  background-image: radial-gradient(var(--dot) 1.3px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  opacity: .5;
}
#ivy-app .m-halo {
  width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; border-radius: 50%;
  background: radial-gradient(circle, var(--halo), transparent 68%);
}

/* ============================================================ NAV */
#ivy-app .nav {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(16px) saturate(1.2);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
#ivy-app .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
#ivy-app .brand { display: flex; align-items: center; gap: 11px; }
#ivy-app .brand img { width: 38px; height: 38px; object-fit: contain; }
#ivy-app .brand .bn { line-height: 1.1; }
#ivy-app .brand .bn b { display: block; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
#ivy-app .brand .bn span { font-family: var(--mono); font-size: 1rem; letter-spacing: .26em; color: var(--ink-mute); }
#ivy-app .nav-links { display: flex; gap: 30px; font-size: 1rem; font-weight: 600; color: var(--ink-2); }
#ivy-app .nav-links a { position: relative; padding: 6px 0; }
#ivy-app .nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--grad); transition: width .25s ease; border-radius: 2px;
}
#ivy-app .nav-links a:hover { color: var(--ink); }
#ivy-app .nav-links a:hover::after { width: 100%; }
#ivy-app .nav-cta { padding: 10px 18px; font-size: 1rem; }

/* hamburger — hidden on desktop */
#ivy-app .nav-burger { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; border-radius: 10px; }
#ivy-app .nav-burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .28s ease, opacity .2s ease; }
#ivy-app .nav.is-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#ivy-app .nav.is-open .nav-burger span:nth-child(2) { opacity: 0; }
#ivy-app .nav.is-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer */
#ivy-app .nav-drawer { display: none; }
@media (max-width: 960px) {
  #ivy-app .nav-links { display: none; }
  #ivy-app .nav-cta { display: none; }
  #ivy-app .nav-burger { display: flex; }
  #ivy-app .nav-drawer {
    display: flex; flex-direction: column; gap: 4px;
    padding: 12px max(5vw, 16px) 20px;
    border-top: 1px solid var(--line);
    background: var(--bg);
  }
  #ivy-app .nav-drawer[hidden] { display: none; }
  #ivy-app .nav-drawer a:not(.btn) {
    padding: 14px 6px; font-size: 16px; font-weight: 600; color: var(--ink-2);
    border-bottom: 1px solid var(--line);
  }
  #ivy-app .nav-drawer a:not(.btn):active { color: var(--ink); }
  #ivy-app .nav-drawer-cta { margin-top: 14px; justify-content: center; }
}

/* ============================================================ HERO */
#ivy-app .hero { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(20px, 2.4vw, 36px); isolation: isolate; min-height: calc(100vh - 75px); display: flex; flex-direction: column; justify-content: center; box-sizing: border-box; }
#ivy-app .hero .m-halo.a { top: -18%; right: -10%; }
#ivy-app .hero .m-halo.b { bottom: -24%; left: -16%; background: radial-gradient(circle, color-mix(in srgb, var(--leaf) 22%, transparent), transparent 68%); }
#ivy-app .hero-swoosh { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
#ivy-app .hero-grid { display: grid; grid-template-columns: 1.32fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (max-width: 980px) { #ivy-app .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

/* ============================================================ HERO PORTRAIT 變體（照片當整 section 底圖） */
#ivy-app .hero.hero-portrait { position: relative; }
#ivy-app .hero.hero-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, #fff 0%, #fff 50%, rgba(255,255,255,0.85) 60%, rgba(255,255,255,0.3) 72%, rgba(255,255,255,0) 84%),
    url("https://ivylabor.com/wp-content/uploads/2026/06/hero-classroom.jpg") left center / cover no-repeat;
  z-index: 1;
  pointer-events: none;
}
#ivy-app .hero.hero-portrait .container { position: relative; z-index: 2; }
/* 窄螢幕：橫向白漸層只蓋左半、照片露出的又是左側雜物（非 Ivy）且壓到文字，改純白底（與 700px 設計稿一致） */
@media (max-width: 820px) {
  #ivy-app .hero.hero-portrait::before { background: #fff; }
  #ivy-app .hero-kicker { text-align: center; }
  #ivy-app .hero-ctas { justify-content: center; }
}
/* 不用 word-break:keep-all：Safari 對 CJK 的 keep-all 不在「、」斷行，會讓長句撐出視窗被切。
   中文本就可逐字換行，交給瀏覽器自然斷行即可。 */
#ivy-app .hero.hero-portrait .lede { max-width: 640px; }
#ivy-app .hero.hero-portrait .motif, #ivy-app .hero.hero-portrait .hero-swoosh { opacity: .35; }
#ivy-app .hero.hero-portrait .hero-grid { align-items: start; }
#ivy-app .hero.hero-portrait .enroll { align-self: start; margin-top: 213px; }
#ivy-app .hero-mini-card {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 22px 24px 24px;
  box-shadow: 0 22px 50px -22px rgba(15, 33, 67, .35), 0 10px 20px -12px rgba(15, 33, 67, .25);
  max-width: 360px;
  margin-left: auto;
}
#ivy-app .hero-mini-card .mini-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(143, 200, 89, .14);
  color: var(--teal);
  font-family: var(--mono); font-size: 1rem; letter-spacing: .22em;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
#ivy-app .hero-mini-card .mini-tag .ping {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 0 rgba(91,179,154,.6);
  animation: pingPulse 1.6s ease-out infinite;
}
@keyframes pingPulse {
  0% { box-shadow: 0 0 0 0 rgba(91,179,154,.6); }
  100% { box-shadow: 0 0 0 8px rgba(91,179,154,0); }
}
#ivy-app .hero-mini-card h3 {
  font-size: 19px; font-weight: 800; color: var(--navy-900);
  margin: 0 0 14px; line-height: 1.35; letter-spacing: normal;
}
#ivy-app .hero-mini-card .mini-cta {
  width: 100%; justify-content: center; padding: 12px 18px; font-size: 1rem;
}

#ivy-app .hero h1.display {
  font-size: clamp(33px, 4.3vw, 60px); line-height: 1.12; font-weight: 800;
  letter-spacing: normal; margin: 26px 0 24px; color: var(--ink);
}
#ivy-app .hero-tag { font-size: 20px; line-height: 1.5; font-weight: 700; color: var(--ink); margin: 0 0 20px; letter-spacing: normal; }
#ivy-app .hero .lede { font-size: 17.5px; line-height: 1.8; color: var(--ink-2); max-width: 540px; margin: 0 0 30px; }
#ivy-app .hero .lede strong { color: var(--ink); font-weight: 600; }
#ivy-app .hero .lede-2 { font-weight: 600; color: var(--ink); margin-bottom: 30px; }
#ivy-app .hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
#ivy-app .chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--radius-pill);
  border: var(--bd-w) solid var(--card-bd); background: var(--surface);
  font-size: 1rem; color: var(--ink-2); box-shadow: var(--shadow);
}
#ivy-app .chip svg { width: 16px; height: 16px; color: var(--sky); }
#ivy-app .hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
#ivy-app .hero-foot { margin-top: 18px; font-family: var(--mono); font-size: 1rem; letter-spacing: .05em; color: var(--ink-mute); }

/* hero 合併清單（4 個勞資問題）＋ 場次小標 */
#ivy-app .hero-points { list-style: none; padding: 0; margin: 4px 0 26px; max-width: 560px; }
#ivy-app .hero-points li { display: flex; gap: 13px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); }
#ivy-app .hero-points .hp-num {
  flex-shrink: 0; width: 24px; height: 24px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--teal); color: #fff;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; line-height: 1;
}
#ivy-app .hero-points .hp-tx { font-size: 16px; line-height: 1.6; color: var(--ink-mute); }
#ivy-app .hero-points .hp-tx b { color: var(--ink); font-weight: 700; }
#ivy-app .hero-kicker { font-size: 21px; font-weight: 800; color: var(--ink); margin: 2px 0 22px; letter-spacing: normal; }
#ivy-app .hero-kicker .hk-time { color: var(--teal); }

/* scattered stick figures */
#ivy-app .stick-scatter { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
#ivy-app .stick-scatter .ss { position: absolute; }
#ivy-app .stick-scatter .ss-1 { top: 4%; right: 30%; }
#ivy-app .stick-scatter .ss-2 { bottom: 6%; right: 5%; }
#ivy-app .stick-scatter .ss-3 { top: 26%; right: 6%; }
@media (max-width: 980px) { #ivy-app .stick-scatter { display: none; } }

/* enrolment card */
#ivy-app .enroll {
  position: relative; overflow: hidden;
  background: var(--card-bg); border: var(--bd-w) solid var(--card-bd);
  border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg);
}
#ivy-app .enroll::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
#ivy-app .enroll > * { position: relative; }
#ivy-app .enroll .e-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px;
  border-radius: var(--radius-pill); background: var(--surface-2);
  font-family: var(--mono); font-size: 1rem; letter-spacing: .1em; color: var(--teal); margin-bottom: 18px;
}
#ivy-app .enroll .e-tag .ping { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); position: relative; }
#ivy-app .enroll .e-tag .ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal); animation: ping 1.7s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.8); opacity: 0; } }
#ivy-app .enroll h3 { font-size: 25px; font-weight: 800; margin: 0 0 6px; letter-spacing: normal; }
#ivy-app .enroll .e-sub { font-family: var(--mono); font-size: 1rem; color: var(--ink-mute); margin: 0 0 22px; letter-spacing: .03em; }
#ivy-app .enroll .e-intro { font-size: 1rem; line-height: 1.75; color: var(--ink-2); margin: 0 0 18px; }
#ivy-app .enroll .e-lead { font-size: 16.5px; font-weight: 700; color: var(--ink); margin: 0 0 10px; white-space: nowrap; letter-spacing: 0; }
#ivy-app .enroll ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 20px; }
#ivy-app .enroll li { display: flex; align-items: center; padding: 0; font-size: 1rem; }
#ivy-app .enroll li:last-child { border-bottom: none; }
#ivy-app .enroll li .li-t { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); line-height: 1.35; font-size: 1rem; }
#ivy-app .enroll li .li-t::before { content: ""; flex-shrink: 0; width: 4px; height: 1.05em; border-radius: 2px; background: var(--grad); }
#ivy-app .enroll li .li-d { font-size: 1rem; line-height: 1.6; color: var(--ink-mute); }
#ivy-app .enroll li .ck {
  flex-shrink: 0; font-family: var(--sans); font-weight: 800; line-height: 1; font-size: 34px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
#ivy-app .enroll .enroll-cta { width: 100%; justify-content: center; }
#ivy-app .enroll .e-foot {
  display: flex; align-items: center; gap: 9px; text-align: left;
  margin-top: 22px; padding: 11px 15px;
  background: color-mix(in srgb, var(--leaf) 14%, transparent);
  border-left: 3px solid var(--leaf); border-radius: 0 10px 10px 0;
  font-size: 1rem; font-weight: 600; color: var(--ink); line-height: 1.5;
}
#ivy-app .enroll .e-foot::before {
  content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--leaf);
}

/* ============================================================ MARQUEE */
#ivy-app .marquee { border-block: 1px solid var(--line); padding: 17px 0; overflow: hidden; background: var(--surface-3); position: relative; }
#ivy-app .marquee-track { display: flex; gap: 48px; white-space: nowrap; width: max-content; animation: scroll 60s linear infinite; }
#ivy-app .marquee:hover .marquee-track { animation-play-state: paused; }
#ivy-app .marquee-item { display: inline-flex; align-items: center; gap: 14px; font-size: 19px; font-weight: 500; color: var(--ink-2); }
#ivy-app .marquee-item .si { display: inline-flex; color: var(--sky); opacity: .85; }
#ivy-app .marquee-item:nth-child(3n) .si { color: var(--teal); }
#ivy-app .marquee-item:nth-child(3n+1) .si { color: var(--leaf); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================ PAINS */
#ivy-app .pains { background: var(--surface-3); }
#ivy-app .pains-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 880px) { #ivy-app .pains-grid { grid-template-columns: 1fr; } }
#ivy-app .pains-punch {
  position: relative; text-align: center; max-width: 820px;
  margin: clamp(76px, 9vw, 112px) auto 0; padding-top: clamp(40px, 5vw, 56px);
}
#ivy-app .pains-punch::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 52px; height: 3px; border-radius: 3px; background: var(--grad);
}
#ivy-app .pp-eyebrow {
  display: block; font-family: var(--mono); font-size: 1rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--leaf); margin-bottom: 16px;
}
#ivy-app .pp-top { display: block; font-size: 1rem; line-height: 1.6; color: var(--ink-mute); margin-bottom: 22px; }
#ivy-app .pp-fact { font-size: clamp(17px, 2vw, 22px); font-weight: 700; line-height: 1.6; color: var(--ink-2); margin: 0 0 30px; text-wrap: balance; }
#ivy-app .pp-main {
  font-size: clamp(21px, 2.6vw, 31px); font-weight: 800; line-height: 1.75;
  color: var(--ink); margin: 0; text-wrap: balance;
}
#ivy-app .pp-sub { display: block; font-size: 1rem; line-height: 1.6; color: var(--ink-mute); margin-top: 16px; }

/* —— bridge：過場 statement band —— */
#ivy-app .bridge {
  background: var(--grad-soft); text-align: center; overflow: hidden;
  display: flex; align-items: center; min-height: clamp(300px, 34vw, 440px);
  padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px);
}
#ivy-app .bridge-line {
  position: relative; z-index: 2; margin: 0;
  font-size: clamp(23px, 3.2vw, 40px); font-weight: 800; line-height: 1.55;
  color: var(--ink); letter-spacing: normal; text-wrap: balance;
}
#ivy-app .bridge-art {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  z-index: 0; width: clamp(220px, 34vw, 380px); color: var(--teal);
  opacity: .1; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 22%, transparent 82%);
          mask-image: linear-gradient(to top, #000 22%, transparent 82%);
}
#ivy-app .bridge-art svg { width: 100%; height: auto; display: block; }

#ivy-app .pain-card {
  position: relative; overflow: hidden;
  background: var(--card-bg); border: var(--bd-w) solid var(--card-bd);
  border-radius: var(--radius-lg); padding: 30px 28px 28px;
  box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
#ivy-app .pain-card:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: var(--shadow-lg); }
#ivy-app .pain-num { font-family: var(--mono); font-size: 1rem; letter-spacing: .18em; color: var(--ink-mute); }
#ivy-app .pain-fig {
  width: 88px; height: 88px; border-radius: var(--radius); margin: 16px 0 22px;
  display: grid; place-items: center; background: var(--grad-soft); color: var(--navy);
}
#ivy-app[data-theme="dark"] .pain-fig { color: var(--ink); }
#ivy-app .pain-card h3 { font-size: 23px; font-weight: 800; margin: 0 0 12px; letter-spacing: normal; }
#ivy-app .pain-card p { font-size: 1.2rem; line-height: 1.75; color: var(--ink-2); margin: 0 0 20px; }
#ivy-app .pain-list { list-style: none; padding: 18px 0 0; margin: 0; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
#ivy-app .pain-list li {
  font-family: var(--mono); font-size: 1rem; color: var(--ink-mute);
  padding: 5px 11px; border-radius: var(--radius-pill); background: var(--surface-2);
}

/* ============================================================ COLLAPSE band (editorial dark) */
#ivy-app .collapse { background: var(--band-bg); color: var(--band-ink); padding: clamp(80px, 9vw, 120px) 0; position: relative; overflow: hidden; }
#ivy-app .collapse .m-halo { top: 50%; right: -8%; transform: translateY(-50%); background: radial-gradient(circle, rgba(91,179,154,.16), transparent 66%); }
#ivy-app .collapse .stick-row { display: flex; justify-content: center; gap: clamp(16px, 4vw, 48px); margin-bottom: 36px; }
#ivy-app .collapse .stick-row > span { color: var(--band-soft); opacity: .55; }
#ivy-app .collapse h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.2; font-weight: 800; margin: 0 auto 20px; max-width: 860px; text-align: center; letter-spacing: normal; text-wrap: balance; }
#ivy-app .collapse h2 .gradtext { background: var(--grad); -webkit-background-clip: text; background-clip: text; }
#ivy-app .collapse > .container > p { font-size: 17px; line-height: 1.8; color: var(--band-soft); max-width: 600px; margin: 0 auto; text-align: center; }
#ivy-app .band-head { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 3.5vw, 48px); max-width: 880px; margin: 0 auto; }
#ivy-app .band-tw { flex-shrink: 0; }
#ivy-app .band-tw svg { width: clamp(78px, 9vw, 124px); height: auto; display: block; filter: drop-shadow(0 8px 22px rgba(91,179,154,.3)); }
#ivy-app .band-head .band-headtext { text-align: center; }
#ivy-app .band-head h2 { text-align: center; margin: 0 0 12px; max-width: none; }
#ivy-app .band-sub { font-size: clamp(19px, 2.3vw, 27px); font-weight: 800; line-height: 1.45; color: var(--band-ink); margin: 0; letter-spacing: normal; }
#ivy-app .band-sub .gradtext { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 680px) {
  #ivy-app .band-head { flex-direction: column; gap: 18px; }
  #ivy-app .band-head .band-headtext, #ivy-app .band-head h2, #ivy-app .band-sub { text-align: center; }
}
#ivy-app .collapse-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; padding-top: 44px; border-top: 1px solid rgba(255,255,255,.16); }
@media (max-width: 720px) { #ivy-app .collapse-stats { grid-template-columns: 1fr; gap: 26px; text-align: center; } }
#ivy-app .stat .num { font-size: clamp(44px, 5vw, 58px); font-weight: 800; line-height: 1; letter-spacing: normal; }
#ivy-app .stat .num .gradtext { background: var(--grad); -webkit-background-clip: text; background-clip: text; }
#ivy-app .stat .num .unit { font-size: 22px; margin-left: 4px; }
#ivy-app .stat .label { font-family: var(--mono); font-size: 1rem; letter-spacing: .07em; color: var(--band-soft); margin-top: 10px; }

/* 趨勢／真實案例 兩欄 */
#ivy-app .trend-grid {
  display: grid; grid-template-columns: 1fr;
  grid-template-areas: "line" "pie" "rank";
  gap: clamp(26px, 3vw, 44px);
  align-items: stretch; max-width: 810px; margin: clamp(46px, 6vw, 68px) auto 0; text-align: left;
}

/* ============================================================ STACKED COLLAPSE (static) */
#ivy-app .cs-stack {
  display: flex; flex-direction: column; gap: 14px;
  max-width: 810px; margin: clamp(28px, 3.5vw, 44px) auto 0;
}
#ivy-app .cs-card {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(143, 200, 89, .30);
  border-radius: 16px;
  padding: 24px 28px;
}
#ivy-app .cs-card > .col-h {
  margin: 0 0 16px !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, .18) !important;
}
#ivy-app .cs-body { opacity: 1; }
#ivy-app .cs-body .trendline-card { background: transparent; padding: 0; border: 0; box-shadow: none; }
#ivy-app .cs-body .trendline-card .tl-head { display: none; }

@media (max-width: 720px) {
  #ivy-app .cs-stack { gap: 12px; }
  #ivy-app .cs-card { padding: 20px 18px; }
}
#ivy-app .trend-grid > .trendline-card { grid-area: line; max-width: none; margin: 0; }
#ivy-app .trend-grid > .dispute-col { grid-area: pie; }
#ivy-app .trend-grid > .rank-col { grid-area: rank; }
#ivy-app .trend-grid .col-h {
  font-family: var(--mono); font-size: 25px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--leaf); padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.16);
}
#ivy-app .trendline-card {
  max-width: 1020px; margin: clamp(46px, 6vw, 68px) auto 0; text-align: left;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md, 14px); padding: clamp(20px, 3vw, 30px) clamp(20px, 3.2vw, 34px);
}
#ivy-app .tl-head { margin-bottom: 6px; }
#ivy-app .tl-tag {
  display: inline-block; font-family: var(--mono); font-size: 1rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--leaf); background: rgba(79,176,140,.14);
  border: 1px solid rgba(79,176,140,.3); border-radius: 999px; padding: 3px 12px; margin-bottom: 12px;
}
#ivy-app .tl-head h3 { margin: 0 0 6px; font-size: clamp(20px, 2.6vw, 26px); color: var(--band-ink); }
#ivy-app .tl-head p { margin: 0; font-size: 1rem; color: var(--band-soft); }
#ivy-app .tl-svg { display: block; width: 100%; height: auto; margin-top: 8px; }
#ivy-app .tl-num { fill: var(--band-ink); font-family: var(--mono); font-weight: 800; font-size: 17px; }
#ivy-app .tl-num-hi { fill: #7BD0A8; font-size: 19px; }
#ivy-app .tl-peak { fill: #7BD0A8; font-family: var(--mono); font-weight: 800; font-size: 1rem; letter-spacing: .04em; }
#ivy-app .tl-year { fill: var(--band-soft); font-family: var(--mono); font-size: 16px; }
#ivy-app .trendline-card .rank-cap { text-align: left; margin-top: clamp(22px, 3vw, 36px); }

/* ============================================================ 圖表進場動畫 */
/* 折線圖：線條沿路徑畫出、面積與資料點依序浮現 */
#ivy-app .tl-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
#ivy-app .trendline-card.in-view .tl-line { transition: stroke-dashoffset 1.3s ease; stroke-dashoffset: 0; }
#ivy-app .tl-area { opacity: 0; }
#ivy-app .trendline-card.in-view .tl-area { transition: opacity .8s ease .9s; opacity: 1; }
#ivy-app .tl-point { opacity: 0; }
#ivy-app .trendline-card.in-view .tl-point { animation: tlPointIn .5s ease both; }
@keyframes tlPointIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

/* 圓餅圖：環形由 12 點順時針揭示繞出 */
#ivy-app .pie-reveal { stroke-dashoffset: 439.8; }
#ivy-app .collapse.in-view .pie-reveal { transition: stroke-dashoffset 1.25s ease; stroke-dashoffset: 0; }


/* 長條圖：由下往上長出，依序 */
#ivy-app .vbar-fill { transform: scaleY(0); transform-origin: bottom; }
#ivy-app .collapse.in-view .vbar-fill { transition: transform .9s cubic-bezier(.22,1,.36,1); transform: scaleY(1); }
#ivy-app .collapse.in-view .vbar:nth-child(1) .vbar-fill { transition-delay: .1s; }
#ivy-app .collapse.in-view .vbar:nth-child(2) .vbar-fill { transition-delay: .22s; }
#ivy-app .collapse.in-view .vbar:nth-child(3) .vbar-fill { transition-delay: .34s; }
#ivy-app .collapse.in-view .vbar:nth-child(4) .vbar-fill { transition-delay: .46s; }
#ivy-app .collapse.in-view .vbar:nth-child(5) .vbar-fill { transition-delay: .58s; }

@media (prefers-reduced-motion: reduce) {
  #ivy-app .tl-line, #ivy-app .pie-reveal { stroke-dashoffset: 0; }
  #ivy-app .tl-area, #ivy-app .tl-point, #ivy-app .vbar-fill { opacity: 1 !important; transform: none !important; }
}
#ivy-app .tl-cap { margin: 6px 0 0; font-size: 1rem; color: var(--band-soft); opacity: .8; }
/* 圓餅圖卡片：圓餅 + 百分比清單左右均分、頂部對齊；說明置於卡片底部橫跨整排 */
#ivy-app .dispute-col .pie-wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(16px, 2.5vw, 28px); }
#ivy-app .dispute-col .pie { justify-self: center; }
#ivy-app .dispute-col .pie-legend { min-width: 0; }
#ivy-app .pie-legend .lg-t { white-space: nowrap; }
#ivy-app .dispute-col .dispute-note { margin-top: auto; padding-top: 18px; }
#ivy-app .dispute-col {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md, 14px); padding: 22px 24px; display: flex; flex-direction: column;
}
#ivy-app .dispute-list { display: flex; flex-direction: column; gap: 22px; margin-top: 4px; }
#ivy-app .dispute-item .d-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
#ivy-app .d-label { font-size: 1rem; font-weight: 700; color: var(--band-ink); }
#ivy-app .d-pct {
  font-family: var(--mono); font-size: 26px; font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
#ivy-app .d-bar { height: 9px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
#ivy-app .d-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
#ivy-app .dispute-note { font-size: 16.2px; line-height: 1.7; color: var(--band-soft); margin: 22px 0 0; }
#ivy-app .pie-wrap { display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); margin-top: 8px; }
#ivy-app .pie { width: clamp(166px, 18vw, 207px); height: auto; flex-shrink: 0; }
#ivy-app .pie-c-num { fill: var(--band-ink); font-family: var(--mono); font-weight: 800; font-size: 33px; }
#ivy-app .pie-c-lbl { fill: var(--band-soft); font-size: 1rem; letter-spacing: .02em; }
#ivy-app .pie-legend { list-style: none; margin: 0; padding: 0 0 0 clamp(60px, 9vw, 135px); display: flex; flex-direction: column; gap: 15px; flex: 1; min-width: 0; }
#ivy-app .pie-legend li { display: flex; align-items: center; gap: 10px; font-size: 1rem; color: var(--band-ink); }
#ivy-app .pie-legend .dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
#ivy-app .pie-legend b { margin-left: auto; font-family: var(--mono); font-weight: 800; }
@media (max-width: 420px) { #ivy-app .pie-wrap { flex-direction: column; align-items: flex-start; } }
/* 趨勢數據卡片版（比較用） */
#ivy-app .tcards { padding: var(--sec-pad) 0; background: var(--bg); }
#ivy-app .tcards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 26px); margin-top: clamp(36px, 5vw, 52px); }
#ivy-app .tcard {
  background: var(--card-bg); border: var(--bd-w) solid var(--card-bd); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(22px, 2.6vw, 32px);
  display: grid; grid-template-columns: 1fr auto; gap: clamp(16px, 2vw, 28px); align-items: center; text-align: left;
}
#ivy-app .tcard-tag {
  display: inline-block; font-size: 1rem; font-weight: 700; color: #2C8159;
  background: color-mix(in srgb, var(--leaf) 16%, transparent); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
#ivy-app .tcard-text h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 800; color: var(--ink); margin: 0 0 8px; line-height: 1.35; letter-spacing: normal; }
#ivy-app .tcard-text p { font-size: 1rem; line-height: 1.7; color: var(--ink-2); margin: 0; }
#ivy-app .tcard-vis { width: clamp(96px, 11vw, 126px); flex-shrink: 0; display: grid; place-items: center; }
#ivy-app .tcard-vis .mini { width: 100%; height: auto; }
#ivy-app .mini-c { fill: var(--ink); font-family: var(--mono); font-weight: 800; font-size: 23px; }
#ivy-app .tw-mini { height: clamp(96px, 12vw, 132px); width: auto; transform: rotate(-15deg); display: block; }
#ivy-app .tcard-vis.bars { width: clamp(120px, 14vw, 158px); display: flex; flex-direction: column; gap: 9px; }
#ivy-app .minibar { display: flex; align-items: center; gap: 8px; }
#ivy-app .mb-a { font-family: var(--mono); font-size: 1rem; font-weight: 700; color: #2C8159; width: 30px; flex-shrink: 0; }
#ivy-app .mb-track { flex: 1; height: 9px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
#ivy-app .mb-track > span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
@media (max-width: 820px) { #ivy-app .tcards-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { #ivy-app .tcard { grid-template-columns: 1fr; } #ivy-app .tcard-vis, #ivy-app .tcard-vis.bars { justify-self: start; width: 100%; max-width: 220px; } }
#ivy-app .rank-col {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md, 14px); padding: 20px 22px;
  display: flex; flex-direction: column;
}
#ivy-app .rank-table { width: 100%; border-collapse: collapse; }
#ivy-app .rank-table th {
  font-family: var(--mono); font-size: 1rem; font-weight: 600; letter-spacing: .05em; color: var(--band-soft);
  text-align: left; padding: 0 6px 10px; border-bottom: 1px solid rgba(255,255,255,.2);
}
#ivy-app .rank-table th.th-fn, #ivy-app .rank-table td.fn { text-align: right; }
#ivy-app .rank-table th.th-no, #ivy-app .rank-table td.art-no { text-align: left; white-space: nowrap; width: 78px; }
#ivy-app .rank-table td { font-size: 1rem; color: var(--band-ink); padding: 12px 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
#ivy-app .rank-table tbody tr:last-child td { border-bottom: none; }
#ivy-app .rank-table td.art-no { font-family: var(--mono); font-weight: 800; color: var(--leaf); }
#ivy-app .rank-table td.fn { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
#ivy-app .rank-cap { font-size: 16.2px; line-height: 1.7; color: var(--band-soft); margin: auto 0 0; padding-top: 18px; letter-spacing: .02em; }
#ivy-app .abar-list { display: flex; flex-direction: column; gap: 17px; margin-top: 4px; }
#ivy-app .abar-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
#ivy-app .abar-lbl { font-size: 1rem; color: var(--band-ink); }
#ivy-app .abar-lbl b { font-family: var(--mono); font-weight: 800; color: var(--leaf); margin-right: 8px; }
#ivy-app .abar-fine { font-family: var(--mono); font-size: 1rem; color: var(--band-soft); white-space: nowrap; }
#ivy-app .abar-track { height: 11px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
#ivy-app .abar-track > span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
/* 直式長條圖（最常被開罰的條文） */
#ivy-app .rank-sub { font-size: 16px; font-weight: 700; color: var(--band-ink); margin: 0 0 4px; letter-spacing: normal; }
#ivy-app .vbars { display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(8px, 1.5vw, 16px); height: 210px; margin: 18px 0 6px; }
#ivy-app .vbar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
#ivy-app .vbar-track { flex: 1; width: 100%; max-width: 46px; display: flex; align-items: flex-end; }
#ivy-app .vbar-fill { width: 100%; background: var(--grad); border-radius: 7px 7px 0 0; min-height: 8px; }
#ivy-app .vbar-code { font-family: var(--mono); font-weight: 800; color: var(--leaf); font-size: 1rem; margin-top: 11px; }
#ivy-app .vbar-sh { font-size: 1rem; color: var(--band-soft); margin-top: 3px; text-align: center; }
@media (max-width: 760px) { #ivy-app .trend-grid { grid-template-columns: 1fr; grid-template-areas: "line" "pie" "rank"; gap: 26px; } }

/* ============================================================ COURSE timeline */
#ivy-app .outline-grid { display: grid; grid-template-columns: 0.9fr 1.25fr; gap: clamp(36px, 5vw, 64px); align-items: stretch; }
@media (max-width: 920px) { #ivy-app .outline-grid { grid-template-columns: 1fr; gap: 32px; } }
#ivy-app .outline-left { display: flex; flex-direction: column; gap: 22px; height: 100%; }
#ivy-app .outline-card {
  overflow: hidden;
  background: var(--card-bg); border: var(--bd-w) solid var(--card-bd);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow);
}
#ivy-app .outline-cta-card {
  background: transparent; border: none; box-shadow: none; padding: 0;
  text-align: center;
}
#ivy-app .outline-cta-card .cta-btn { width: 50%; justify-content: center; }

#ivy-app .sec-head .sec-fig { display: flex; justify-content: center; margin-bottom: 16px; color: var(--teal); }
#ivy-app .outline-meta { display: flex; gap: 26px; margin-bottom: 26px; flex-wrap: wrap; }
#ivy-app .outline-meta .k { font-family: var(--mono); font-size: 1rem; letter-spacing: .12em; color: var(--ink-mute); }
#ivy-app .outline-meta .v { font-size: 19px; font-weight: 700; margin-top: 4px; }
#ivy-app .outline-card h3 { font-size: 23px; font-weight: 800; margin: 0 0 14px; line-height: 1.3; letter-spacing: normal; }
#ivy-app .outline-card p { font-size: 1rem; line-height: 1.75; color: var(--ink-2); margin: 0 0 22px; }
#ivy-app .outline-card .small-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--sky); font-size: 1rem; }
#ivy-app .outline-card .small-cta:hover { gap: 12px; }

/* ============================================================ BOOK COVER */
#ivy-app .outline-card.book {
  flex: 1;
  min-height: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: #FAF7F1;
  box-shadow:
    0 30px 60px -28px rgba(15, 33, 67, .55),
    0 14px 28px -16px rgba(15, 33, 67, .35),
    -4px 0 0 -1px rgba(15, 33, 67, .12);
  overflow: hidden;
  position: relative;
  transition: transform .4s ease, box-shadow .4s ease;
}
#ivy-app .outline-card.book:hover {
  transform: translateY(-3px);
  box-shadow:
    0 38px 70px -28px rgba(15, 33, 67, .6),
    0 18px 32px -16px rgba(15, 33, 67, .35),
    -4px 0 0 -1px rgba(15, 33, 67, .12);
}
#ivy-app .outline-card.book .book-cover {
  position: relative;
  height: 100%;
  padding: 56px 44px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#ivy-app .outline-card.book .book-cover::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; height: 10px;
  background: var(--grad);
}
#ivy-app .outline-card.book .book-cover::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 6px;
  background: linear-gradient(90deg, rgba(15, 33, 67, .14), transparent);
  pointer-events: none;
}
#ivy-app .outline-card.book .book-eyebrow {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: .38em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
#ivy-app .outline-card.book h3 {
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: clamp(26px, 2.3vw, 34px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0 0 22px;
  color: var(--navy-900);
}
#ivy-app .outline-card.book h3 .hl {
  background: linear-gradient(180deg, transparent 62%, rgba(143, 200, 89, .42) 62%);
  padding: 0 4px;
}
#ivy-app .outline-card.book .book-divider {
  width: 36px; height: 2px;
  background: var(--navy);
  margin: 0 0 22px;
  opacity: .85;
}
#ivy-app .outline-card.book p {
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  font-size: 1rem;
  line-height: 2;
  color: var(--ink-2);
  margin: 0;
  letter-spacing: .02em;
}
#ivy-app .outline-card.book .book-byline {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: .3em;
  color: var(--ink-mute);
  text-transform: uppercase;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 33, 67, .14);
}
#ivy-app .outline-card.book .book-cta {
  align-self: flex-start;
  margin-top: 24px;
  padding: 13px 22px;
  font-size: 1rem;
}

#ivy-app .outline-list { list-style: none; padding: 0; margin: 0; }
#ivy-app .outline-item {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center;
  padding: 14px 0; position: relative;
}
#ivy-app .outline-item:not(:last-child)::after {
  content: ""; position: absolute; left: 58px; right: 0; bottom: 0; height: 1px; background: var(--line);
}
#ivy-app .outline-item .badge { width: 40px; height: 40px; flex-shrink: 0; }
#ivy-app .outline-item .badge img { width: 100%; height: 100%; object-fit: contain; }
#ivy-app .outline-item .ts { font-family: var(--mono); font-size: 1rem; color: var(--ink-mute); margin-bottom: 4px; letter-spacing: .04em; }
#ivy-app .outline-item h4 { font-size: 18px; font-weight: 700; margin: 0 0 4px; line-height: 1.35; }
#ivy-app .outline-item p { font-size: 1rem; line-height: 1.55; color: var(--ink-2); margin: 0; }
#ivy-app .outline-item .tags { display: flex; flex-wrap: wrap; gap: 7px; }
#ivy-app .outline-item .tags span { font-family: var(--mono); font-size: 1rem; color: var(--ink-mute); padding: 4px 9px; border-radius: var(--radius-pill); background: var(--surface-2); }
#ivy-app .outline-item .dur { font-family: var(--mono); font-size: 1rem; color: var(--ink-mute); white-space: nowrap; }
@media (max-width: 560px) { #ivy-app .outline-item { grid-template-columns: auto 1fr; } #ivy-app .outline-item .dur { display: none; } }

/* ============================================================ INSTRUCTOR */
#ivy-app .inst { background: var(--surface-3); }
#ivy-app .inst-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 64px); align-items: stretch; }
#ivy-app .inst-grid .inst-photo { order: 1; }
#ivy-app .inst-grid .inst-info { order: 2; }
@media (max-width: 880px) { #ivy-app .inst-grid { grid-template-columns: 1fr; gap: 36px; } #ivy-app .inst-grid .inst-photo { order: 1; aspect-ratio: 4/5; } #ivy-app .inst-grid .inst-info { order: 2; } }
#ivy-app .inst-photo {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(27,63,120,.05) 0 11px, transparent 11px 22px),
    linear-gradient(150deg, #E7EEF6, #DCE9D9);
  border: var(--bd-w) solid var(--card-bd);
  display: grid; place-items: center;
}
#ivy-app[data-theme="dark"] .inst-photo { background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 11px, transparent 11px 22px), linear-gradient(150deg, #12305c, #143a3a); }
#ivy-app .inst-photo .ph { font-family: var(--mono); font-size: 1rem; letter-spacing: .14em; color: var(--ink-mute); }
#ivy-app .inst-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
#ivy-app .inst-info .eyebrow { margin-bottom: 16px; font-size: 1rem; }
#ivy-app .inst-info h2 { font-size: var(--fz-section); font-weight: 800; margin: 0 0 6px; letter-spacing: normal; }
#ivy-app .inst-info .role { font-family: var(--mono); font-size: 1rem; font-weight: 700; letter-spacing: .06em; color: var(--sky); margin-bottom: 22px; }
#ivy-app .inst-info .desc { font-size: 1rem; line-height: 1.85; color: var(--ink-2); margin: 0 0 26px; }
#ivy-app .inst-creds { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
#ivy-app .inst-creds li { display: flex; gap: 16px; align-items: flex-start; }
#ivy-app .inst-creds .n { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: #fff; background: var(--grad); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
#ivy-app .inst-creds span:last-child { font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
#ivy-app .inst-creds strong { color: var(--ink); }

/* 講師資歷 2×2 數據卡 */
#ivy-app .inst-stats { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 2.8vw, 32px) clamp(28px, 3.2vw, 44px); margin-top: 4px; }
#ivy-app .inst-stats .stat { padding-top: 16px; }
#ivy-app .stat-k { display: block; font-family: var(--mono); font-size: 1rem; letter-spacing: .08em; color: var(--sky); margin-bottom: 10px; }
#ivy-app .stat-v { font-size: 1rem; color: var(--ink-2); line-height: 1.5; }
#ivy-app .stat-v strong {
  font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; line-height: 1; margin-right: 8px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
#ivy-app .stat-v-text { font-weight: 600; color: var(--ink); }
@media (max-width: 520px) { #ivy-app .inst-stats { grid-template-columns: 1fr; } }

/* ============================================================ BENEFITS */
#ivy-app .benefit-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); }
#ivy-app .benefit { grid-column: span 2; }
#ivy-app .benefit.feat { grid-column: span 3; grid-row: span 2; }
#ivy-app .benefit:nth-child(2), #ivy-app .benefit:nth-child(3) { grid-column: span 3; }
@media (max-width: 880px) { #ivy-app .benefit-grid { grid-template-columns: 1fr; } #ivy-app .benefit, #ivy-app .benefit.feat, #ivy-app .benefit:nth-child(2), #ivy-app .benefit:nth-child(3) { grid-column: 1 / -1; grid-row: auto; } }
#ivy-app .benefit {
  position: relative; overflow: hidden;
  background: var(--card-bg); border: var(--bd-w) solid var(--card-bd);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
#ivy-app .benefit:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: var(--shadow-lg); }
#ivy-app .benefit .num { font-family: var(--mono); font-size: 1rem; letter-spacing: .16em; color: var(--ink-mute); }
#ivy-app .benefit .pill { display: inline-block; margin-left: 10px; font-family: var(--mono); font-size: 1rem; letter-spacing: .1em; padding: 3px 9px; border-radius: var(--radius-pill); background: var(--grad); color: var(--on-grad); }
#ivy-app .benefit .ic { width: 60px; height: 60px; margin: 18px 0 16px; }
#ivy-app .benefit.feat .ic { width: 96px; height: 96px; }
#ivy-app .benefit .ic img { width: 100%; height: 100%; object-fit: contain; }
#ivy-app .benefit h3 { font-size: 19px; font-weight: 800; margin: 0 0 8px; letter-spacing: normal; }
#ivy-app .benefit.feat h3 { font-size: 26px; }
#ivy-app .benefit p { font-size: 1rem; line-height: 1.7; color: var(--ink-2); margin: 0; }

/* ============================================================ FAQ */
#ivy-app .faq { background: var(--surface-3); }
#ivy-app .faq-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(48px, 5.5vw, 80px); align-items: start; }
@media (max-width: 880px) { #ivy-app .faq-grid { grid-template-columns: 1fr; gap: 30px; } }
#ivy-app .faq-side { position: sticky; top: 94px; text-align: right; padding-right: clamp(48px, 7vw, 100px); }
#ivy-app .faq-side h2 { font-size: var(--fz-section); font-weight: 800; margin: 16px 0 14px; line-height: 1.25; letter-spacing: normal; }
#ivy-app .faq-side p { font-size: 1rem; line-height: 1.75; color: var(--ink-2); margin: 0; max-width: 340px; }
#ivy-app .faq-fig { margin-top: 34px; color: var(--teal); opacity: .65; display: flex; justify-content: flex-end; }
@media (max-width: 880px) {
  #ivy-app .faq-fig { display: none; }
  /* 手機單欄：標題不要 sticky（否則收合卡片會從它身上捲過），改置中、清掉桌機右側留白 */
  #ivy-app .faq-side { position: static; text-align: center; padding-right: 0; }
}
#ivy-app .faq-list { display: flex; flex-direction: column; gap: 12px; }
#ivy-app .faq-item { background: var(--card-bg); border: var(--bd-w) solid var(--card-bd); border-radius: var(--radius); overflow: hidden; transition: border-color .25s ease; }
#ivy-app .faq-item.open { border-color: var(--sky); box-shadow: var(--shadow); }
#ivy-app .faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; text-align: left; font-size: 1rem; font-weight: 600; color: var(--ink); }
#ivy-app .faq-q .qm { display: flex; gap: 14px; align-items: baseline; }
#ivy-app .faq-q .qmark { font-family: var(--mono); font-size: 1rem; color: var(--sky); flex-shrink: 0; }
#ivy-app .faq-q .toggle { font-size: 22px; color: var(--ink-mute); transition: transform .25s ease; flex-shrink: 0; }
#ivy-app .faq-item.open .toggle { transform: rotate(45deg); color: var(--sky); }
#ivy-app .faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
#ivy-app .faq-item.open .faq-a { grid-template-rows: 1fr; }
#ivy-app .faq-a-inner { overflow: hidden; }
#ivy-app .faq-a-inner p { padding: 0 22px 22px 56px; margin: 0; font-size: 1rem; line-height: 1.8; color: var(--ink-2); }

/* ============================================================ FINAL CTA */
#ivy-app .final { text-align: center; position: relative; overflow: hidden; }
#ivy-app .final-fig { display: grid; place-items: center; margin-bottom: 18px; color: var(--teal); }
#ivy-app .final .m-halo { top: 50%; left: 50%; transform: translate(-50%, -50%); }
#ivy-app .final h2 { font-size: var(--fz-section); font-weight: 800; line-height: 1.2; margin: 0 auto 18px; max-width: 720px; letter-spacing: normal; text-wrap: balance; }
#ivy-app .final p { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 520px; margin: 0 auto 32px; }
#ivy-app .final .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
#ivy-app .final-meta { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 30px; font-family: var(--mono); font-size: 1rem; letter-spacing: .05em; color: var(--ink-mute); }
#ivy-app .final-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); }

/* ============================================================ FOOTER */
#ivy-app footer { background: var(--band-bg); color: var(--band-soft); padding: 60px 0 34px; }
#ivy-app .foot-top { display: grid; grid-template-columns: 1fr 1fr auto; gap: 40px; align-items: start; }
#ivy-app .foot-company p, #ivy-app .foot-contact p { font-size: 15px; line-height: 1.95; margin: 0; color: var(--band-soft); }
#ivy-app .foot-social { display: flex; gap: 16px; align-items: center; justify-content: flex-end; }
#ivy-app .foot-social a { color: #fff; opacity: .8; display: inline-flex; transition: opacity .2s ease; }
#ivy-app .foot-social a:hover { opacity: 1; }
#ivy-app .foot-bot { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 52px; font-size: 14px; letter-spacing: .02em; }
#ivy-app .foot-bot .legal-item { display: inline-flex; align-items: center; gap: 8px; }
#ivy-app .foot-bot a { color: var(--band-soft); transition: color .2s ease; }
#ivy-app .foot-bot a:hover { color: #fff; }
#ivy-app .foot-bot .sep { opacity: .5; }
@media (max-width: 820px) { #ivy-app .foot-top { grid-template-columns: 1fr; gap: 24px; } #ivy-app .foot-social { justify-content: flex-start; } }

/* ============================================================ DIRECTION-SPECIFIC structural tweaks */

/* A — editorial: gradient suppressed, accent = thin underline keyword */
#ivy-app[data-dir="a"] .sec-title, #ivy-app[data-dir="a"] .hero h1.display { font-weight: 700; }
#ivy-app[data-dir="a"] .hl { position: relative; color: var(--ink); white-space: nowrap; }
#ivy-app[data-dir="a"] .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: var(--accent-line); background: var(--grad); border-radius: 2px; }
#ivy-app[data-dir="a"] .pain-fig { background: var(--surface-2); border: 1px solid var(--line); }
#ivy-app[data-dir="a"] .chip, #ivy-app[data-dir="a"] .pain-list li, #ivy-app[data-dir="a"] .outline-item .tags span { border-radius: 4px; }
#ivy-app[data-dir="a"] .m-dots, #ivy-app[data-dir="a"] .hero-swoosh { display: none; }
#ivy-app[data-dir="a"] .marquee-item { font-weight: 600; }

/* B — SaaS: gradient keyword fill, dot textures on, soft */
#ivy-app[data-dir="b"] .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
#ivy-app[data-dir="b"] .pain-fig { background: var(--grad-soft); }

/* C — warm: keyword = highlight marker, figures bigger, super-round */
#ivy-app[data-dir="c"] .hl { background: linear-gradient(180deg, transparent 58%, color-mix(in srgb, var(--leaf) 55%, transparent) 58%); padding: 0 .1em; }
#ivy-app[data-theme="dark"][data-dir="c"] .hl { background: linear-gradient(180deg, transparent 58%, color-mix(in srgb, var(--leaf) 35%, transparent) 58%); }
#ivy-app[data-dir="c"] .pain-fig { width: 100px; height: 100px; border-radius: var(--radius); }
#ivy-app[data-dir="c"] .hero-swoosh { opacity: 1; }
#ivy-app[data-dir="c"] .m-dots { display: none; }

/* dark-mode: line icons & png art get a soft card behind so navy strokes read */
#ivy-app[data-theme="dark"] .benefit .ic, #ivy-app[data-theme="dark"] .outline-item .badge {
  filter: drop-shadow(0 0 1px rgba(255,255,255,.5));
}

/* ============================================================ 趨勢帶補充 */
#ivy-app .collapse .band-eyebrow {
  text-align: center; font-family: var(--mono); font-size: 1rem; letter-spacing: var(--eyebrow-ls);
  text-transform: uppercase; color: var(--leaf); margin-bottom: 22px;
}
#ivy-app .collapse .band-punch {
  text-align: center; font-size: clamp(22px, 2.6vw, 32px); font-weight: 800; line-height: 1.4;
  color: var(--band-ink); max-width: 720px; margin: clamp(36px, 5vw, 56px) auto 0; text-wrap: balance;
}
#ivy-app .collapse .band-source {
  text-align: center; font-size: 1rem; color: var(--band-soft); opacity: .7; margin-top: 28px; letter-spacing: .02em;
}

/* ============================================================ 區塊2｜顧問的話（清新淺色 · 仿信件版型） */
#ivy-app .letter { background: var(--bg-2); padding: var(--sec-pad) 0; position: relative; overflow: hidden; }
#ivy-app .letter .m-halo { top: -12%; left: -8%; background: radial-gradient(circle, var(--halo), transparent 66%); width: 520px; height: 520px; }
#ivy-app .letter-head { text-align: center; max-width: 1080px; margin: 0 auto clamp(44px, 6vw, 76px); }
#ivy-app .letter-quote {
  font-size: clamp(30px, 8vw, 39px); font-weight: 800; line-height: 1.42; color: var(--ink);
  margin: 0 0 18px; white-space: nowrap;
}
#ivy-app .letter-attr {
  font-family: var(--mono); font-size: 16.2px; color: var(--ink-mute); letter-spacing: .03em; margin: 0;
}
#ivy-app .letter-attr .attr-name { font-family: var(--sans); font-weight: 800; color: var(--ink); letter-spacing: .02em; }
#ivy-app .letter-grid {
  display: grid; grid-template-columns: 3fr 2fr; gap: clamp(36px, 5vw, 72px); align-items: stretch;
  max-width: 1040px; margin: 0 auto;
}
/* §4 Ivy 圓形人像 */
#ivy-app .letter-portrait { order: 2; position: relative; align-self: center; justify-self: center; width: 100%; max-width: 400px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 50%; box-shadow: var(--shadow-lg); }
#ivy-app .letter-portrait img {
  width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; transform: scale(1.06); transform-origin: 2% 32%;
}
#ivy-app .letter-main { order: 1; }
#ivy-app .letter-role {
  font-size: clamp(26px, 2.8vw, 38px); font-weight: 800; color: var(--ink);
  margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
#ivy-app .letter-body p { font-size: 16.5px; line-height: 1.95; color: var(--ink-2); margin: 0 0 16px; }
#ivy-app .letter-body strong { font-weight: 800; color: var(--ink); }
#ivy-app .letter-coda {
  text-align: center; font-size: clamp(21px, 2.7vw, 35px); font-weight: 800; line-height: 1.5;
  color: var(--ink); max-width: 900px; margin: clamp(46px, 6vw, 74px) auto 0;
  padding-top: clamp(36px, 4vw, 54px); border-top: 1px solid var(--line); text-wrap: balance;
}
#ivy-app .letter-body .letter-end { font-weight: 800; color: var(--ink); font-size: 19px; line-height: 1.6; margin-top: 28px; }

@media (max-width: 820px) {
  #ivy-app .letter-grid { grid-template-columns: 1fr; }
  #ivy-app .letter-portrait { order: 1; max-width: 320px; margin: 0 auto; aspect-ratio: 1; }
  #ivy-app .letter-main { order: 2; }
  #ivy-app .letter-quote { white-space: normal; text-wrap: balance; }
}

/* ============================================================ 區塊5｜賣點 */
#ivy-app .sells { padding: var(--sec-pad) 0; background: var(--bg-2); isolation: isolate; }
#ivy-app .sells .m-halo.a { top: -16%; right: -8%; }
#ivy-app .sells .m-halo.b { bottom: -22%; left: -14%; background: radial-gradient(circle, color-mix(in srgb, var(--leaf) 20%, transparent), transparent 68%); }
#ivy-app .sells .hero-swoosh { z-index: 0; opacity: 1; }
#ivy-app .sells-scatter { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#ivy-app .sells-scatter .ss { position: absolute; }
#ivy-app .sells-scatter .e1 { top: 15%; left: 5%; }
#ivy-app .sells-scatter .e2 { top: 24%; right: 6%; }
#ivy-app .sells-scatter .e3 { bottom: 16%; left: 7%; }
#ivy-app .sells-scatter .e4 { bottom: 9%; right: 7%; }
@media (max-width: 1100px) { #ivy-app .sells-scatter { display: none; } }
#ivy-app .sell-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
#ivy-app .sell-card {
  background: var(--card-bg); border: var(--bd-w) solid var(--card-bd); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(26px, 3vw, 38px); text-align: left;
}
#ivy-app .sell-ic {
  width: 64px; height: 64px; border-radius: var(--radius); background: var(--grad-soft);
  display: grid; place-items: center; margin-bottom: 20px;
}
#ivy-app .sell-ic img { width: 40px; height: 40px; object-fit: contain; }
#ivy-app .sell-card h3 { font-size: 20px; font-weight: 800; margin: 0 0 10px; letter-spacing: normal; color: var(--ink); }
#ivy-app .sell-card p { font-size: 1rem; line-height: 1.75; color: var(--ink-2); margin: 0; }
/* 三法（方法論列表） */
#ivy-app .method-list { max-width: 900px; margin: clamp(40px, 5vw, 64px) auto 0; display: flex; flex-direction: column; }
#ivy-app .method-item { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 44px); align-items: start; }
#ivy-app .method-item + .method-item { border-top: 1px solid var(--line); margin-top: clamp(30px, 4vw, 46px); padding-top: clamp(30px, 4vw, 46px); }
#ivy-app .method-no {
  font-family: var(--mono); font-size: clamp(40px, 5vw, 64px); font-weight: 800; line-height: .9;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* —— vacc：直式賣點卡（固定展開） —— */
#ivy-app .vacc { max-width: 820px; margin: -273px auto 0; display: flex; flex-direction: column; gap: 14px; }
#ivy-app .vacc-item {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-bg);
  box-shadow: 0 8px 30px -12px rgba(15,33,67,.22), 0 2px 8px rgba(15,33,67,.06); overflow: hidden;
  display: grid; grid-template-columns: 1fr 38%; align-items: stretch;
  min-height: 268px;
  position: sticky; top: 300px;
}
/* 手機：卡片太擠不做堆疊，標題與卡片都正常排版 */
@media (max-width: 820px) {
  #ivy-app .sells .sec-head { position: static; padding-bottom: 0; }
  #ivy-app .vacc { margin-top: 28px; }
  #ivy-app .vacc-item { position: static; }
}
#ivy-app .vacc-text { padding: clamp(22px, 2.6vw, 30px) clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; justify-content: center; }
#ivy-app .vacc-img { position: relative; }
#ivy-app .vacc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#ivy-app .vacc-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, var(--card-bg), transparent 62%); }
@media (max-width: 600px) { #ivy-app .vacc-item { grid-template-columns: 1fr; } #ivy-app .vacc-img { display: none; } }
#ivy-app .vacc-title { display: block; font-size: clamp(18px, 2vw, 22px); font-weight: 800; color: var(--ink); letter-spacing: normal; margin: 0 0 12px; }
#ivy-app .vacc-hi { font-size: clamp(1rem, 1.7vw, 18px); font-weight: 700; line-height: 1.6; margin: 0 0 8px; }
#ivy-app .vacc-desc { font-size: 1rem; line-height: 1.85; color: var(--ink-2); margin: 0; }
#ivy-app .sells-value {
  text-align: center; max-width: 760px; margin: clamp(40px, 5vw, 60px) auto 0;
  font-size: clamp(17px, 2vw, 22px); font-weight: 700; line-height: 1.65; color: var(--ink);
}
#ivy-app .sells-close {
  text-align: center; max-width: 720px; margin: clamp(36px, 4.5vw, 52px) auto 0;
  font-size: clamp(1.2rem, 1.8vw, 20px); font-weight: 700; line-height: 1.7; color: var(--ink);
}

#ivy-app .method-body h3 { font-size: clamp(21px, 2.3vw, 27px); font-weight: 800; color: var(--ink); margin: 0 0 12px; letter-spacing: normal; }
#ivy-app .method-lead { font-size: clamp(16px, 1.7vw, 18px); line-height: 1.7; }
#ivy-app .method-lead strong { color: var(--ink); font-weight: 700; }
#ivy-app .method-body p { font-size: 16px; line-height: 1.85; color: var(--ink-2); margin: 0 0 12px; }
#ivy-app .method-body p:last-child { margin-bottom: 0; }
@media (max-width: 680px) { #ivy-app .method-item { grid-template-columns: 1fr; gap: 6px; } }
/* 兩條路（代價 vs 補好） */
#ivy-app .cross { padding: var(--sec-pad) 0; background: var(--bg); }
#ivy-app .cross-grid {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(14px, 2vw, 26px);
  align-items: stretch; max-width: 1000px; margin: clamp(40px, 5vw, 60px) auto 0;
}
#ivy-app .cross-col { border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 38px); }
#ivy-app .cross-col.bad { background: color-mix(in srgb, #C0492F 7%, var(--bg)); border: 1px solid color-mix(in srgb, #C0492F 26%, transparent); }
#ivy-app .cross-col.good { background: color-mix(in srgb, var(--leaf) 12%, var(--bg)); border: 1px solid color-mix(in srgb, var(--leaf) 42%, transparent); }
#ivy-app .cross-head { display: flex; align-items: center; gap: 10px; font-size: clamp(18px, 2vw, 22px); font-weight: 800; margin: 0 0 20px; letter-spacing: normal; }
#ivy-app .cross-col.bad .cross-head { color: #B23A22; }
#ivy-app .cross-col.good .cross-head { color: #2C8159; }
#ivy-app .cross-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 1rem; color: #fff; }
#ivy-app .cross-col.bad .cross-mark { background: #C0492F; }
#ivy-app .cross-col.good .cross-mark { background: #2C8159; }
#ivy-app .cross-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
#ivy-app .cross-col li { font-size: 1rem; line-height: 1.65; color: var(--ink-2); padding-left: 26px; position: relative; }
#ivy-app .cross-col li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
#ivy-app .cross-col.bad li::before { content: "✕"; color: #C0492F; }
#ivy-app .cross-col.good li::before { content: "✓"; color: #2C8159; }
#ivy-app .cross-vs {
  align-self: center; font-family: var(--mono); font-weight: 800; font-size: 18px; color: var(--ink-mute);
  width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg);
  display: grid; place-items: center; flex-shrink: 0;
}
#ivy-app .cross-punch {
  text-align: center; font-size: clamp(20px, 2.4vw, 30px); font-weight: 800; line-height: 1.5;
  color: var(--ink); max-width: 780px; margin: clamp(36px, 5vw, 56px) auto 0; text-wrap: balance;
}
@media (max-width: 760px) {
  #ivy-app .cross-grid { grid-template-columns: 1fr; }
  #ivy-app .cross-vs { width: 44px; height: 44px; margin: -4px auto; }
}

/* ============================================================ 區塊7｜學員評價 */
#ivy-app .reviews { padding: var(--sec-pad) 0; background: var(--bg); }
#ivy-app .review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
#ivy-app .review-card {
  background: var(--card-bg); border: var(--bd-w) solid var(--card-bd); border-radius: 12px;
  box-shadow: var(--shadow); padding: clamp(26px, 3vw, 36px); margin: 0; position: relative;
}
#ivy-app .review-card { display: flex; flex-direction: column; }
#ivy-app .review-card .quote-mark { font-size: 56px; line-height: .6; color: var(--leaf); font-family: Georgia, serif; opacity: .55; margin-bottom: 8px; }
#ivy-app .review-card blockquote { margin: 0 0 22px; border: 0; padding: 0; }
#ivy-app .review-card blockquote p { font-size: 1rem; line-height: 1.85; color: var(--ink-2); margin: 0 0 14px; }
#ivy-app .review-card blockquote p:last-child { margin-bottom: 0; }
#ivy-app .review-card figcaption {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
}
#ivy-app .rv-ava {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; background: var(--surface-2);
}
#ivy-app .rv-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
#ivy-app .rv-meta { display: flex; flex-direction: column; line-height: 1.35; text-align: left; }
#ivy-app .rv-name { font-weight: 700; color: var(--ink); font-size: 1rem; }
#ivy-app .rv-role { font-family: var(--mono); font-size: 1rem; color: var(--ink-mute); letter-spacing: .03em; }
#ivy-app .review-card .stars { color: var(--leaf); letter-spacing: 4px; font-size: 1rem; margin-top: 16px; }

/* 學員回饋：橫向自動輪播 */
#ivy-app .review-marquee {
  overflow: hidden; margin-top: clamp(40px, 5vw, 60px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
#ivy-app .review-track {
  display: flex; gap: var(--gap); width: max-content;
  animation: reviewScroll 104s linear infinite;
}
/* 只有真的有滑鼠 hover 的裝置才暫停；觸控裝置（手機/平板）不暫停，避免一滑到就停住像壞掉 */
@media (hover: hover) and (pointer: fine) { #ivy-app .review-marquee:hover .review-track { animation-play-state: paused; } }
#ivy-app .review-track .review-card { flex: 0 0 clamp(290px, 24vw, 344px); }
@keyframes reviewScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - var(--gap) / 2)); } /* 多扣半個 gap 讓接縫無縫、不跳動 */
}
@media (prefers-reduced-motion: reduce) {
  #ivy-app .review-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}
/* 手機：輪播放慢（視覺上才不會太快）；不暫停，連續循環 */
@media (max-width: 640px) { #ivy-app .review-track { animation-duration: 220s; } }

@media (max-width: 860px) {
  #ivy-app .sell-grid, #ivy-app .review-grid { grid-template-columns: 1fr; }
}

/* ============================================================ 適合誰 */
#ivy-app .audience { padding: var(--sec-pad) 0; background: var(--bg-2); }
#ivy-app .aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
#ivy-app .aud-card {
  background: var(--card-bg); border: var(--bd-w) solid var(--card-bd); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(22px, 2.4vw, 30px); text-align: left;
}
#ivy-app .aud-tag { font-family: var(--mono); font-size: 1rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); margin-bottom: 12px; }
#ivy-app .aud-card h3 { font-size: clamp(17px, 1.9vw, 20px); font-weight: 800; color: var(--ink); margin: 0 0 10px; line-height: 1.35; letter-spacing: normal; }
#ivy-app .aud-card p { font-size: 1rem; line-height: 1.7; color: var(--ink-2); margin: 0; }
/* §9 卡片進場動畫（方向依箭頭：1 左、2/3 下、4 右）*/
#ivy-app .aud-anim .aud-card { opacity: 0; transition: opacity .6s ease, transform .75s cubic-bezier(.22, .7, .2, 1); will-change: opacity, transform; }
#ivy-app .aud-anim .aud-card.from-l { transform: translateX(-56px); }
#ivy-app .aud-anim .aud-card.from-r { transform: translateX(56px); }
#ivy-app .aud-anim .aud-card.from-b { transform: translateY(58px); }
#ivy-app .aud-anim.is-in .aud-card { opacity: 1; transform: none; }
#ivy-app .aud-anim.is-in .aud-card:nth-child(2) { transition-delay: .1s; }
#ivy-app .aud-anim.is-in .aud-card:nth-child(3) { transition-delay: .2s; }
#ivy-app .aud-anim.is-in .aud-card:nth-child(4) { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { #ivy-app .aud-anim .aud-card { opacity: 1 !important; transform: none !important; transition: none; } }
@media (max-width: 920px) { #ivy-app .aud-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { #ivy-app .aud-grid { grid-template-columns: 1fr; } }

/* section 標題:裸 h2 吃品牌 ink 色,避免直嵌後 Blocksy 預設灰外洩 */
#ivy-app h2{color:var(--ink)}
