/* ==========================================================
   One Lot — 主站 Swiss Grid theme
   純白 × 近黑 × 深 teal accent（同 course-v2/theme.css 同一套 tokens）
   ========================================================== */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-soft: #34342f;
  --muted: #71716b;
  --accent: #0b5d52;
  --accent-soft: #e4f0ed;
  --accent-bright: #35e0d6;
  --line: #0a0a0a;
  --hairline: #e5e5e0;
  --panel: #f5f5f1;
  --warn: #b42318;
  --sans: "Inter", "Noto Sans TC", -apple-system, "PingFang TC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }

::selection { background: var(--accent-soft); }

.overline {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- 頁首 ---------- */

.book-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.3rem clamp(1.2rem, 4vw, 3rem);
  border-bottom: 2px solid var(--ink);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-logo { width: 36px; height: 36px; object-fit: cover; }
.wordmark em { font-style: normal; color: var(--accent); }
.wordmark small {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
}
.book-header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  flex-wrap: wrap;
}
.book-header nav a,
.book-header nav button {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 0 0 2px;
  cursor: pointer;
}
.book-header nav a:hover,
.book-header nav button:hover { border-bottom-color: var(--accent); color: var(--accent); }
.book-header nav .nav-login {
  border: 2px solid var(--ink);
  padding: 0.5rem 1.1rem 0.45rem;
}
.book-header nav .nav-login:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------- 通用版面 ---------- */

.page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 3rem);
}

section { padding: clamp(2.8rem, 6vw, 4.6rem) 0; }
section + section { border-top: 1px solid var(--hairline); }

.section-heading { max-width: 44rem; }
.section-heading h2 {
  margin: 0.7rem 0 1rem;
  font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.35;
}
.section-heading p { color: var(--ink-soft); max-width: 40em; }
.section-heading p + p { margin-top: 0.8em; }

/* 按鈕 */
.button {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  padding: 1rem 1.8rem 0.95rem;
  border: 2px solid var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.button.primary { background: var(--ink); color: #fff; }
.button.primary:hover { background: var(--accent); border-color: var(--accent); }
.button.ghost { background: transparent; color: var(--ink); }
.button.ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */

/* ---------- Hero（深色） ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 6.4fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 3.6rem);
  align-items: center;
  background: var(--ink);
  color: #fff;
  margin: clamp(1rem, 2.2vw, 1.8rem) calc(-1 * clamp(1.2rem, 4vw, 3rem)) 0;
  padding: clamp(2.6rem, 5vw, 4.4rem) clamp(1.6rem, 4vw, 3.4rem);
}
.free-badge {
  display: inline-block;
  margin: 0;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--accent-bright);
  padding: 0.44rem 0.95rem 0.4rem;
}
.hero h1 {
  margin: 1.3rem 0 1.4rem;
  font-weight: 900;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.16;
  color: #fff;
}
.hero h1 .hl { color: var(--accent-bright); }
.hero-lead { color: rgba(255, 255, 255, 0.8); max-width: 32em; }

.hero .button.primary {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--ink);
}
.hero .button.primary:hover { background: #fff; border-color: #fff; color: var(--ink); }
.hero .button.ghost { background: transparent; color: #fff; border-color: #fff; }
.hero .button.ghost:hover { background: #fff; color: var(--ink); }

.hero-actions, .starter-actions, .hero .route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0 0;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.8rem;
}
.trust-row span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 0.28em 0.75em 0.22em;
}
.hero .trust-row span {
  color: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Hero 右側「你會學到」面板 */
.learn-card {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.7rem 1.8rem 1.9rem;
}
.learn-card .overline { color: var(--accent-bright); }
.learn-list {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}
.learn-list li {
  position: relative;
  padding: 0.78rem 0 0.78rem 1.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.6;
}
.learn-list li:first-child { border-top: 0; padding-top: 0.2rem; }
.learn-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 8px;
  height: 8px;
  background: var(--accent-bright);
}
.learn-list li:first-child::before { top: 0.6em; }
.learn-note {
  margin: 1.2rem 0 0;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.8;
}

/* ---------- 內容區塊 ---------- */

.outcome-list { margin-top: 2.4rem; max-width: 44rem; }
.outcome-list h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.6rem; }
.outcome-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.outcome-list li {
  padding: 0.6rem 0.2rem 0.6rem 1.7rem;
  border-bottom: 1px solid var(--hairline);
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
}
.outcome-list li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.18em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.included-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 2.4rem;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.included-grid article {
  padding: 1.1rem 1.2rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-weight: 700;
  font-size: 0.92rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: 2.6rem;
}
.team-grid article span {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--ink);
  margin: 1rem 0 0.2rem;
}
.team-grid h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 0.4rem; }
.team-grid p { color: var(--ink-soft); font-size: 0.94rem; }
.team-image {
  border: 2px solid var(--ink);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

/* ---------- Quiz（Route Finder） ---------- */

.quiz-card {
  margin-top: 2.4rem;
  max-width: 44rem;
  border: 2px solid var(--ink);
  padding: 1.7rem clamp(1.2rem, 3vw, 2rem) 2rem;
}
.quiz-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.icon-button {
  border: 1px solid var(--ink);
  background: none;
  font-size: 0.95rem;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  color: var(--ink);
}
.icon-button:hover { background: var(--ink); color: #fff; }
.progress-track {
  height: 4px;
  background: var(--hairline);
  margin: 0.9rem 0 1.5rem;
}
.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}
.quiz-card h2 { font-size: 1.3rem; font-weight: 900; margin-bottom: 1.1rem; }
.option-grid { display: grid; gap: 0.6rem; }
.option-button {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: left;
  padding: 0.95rem 1.1rem;
  background: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.option-button:hover { background: var(--ink); color: #fff; }
.is-hidden { display: none; }
.route-label { margin-bottom: 0.4rem; }
.result-panel h2 { margin-bottom: 0.5rem; }
.result-panel p { color: var(--ink-soft); }
.route-steps {
  list-style: none;
  counter-reset: routelist;
  margin: 1.2rem 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.route-steps li {
  counter-increment: routelist;
  padding: 0.6rem 0.2rem 0.6rem 2.2rem;
  border-bottom: 1px solid var(--hairline);
  font-weight: 500;
  position: relative;
}
.route-steps li::before {
  content: counter(routelist, decimal-leading-zero);
  position: absolute;
  left: 0.1rem;
  font-weight: 800;
  font-size: 0.85em;
  color: var(--accent);
}
.route-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.route-actions a {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.5rem 0.8rem;
  border: 2px solid var(--ink);
}
.route-actions a:first-child { background: var(--ink); color: #fff; }
.route-actions a:first-child:hover { background: var(--accent); border-color: var(--accent); }
.route-actions a:not(:first-child):hover { background: var(--ink); color: #fff; }

/* ---------- 黑色 CTA 帶 ---------- */

.final-cta {
  background: var(--ink);
  color: #fff;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 3rem);
  margin: clamp(2.8rem, 6vw, 4.6rem) calc(-1 * clamp(1.2rem, 4vw, 3rem)) 0;
}
.final-cta .overline { color: var(--accent-bright); }
.final-cta h2 {
  margin: 0.7rem 0 1rem;
  font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.35;
}
.final-cta p { color: rgba(255, 255, 255, 0.78); max-width: 38em; }
.final-cta .button { border-color: #fff; }
.final-cta .button.primary { background: #fff; color: var(--ink); }
.final-cta .button.primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.final-cta .button.ghost { color: #fff; }
.final-cta .button.ghost:hover { background: #fff; color: var(--ink); }

/* ---------- 表單（explore / login） ---------- */

.lead-section {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.lead-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 900; margin: 0.7rem 0 0.8rem; }
.lead-copy p { color: var(--ink-soft); }
.lead-copy ul {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.lead-copy li {
  padding: 0.6rem 0.2rem 0.6rem 1.7rem;
  border-bottom: 1px solid var(--hairline);
  font-weight: 500;
  position: relative;
}
.lead-copy li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.18em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

.lead-form, .login-card {
  border: 2px solid var(--ink);
  padding: 1.8rem clamp(1.2rem, 3vw, 2rem) 2rem;
}
.form-grid { display: grid; gap: 1.1rem; margin-bottom: 1.4rem; }
label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
input, select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.8rem 0.95rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
.lead-form .button, .login-card .button { width: 100%; }
.form-remark {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border-left: 3px solid var(--accent);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--ink);
}
.form-remark strong { font-weight: 800; color: var(--accent); }
.form-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}
.form-note[data-tone="warning"] { color: var(--warn); font-weight: 700; }
.form-note[data-tone="success"] { color: var(--accent); font-weight: 700; }

/* ---------- 頁面 hero（內頁） ---------- */

.page-hero { padding-top: clamp(3rem, 7vw, 4.6rem); }
.page-hero h1 {
  margin: 1rem 0 1rem;
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.2;
}
.page-hero p { color: var(--ink-soft); max-width: 38em; }

/* About grid */
.simple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.simple-grid article {
  padding: 1.8rem 1.6rem 2rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.simple-grid span { display: block; font-size: 2.2rem; font-weight: 900; }
.simple-grid h2,
.simple-grid h3 { font-size: 1.2rem; font-weight: 800; margin: 0.5rem 0 0.6rem; }
.simple-grid p { color: var(--ink-soft); font-size: 0.94rem; }

/* 介紹影片區 */
.video-frame {
  max-width: 52rem;
  margin: 2.2rem 0 0;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--ink);
  background: var(--panel);
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.8;
}
.video-placeholder small {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.video-hint {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.pain-section .simple-grid { margin-top: 2.4rem; }
.pain-punchline {
  margin-top: 2rem;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 800;
}

/* Why One Lot 三欄 */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin-top: 2.4rem;
}
.diff-grid article {
  border-top: 4px solid var(--ink);
  padding-top: 1.2rem;
}
.diff-grid h3 { font-size: 1.25rem; font-weight: 900; margin: 0.5rem 0 0.6rem; }
.diff-grid p { color: var(--ink-soft); font-size: 0.95rem; }

/* 8 Module 學習路徑 */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  margin-top: 2.4rem;
}
.module-grid article {
  padding: 1.5rem 1.5rem 1.7rem;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.module-grid span {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent);
}
.module-grid h3 { font-size: 1.08rem; font-weight: 800; margin: 0.4rem 0 0.5rem; }
.module-grid .module-en {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}
.module-grid p { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.8; }
.curriculum-section .starter-actions { margin-top: 2.2rem; }

/* Lot Sir 導師區 */
.mentor-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.mentor-copy h2 {
  margin: 0.7rem 0 1rem;
  font-weight: 900;
  font-size: clamp(2rem, 4.4vw, 2.8rem);
}
.mentor-copy p { color: var(--ink-soft); }
.mentor-copy p + p { margin-top: 0.8em; }
.mentor-principles {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.mentor-principles li {
  padding: 0.65rem 0.2rem 0.65rem 1.7rem;
  border-bottom: 1px solid var(--hairline);
  font-weight: 700;
  position: relative;
}
.mentor-principles li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 1.22em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}

/* TradingView 截圖 */
.tv-shots { display: grid; gap: 1.4rem; }
.tv-shot { margin: 0; }
.tv-shot img {
  width: 100%;
  display: block;
  border: 2px solid var(--ink);
}
.tv-placeholder {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px dashed var(--hairline);
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}
.tv-placeholder small {
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.tv-shot figcaption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* Contact */
.contact-card {
  max-width: 40rem;
  border: 2px solid var(--ink);
  padding: 2rem clamp(1.2rem, 3vw, 2.2rem) 2.2rem;
}
.contact-card h2 { font-size: 1.4rem; font-weight: 900; margin-bottom: 0.6rem; }
.contact-card p { color: var(--ink-soft); margin-bottom: 1.4rem; }

/* ---------- 登入頁 ---------- */

.auth-page { padding-bottom: clamp(2.8rem, 6vw, 4.6rem); }
.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-top: clamp(3rem, 7vw, 4.6rem);
}
.auth-copy h1 {
  margin: 1rem 0 1rem;
  font-weight: 900;
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  line-height: 1.3;
}
.auth-copy p { color: var(--ink-soft); max-width: 34em; }
.auth-highlights { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.auth-highlights span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hairline);
  padding: 0.28em 0.75em 0.22em;
}
.login-card > div { margin-bottom: 1.1rem; }
.login-card .button.ghost { margin-top: 0.8rem; }

/* ---------- 風險提示 / 頁尾 ---------- */

.risk-disclaimer {
  border-top: 2px solid var(--ink);
  padding: 1.6rem 0 1.8rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.risk-disclaimer strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.risk-disclaimer p { max-width: 52em; }

.colophon {
  border-top: 2px solid var(--ink);
  margin-top: 2rem;
  padding: 2.2rem clamp(1.2rem, 5vw, 3rem) 2.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 2;
  max-width: 76rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.colophon a { text-decoration: none; font-weight: 700; color: var(--ink); }
.colophon a:hover { color: var(--accent); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero, .lead-section, .auth-panel, .mentor-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .book-header { flex-wrap: wrap; }
  .book-header nav { gap: 1rem; }
  .wordmark small { display: none; }
}

/* ==========================================================
   主頁：手機優先、置中、單欄慢慢碌
   ========================================================== */

.home-page .book-header,
.home-page main.page,
.home-page .colophon { max-width: 46rem; }

.home-page section { text-align: center; }
.home-page .section-heading { max-width: none; margin: 0 auto; }
.home-page .section-heading p { margin-left: auto; margin-right: auto; }
.home-page .hero-actions,
.home-page .starter-actions,
.home-page .trust-row { justify-content: center; }

/* Hero（置中單欄） */
.home-page .hero {
  display: block;
  text-align: center;
  padding: clamp(2.6rem, 7vw, 3.8rem) clamp(1.4rem, 5vw, 2.2rem) clamp(2.4rem, 6vw, 3.2rem);
}
.home-page .hero h1 { font-size: clamp(2rem, 5.5vw, 2.9rem); }
.home-page .hero-lead { margin: 1.3rem auto 0; }
.home-page .learn-card {
  margin: 2rem auto 0;
  max-width: 30rem;
  text-align: left;
}

/* 痛點（單欄置中） */
.home-page .simple-grid {
  grid-template-columns: 1fr;
  border: 0;
  max-width: 34rem;
  margin: 1.8rem auto 0;
}
.home-page .simple-grid article {
  border: 0;
  border-top: 1px solid var(--hairline);
  padding: 1.5rem 0;
  text-align: center;
}
.home-page .simple-grid article:first-child { border-top: 2px solid var(--ink); }
.home-page .simple-grid article:last-child { border-bottom: 1px solid var(--hairline); }
.home-page .simple-grid span { font-size: 1.7rem; color: var(--accent); }
.home-page .pain-punchline {
  text-align: center;
  max-width: 26em;
  margin-left: auto;
  margin-right: auto;
}
.home-page .pain-img {
  max-width: 200px;
  margin: 0 auto 1rem;
  line-height: 0;
}
.home-page .pain-img img { width: 100%; height: auto; display: block; }

/* 免費 vs 收費對比 */
.compare-grid {
  display: grid;
  gap: 1.1rem;
  margin: 1.8rem auto 0;
  max-width: 34rem;
}
.home-page .compare-grid article {
  border: 2px solid var(--ink);
  padding: 1.4rem 1.5rem 1.5rem;
  text-align: left;
}
.compare-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.compare-grid ul { list-style: none; margin: 0; padding: 0; }
.compare-grid li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.7rem;
  border-top: 1px solid var(--hairline);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.55;
}
.compare-grid li:first-child { border-top: 0; }
.compare-old { background: var(--panel); }
.compare-old .compare-label { color: var(--muted); }
.compare-old li { color: var(--muted); }
.compare-old li::before {
  content: "✕";
  position: absolute;
  left: 0.1rem;
  top: 0.55rem;
  font-weight: 800;
  font-size: 0.85em;
}
.compare-new { border-color: var(--accent); background: var(--accent-soft); }
.compare-new .compare-label { color: var(--accent); }
.compare-new li::before {
  content: "✓";
  position: absolute;
  left: 0.05rem;
  top: 0.5rem;
  color: var(--accent);
  font-weight: 800;
  font-size: 0.92em;
}

/* Lot Sir 導師（置中單欄 + 影片） */
.home-page .mentor-section .video-frame { margin: 1.8rem auto 0; max-width: 40rem; }
.home-page .mentor-copy { max-width: 34rem; margin: 1.8rem auto 0; text-align: center; }
.home-page .mentor-copy p { color: var(--ink-soft); }
.home-page .mentor-copy p + p { margin-top: 0.9em; }
.home-page .mentor-principles {
  list-style: none;
  margin: 1.6rem auto 0;
  padding: 0;
  max-width: 26rem;
  border-top: 2px solid var(--ink);
}
.home-page .mentor-principles li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
  font-weight: 700;
  text-align: center;
  position: static;
}
.home-page .mentor-principles li::before { display: none; }
.home-page .tv-shots {
  display: grid;
  gap: 1.1rem;
  margin: 1.8rem auto 0;
  max-width: 34rem;
}

/* 工具（2 欄置中） */
.home-page .included-grid {
  grid-template-columns: 1fr 1fr;
  max-width: 34rem;
  margin: 1.8rem auto 0;
}
.home-page .included-grid article { text-align: center; padding: 1.05rem 0.8rem; font-size: 0.86rem; }
.home-page .included-grid article.included-featured {
  grid-column: 1 / -1;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border-color: var(--ink);
}

/* 測驗（卡內容維持左對齊，較易讀） */
.home-page .quiz-card { margin: 1.8rem auto 0; text-align: left; }

/* Telegram CTA */
.home-page .final-cta { text-align: center; }
.home-page .final-cta p { margin-left: auto; margin-right: auto; }
.cta-handle {
  margin: 1.3rem 0 0;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent-bright);
}

/* 風險提示置中 */
.home-page .risk-disclaimer { text-align: center; }
.home-page .risk-disclaimer p { margin-left: auto; margin-right: auto; }

@media (max-width: 460px) {
  .home-page .included-grid { grid-template-columns: 1fr; }
}

/* 深色區（Hero / CTA）延伸至全螢幕闊度，消除左右白邊 */
.home-page { overflow-x: hidden; }
.home-page .hero,
.home-page .final-cta {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.home-page .hero { margin-top: clamp(1rem, 2vw, 1.6rem); margin-bottom: 0; }
.home-page .final-cta { margin-top: clamp(2.8rem, 6vw, 4.6rem); margin-bottom: 0; }

/* 電腦版：加闊容器 + 多欄，填滿橫向空間 */
@media (min-width: 800px) {
  .home-page .book-header,
  .home-page main.page,
  .home-page .colophon { max-width: 66rem; }

  .home-page .hero h1 { font-size: clamp(2.6rem, 4vw, 3.6rem); }
  .home-page .learn-card { max-width: 40rem; }

  /* 痛點 2 欄 */
  .home-page .simple-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0 2.6rem;
    max-width: 52rem;
  }
  .home-page .simple-grid article { border-top: 1px solid var(--hairline); }
  .home-page .simple-grid article:first-child,
  .home-page .simple-grid article:nth-child(2) { border-top: 2px solid var(--ink); }
  .home-page .simple-grid article:last-child { border-bottom: 0; }

  /* 對比 2 欄並排 */
  .home-page .compare-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    max-width: 56rem;
  }

  /* TradingView 2 欄 */
  .home-page .tv-shots { grid-template-columns: 1fr 1fr; max-width: 56rem; }

  /* 工具 4 欄 */
  .home-page .included-grid { grid-template-columns: repeat(4, 1fr); max-width: 60rem; }

  /* 影片加闊 */
  .home-page .mentor-section .video-frame { max-width: 48rem; }
}

/* ==========================================================
   深色背景圖：Hero + 痛點區
   放圖：assets/hero-bg.jpg、assets/pain-bg.jpg
   未有圖時 fallback 純黑，唔會爆。文字上面有深色 overlay 保證睇得清。
   ========================================================== */

/* Hero 背景圖 + teal 光暈 */
.home-page .hero {
  background-image:
    radial-gradient(640px 340px at 50% 24%, rgba(53, 224, 214, 0.16), transparent 70%),
    linear-gradient(rgba(8, 8, 8, 0.7), rgba(8, 8, 8, 0.86)),
    url("./assets/hero-bg.jpg");
  background-size: cover;
  background-position: center;
}

/* 痛點插圖圓角（淺色底，融入白卡） */
.home-page .pain-img { border-radius: 14px; overflow: hidden; }

/* ---------- Hero v3：痛點主導 + 真實截圖 ---------- */

/* 佈局：手機直向置中，桌面兩欄 */
.hero-inner { max-width: 34rem; margin: 0 auto; }

/* 痛點清單（✕ 紅、白粗字，好搶眼） */
.hero-pain {
  list-style: none;
  margin: 1.6rem auto 0;
  padding: 0;
  max-width: 26rem;
  text-align: left;
}
.hero-pain li {
  position: relative;
  padding: 0.6rem 0 0.6rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.6;
}
.hero-pain li:first-child { border-top: 0; }
.hero-pain li::before {
  content: "✕";
  position: absolute;
  left: 0.2rem;
  top: 0.62rem;
  color: #ff5c5c;
  font-weight: 900;
  font-size: 1.05em;
}

/* 承諾句 */
.hero-promise {
  margin: 1.5rem auto 0;
  max-width: 30em;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.9;
}
.hero-promise strong { color: var(--accent-bright); font-weight: 800; }

/* CTA 下細字 */
.hero-note {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
}

/* 右側視覺：真實截圖 + chips */
.hero-visual { margin-top: 2.4rem; }
.hero-shot {
  margin: 0;
  transform: rotate(1.6deg);
}
.hero-shot img {
  width: 100%;
  display: block;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(53, 224, 214, 0.12);
}
.hero-shot figcaption {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.35rem 0.8rem;
  background: var(--accent-bright);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transform: rotate(-1.6deg);
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.3rem;
}
.hero-chips span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.28em 0.75em 0.22em;
}

/* 標題 teal 行光暈 */
.home-page .hero h1 .hl { text-shadow: 0 0 34px rgba(53, 224, 214, 0.45); }

/* 桌面：兩欄（文案左、截圖右） */
@media (min-width: 800px) {
  .hero-inner {
    max-width: 66rem;
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(2.4rem, 5vw, 4.5rem);
    align-items: center;
  }
  .home-page .hero .hero-copy { text-align: left; }
  .hero-pain { margin-left: 0; }
  .hero-promise { margin-left: 0; }
  .home-page .hero .hero-actions { justify-content: flex-start; }
  .hero-visual { margin-top: 0; }
  .hero-chips { justify-content: flex-start; }
}

@media (prefers-reduced-motion: no-preference) {
  /* 入場動畫：逐層浮現 */
  @keyframes hero-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
  .home-page .hero .free-badge { animation: hero-in 0.55s ease both 0.05s; }
  .home-page .hero h1 { animation: hero-in 0.6s ease both 0.16s; }
  .home-page .hero .hero-pain { animation: hero-in 0.6s ease both 0.3s; }
  .home-page .hero .hero-promise { animation: hero-in 0.6s ease both 0.42s; }
  .home-page .hero .hero-actions { animation: hero-in 0.6s ease both 0.52s; }
  .home-page .hero .hero-note { animation: hero-in 0.6s ease both 0.6s; }
  .home-page .hero .hero-visual { animation: hero-in 0.7s ease both 0.55s; }

  /* CTA 呼吸燈 */
  @keyframes cta-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(53, 224, 214, 0.4); }
    50% { box-shadow: 0 0 26px 6px rgba(53, 224, 214, 0.22); }
  }
  .home-page .hero .button.primary {
    animation: hero-in 0.6s ease both 0.52s, cta-pulse 2.8s ease-in-out 1.6s infinite;
  }
}

/* ---------- 7 天路線圖 ---------- */
.roadmap {
  list-style: none;
  margin: 2.4rem auto 0;
  padding: 0;
  max-width: 60rem;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.roadmap li {
  position: relative;
  padding-top: 1.7rem;
  text-align: center;
}
.roadmap li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--accent);
}
.roadmap li::after {
  content: "";
  position: absolute;
  top: 4px;
  left: calc(50% + 12px);
  right: calc(-50% + 12px);
  height: 2px;
  background: var(--hairline);
}
.roadmap li:last-child::after { display: none; }
.roadmap .day {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.roadmap strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  padding: 0 0.3rem;
}
.roadmap-bonus {
  margin: 2rem auto 0;
  max-width: 34rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.75rem 1.1rem;
  border: 2px dashed var(--accent);
  color: var(--accent);
  border-radius: 12px;
}
@media (max-width: 799px) {
  .roadmap {
    grid-template-columns: 1fr;
    max-width: 20rem;
  }
  .roadmap li {
    padding: 0 0 1.5rem 1.9rem;
    text-align: left;
  }
  .roadmap li::before {
    left: 0;
    top: 0.4em;
    transform: rotate(45deg);
  }
  .roadmap li::after {
    left: 4px;
    top: calc(0.4em + 16px);
    bottom: 4px;
    right: auto;
    width: 2px;
    height: auto;
  }
  .roadmap li:last-child { padding-bottom: 0; }
  .roadmap .day { margin-bottom: 0.1rem; }
}

/* ---------- 捲動浮現 + hover 微互動 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  .home-page .simple-grid article,
  .home-page .compare-grid article,
  .home-page .included-grid article,
  .home-page .tv-shot img {
    transition: transform 0.22s ease;
  }
  .home-page .simple-grid article:hover,
  .home-page .compare-grid article:hover,
  .home-page .included-grid article:hover,
  .home-page .tv-shot img:hover {
    transform: translateY(-4px);
  }
}

/* ---------- 手機 sticky CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  padding: 0.65rem 0.9rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 2px solid var(--ink);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.sticky-cta .button { display: block; width: 100%; }
.sticky-cta.is-shown { transform: none; }
@media (max-width: 799px) {
  .sticky-cta { display: block; }
  .home-page .colophon { padding-bottom: 6.5rem; }
}

/* 對比區背景圖（散亂 YouTube 交易片）
   放圖：assets/compare-bg.jpg；未有圖時純白。
   全闊 full-bleed，背景延伸到左右邊；淺色 overlay 令圖只做淡紋理，文字同卡片照樣清晰。 */
.home-page .compare-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(2.8rem, 6vw, 4.6rem) clamp(1.2rem, 4vw, 3rem);
  border-top: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.93)),
    url("./assets/compare-bg.jpg");
  background-size: cover;
  background-position: center;
}
