/* 公開首頁（刀 1021-K，Galant 2026-10-20 17:32、2026-10-21 12:52）。
   色：底 #E8ECF2、藏青 #1F3567（hover #16264A）、強調紅 #C0504D 只用在主標底線。不用陰影、漸層、emoji。 */
:root {
  --bg:#E8ECF2;
  --ink:#1F3567;
  --ink-hover:#16264A;
  --accent:#C0504D;
  --sans:'Noto Sans TC',sans-serif;
  --ja:'Noto Serif JP','Yu Mincho',serif;
  --title:'LXGW WenKai TC','Noto Serif TC',serif;
  --gutter:clamp(20px,5vw,48px);
  /* 與 frontend/css/styles.css 的 --t-mark 保持一致，由 tests/landing_t_mark_alignment.test.js 鎖定 */
  --t-mark:180ms
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth
}
body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.8;
  -webkit-font-smoothing:antialiased
}
img,video {
  max-width:100%;
  display:block
}
a {
  color:inherit;
  text-decoration:none
}
button {
  font:inherit
}
a:focus-visible,button:focus-visible {
  outline:2px solid var(--ink);
  outline-offset:4px
}
.skip-link {
  position:absolute;
  left:16px;
  top:-70px;
  background:var(--ink);
  color:var(--bg);
  padding:12px;
  z-index:100
}
.skip-link:focus {
  top:12px
}
.shell {
  width:100%;
  max-width:1200px;
  margin-inline:auto;
  padding-inline:var(--gutter)
}

/* ── 頁首 ── */
.header-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:76px
}
.brand {
  display:inline-flex;
  align-items:baseline;
  gap:8px
}
.brand-main {
  font-family:var(--ja);
  font-weight:600;
  font-size:22px;
  letter-spacing:.12em
}
.brand-sub {
  font-size:13px;
  letter-spacing:.2em
}
.desktop-nav {
  display:flex;
  flex-wrap:wrap;
  gap:4px 28px;
  font-size:15px
}
.desktop-nav a:hover,.mobile-nav a:hover,.text-link:hover,.footer-links a:hover {
  color:var(--ink-hover);
  text-decoration:underline;
  text-underline-offset:4px
}
.menu-toggle {
  display:none;
  width:44px;
  height:44px;
  padding:12px 10px;
  border:1px solid var(--ink);
  border-radius:2px;
  background:transparent;
  color:var(--ink);
  cursor:pointer
}
.menu-toggle span {
  display:block;
  height:1px;
  background:currentColor;
  margin:5px 0
}
.mobile-nav {
  display:flex;
  flex-direction:column;
  padding:0 var(--gutter) 16px
}
.mobile-nav[hidden] {
  display:none
}
.mobile-nav a {
  padding:12px 0;
  border-top:1px solid var(--ink)
}

/* ── 共用 ── */
.ja-lead {
  margin:0 0 8px;
  font-family:var(--ja);
  font-weight:400;
  font-size:15px;
  letter-spacing:.08em
}
.ja-lead ruby rt {
  font-size:.6em;
  letter-spacing:0
}
h1,h2,h3 {
  font-family:var(--title);
  font-weight:700;
  margin:0
}
h2 {
  font-size:clamp(26px,3.2vw,34px);
  line-height:1.4;
  margin-bottom:32px
}
.button {
  display:inline-block;
  padding:16px 36px;
  border:1px solid var(--ink);
  border-radius:2px;
  background:var(--ink);
  color:var(--bg);
  font-weight:500;
  letter-spacing:.08em;
  line-height:1.2;
  transition:background-color var(--t-mark) ease,border-color var(--t-mark) ease
}
.button:hover {
  background:var(--ink-hover);
  border-color:var(--ink-hover)
}
.button-outline {
  background:transparent;
  color:var(--ink)
}
.button-outline:hover {
  background:var(--ink);
  color:var(--bg)
}
.text-link {
  text-decoration:underline;
  text-underline-offset:4px
}
.section {
  padding-block:clamp(64px,9vw,112px)
}

/* ── 主視覺 ── */
.hero {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  align-items:center;
  gap:clamp(24px,5vw,72px);
  padding-block:clamp(40px,7vw,96px)
}
.hero h1 {
  font-size:clamp(32px,4.6vw,52px);
  line-height:1.35;
  margin-bottom:24px
}
.mark {
  position:relative;
  display:inline-block;
  white-space:nowrap
}
.mark-line {
  position:absolute;
  left:0;
  right:0;
  bottom:-.18em;
  width:100%;
  height:.32em;
  overflow:visible
}
.mark-line path {
  fill:none;
  stroke:var(--accent);
  stroke-width:2.4;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke
}
.hero-lead {
  margin:0 0 32px;
  max-width:34em
}
.hero-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:16px 28px
}
.cat-figure {
  margin:0
}
.cat-video,.cat-still {
  width:100%;
  height:auto
}
.cat-still {
  display:none
}
.cat-figure figcaption {
  margin-top:8px;
  font-size:13px;
  text-align:center
}

/* ── 練什麼 ── */
.what-list {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px 32px
}
.what-item {
  border-top:1px solid var(--ink);
  padding-top:16px
}
.what-level {
  display:block;
  font-size:13px;
  letter-spacing:.06em
}
.what-item h3 {
  font-size:22px;
  line-height:1.5;
  margin:4px 0 8px
}
.what-item p {
  margin:0;
  font-size:15px
}

/* ── Kumo 是誰 ── */
.kumo-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(32px,6vw,96px);
  align-items:start
}
.kumo-col p {
  margin:0
}
.kumo-col .ja-lead {
  margin-bottom:8px
}
.kumo-cat {
  margin-top:32px;
  max-width:360px
}

/* ── 價格 ── */
.price-layout {
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:32px
}
.price-pro,.price-free {
  border-top:1px solid var(--ink);
  padding-top:20px
}
.price-pro h3,.price-free h3 {
  font-size:24px;
  margin-bottom:16px
}
.price-pro h3 small {
  font-family:var(--sans);
  font-size:13px;
  font-weight:500;
  margin-left:8px
}
.pro-periods {
  display:flex;
  flex-wrap:wrap;
  gap:16px 48px;
  margin-bottom:16px
}
.period-label {
  font-size:13px
}
.price-amount,.free-price {
  font-family:var(--title);
  font-size:32px;
  line-height:1.3
}
.price-amount small {
  font-size:16px;
  margin-right:2px
}
.price-amount em {
  font-style:normal;
  font-family:var(--sans);
  font-size:15px
}
.plan-list {
  margin:0 0 24px;
  padding-left:1.2em;
  font-size:15px
}
.pricing-footnote {
  margin:32px 0 0;
  font-size:14px
}
.pricing-footnote a {
  text-decoration:underline;
  text-underline-offset:4px
}

/* ── 最新文章（卡片樣式在 /css/post-card.css） ── */
.steps-section .post-cards-updated {
  margin:-24px 0 16px
}
.steps-section .text-link {
  display:inline-block;
  margin-top:16px
}

/* ── 結尾 ── */
.final-cta {
  padding-block:clamp(64px,9vw,112px);
  text-align:center
}
.final-cta h2 {
  margin-bottom:28px
}

/* ── 頁尾 ── */
.site-footer {
  border-top:1px solid var(--ink);
  padding-block:40px 32px;
  font-size:14px
}
.footer-main {
  display:flex;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap
}
.footer-brand p {
  margin:8px 0 0
}
.footer-links {
  display:flex;
  flex-wrap:wrap;
  gap:24px 48px
}
.footer-links div {
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0
}
.footer-links span {
  font-weight:500
}
.footer-links a {
  overflow-wrap:anywhere
}
.footer-bottom {
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-top:32px;
  font-size:13px
}

/* ── 窄螢幕 ── */
@media(max-width:860px) {
  .what-list {
    grid-template-columns:repeat(2,1fr)
  }
}
@media(max-width:767px) {
  .desktop-nav {
    display:none
  }
  .menu-toggle {
    display:block
  }
  .hero,.kumo-grid,.price-layout {
    grid-template-columns:1fr
  }
  .what-list {
    grid-template-columns:1fr;
    gap:28px
  }
  .hero-cat {
    max-width:440px;
    margin-inline:auto
  }
}

/* 減少動態：影片隱藏，改顯示同一張 poster 靜態圖 */
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  .cat-video {
    display:none
  }
  .cat-still {
    display:block
  }
  .button {
    transition:none
  }
}
