/* ============================================================
   NEEDS AI — 共用設計系統
   親切溫暖 · 貼近 LINE 的生活感 · 圓潤
   三個視覺方向：a 活潑生活感 / b 沉穩信任 / c 溫暖手感
   ============================================================ */

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-weight: 400;
  overflow-x: clip;
  transition: background-color .5s ease, color .5s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.fredoka { font-family: "Fredoka", "Noto Sans TC", sans-serif; }

/* ============================================================
   主題 Tokens
   ============================================================ */
:root,
:root[data-theme="a"] {
  --bg: #F4F8F1;
  --bg-tint: #EAF2E6;
  --surface: #FFFFFF;
  --surface-2: #F6FBF4;
  --ink: #1C2A21;
  --ink-soft: #4B5A50;
  --ink-faint: #7E8C82;
  --line: #E2EBDD;
  --primary: #06C755;
  --primary-deep: #04A847;
  --primary-ink: #064E2A;
  --primary-wash: #E6F8ED;
  --accent: #FF8A3D;        /* 活潑橘 */
  --accent-wash: #FFE9D8;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(28,42,33,.06);
  --shadow-md: 0 12px 32px rgba(28,42,33,.10);
  --shadow-lg: 0 28px 64px rgba(28,42,33,.14);
  --shadow-primary: 0 14px 30px rgba(6,199,85,.28);
  --maxw: 1180px;
}

:root[data-theme="b"] {
  --bg: #F1F5F6;
  --bg-tint: #E6EEF0;
  --surface: #FFFFFF;
  --surface-2: #F4F8F9;
  --ink: #142028;
  --ink-soft: #43525B;
  --ink-faint: #788690;
  --line: #DDE7EA;
  --primary: #0E9C73;
  --primary-deep: #0A7C5B;
  --primary-ink: #073D2C;
  --primary-wash: #E0F1EB;
  --accent: #2C6E8F;        /* 沉穩藍 */
  --accent-wash: #DCEAF1;
  --shadow-primary: 0 14px 30px rgba(14,156,115,.26);
}

:root[data-theme="c"] {
  --bg: #FAF4EA;
  --bg-tint: #F2E9D9;
  --surface: #FFFDF8;
  --surface-2: #FBF5EB;
  --ink: #2A2420;
  --ink-soft: #5C5046;
  --ink-faint: #8E8073;
  --line: #ECE0CE;
  --primary: #2FA866;
  --primary-deep: #228A52;
  --primary-ink: #1B5235;
  --primary-wash: #E5F2E5;
  --accent: #D98A5E;        /* 溫暖陶土 */
  --accent-wash: #F6E6D8;
  --shadow-primary: 0 14px 30px rgba(47,168,102,.24);
}

/* ============================================================
   Layout
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 13px; letter-spacing: .12em;
  color: var(--primary-deep);
  background: var(--primary-wash);
  padding: 7px 14px; border-radius: 999px;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.section-head { max-width: 680px; margin: 0 auto; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900; line-height: 1.25; letter-spacing: -.01em;
  margin: 18px 0 14px;
}
.section-head p { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 16px;
  padding: 14px 26px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .25s ease, background-color .25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); border: 1.5px solid var(--line); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); color: var(--primary-deep); }
.btn-lg { font-size: 17px; padding: 17px 32px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 20px;
  box-shadow: var(--shadow-primary);
  transform: rotate(-4deg);
}
.brand-name { font-family: "Fredoka", sans-serif; font-size: 22px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.brand { flex-shrink: 0; }
.brand-name span { color: var(--primary-deep); }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-soft);
  padding: 9px 14px; border-radius: 999px; transition: all .18s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-tint); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 56px 0 84px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-copy h1 {
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 900; line-height: 1.16; letter-spacing: -.02em;
  margin: 22px 0 20px;
}
.hero-copy h1 .hl { color: var(--primary-deep); position: relative; white-space: nowrap; }
.hero-copy h1 .hl::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 6%; height: 36%;
  background: var(--primary-wash); border-radius: 8px; z-index: -1;
}
.hero-copy .lead { font-size: clamp(17px, 1.8vw, 20px); color: var(--ink-soft); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 28px; color: var(--ink-faint); font-size: 14px; }
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px; border-radius: 50%; border: 2.5px solid var(--bg);
  margin-left: -10px; display: grid; place-items: center; font-size: 15px;
  background: var(--primary-wash);
}
.avatars span:first-child { margin-left: 0; }

/* ---------- Phone / LINE chat ---------- */
.phone-stage { position: relative; display: grid; place-items: center; }
.phone-stage::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-wash), transparent 68%);
  z-index: 0;
}
.blob {
  position: absolute; border-radius: 46% 54% 60% 40% / 52% 44% 56% 48%;
  background: var(--accent-wash); opacity: .8; z-index: 0;
  animation: float 8s ease-in-out infinite;
}
.blob.b1 { width: 90px; height: 90px; top: 4%; right: 8%; }
.blob.b2 { width: 62px; height: 62px; bottom: 8%; left: 4%; animation-delay: -3s; }
@keyframes float { 0%,100%{ transform: translateY(0) rotate(0); } 50%{ transform: translateY(-16px) rotate(8deg); } }

.phone {
  position: relative; z-index: 1;
  width: 320px; background: #0b1a12; border-radius: 44px;
  padding: 12px; box-shadow: var(--shadow-lg);
}
.phone-screen { background: #8CCFB0; border-radius: 34px; overflow: hidden; }
.line-bg { background: linear-gradient(180deg, #8FD3B6, #9FD9C0); }
.line-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 12px; background: #06C755; color: #fff;
}
.line-header .back { font-size: 20px; opacity: .9; }
.line-ava { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 18px; }
.line-header .who b { display: block; font-size: 15px; font-weight: 700; }
.line-header .who small { font-size: 11px; opacity: .85; }
.line-header .more { margin-left: auto; font-size: 18px; opacity: .9; }
.line-body { padding: 16px 14px 18px; min-height: 380px; }
.day-pill { text-align: center; margin: 0 auto 14px; width: fit-content; background: rgba(0,0,0,.16); color: #fff; font-size: 11px; padding: 3px 12px; border-radius: 999px; }
.msg { display: flex; gap: 8px; margin-bottom: 12px; align-items: flex-end; }
.msg .mava { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.bubble {
  background: #fff; border-radius: 4px 16px 16px 16px; padding: 10px 12px;
  font-size: 13px; line-height: 1.6; max-width: 210px; box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.bubble.right { background: #fff; border-radius: 16px 4px 16px 16px; }
.msg.me { flex-direction: row-reverse; }
.bubble .ttl { font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.bubble .meta { color: #5b9; font-weight: 700; }
.card-img {
  border-radius: 12px; overflow: hidden; margin: -10px -12px 8px; height: 96px;
  background:
    repeating-linear-gradient(135deg, #d9e8df 0 10px, #cfe2d7 10px 20px);
  display: grid; place-items: center; color: #6f8a7c; font-size: 10px;
  font-family: ui-monospace, monospace; letter-spacing: .04em;
}
.card-tag { display:inline-block; background: var(--primary-wash); color: var(--primary-deep); font-weight:700; font-size:10px; padding:2px 8px; border-radius:999px; margin-top:4px;}
.read { font-size: 10px; color: rgba(0,0,0,.4); text-align: right; margin: -6px 4px 0; }
.typing { display:inline-flex; gap:3px; padding: 12px 14px; }
.typing i { width:6px; height:6px; border-radius:50%; background:#9bb; animation: blink 1.2s infinite; }
.typing i:nth-child(2){ animation-delay:.2s;} .typing i:nth-child(3){ animation-delay:.4s;}
@keyframes blink { 0%,60%,100%{ opacity:.3;} 30%{ opacity:1;} }

/* floating chip on phone */
.float-chip {
  position: absolute; z-index: 3; background: var(--surface); border-radius: 16px;
  padding: 11px 14px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
}
.float-chip .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; background: var(--primary-wash); }
.float-chip.fc1 { top: 12%; left: -8%; animation: float 6s ease-in-out infinite; }
.float-chip.fc2 { bottom: 14%; right: -10%; animation: float 7s ease-in-out infinite; animation-delay: -2s; }
.float-chip small { display:block; font-weight:500; color: var(--ink-faint); font-size: 11px; }
.float-chip > div { white-space: nowrap; }

/* ============================================================
   Trust strip
   ============================================================ */
.strip { padding: 8px 0 12px; }
.strip-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px;
  padding: 22px 28px; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.stat { text-align: center; }
.stat b { display: block; font-family: "Fredoka", sans-serif; font-size: 28px; font-weight: 600; color: var(--primary-deep); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--ink-faint); }
.strip-divider { width: 1px; height: 34px; background: var(--line); }

/* ============================================================
   Version cards
   ============================================================ */
.versions { padding: 84px 0; }
.ver-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 52px; }
.ver-card {
  position: relative; background: var(--surface); border-radius: var(--radius-xl);
  padding: 30px 28px 26px; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column; overflow: hidden;
}
.ver-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--card-accent, var(--primary));
}
.ver-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.ver-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ver-ico {
  width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 30px;
  background: var(--card-wash, var(--primary-wash));
}
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--primary-deep); background: var(--primary-wash); padding: 5px 11px; border-radius: 999px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 60%, transparent);} 70%{ box-shadow: 0 0 0 7px transparent;} 100%{ box-shadow: 0 0 0 0 transparent;} }
.ver-card h3 { font-size: 23px; font-weight: 900; margin-bottom: 8px; }
.ver-card .desc { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; }
.ver-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.ver-tags span { font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--surface-2); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.ver-go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: var(--card-accent, var(--primary-deep));
}
.ver-go .arrow { transition: transform .2s ease; }
.ver-card:hover .ver-go .arrow { transform: translateX(5px); }

/* ============================================================
   Steps
   ============================================================ */
.steps { padding: 84px 0; background: var(--surface-2); border-radius: 48px; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 54px; position: relative; }
.step-grid::before {
  content: ""; position: absolute; top: 44px; left: 16%; right: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
.step { text-align: center; padding: 0 14px; position: relative; }
.step-num {
  width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 28px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  display: grid; place-items: center; font-size: 38px; position: relative; z-index: 1;
}
.step-num b {
  position: absolute; top: -8px; right: -8px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff; font-family: "Fredoka", sans-serif; font-size: 15px;
  display: grid; place-items: center; box-shadow: var(--shadow-primary);
}
.step h4 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-soft); max-width: 280px; margin: 0 auto; }

/* ============================================================
   Why us
   ============================================================ */
.why { padding: 90px 0; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 52px; }
.why-card {
  display: flex; gap: 18px; padding: 28px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.why-ico { flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; background: var(--primary-wash); display: grid; place-items: center; font-size: 27px; }
.why-card h4 { font-size: 19px; font-weight: 800; margin-bottom: 7px; }
.why-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 30px 0 96px; }
.faq-list { max-width: 760px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.faq-item.open { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 14px; padding: 20px 24px; text-align: left; font-size: 16.5px; font-weight: 700; color: var(--ink); }
.faq-q .q-ico { width: 26px; height: 26px; border-radius: 8px; background: var(--primary-wash); color: var(--primary-deep); display: grid; place-items: center; flex-shrink: 0; font-size: 15px; transition: transform .25s ease, background .2s ease; }
.faq-item.open .q-ico { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq-q .qtext { flex: 1; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq-a-inner { padding: 0 24px 22px 64px; font-size: 15px; color: var(--ink-soft); }

/* ============================================================
   CTA band
   ============================================================ */
.cta { padding: 40px 0 96px; }
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  border-radius: var(--radius-xl); padding: 72px 32px; color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12);
}
.cta-band::before { width: 240px; height: 240px; top: -90px; right: -60px; }
.cta-band::after { width: 180px; height: 180px; bottom: -80px; left: -40px; }
.cta-band h2 { position: relative; font-size: clamp(28px, 4vw, 44px); font-weight: 900; line-height: 1.25; margin-bottom: 14px; }
.cta-band p { position: relative; font-size: 18px; opacity: .94; max-width: 540px; margin: 0 auto 32px; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-band .btn-primary { background: #fff; color: var(--primary-deep); box-shadow: 0 14px 30px rgba(0,0,0,.18); }
.cta-band .btn-primary:hover { background: #fff; transform: translateY(-2px); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); box-shadow: none; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* ============================================================
   Footer
   ============================================================ */
.footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.footer p { font-size: 14px; color: var(--ink-faint); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { font-size: 14px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--primary-deep); }

/* ============================================================
   視覺方向切換器（原型 chrome）
   ============================================================ */
.theme-switch {
  position: fixed; left: 20px; bottom: 20px; z-index: 90;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 9px 7px 14px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md);
}
.theme-switch .lab { font-size: 12px; font-weight: 700; color: var(--ink-faint); }
.theme-switch .opts { display: flex; gap: 5px; }
.theme-switch button {
  width: 28px; height: 28px; border-radius: 50%; position: relative;
  border: 2px solid transparent; transition: transform .15s ease, border-color .15s ease;
}
.theme-switch button:hover { transform: scale(1.12); }
.theme-switch button.on { border-color: var(--ink); }
.theme-switch button[data-t="a"] { background: #06C755; }
.theme-switch button[data-t="b"] { background: #0E9C73; }
.theme-switch button[data-t="c"] { background: #D98A5E; }
.theme-switch .tip {
  position: absolute; bottom: 120%; left: 0; white-space: nowrap;
  background: var(--ink); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px;
  opacity: 0; pointer-events: none; transform: translateY(4px); transition: all .2s ease;
}
.theme-switch:hover .tip { opacity: 1; transform: translateY(0); }

/* ============================================================
   Lucide 圖示
   ============================================================ */
.lucide { width: 1.05em; height: 1.05em; stroke-width: 2; vertical-align: -0.16em; display: inline-block; }
.ver-ico { color: var(--card-accent, var(--primary-deep)); }
.ver-ico .lucide { width: 30px; height: 30px; }
.why-ico { color: var(--primary-deep); }
.why-ico .lucide { width: 27px; height: 27px; }
.step-num { color: var(--primary-deep); }
.step-num .lucide { width: 38px; height: 38px; stroke-width: 1.8; }
.float-chip .ic { color: var(--primary-deep); }
.float-chip .ic .lucide { width: 17px; height: 17px; }
.subfeat-card .fi { color: var(--card-accent, var(--primary-deep)); }
.subfeat-card .fi .lucide { width: 23px; height: 23px; }
.sub-badge .e .lucide { width: 17px; height: 17px; }
.q-ico .lucide { width: 15px; height: 15px; stroke-width: 2.4; }
.card-tag .lucide { width: 11px; height: 11px; stroke-width: 2.4; vertical-align: -0.1em; }
.bubble .ttl .lucide { width: 14px; height: 14px; stroke-width: 2.4; vertical-align: -0.14em; }
.mock-input .lucide, .mock-row .lucide { width: 14px; height: 14px; stroke-width: 2.2; vertical-align: -0.16em; }

/* 聊天頭像：改用姓氏字 */
.line-ava { font-size: 16px; font-weight: 700; color: var(--primary-deep); }
.mava { font-size: 14px; font-weight: 700; color: var(--primary-deep); }
.send-row .av { font-size: 13px; font-weight: 700; color: var(--primary-deep); }
.avatars span { color: var(--primary-deep); }
.avatars span .lucide { width: 16px; height: 16px; }
.grid9 div { color: var(--ink-faint); }
.grid9 div.hot { color: var(--card-accent); }
.grid9 .lucide { width: 18px; height: 18px; }
.check .lucide { width: 13px; height: 13px; stroke-width: 3; vertical-align: 0; }
.line-header .more .lucide { width: 19px; height: 19px; }
.flow-panel .btn .lucide { width: 16px; height: 16px; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Sub-page specifics
   ============================================================ */
.sub-hero { padding: 48px 0 64px; }
.sub-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.back-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-bottom: 22px; }
.back-link:hover { color: var(--primary-deep); }
.sub-hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; line-height: 1.18; letter-spacing: -.02em; margin: 16px 0 18px; }
.sub-hero .lead { font-size: 19px; color: var(--ink-soft); max-width: 500px; }
.sub-badge { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 999px; background: var(--card-wash, var(--primary-wash)); color: var(--card-accent, var(--primary-deep)); }
.sub-badge .e { font-size: 18px; }

/* flow mock (3 panel) */
.flow { padding: 30px 0 80px; }
.flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; align-items: start; }
.flow-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.flow-panel .ph { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.flow-panel .ph .n { width: 30px; height: 30px; border-radius: 9px; background: var(--card-accent, var(--primary)); color: #fff; font-family: "Fredoka", sans-serif; display: grid; place-items: center; font-size: 15px; }
.flow-panel .ph b { font-size: 16px; font-weight: 800; }
.mock { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; font-size: 13px; }
.mock-row { display: flex; align-items: center; gap: 9px; padding: 9px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.mock-row:last-child { margin-bottom: 0; }
.mock-row .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }
.mock-row small { color: var(--ink-faint); margin-left: auto; font-family: ui-monospace, monospace; font-size: 11px; }
.mock-input { display: flex; align-items: center; gap: 8px; padding: 11px 13px; background: var(--surface); border: 1.5px dashed var(--line); border-radius: 10px; color: var(--ink-faint); font-family: ui-monospace, monospace; font-size: 12px; }
.mock-doc { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 13px; line-height: 1.7; }
.mock-doc .l { height: 8px; border-radius: 4px; background: var(--line); margin-bottom: 8px; }
.mock-doc .l.s { width: 60%; } .mock-doc .l.m { width: 85%; }
.mock-img { height: 90px; border-radius: 10px; margin-top: 10px; background: repeating-linear-gradient(135deg, var(--bg-tint) 0 10px, var(--surface-2) 10px 20px); display: grid; place-items: center; color: var(--ink-faint); font-family: ui-monospace, monospace; font-size: 11px; }
.send-list { display: flex; flex-direction: column; gap: 8px; }
.send-row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.send-row .av { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-wash); display: grid; place-items: center; font-size: 14px; }
.send-row .check { margin-left: auto; width: 20px; height: 20px; border-radius: 6px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 12px; }

/* feature list sub */
.subfeat { padding: 70px 0; background: var(--surface-2); border-radius: 48px; }
.subfeat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 46px; }
.subfeat-card { display: flex; gap: 16px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.subfeat-card .fi { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--card-wash, var(--primary-wash)); display: grid; place-items: center; font-size: 23px; }
.subfeat-card h4 { font-size: 17px; font-weight: 800; margin-bottom: 5px; }
.subfeat-card p { font-size: 14px; color: var(--ink-soft); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid, .sub-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone-stage { order: -1; }
  .ver-grid, .step-grid, .why-grid, .flow-grid, .subfeat-grid { grid-template-columns: 1fr; }
  .step-grid::before { display: none; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 32px 0 56px; }
  .strip-divider { display: none; }
  .float-chip { display: none; }
  .theme-switch .lab { display: none; }
  .cta-band { padding: 52px 22px; }
  .steps, .subfeat { border-radius: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* codex 生成圖填滿佔位 */
.card-img img,.mock-img img{width:100%;height:100%;object-fit:cover;display:block}

/* 頭貼圖填滿圓框 */
.line-ava img,.mava img,.send-row .av img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
