/* 成長樹首頁（index.html 專用）。共用的按鈕、頁首頁尾、方案卡、FAQ 在 style.css。
   版面概念：整頁是一段連續的漸層，從早晨的天空藍，經過葉子的淡綠，慢慢變成傍晚的暖黃，
   就像一棵樹從第 1 節長到第 120 節。故事段用一根樹幹把三個時間點串起來。 */
:root {
  --sky: #bce9fe;
  --mist: #d4ecdf;
  --leafwash: #e3efcf;
  --wheat: #f3e3b4;
  --dusk: #f8d79a;
  --bark: #a97f4f;
  --bark-deep: #7d5a35;
  /* 卡片照 App（Figma 1a-2 首頁）：奶油色底＋1px 暖灰細框，不用陰影 */
  --glass: #fdf8ee;
  --glass-line: #e6d9c0;
  --card-radius: 20px;
  --display: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  --body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

body.landing { font-family: var(--body); background: var(--dusk); }
.landing h1, .landing h2, .landing h3 { font-family: var(--display); font-weight: 700; letter-spacing: 0.01em; text-wrap: balance; }

/* 每一段是一條獨立色帶，色帶內各自有一點漸層；封面另外設計 */
.landing main > section { padding-block: 88px; position: relative; }
@media (max-width: 760px) { .landing main > section { padding-block: 56px; } }
.landing .band-paper { background: linear-gradient(180deg, #fffaf0, var(--paper)); }
.landing .band-leaf { background: linear-gradient(180deg, #f1f6e2, var(--leafwash)); }
.landing .band-sky { background: linear-gradient(180deg, #e4f5fc, var(--mist)); }
.landing .band-sand { background: linear-gradient(180deg, #f6eed8, var(--sand)); }
.landing .band-wheat { background: linear-gradient(180deg, #faf0d2, var(--wheat)); }
.landing .band-dusk { background: linear-gradient(180deg, var(--dusk), #f4c486); }

.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--leaf-dark); margin-bottom: 10px; }
.lede { font-size: 17px; color: var(--ink-soft); max-width: 34em; }

/* ---------- 封面：早晨的天空、太陽、雲，底部是一片小山坡接到下一段 ---------- */
.landing .hero {
  background:
    radial-gradient(circle at 90% 16%, rgba(255, 244, 196, 0.95) 0 42px, rgba(255, 236, 170, 0.35) 43px 96px, transparent 97px),
    radial-gradient(ellipse 260px 60px at 12% 22%, rgba(255, 255, 255, 0.75), transparent 70%),
    radial-gradient(ellipse 200px 46px at 58% 12%, rgba(255, 255, 255, 0.6), transparent 70%),
    linear-gradient(180deg, #a9e0fb 0%, var(--sky) 40%, #d6efe4 100%);
  padding-block: 72px 150px; overflow: hidden;
}
.landing .hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 120px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C240 20 420 20 640 58 S1100 110 1440 40 V120 H0Z' fill='%23e3efcf' fill-opacity='.7'/%3E%3Cpath d='M0 96 C300 50 560 64 820 88 S1220 110 1440 76 V120 H0Z' fill='%23fffaf0'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; pointer-events: none;
}
.landing .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; position: relative; z-index: 1; }
.landing .hero h1 { font-size: clamp(36px, 5.4vw, 58px); font-weight: 900; line-height: 1.2; margin-bottom: 18px; word-break: keep-all; text-wrap: balance; }
.landing .hero h1 em { font-style: normal; color: var(--leaf-dark); background: linear-gradient(transparent 62%, rgba(255, 236, 170, 0.9) 62%); padding: 0 2px; }
.landing .hero .kicker { background: rgba(255, 255, 255, 0.7); padding: 5px 14px; border-radius: 999px; letter-spacing: 0.08em; }
.hero-note { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .ic { width: 17px; height: 17px; color: var(--leaf-dark); }
/* 封面插圖旁的兩張小卡：用 App 裡真的會出現的資訊 */
.hero-art { position: relative; }
.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--card-radius); padding: 10px 16px 10px 10px;
  box-shadow: 0 10px 26px rgba(92, 70, 50, 0.14); font-size: 13px; line-height: 1.35; color: var(--ink-soft);
}
.chip b { display: block; color: var(--ink); font-size: 15px; }
.chip .ic-dot { flex: none; width: 38px; height: 38px; }
.chip .ic-dot .ic { width: 20px; height: 20px; }
.chip.c1 { left: -18px; bottom: -4%; }
.chip.c2 { right: -10px; top: 4%; }
@media (max-width: 860px) {
  .landing .hero .wrap { grid-template-columns: 1fr; }
  .landing .hero { padding-block: 40px 110px; }
  .landing .hero::after { height: 70px; }
  .chip.c1 { left: 0; } .chip.c2 { right: 0; }
}

/* ---------- 插圖位置（之後換成 peggy 的插圖） ---------- */
.art { margin: 0; width: 100%; max-width: 100%; aspect-ratio: var(--ratio, 1 / 1); position: relative; }
.art img { width: 100%; height: 100%; object-fit: contain; }
.art-box {
  position: absolute; inset: 0; border-radius: 40% 46% 38% 44% / 42% 38% 46% 40%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.15));
  border: 1.5px dashed rgba(169, 127, 79, 0.45);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 0 14% 12%; text-align: center; overflow: hidden;
}
.art-box::before {
  content: ""; position: absolute; inset: 10% 22% 30%;
  background: url("img/tree.png") center / contain no-repeat; opacity: 0.16;
}
.art-tag { position: relative; font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: var(--white); color: var(--bark-deep); }
.art-box p { position: relative; margin: 0; font-size: 14px; color: var(--ink-soft); max-width: 22em; }

/* ---------- 同理 ---------- */
.mirror .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.mirror h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.35; }
.mirror ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.mirror li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.mirror li b { display: block; font-family: var(--display); font-size: 22px; line-height: 1.4; }
.mirror li span { color: var(--ink-soft); }
@media (max-width: 760px) { .mirror .wrap { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- 三個重點 ---------- */
.pillars-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.pillars-head h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.35; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillar { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--card-radius); padding: 28px 26px 30px; }
.pillar .ic-tile { margin-bottom: 18px; }
.pillar .word { font-family: var(--display); font-size: 40px; line-height: 1; color: var(--leaf-dark); margin-bottom: 14px; display: block; }
.pillar p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } .pillar .ic-tile { margin-bottom: 18px; }
.pillar .word { font-size: 32px; } }

/* ---------- 一棵樹的故事：樹幹時間軸 ---------- */
.story-head { text-align: center; max-width: 600px; margin: 0 auto 24px; }
.story-head h2 { font-size: clamp(30px, 4.6vw, 44px); }
.trunk { position: relative; display: grid; gap: 24px; padding-block: 24px 8px; }
.trunk::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 14px; transform: translateX(-50%);
  border-radius: 14px; background: linear-gradient(180deg, rgba(169, 127, 79, 0.25), var(--bark) 30%, var(--bark-deep));
}
.chapter { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: center; }
.chapter .art { grid-column: 1; max-width: 420px; justify-self: end; }
.chapter .chapter-text { grid-column: 3; max-width: 420px; }
.chapter.flip .art { grid-column: 3; justify-self: start; }
.chapter.flip .chapter-text { grid-column: 1; grid-row: 1; justify-self: end; text-align: right; }
.chapter.flip .chapter-text .ticks li { flex-direction: row-reverse; }
.node {
  grid-column: 2; grid-row: 1; justify-self: center; z-index: 1;
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--paper); box-shadow: 0 0 0 5px var(--bark), 0 0 0 11px rgba(169, 127, 79, 0.18);
  font-size: 11px; line-height: 1.15; color: var(--bark-deep); font-weight: 700; font-variant-numeric: tabular-nums;
}
.node b { display: block; font-family: var(--display); font-size: 22px; }
.node.top { box-shadow: 0 0 0 5px var(--gold), 0 0 0 11px rgba(219, 183, 113, 0.35); }
.chapter-when { font-size: 13px; font-weight: 700; color: var(--leaf-dark); letter-spacing: 0.06em; }
.chapter-text h3 { font-size: clamp(24px, 3.2vw, 30px); line-height: 1.35; margin: 6px 0 10px; }
.chapter-text p { color: var(--ink-soft); }
.chapter-text details { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 18px; text-align: left; }
.chapter-text details .ticks { margin: 0 0 14px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "✓"; color: var(--leaf-dark); font-weight: 700; }
@media (max-width: 760px) {
  .trunk::before { left: 31px; width: 10px; }
  .chapter, .chapter.flip { grid-template-columns: 62px minmax(0, 1fr); align-items: start; row-gap: 16px; }
  .node { grid-column: 1; width: 52px; height: 52px; }
  .node b { font-size: 18px; }
  .chapter .chapter-text, .chapter.flip .chapter-text { grid-column: 2; grid-row: 1; justify-self: start; text-align: left; max-width: none; }
  .chapter .art, .chapter.flip .art { grid-column: 2; grid-row: 2; justify-self: start; max-width: 320px; }
  .chapter.flip .chapter-text .ticks li { flex-direction: row; }
}

/* ---------- 還有這些＋畫面 ---------- */
.more-head { text-align: center; margin-bottom: 32px; }
.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1008px; margin: 0 auto; }
.more div { display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; align-content: start; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--card-radius); padding: 16px 18px; }
.more div .ic-tile { grid-row: span 2; }
.more b { font-size: 16px; }
.more span { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 860px) { .more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .more { grid-template-columns: 1fr; gap: 10px; } }
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin: 56px auto 0; }
.phones figure { margin: 0; }
.phones figure:nth-child(even) { transform: translateY(28px); }
.phones img { border-radius: 26px; box-shadow: 0 18px 36px rgba(92, 70, 50, 0.16); }
.phones figcaption { text-align: center; font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 760px) { .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 成長樹是什麼 ---------- */
.about .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.about h2 { font-size: clamp(28px, 4vw, 36px); }
.about .nots-box { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--card-radius); padding: 26px 28px; }
@media (max-width: 760px) { .about .wrap { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- 三步開始 ---------- */
.start-head { text-align: center; margin-bottom: 36px; }
.start-head h2 { font-size: clamp(28px, 4vw, 38px); }
.steps3 { list-style: none; counter-reset: s; padding: 0; margin: 0 auto; max-width: 960px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; position: relative; }
.steps3::before { content: ""; position: absolute; top: 26px; left: 16%; right: 16%; border-top: 2px dashed rgba(169, 127, 79, 0.4); }
.steps3 li { counter-increment: s; position: relative; text-align: center; display: grid; justify-items: center; gap: 6px; }
.steps3 .ic-tile.step { width: 54px; height: 54px; margin-bottom: 8px; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.55); }
.steps3 .ic-tile.step .ic { width: 26px; height: 26px; }
.step-no { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--leaf-dark); }
.steps3 b { font-size: 18px; }
.steps3 span { color: var(--ink-soft); max-width: 18em; }
@media (max-width: 760px) {
  .steps3 { grid-template-columns: 1fr; gap: 24px; }
  .steps3::before { top: 0; bottom: 0; left: 26px; right: auto; border-top: 0; border-left: 2px dashed rgba(169, 127, 79, 0.4); }
  .steps3 li { grid-template-columns: 54px 1fr; justify-items: start; text-align: left; column-gap: 16px; }
  .steps3 .ic-tile.step { grid-row: span 3; margin: 0; }
}
.install { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 860px; margin: 40px auto 0; }
.install > div { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--card-radius); padding: 18px 22px; display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; align-content: start; }
.install > div .ic-tile { grid-row: span 2; }
.install h3 { font-family: var(--body); font-size: 16px; margin-bottom: 4px; }
.install p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (max-width: 620px) { .install { grid-template-columns: 1fr; } }

/* ---------- 方案、FAQ 套進漸層 ---------- */
.landing .plan { background: var(--glass); border-color: var(--glass-line); }
.landing .plan.featured { background: rgba(255, 255, 255, 0.88); }
.landing details { background: var(--glass); border-color: var(--glass-line); }
.landing #pricing h2, .landing #faq h2 { font-size: clamp(28px, 4vw, 36px); }

/* ---------- 結尾 ---------- */
.closing { text-align: center; }
.closing h2 { font-size: clamp(30px, 5vw, 46px); line-height: 1.35; }
.closing .micro { font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; }

@media (max-width: 620px) { .landing h2 br { display: none; } }

/* ---------- icon：照 App 的列表 icon，實心圓底＋白色線條 ---------- */
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-tile, .ic-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #fff; font-style: normal; background: var(--leaf); }
.ic-tile .ic, .ic-dot .ic { width: 22px; height: 22px; }
.ic-tile.o, .ic-dot.o { background: var(--orange); }
.ic-tile.g, .ic-dot.g { background: var(--leaf); }
.ic-tile.y, .ic-dot.y { background: var(--gold); }
.ic-tile.big { width: 56px; height: 56px; }
.ic-tile.big .ic { width: 28px; height: 28px; }
.mirror .ic-tile { width: 48px; height: 48px; }
/* 封面右上：App 首頁「目前累積」卡片的縮小版 */
.chip.stat { display: block; width: 236px; padding: 14px 16px; border-radius: var(--card-radius); background: var(--glass); border: 1px solid var(--glass-line); }
.chip.stat .lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-soft); }
.chip.stat .num { display: block; font-size: 28px; font-weight: 900; line-height: 1.25; margin: 2px 0 8px; }
.chip.stat .bar { display: block; height: 8px; border-radius: 99px; background: #ece3cf; margin-bottom: 6px; overflow: hidden; }
.chip.stat .bar s { display: block; width: 24%; height: 100%; border-radius: 99px; background: var(--leaf); }
.ic-tile.sm { width: 40px; height: 40px; margin-bottom: 4px; }
.ic-tile.sm .ic { width: 20px; height: 20px; }
.chapter.flip .chapter-text .ic-tile.sm { margin-left: auto; }
.plan > .ic-tile { width: 48px; height: 48px; margin-bottom: 6px; }
@media (max-width: 760px) { .chapter.flip .chapter-text .ic-tile.sm { margin-left: 0; } }

/* 小美故事：真插圖放在樹幹旁 */
.chapter .art.photo { max-width: 460px; }
.art.photo.framed img { object-fit: cover; border-radius: 24px; box-shadow: 0 10px 30px rgba(90, 60, 30, .16); }
@media (max-width: 760px) { .chapter .art.photo, .chapter.flip .art.photo { max-width: 100%; } }

/* 水彩樹幹：直立平鋪＋每節一根樹枝，朝向該節說明 */
.trunk { gap: 96px; padding-block: 8px; }
.trunk::before {
  width: 200px; border-radius: 0; margin-left: 3px;
  background: url(img/trunk-straight.webp) center top / 200px 200px repeat-y;
}
.chapter { grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr); }
.chapter::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; margin-left: 3px;
  transform: translate(-50%, -50%); background: url(img/trunk-right.webp) center / contain no-repeat; pointer-events: none;
}
.chapter.flip::before { background-image: url(img/trunk-left.webp); }
.node { box-shadow: 0 0 0 5px var(--bark-deep), 0 0 0 11px rgba(255, 248, 235, 0.55); }
@media (max-width: 760px) {
  .trunk { gap: 48px; }
  .trunk::before { left: 31px; width: 90px; margin-left: 1px; background-size: 90px 90px; }
  .chapter, .chapter.flip { grid-template-columns: 62px minmax(0, 1fr); }
  .chapter::before { display: none; }
}

/* 三大支柱：卡片右上角垂掛的標籤（照 Figma Icon_label） */
.pillar { position: relative; padding-top: 34px; }
.ic-tile.tag {
  position: absolute; top: -1px; right: 26px; width: 56px; height: 56px; margin: 0;
  border-radius: 0 0 28px 28px; align-items: start; padding-top: 12px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}
.ic-tile.tag .ic { width: 28px; height: 28px; }
.pillar .word { padding-right: 70px; margin-top: 18px; font-weight: 900; }

/* 其他卡片也用垂掛標籤 */
.more div, .install > div { position: relative; display: block; padding-top: 22px; padding-right: 76px; }
.more b, .install h3 { display: block; margin-bottom: 4px; }
.ic-tile.tag.sm-tag { width: 44px; height: 48px; right: 20px; border-radius: 0 0 22px 22px; padding-top: 11px; box-shadow: 0 3px 4px rgba(0, 0, 0, 0.2); }
.ic-tile.tag.sm-tag .ic { width: 22px; height: 22px; }
.plan { position: relative; }
.plan > .ic-tile.tag { width: 56px; height: 56px; margin: 0; }
.plan > h3 { margin-top: 18px; padding-right: 70px; }

/* 每個色帶的上緣都走圓弧（同 hero 底部的山坡） */
.landing .band-paper { --band-top: #fffaf0; }
.landing .band-leaf { --band-top: #f1f6e2; }
.landing .band-sky { --band-top: #e4f5fc; }
.landing .band-sand { --band-top: #f6eed8; }
.landing .band-wheat { --band-top: #faf0d2; }
.landing .band-dusk { --band-top: #fde3b4; }
.landing main > section[class*="band-"]:not(.hero)::before,
.landing main > section[class*="band-"]:not(.hero)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 90px; margin-bottom: -1px;
  background: var(--band-top); pointer-events: none; z-index: 1;
  -webkit-mask: var(--hill) center bottom / 100% 100% no-repeat; mask: var(--hill) center bottom / 100% 100% no-repeat;
}
.landing main > section[class*="band-"]:not(.hero)::before {
  opacity: .55;
  --hill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C240 0 440 0 660 30 S1100 82 1440 18 V90 H0Z'/%3E%3C/svg%3E");
}
.landing main > section[class*="band-"]:not(.hero)::after {
  --hill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0 66 C300 26 560 36 820 58 S1220 82 1440 48 V90 H0Z'/%3E%3C/svg%3E");
}
/* 一左一右交替，讓弧線不會每段都一樣 */
.landing main > section[class*="band-"]:nth-of-type(odd)::before,
.landing main > section[class*="band-"]:nth-of-type(odd)::after { transform: scaleX(-1); }
@media (max-width: 760px) {
  .landing main > section[class*="band-"]:not(.hero)::before,
  .landing main > section[class*="band-"]:not(.hero)::after { height: 48px; }
}
