/* ── 開 AI 筆記 v2 — 暖色編輯風 ───────────────────────────── */
:root {
  color-scheme: light;
  --bg: #f7f2ea;
  --surface: #fffdf8;
  --surface-2: #f1e9dc;
  --ink: #1e1a15;
  --muted: #6f6456;
  --line: #e4d8c6;
  --accent: #c2521f;
  --accent-ink: #fff8f2;
  --teal: #1c6b64;
  --shadow: 0 14px 40px rgba(70, 45, 22, 0.10);
  --radius: 18px;
  --display: "Space Grotesk", "Noto Sans TC", sans-serif;
  --sans: "Noto Sans TC", system-ui, sans-serif;
}
:root.dark {
  color-scheme: dark;
  --bg: #14110d;
  --surface: #1d1913;
  --surface-2: #241f18;
  --ink: #f3ecdf;
  --muted: #a99a86;
  --line: #322b21;
  --accent: #e6733f;
  --accent-ink: #1a120c;
  --teal: #52b3a8;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background:
    radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
b, strong { font-weight: 700; }
.wrap { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.muted { color: var(--muted); }

/* ── Header ─────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.94rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.theme-toggle {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  width: 36px; height: 36px; border-radius: 999px; cursor: pointer; font-size: 0.95rem;
}
.theme-toggle:hover { border-color: var(--accent); }
@media (max-width: 620px) {
  .nav { height: 58px; }
  .brand { font-size: 1.05rem; }
  /* 手機：導覽不整個藏，收成可橫滑的小列，仍找得到各區塊 */
  .nav-links { gap: 14px; font-size: 0.86rem; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
}

/* ── Buttons ────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .2s ease, border-color .2s ease;
  min-height: 46px;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── Hero ───────────────────────────────── */
.hero { padding: 76px 0 40px; }
.eyebrow {
  font-family: var(--display); font-weight: 500; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.hero h1 {
  font-family: var(--sans); font-weight: 900; letter-spacing: -0.01em;
  font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.08; margin: 16px 0 20px;
}
.lead { font-size: clamp(1.1rem, 2vw, 1.32rem); color: var(--muted); max-width: 40ch; }
.lead strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.hero-proof {
  list-style: none; display: flex; flex-wrap: wrap; gap: 12px 30px; padding: 22px 0 0;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem;
}
.hero-proof b { font-family: var(--display); color: var(--ink); font-size: 1.2rem; margin-right: 6px; }

/* ── Sections ───────────────────────────── */
.section { padding: 64px 0; }
.section-alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section-alt.wrap { width: 100%; }
.section-alt > * { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.section-head { max-width: 60ch; margin-bottom: 34px; }
.section-no {
  font-family: var(--display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em;
  color: var(--accent); display: block; margin-bottom: 8px;
}
h2 { font-weight: 900; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.2; letter-spacing: -0.01em; }
.section-head .muted { margin-top: 12px; font-size: 1.05rem; }

/* ── Roles ──────────────────────────────── */
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.role-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease;
}
.role-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.role-ico { width: 38px; height: 38px; color: var(--accent); }
.role-ico svg { width: 100%; height: 100%; }
.role-card h3 { font-size: 1.18rem; font-weight: 700; }
.role-card p { color: var(--muted); font-size: 0.96rem; flex: 1; }
.role-go { color: var(--accent); font-weight: 700; font-size: 0.9rem; }

/* ── Weekly impact ──────────────────────── */
.impact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.impact-tag {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal);
  border: 1px solid color-mix(in srgb, var(--teal) 40%, var(--line)); border-radius: 999px;
  padding: 4px 11px; margin-bottom: 14px;
}
.impact h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-weight: 700; line-height: 1.3; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 20px 0 8px; }
.impact-k {
  display: block; font-family: var(--display); font-weight: 700; font-size: 0.74rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.impact-grid p { font-size: 0.98rem; color: var(--ink); }
.impact-grid > div { position: relative; padding-left: 16px; }
.impact-grid > div::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; background: var(--line); border-radius: 2px; }
.impact-more { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 700; font-size: 0.95rem; }
@media (max-width: 720px) { .impact-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ── Lead magnet ────────────────────────── */
.lead-magnet {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 34px; align-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 26px; padding: 40px;
}
.lm-copy h2 { margin: 8px 0 12px; }
.lm-list { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.lm-list li { padding-left: 26px; position: relative; color: var(--ink); }
.lm-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.lm-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 12px;
}
.lm-form label { font-weight: 700; font-size: 0.98rem; }
.lm-form input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  background: var(--bg); color: var(--ink); font: inherit; min-height: 46px;
}
.lm-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.lm-hint { font-size: 0.85rem; color: var(--muted); }
.lm-status { font-size: 0.92rem; font-weight: 500; min-height: 1.2em; }
.lm-status.ok { color: var(--teal); }
.lm-status.err { color: var(--accent); }
@media (max-width: 760px) { .lead-magnet { grid-template-columns: 1fr; padding: 28px; } }

/* ── Toolbox ────────────────────────────── */
.toolbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tb-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center;
}
.tb-card b { font-family: var(--display); font-size: 2.2rem; color: var(--accent); display: block; }
.tb-card span { color: var(--muted); font-size: 0.95rem; }
.toolbox-cta { margin-top: 24px; }
@media (max-width: 620px) { .toolbox-grid { grid-template-columns: 1fr; } }

/* ── Tools ──────────────────────────────── */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tool-card h3 { font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.tool-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 12px; }
.tool-when { font-size: 0.8rem; font-weight: 700; color: var(--teal); border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line)); border-radius: 999px; padding: 3px 10px; }

/* ── About ──────────────────────────────── */
.about { max-width: 62ch; }
.about p { color: var(--muted); font-size: 1.08rem; margin-top: 12px; }

/* ── Footer ─────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.92rem; }
.foot-links { display: flex; gap: 18px; }
.foot-links a:hover { color: var(--accent); }

/* ── 手機閱覽舒適度微調 ───────────────────── */
@media (max-width: 640px) {
  body { font-size: 16.5px; line-height: 1.75; }
  .wrap, .section-alt > * { width: calc(100% - 34px); }
  .hero { padding: 48px 0 30px; }
  .hero h1 { font-size: clamp(2.15rem, 9vw, 2.9rem); line-height: 1.14; }
  .lead { font-size: 1.08rem; max-width: none; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { width: 100%; }               /* 手機 CTA 好按滿版 */
  .hero-proof { gap: 10px 22px; font-size: 0.92rem; }
  .section { padding: 46px 0; }
  .section-head { margin-bottom: 26px; }
  .section-head .muted { font-size: 1rem; }
  h2 { font-size: clamp(1.5rem, 6.4vw, 1.9rem); }
  .role-card, .impact, .tb-card, .tool-card { padding: 20px; }
  .impact h3 { font-size: 1.22rem; }
  .impact-grid > div { padding-left: 14px; }
  .lead-magnet { padding: 24px; border-radius: 20px; }
  .lm-form { padding: 20px; }
  .foot { justify-content: center; text-align: center; }
}

/* ── Reveal ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
