/* =========================================================================
   Kash 講師網站 — 全站共用樣式
   設計依據：03_design-spec.md（Claude 暖米白編輯風皮膚）
   文案依據：02_sitemap-copy.md
   純 CSS，無框架、無 build step；GitHub Pages 直接可跑
   ========================================================================= */

/* ---------- 1. 色彩系統（依 03 §1 逐項照抄） ---------- */
:root {
  /* 畫布與表面 */
  --canvas:          #faf9f5;
  --surface-soft:    #f5f0e8;
  --surface-card:    #efe9de;
  --surface-dark:    #181715;
  --surface-dark-2:  #252320;

  /* 品牌強調（珊瑚，唯一 voltage 色） */
  --primary:         #cc785c;
  --primary-active:  #a9583e;
  --accent-teal:     #5db8a6;

  /* 文字 */
  --ink:             #141413;
  --body:            #3d3d3a;
  --muted:           #6c6a64;
  --on-primary:      #ffffff;
  --on-dark:         #faf9f5;

  /* 線與語意 */
  --hairline:        #e6dfd8;
  --success:         #5db872;

  /* 字體系統（依 03 §2） */
  --font-display: "Noto Serif TC", "Cormorant Garamond", "Times New Roman", serif;
  --font-body:    "Noto Sans TC", "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", monospace;

  /* 版式與間距（依 03 §3） */
  --section-gap: 96px;
  --card-pad:    32px;
  --cta-pad:     56px;
  --content-max: 1200px;
  --nav-h:       64px;

  /* 圓角 */
  --r-btn:   8px;
  --r-card:  12px;
  --r-hero:  16px;
  --r-pill:  9999px;
}

/* ---------- 2. Reset 與基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

/* 標題：襯線、字重 400、不加粗（03 鐵則） */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

h1 { font-size: 60px; letter-spacing: -1px; }
h2 { font-size: 40px; letter-spacing: -0.5px; }
h3 { font-size: 28px; letter-spacing: -0.3px; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

/* 行內連結（text-link：珊瑚色、按下加底線） */
.text-link {
  color: var(--primary);
  font-weight: 500;
}
.text-link:hover,
.text-link:focus { text-decoration: underline; }

ul { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

/* 可及性：鍵盤 focus 可見 */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- 3. 版面容器 ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-gap) 0; }
.section--soft { background: var(--surface-soft); }
.section--dark { background: var(--surface-dark); color: var(--on-dark); }
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--on-dark); }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 18px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ---------- 4. 按鈕 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 12px 20px;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

/* 主 CTA：珊瑚底白字 */
.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover,
.btn-primary:focus { background: var(--primary-active); }

/* 次 CTA：米白底墨字 hairline 邊框 */
.btn-secondary {
  background: var(--canvas);
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-secondary:hover,
.btn-secondary:focus { border-color: var(--primary); color: var(--primary); }

/* 珊瑚帶上的反色米白按鈕 */
.btn-invert {
  background: var(--canvas);
  color: var(--primary-active);
}
.btn-invert:hover,
.btn-invert:focus { background: var(--surface-soft); }

/* 深色帶上的次按鈕 */
.btn-on-dark {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(250,249,245,.35);
}
.btn-on-dark:hover,
.btn-on-dark:focus { border-color: var(--on-dark); }

/* ---------- 5. 導覽列（top-nav：64px、米白底、sticky 珊瑚主按鈕） ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(250,249,245,.92);
  backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  white-space: nowrap;
}
.nav__brand span { color: var(--primary); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: 15px;
  color: var(--body);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active {
  color: var(--ink);
  border-bottom-color: var(--primary);
}
.nav__cta { flex-shrink: 0; }
.nav__links .nav__cta-mobile { display: none; }

/* 漢堡按鈕（手機才顯示） */
.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-btn);
  background: var(--canvas);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after  { position: absolute; top: 6px; }

/* ---------- 6. Hero ---------- */
.hero { padding: 80px 0 64px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero__sub {
  font-size: 19px;
  color: var(--body);
  max-width: 34em;
  margin-bottom: 32px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero 右欄形象照版位（surface-card 灰塊 + 講師形象照） */
.photo-ph {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-hero);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.photo-ph picture,
.photo-ph img {
  display: block;
  width: 100%;
  height: 100%;
}
.photo-ph img {
  object-fit: cover;
  object-position: center 22%;
}

/* ---------- 7. 定位條（會算命的數據顧問） ---------- */
.tagline-bar {
  background: var(--surface-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 28px 0;
}
.tagline-bar p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  text-align: center;
}
.tagline-bar .accent { color: var(--primary); }

/* ---------- 8. 卡片網格 ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* 特色卡（feature-card：surface-card、12px 圓角、內距 32、無陰影） */
.card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
}
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card__title {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}
.card p { color: var(--body); }
.card .text-link { margin-top: auto; padding-top: 12px; }

/* 講題卡 meta */
.topic-meta {
  list-style: none;
  padding: 0;
  margin: 4px 0 18px;
  font-size: 14px;
  color: var(--muted);
}
.topic-meta li { margin-bottom: 4px; }
.topic-meta strong { color: var(--body); font-weight: 500; }

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 3px 12px;
  margin-bottom: 14px;
  align-self: flex-start;
}

/* 媒體報導卡（圖／文／連結） */
.media-card {
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.media-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}
.media-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-soft);
}
.media-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.media-card:hover .media-card__thumb img { transform: scale(1.03); }
.media-card__thumb--video::after {
  content: "\25B6";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  background: rgba(20, 20, 19, 0.72);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 20px;
}
.media-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}
.media-card__source {
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 0 0 8px;
}
.media-card__title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 10px;
}
.media-card__desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--body);
  margin: 0 0 16px;
}
.media-card .text-link { margin-top: auto; }

/* 客戶見證 quote 卡 */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.quote-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 30px 30px 26px;
  display: flex;
  flex-direction: column;
}
.quote-card::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.9;
  color: var(--primary);
  opacity: 0.5;
  margin-bottom: 4px;
}
.quote-card__text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--body);
  margin: 0 0 20px;
  flex: 1;
}
.quote-card__author {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}
.quote-card__name {
  font-weight: 500;
  color: var(--ink);
}
.quote-card__meta {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* ---------- 9. 深色信任證明橫幅 ---------- */
.trust-strip { padding: 48px 0; }
.trust-strip p {
  margin: 0;
  text-align: center;
  font-size: 16px;
  line-height: 2;
  color: var(--on-dark);
}
.trust-strip .sep { color: var(--primary); padding: 0 6px; }

/* ---------- 10. 珊瑚 CTA 帶（callout-card-coral：珊瑚滿版、白字、內距 48+） ---------- */
.cta-band { background: var(--primary); color: var(--on-primary); }
.cta-band .container {
  padding-top: var(--cta-pad);
  padding-bottom: var(--cta-pad);
  text-align: center;
}
.cta-band h2 { color: var(--on-primary); margin-bottom: 16px; }
.cta-band p {
  color: var(--on-primary);
  opacity: .92;
  max-width: 44em;
  margin: 0 auto 28px;
  font-size: 18px;
}

/* ---------- 11. 客戶龍頭 logo 牆 ---------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
.logo-cell {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 22px;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.logo-cell:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.logo-cell img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* 若日後想改為「灰階 + hover 恢復彩色」風格，取消下面兩行的註解即可：
.logo-cell img { filter: grayscale(1); opacity: 0.72; transition: filter 0.2s ease, opacity 0.2s ease; }
.logo-cell:hover img { filter: grayscale(0); opacity: 1; }
*/

/* 邀約需求表單：填寫前準備欄位清單 */
.form-fields {
  list-style: none;
  padding: 0;
  margin: 6px 0 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}
.form-fields li {
  position: relative;
  padding-left: 22px;
  color: var(--body);
  font-size: 15px;
}
.form-fields li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* 分產業客戶清單 */
.industry-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 12px;
}
.industry-item {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 20px 24px;
}
.industry-item h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 6px;
}
.industry-item p { margin: 0; color: var(--body); }

/* ---------- 12. 待補版位框（虛線） ---------- */
.placeholder {
  border: 2px dashed var(--primary);
  border-radius: var(--r-card);
  background: var(--surface-soft);
  padding: 32px;
  color: var(--muted);
}
.placeholder__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .5px;
  color: var(--primary-active);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 4px 14px;
  margin-bottom: 16px;
}
.placeholder h3 { font-size: 22px; margin-bottom: 12px; }
.placeholder ul { color: var(--body); }
.placeholder .field-hint {
  font-size: 14px;
  color: var(--body);
}

/* 示意 email 訂閱框 */
.subscribe-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  max-width: 480px;
}

/* Newsletter Substack embed 響應式包裝 */
.newsletter-embed {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.newsletter-embed iframe {
  width: 100%;
  max-width: 480px;
  height: 320px;
  border-radius: var(--r-card);
  display: block;
}

/* ---------- Newsletter 彈跳視窗（15 秒 / 離站觸發） ---------- */
.nl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 20, 19, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.nl-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.nl-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-hero);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 40px 36px 32px;
  text-align: center;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.28s ease;
}
.nl-modal.is-open .nl-modal__dialog {
  transform: translateY(0) scale(1);
}
.nl-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--r-pill);
  transition: background 0.2s ease, color 0.2s ease;
}
.nl-modal__close:hover {
  background: var(--surface-card);
  color: var(--ink);
}
.nl-modal__eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 10px;
}
.nl-modal__title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 12px;
}
.nl-modal__desc {
  font-size: 15px;
  color: var(--body);
  margin: 0 0 22px;
}
.nl-modal .newsletter-embed {
  margin-top: 0;
}
.nl-modal__link {
  display: inline-block;
  margin-top: 20px;
}
.nl-modal__dismiss {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.nl-modal__dismiss:hover { color: var(--ink); }
.subscribe-row input {
  flex: 1 1 220px;
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-btn);
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--canvas);
  color: var(--ink);
}

/* ---------- 13. 資歷清單 ---------- */
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.spec-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.spec-list li:last-child { border-bottom: none; }
.spec-list .spec-key {
  flex: 0 0 120px;
  font-weight: 500;
  color: var(--ink);
}
.spec-list .spec-val { color: var(--body); }

/* ---------- 14. 表格（邀約規格） ---------- */
.table-wrap { overflow-x: auto; margin-top: 12px; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
}
th {
  font-weight: 500;
  color: var(--ink);
  background: var(--surface-soft);
}
td { color: var(--body); }

/* ---------- 15. 內文區塊 ---------- */
.prose { max-width: 720px; }
.prose p { font-size: 17px; color: var(--body); }
.prose strong { color: var(--ink); font-weight: 700; }

.lead {
  font-size: 20px;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.5;
}

/* 過場替代文字 */
.interim-note {
  font-style: italic;
  color: var(--muted);
  margin-top: 16px;
}

/* ---------- 16. Footer（深色滿版、絕不反色） ---------- */
.footer {
  background: var(--surface-dark);
  color: var(--muted);
  padding: 56px 0 32px;
}
.footer a { color: var(--on-dark); }
.footer a:hover { color: var(--primary); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--surface-dark-2);
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--on-dark);
  margin-bottom: 8px;
}
.footer__brand span { color: var(--primary); }
.footer h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--on-dark);
  margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; font-size: 15px; }
.footer__books { color: var(--muted); font-size: 14px; margin-top: 12px; }
.footer__ph {
  font-size: 13px;
  color: var(--primary);
  border: 1px dashed rgba(204,120,92,.5);
  border-radius: var(--r-btn);
  padding: 4px 10px;
  display: inline-block;
}
.footer__bottom {
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.footer__bottom .sep { padding: 0 8px; }

/* ---------- 17. RWD（依 03 §4 斷點） ---------- */

/* Tablet 768–1024：導覽橫向、卡片 2-up */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  h1 { font-size: 48px; }
}

/* Mobile < 768：漢堡、hero 單欄、卡片 1-up、footer 單欄 */
@media (max-width: 767px) {
  :root { --section-gap: 64px; }

  h1 { font-size: 32px; letter-spacing: -0.5px; }
  h2 { font-size: 30px; }
  h3 { font-size: 24px; }

  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 24px 20px;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .nav__links .nav__cta-mobile { display: block; margin-top: 14px; }
  .nav__links .nav__cta-mobile .btn { width: 100%; }

  .hero { padding: 48px 0 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .photo-ph {
    aspect-ratio: 1 / 1;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
  .photo-ph img { object-position: center 30%; }
  /* about 側身照：手機裁切偏上，保住臉部不被切 */
  .photo-ph--alt img { object-position: center 18%; }

  .tagline-bar p { font-size: 19px; }

  .grid--3,
  .grid--2 { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .form-fields { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .industry-list { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .spec-list li { flex-direction: column; gap: 4px; }
  .spec-list .spec-key { flex-basis: auto; }

  /* Substack：手機給足高度並允許內部捲動當安全網，避免被切 */
  .newsletter-embed {
    height: auto;
    width: 100%;
    max-width: 100%;
  }
  .newsletter-embed iframe {
    height: 550px;
    margin-top: 0;
    max-width: 100%;
  }

  /* 彈跳視窗：手機縮小內距、iframe 給足高度 */
  .nl-modal { padding: 16px; }
  .nl-modal__dialog { padding: 32px 20px 24px; }
  .nl-modal__title { font-size: 22px; }
  .nl-modal .newsletter-embed iframe { height: 480px; }
}

/* Wide > 1440：內容寬維持上限，外距自然加大（container 已含 max-width） */

/* 尊重減少動態偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
