/*
 * marketing.css — 只給對外三頁（index / enroll / security）用的視覺強化。
 *
 * 為什麼另外開一支：學員上課用的頁面要穩、要好讀，不需要也不該跟著改版；
 * 這裡放的是「第一次看到這個網站的人」才會用到的東西。
 * 載入這支的頁面要在 <body> 加上 class="mk"。
 */

/* ---------- 版面節奏：對外頁的段落之間拉開，一段講一件事 ---------- */
.mk .slide { padding-block: clamp(48px, 6vw, 92px); }
.mk .section-head { margin-bottom: clamp(20px, 2.5vw, 34px); }
.mk .section-head h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.35rem); letter-spacing: -.02em; line-height: 1.24; }
.mk .section-head .kicker { letter-spacing: .16em; }
.mk .lead { max-width: 62ch; }

/* ---------- 主視覺：滿版深色帶 + 兩層光暈 + 細顆粒 ---------- */
.mk .lp-hero {
  /* 掙脫 .wrap 的寬度限制，讓深色帶貼到畫面兩側——比圓角卡片有份量 */
  /* 主視覺放在滿版的 <main class="lp-main"> 裡，本身就是滿版。
     不能用 calc(50% - 50vw) 負邊距硬撐：50vw 含捲軸寬度，會多出 8px 變成可以左右滑，
     而 main 會裁掉超出的部分——之前就是這樣被裁回 1120px、看起來左右被切掉。 */
  margin: 0;
  /* 寬螢幕時把內容置中在 1120；筆電寬度（約 1100–1400）時 50vw-560 只剩 40px，
     圖卡會貼到畫面邊緣，所以下限拉到 6vw */
  padding-inline: max(24px, min(6vw, 72px), calc(50% - 560px));
  padding-block: clamp(56px, 8vw, 104px);
  border-radius: 0;
  background:
    radial-gradient(120% 90% at 82% 8%, rgb(134 168 255 / 32%), transparent 58%),
    radial-gradient(90% 70% at 8% 100%, rgb(29 35 39 / 34%), transparent 60%),
    #17143d;
}
/* 顆粒：純 CSS，不載圖。沒有它，深色區塊會平得像一塊色票 */
.mk .lp-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgb(255 255 255 / 9%) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}
.mk .lp-hero::after { inset: auto -14vw -46% auto; width: min(760px, 78vw); height: min(760px, 78vw); opacity: .55; }
.mk .lp-hero h1 { font-size: clamp(1.95rem, 1.25rem + 2.1vw, 2.9rem); line-height: 1.22; letter-spacing: -.02em; max-width: 22ch; }
.mk .lp-hero p { font-size: clamp(1.05rem, .98rem + .45vw, 1.3rem); line-height: 1.75; }
.mk .lp-hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.mk .lp-hero .eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; opacity: .7; }

/* 招生頁與資安頁共用的淺色主視覺：加大字級落差、左側加一條主色細線 */
.mk .en-hero { position: relative; padding-block: clamp(44px, 6vw, 84px) clamp(28px, 4vw, 52px); }
.mk .en-hero h1 { font-size: clamp(2rem, 1.15rem + 3.8vw, 3.9rem); line-height: 1.14; letter-spacing: -.03em; }
.mk .en-hero .lead { font-size: clamp(1.05rem, 1rem + .45vw, 1.28rem); line-height: 1.8; }
.mk .en-hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.mk .en-hero .eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; opacity: .65; }

/* ---------- 兩條路：不對等。主要那條要明顯比較重 ---------- */
@media (min-width: 900px) {
  .mk .lp-paths { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .mk .lp-path:first-child { padding: clamp(30px, 3vw, 42px); }
  .mk .lp-path:first-child h2 { font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); }
}
.mk .lp-path { position: relative; overflow: hidden; }
.mk .lp-path::after {
  /* 滑過時從左下掃過的光，告訴你「這張是可以點的」 */
  content: ''; position: absolute; inset: auto -40% -60% -40%; height: 70%;
  background: radial-gradient(60% 100% at 50% 100%, rgb(29 35 39 / 12%), transparent 70%);
  opacity: 0; transition: opacity var(--normal) var(--ease);
}
.mk .lp-path:hover::after, .mk .lp-path:focus-visible::after { opacity: 1; }
.mk .lp-path .lp-go { display: inline-flex; align-items: center; gap: 8px; }
.mk .lp-path .lp-go::after { content: '→'; transition: transform var(--fast) var(--ease); }
.mk .lp-path:hover .lp-go::after { transform: translateX(4px); }
.mk .lp-path:first-child::before {
  content: '多數人從這裡開始'; position: absolute; top: 0; left: 0;
  background: var(--brand-fill); color: #fff; border-bottom-right-radius: 12px;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: 6px 14px;
}
.mk .lp-path:first-child { padding-top: clamp(44px, 4vw, 56px); }

/* ---------- 數字：不要四張一樣的卡，用編輯式的大字與細線 ---------- */
.mk .lp-proof { gap: 0; border-top: 1px solid var(--line); }
.mk .lp-proof div {
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; padding: 22px 24px 22px 0;
}
@media (min-width: 720px) {
  .mk .lp-proof div { border-right: 1px solid var(--line); padding-left: 24px; }
  .mk .lp-proof div:first-child { padding-left: 0; }
  .mk .lp-proof div:last-child { border-right: 0; }
}
.mk .lp-proof b { font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); line-height: .95; letter-spacing: -.045em; }

/* ---------- 卡片的層次：不要每一張都一樣重 ---------- */
.mk .card { transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.mk .en-faq details[open] { border-color: var(--brand); }
.mk .en-faq summary { cursor: pointer; }

/* ---------- 焦點框：鍵盤使用者要看得出自己在哪 ---------- */
.mk a:focus-visible, .mk button:focus-visible, .mk summary:focus-visible, .mk input:focus-visible, .mk textarea:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px;
}

/* ---------- 進場：往上浮一點點。只是讓視線跟著走，不是特效 ---------- */
.mk [data-reveal] { opacity: 0; transform: translateY(14px); }
.mk [data-reveal].is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .mk [data-reveal], .mk [data-reveal].is-in { opacity: 1; transform: none; transition: none; }
}

@media print {
  .mk [data-reveal] { opacity: 1 !important; transform: none !important; }
  .mk .lp-hero { margin-inline: 0; padding-inline: 0; background: none; color: #111; }
}

/* ---------- 主視覺右側：一個「你會做出來的東西」＋一則「你會遇到的訊息」 ---------- */
/* 兩件事並排，不用文字解釋也看得懂這門課在講什麼 */
.mk .lp-hero { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 980px) { .mk .lp-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
@media (max-width: 979px) { .mk .lp-visual { display: none; } }

.mk .lp-visual { position: relative; padding: 10px 0 78px; max-width: 430px; margin-left: auto; }
.mk .mk-window {
  border-radius: 16px; overflow: hidden; background: #fbfaf7; color: #1c1b29;
  box-shadow: 0 30px 70px -28px rgb(0 0 0 / 65%), 0 0 0 1px rgb(255 255 255 / 10%);
  transform: rotate(-1deg);
}
.mk .mk-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #ece8e0; font-size: .74rem; color: #6b6880; }
.mk .mk-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3cec4; }
.mk .mk-bar span { margin-left: 10px; }
.mk .mk-body { padding: 18px 20px 20px; }
.mk .mk-title { margin: 0 0 14px; font-weight: 900; font-size: 1.05rem; }
.mk .mk-list { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.mk .mk-list li { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px solid #e4dfd5; }
.mk .mk-list span { color: #6b6880; }
.mk .mk-note { margin: 12px 0 0; font-size: .74rem; color: #17835a; font-weight: 700; }
.mk .mk-window { margin-bottom: 34px; }
.mk .mk-code { margin: 0 0 12px; padding: 12px 14px; border-radius: 6px; background: #1d2327; color: #eef2f3; font: .8rem/1.6 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.mk .mk-found { margin-top: 12px; font-size: .84rem; font-weight: 700; color: #b42318; }
.mk .mk-found:empty { display: none; }
.mk .mk-found a { color: #1d4ed8; }


.mk .mk-chat {
  position: absolute; right: 0; bottom: 0; width: min(280px, 88%);
  background: #221f52; color: #e8e9ff; border-radius: 14px; padding: 14px 16px;
  box-shadow: 0 24px 50px -20px rgb(0 0 0 / 70%), 0 0 0 1px rgb(255 255 255 / 12%);
  transform: rotate(1.6deg);
}
.mk .mk-chat b { color: #fff; }
.mk .mk-chat p { margin: 6px 0 0; font-size: .84rem; line-height: 1.6; color: #c7c9f2; }
.mk .mk-chat p b { color: #fca5a5; }
.mk .mk-flag {
  position: absolute; top: -10px; left: -10px; background: #cc3b35; color: #fff;
  font-size: .66rem; font-weight: 800; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px;
}

/* ---------- 白板改版（2026-09）：主視覺不再是深紫色帶，而是寫滿字的白板，兩樣東西貼在上面 ---------- */
:root .mk .lp-hero { background: transparent; color: var(--ink); border-bottom: 2px solid var(--line); }
:root .mk .lp-hero::before, :root .mk .lp-hero::after { display: none; }
:root .mk .lp-hero .eyebrow { color: var(--brand); font-family: var(--hand-text); font-size: 1.15rem; letter-spacing: 0; text-transform: none; }
:root .mk .lp-hero h1 { font-size: clamp(1.9rem, 1.1rem + 2.6vw, 3.4rem); line-height: 1.35; max-width: none; }
/* 第二行：紅筆在底下畫一道線 */
:root .mk .lp-hero h1 em {
  color: inherit; text-decoration: underline; text-decoration-color: var(--danger);
  text-decoration-thickness: max(3px, .06em); text-underline-offset: .18em; text-decoration-skip-ink: none;
}
:root .mk .lp-hero p { color: var(--muted); }
:root .mk .lp-hero p b { color: var(--ink); }
:root .mk .lp-badges span { color: var(--ink); }
:root .mk .lp-badges span::before { color: var(--ok); }
/* 報名頁：一張用紙膠帶貼在板上的紙 */
:root .mk .mk-window { position: relative; overflow: visible; box-shadow: 0 1px 1px rgb(29 35 39 / 8%), 0 22px 40px -22px rgb(29 35 39 / 45%); border-radius: 4px; }
:root .mk .mk-window::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 84px; height: 22px; translate: -50% 0; rotate: -3deg;
  background: var(--tape); z-index: 2;
}
:root .mk .mk-bar { border-radius: 4px 4px 0 0; }
:root .mk .mk-title { color: #1d2327; }
/* 可疑訊息：手機上跳出來的那則，深色螢幕、紅筆標「可疑」 */
:root .mk .mk-chat { background: #1d2327; color: #eef2f3; box-shadow: var(--shadow-lift); }
:root .mk .mk-chat p { color: #c9d1d6; }
:root .mk .mk-flag { background: var(--danger-fill); font-family: var(--hand); letter-spacing: 0; font-size: .8rem; }
:root .mk .lp-path::after { display: none; }
:root .mk .lp-path:first-child::before { font-family: var(--hand); letter-spacing: 0; font-size: .85rem; }
:root .mk .lp-hero-text { display: flex; flex-direction: column; }
/* 原本在主標上面的一行小字，改成寫在主標底下的藍筆註記 */
:root .mk .lp-hero-text h1 { order: -1; margin-bottom: .1em; }
:root .mk .lp-hero .eyebrow { margin-bottom: 14px; }
:root .mk .lp-hero .eyebrow::before { display: none; }
:root .mk .lp-hero-text h1 { margin-bottom: .45em; }
:root .mk .lp-hero .eyebrow { margin-bottom: 22px; }
:root .mk .section-head .kicker { letter-spacing: 0; }
