/*
 * v3：首頁改成「找答案」的入口，四種能力各自一頁。
 * 固定在上方的導覽列、首頁開頭、能力卡、系統串接示意圖、服務頁版型、手機常駐按鈕。
 */

/* ---------- 導覽列：固定在上方，有「服務」下拉選單 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding-top: env(safe-area-inset-top, 0px);
}

.topbar .nav__links {
  align-items: center;
}

.navdrop {
  position: relative;
}

.navdrop__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: var(--step-small);
  font-weight: 500;
}

.navdrop__btn .icon {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
  transition: transform var(--t-ui) var(--ease-out);
}

.navdrop[data-open="true"] .navdrop__btn .icon {
  transform: rotate(-90deg);
}

.navdrop__menu {
  display: grid;
  gap: 2px;
}

.navdrop__menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.navdrop__menu a:hover,
.navdrop__menu a[aria-current="page"] {
  background: var(--surface);
}

.navdrop__menu .icon {
  width: 22px;
  height: 22px;
  color: var(--accent-text);
}

@media (min-width: 900px) {
  .js .navdrop__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: -14px;
    z-index: 60;
    min-width: 280px;
    padding: 8px;
    border-radius: 14px;
    background: var(--paper);
    box-shadow: 0 16px 40px rgb(0 0 0 / 0.14); /* taste-skill-ignore：展開的下拉選單浮在內容上 */
    display: none;
  }

  .js .navdrop[data-open="true"] .navdrop__menu {
    display: grid;
    animation: drop-in var(--t-ui) var(--ease-out);
  }

  @keyframes drop-in {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
  }
}

@media (max-width: 899px) {
  .topbar__inner {
    position: relative;
    gap: 12px;
  }

  .navdrop__btn {
    display: none;
  }

  .navdrop__menu {
    margin: 4px 0 8px;
  }

  .navdrop__menu a {
    padding: 0;
    font-size: var(--step-body);
  }
}

/* ---------- 首頁開頭：我們是誰、做什麼，右邊是系統串接示意圖 ---------- */
.intro {
  padding-block: clamp(56px, 7vw, 104px) clamp(64px, 8vw, 120px);
}

.intro__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px var(--gutter);
  align-items: center;
}

.intro__text {
  grid-column: 1 / span 7;
}

.intro__title {
  font-size: clamp(2rem, 0.9rem + 4.2vw, 4.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.intro__lead {
  max-width: 34em;
  margin-top: 24px;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.375rem);
  line-height: 1.7;
  color: var(--soft);
}

.intro__actions {
  margin-top: 32px;
}

.intro__note {
  margin-top: 28px;
  font-size: var(--step-small);
  color: var(--soft);
}

.intro .hub {
  grid-column: 8 / -1;
}

@media (max-width: 1023px) {
  .intro__text,
  .intro .hub {
    grid-column: 1 / -1;
  }
}

/* 系統串接示意圖：左右各三個來源，資料點往中間你的系統跑 */
.hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.1fr) 40px minmax(0, 1fr);
  grid-template-rows: repeat(3, auto);
  align-items: center;
  row-gap: 14px;
}

.hub__node {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink-dark);
  font-size: var(--step-small);
  font-weight: 500;
}

.hub__node .icon {
  width: 22px;
  height: 22px;
  color: var(--accent-text);
}

.hub__node--a { grid-area: 1 / 1; }
.hub__node--b { grid-area: 2 / 1; }
.hub__node--c { grid-area: 3 / 1; }
.hub__node--d { grid-area: 1 / 5; }
.hub__node--e { grid-area: 2 / 5; }
.hub__node--f { grid-area: 3 / 5; }

.hub__core {
  grid-area: 1 / 3 / 4 / 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  min-height: 220px;
  padding: 20px;
  border-radius: 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-align: center;
}

.hub__core .icon {
  width: 40px;
  height: 40px;
}

.hub__line {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: var(--mist-2);
  overflow: hidden;
}

.hub__line--a { grid-area: 1 / 2; }
.hub__line--b { grid-area: 2 / 2; }
.hub__line--c { grid-area: 3 / 2; }
.hub__line--d { grid-area: 1 / 4; }
.hub__line--e { grid-area: 2 / 4; }
.hub__line--f { grid-area: 3 / 4; }

.hub__line b {
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

@media (prefers-reduced-motion: no-preference) {
  .hub__line--a b,
  .hub__line--b b,
  .hub__line--c b {
    animation: hub-in 1600ms var(--ease-in-out) infinite;
  }

  .hub__line--d b,
  .hub__line--e b,
  .hub__line--f b {
    animation: hub-in-rev 1600ms var(--ease-in-out) infinite;
  }

  .hub__line--b b,
  .hub__line--e b {
    animation-delay: 500ms;
  }

  .hub__line--c b,
  .hub__line--f b {
    animation-delay: 1000ms;
  }
}

@keyframes hub-in {
  0% { transform: translateX(-14px); }
  70%, 100% { transform: translateX(44px); }
}

@keyframes hub-in-rev {
  0% { transform: translateX(44px); }
  70%, 100% { transform: translateX(-14px); }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hub__line { background: #3a3a3c; }
  :root:not([data-theme="light"]) .hub__node { background: #1d1d1f; color: #f5f5f7; }
}

:root[data-theme="dark"] .hub__line { background: #3a3a3c; }
:root[data-theme="dark"] .hub__node { background: #1d1d1f; color: #f5f5f7; }

@media (max-width: 479px) {
  .hub {
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 0.9fr) 20px minmax(0, 1fr);
    row-gap: 10px;
  }

  .hub__node {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 64px;
    padding: 8px 4px;
    font-size: 13px;
    text-align: center;
  }

  .hub__core {
    min-height: 200px;
    padding: 12px 8px;
    font-size: 15px;
  }
}

/* ---------- 四種能力 ---------- */
.services {
  padding-block: var(--section);
}

.caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: 24px;
}

.cap__link {
  display: grid;
  align-content: start;
  gap: 12px;
  height: 100%;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}

.cap__link:active {
  transform: scale(0.99);
}

@media (hover: hover) and (pointer: fine) {
  .cap__link:hover {
    background: color-mix(in srgb, var(--surface) 70%, var(--mist-2));
  }
}

.cap__title {
  font-size: var(--step-statement);
  font-weight: 600;
  line-height: 1.25;
}

.cap__desc {
  color: var(--soft);
  line-height: 1.65;
}

.cap__example {
  display: grid;
  gap: 2px;
  font-size: var(--step-small);
  line-height: 1.55;
}

.cap__example b {
  font-weight: 600;
  color: var(--soft);
}

.cap__figure {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin-top: 4px;
}

.cap__figure b {
  font-size: var(--step-head);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.cap__figure small {
  font-size: var(--step-small);
  color: var(--soft);
}

.cap__more {
  margin-top: 4px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.22em;
}

@media (max-width: 767px) {
  .caps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 首頁的數字段：淺灰底上用白色進度條底 */
.proof.field-mist {
  padding-block: var(--section);
}

/* ---------- 合作流程與收費合成一段 ---------- */
.plan {
  padding-block: var(--section);
}

.plan .fees {
  margin-top: 88px;
}

.plan__calc .section-title {
  line-height: 1.3;
}

.plan__calc .calc {
  margin-top: 24px;
}

.plan__figure {
  display: inline-block;
  padding: 0 0.3em;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- 服務頁 ---------- */
.svc-hero {
  padding-block: clamp(40px, 5vw, 72px);
}

.svc-hero__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px var(--gutter);
  align-items: center;
}

.svc-hero__grid > div:first-child {
  grid-column: 1 / span 7;
}

.svc-hero__back {
  margin-bottom: 20px;
  font-size: var(--step-small);
}

.svc-hero__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(2.25rem, 1.2rem + 3.2vw, 4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.svc-hero__title .icon {
  width: 1em;
  height: 1em;
  flex: none;
  color: var(--accent-text);
}

.svc-fit {
  grid-column: 9 / -1;
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
}

.svc-fit__title {
  font-size: var(--step-body);
  font-weight: 600;
}

.svc-fit__list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.svc-fit__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.55;
}

.svc-fit__list .icon {
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--accent-text);
}

@media (max-width: 1023px) {
  .svc-hero__grid > div:first-child,
  .svc-fit {
    grid-column: 1 / -1;
  }
}

.svc-steps {
  padding-block: var(--section);
}

.svc-steps__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px var(--gutter);
  margin-top: 24px;
}

.svc-steps__list li {
  display: grid;
  align-content: start;
  gap: 10px;
}

.svc-steps__list .icon {
  width: 44px;
  height: 44px;
  color: var(--accent-text);
}

.svc-steps__list b {
  font-size: var(--step-statement);
  font-weight: 600;
  line-height: 1.3;
}

.svc-steps__list span {
  color: var(--soft);
}

@media (max-width: 1023px) {
  .svc-steps__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .svc-steps__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.demo {
  padding-block: var(--section);
}

/* 一張訂單的四個畫面排成一排 */
.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.strip__frame {
  aspect-ratio: 4 / 3.4;
  padding: clamp(5px, 0.6vw, 8px);
  border-radius: 14px;
  background: #3a3a3c;
  color: #1d1d1f;
}

.strip__frame > div {
  height: 100%;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.strip__frame > .ui-chat {
  background: #e9eef3;
}

.strip__frame .ui-table th:nth-child(3),
.strip__frame .ui-table td:nth-child(3) {
  display: none;
}

.strip__note {
  margin-top: 14px;
  font-size: var(--step-small);
  color: var(--soft);
}

@media (prefers-reduced-motion: no-preference) {
  .js .strip.is-in .strip__frame {
    animation: strip-on 4800ms ease infinite;
  }

  .js .strip.is-in .strip__frame:nth-child(2) { animation-delay: 1200ms; }
  .js .strip.is-in .strip__frame:nth-child(3) { animation-delay: 2400ms; }
  .js .strip.is-in .strip__frame:nth-child(4) { animation-delay: 3600ms; }
}

@keyframes strip-on {
  0%, 25% { background: var(--blue); }
  30%, 100% { background: #3a3a3c; }
}

@media (max-width: 1023px) {
  .strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

.demo .bar {
  margin-top: 88px;
}

.demo__slip {
  margin-top: 24px;
}

.demo__hub {
  max-width: 820px;
  margin-top: 24px;
}

.demo .hub__node {
  background: #1d1d1f;
  color: #f5f5f7;
}

.demo .hub__line {
  background: #3a3a3c;
}

/* 專屬系統的示意畫面 */
.console {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px var(--gutter);
  align-items: center;
  margin-top: 24px;
}

.console__screen {
  grid-column: 1 / span 8;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  overflow: hidden;
  border: 8px solid #3a3a3c;
  border-radius: 18px;
  background: #ffffff;
  color: #1d1d1f;
  font-size: 15px;
}

.console__side {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 18px 12px;
  background: #f5f5f7;
}

.console__side b {
  margin-bottom: 8px;
  font-size: 15px;
}

.console__side span {
  padding: 8px 10px;
  border-radius: 8px;
  color: #6e6e73;
}

.console__side .is-on {
  background: #ffffff;
  color: #1d1d1f;
  font-weight: 600;
}

.console__main {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
}

.console__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-weight: 600;
}

.console__row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.4fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #f5f5f7;
}

.console__btn {
  padding: 6px 12px;
  border-radius: 8px;
  background: #0071e3;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.console__points {
  grid-column: 9 / -1;
  display: grid;
  gap: 24px;
}

.console__points li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.console__points .icon {
  width: 36px;
  height: 36px;
  color: var(--accent-text);
}

.console__points b {
  display: block;
  font-size: var(--step-statement);
  font-weight: 600;
  line-height: 1.3;
}

.console__points span {
  color: var(--soft);
}

@media (max-width: 1023px) {
  .console__screen,
  .console__points {
    grid-column: 1 / -1;
  }
}

@media (max-width: 639px) {
  .console__screen {
    grid-template-columns: minmax(0, 1fr);
    font-size: 14px;
  }

  .console__side {
    display: none;
  }

  .console__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .console__row span:nth-child(2) {
    display: none;
  }
}

/* 網站服務的數字 */
.webstats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px var(--gutter);
  margin-top: 24px;
}

.webstats div {
  display: grid;
  gap: 8px;
}

.webstats b {
  font-size: var(--step-head);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.webstats span {
  color: var(--soft);
}

@media (max-width: 1023px) {
  .webstats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 下一步：預約＋其他服務 */
.svc-next {
  padding-block: var(--section);
}

.svc-next__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px var(--gutter);
}

.svc-next__grid > div:first-child {
  grid-column: 1 / span 7;
}

.svc-next__grid > div:last-child {
  grid-column: 9 / -1;
}

.svc-next__label {
  font-weight: 600;
}

.svc-next__list {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.svc-next__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: var(--step-statement);
  font-weight: 500;
}

@media (max-width: 899px) {
  .svc-next__grid > div:first-child,
  .svc-next__grid > div:last-child {
    grid-column: 1 / -1;
  }
}

/* ---------- 手機常駐的預約按鈕 ---------- */
.mobilecta {
  display: none;
}

@media (max-width: 639px) {
  .mobilecta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 14px;
    background: var(--blue);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--t-ui) var(--ease-out), opacity var(--t-ui) ease;
  }

  /* 捲到表單或頁尾時讓開，不擋住內容 */
  .mobilecta.is-away {
    opacity: 0;
    transform: translateY(120%);
    pointer-events: none;
  }

  body {
    padding-bottom: 80px;
  }

  .topbar .nav__actions .button {
    display: none;
  }
}

/* 沿用舊的 .nav 手機選單行為，但頁首本身不用舊版的排法 */
.topbar.nav {
  display: block;
  padding-top: 0;
}

@media (max-width: 899px) {
  .js .topbar.nav[data-open="true"] .nav__links {
    top: 100%;
    margin: 0 var(--margin);
    border-radius: 0 0 14px 14px;
  }
}

.topbar .nav__actions {
  margin-left: auto;
}

@media (min-width: 900px) {
  .topbar .nav__links {
    margin-left: auto;
  }

  .topbar .nav__actions {
    margin-left: 0;
  }
}

/* 給年長讀者：卡片上的說明字不要太小 */
.case__meta,
.case__figure small,
.cap__figure small,
.cap__example,
.demo .hub__node,
.flow__node {
  font-size: var(--step-body);
}

.flow__node {
  flex: 0 1 92px;
  width: auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.flow__line {
  min-width: 12px;
}

/* ---------- 服務彈窗：在原頁打開，不跳頁 ---------- */
.svcbox {
  --bg: var(--paper);
  --surface: var(--paper-2);
  --ink: var(--ink-dark);
  --soft: var(--ink-dark-soft);
  --accent: var(--blue);
  --accent-ink: #ffffff;
  --accent-text: var(--blue-text);
  --focus: var(--blue);
  width: min(1240px, calc(100% - 32px));
  max-width: none;
  height: calc(100dvh - 32px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 64px rgb(0 0 0 / 0.3); /* taste-skill-ignore：彈窗浮在內容上 */
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .svcbox {
    --accent-text: var(--blue-bright);
    --focus: var(--blue-bright);
  }
}

:root[data-theme="dark"] .svcbox {
  --accent-text: var(--blue-bright);
  --focus: var(--blue-bright);
}

.svcbox::backdrop {
  background: rgb(0 0 0 / 0.5);
}

.svcbox[open] {
  animation: svcbox-in 360ms var(--ease-expo);
}

@keyframes svcbox-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.svcbox__panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.svcbox__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background: var(--paper);
}

.svcbox__back {
  gap: 6px;
  text-decoration: none;
  font-size: var(--step-body);
}

.svcbox__back .icon,
.svc-hero__back .icon {
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
}

.svcbox__name {
  overflow: hidden;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.svcbox__body {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.svcbox .svc-hero__title {
  font-size: clamp(2rem, 1.1rem + 2.6vw, 3.25rem);
}

.svc-hero__back .text-button {
  gap: 6px;
  text-decoration: none;
}

@media (max-width: 767px) {
  .svcbox {
    width: 100%;
    height: calc(100dvh - 16px);
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
  }

  .svcbox[open] {
    animation-name: svcbox-up;
  }

  @keyframes svcbox-up {
    from {
      transform: translateY(100%);
    }
  }

  .svcbox__head {
    padding: 6px 12px;
  }
}

/* ---------- 服務彈窗：每項服務自己的內容 ---------- */
.svcbox__head {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 16px 10px 28px;
}

.svcbox__name {
  text-align: left;
}

.svc-block {
  padding-block: clamp(56px, 6vw, 96px);
}

/* 對照表：原本 vs 導入後、現成 vs 客製 */
.cmp-wrap {
  margin-top: 24px;
  overflow-x: auto;
}

.cmp {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-size: var(--step-body);
  line-height: 1.6;
}

.cmp thead th {
  padding: 0 18px 4px;
  font-size: var(--step-small);
  font-weight: 600;
  text-align: left;
  color: var(--soft);
}

.cmp tbody th,
.cmp tbody td {
  padding: 16px 18px;
  background: var(--surface);
  text-align: left;
  vertical-align: top;
}

.cmp tbody th {
  border-radius: 14px 0 0 14px;
  font-weight: 600;
  white-space: nowrap;
}

.cmp tbody td:last-child {
  border-radius: 0 14px 14px 0;
  font-weight: 500;
}

.field-mist .cmp tbody th,
.field-mist .cmp tbody td {
  background: var(--paper);
}

/* 圖示＋粗體標題＋一句說明，兩欄排 */
.svc-guard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px var(--gutter);
  margin-top: 24px;
}

.svc-guard li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.svc-guard .icon {
  width: 40px;
  height: 40px;
  color: var(--accent-text);
}

.svc-guard b {
  display: block;
  margin-bottom: 4px;
  font-size: var(--step-statement);
  font-weight: 600;
  line-height: 1.3;
}

.svc-guard span {
  color: var(--soft);
  line-height: 1.65;
}

.svc-guard b {
  color: var(--ink);
}

@media (max-width: 767px) {
  .svc-guard {
    grid-template-columns: minmax(0, 1fr);
  }
}

.svc-end {
  padding-block: clamp(48px, 5vw, 80px);
}

.svc-end__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.svc-end__related {
  margin-top: 12px;
  color: var(--soft);
}

.svc-end__related .link {
  color: var(--ink);
}

.demo .strip {
  margin-bottom: 8px;
}

.demo .try {
  margin-top: 64px;
}

/* ---------- 首頁案例：原本、做了什麼、結果 ---------- */
.stories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: 24px;
}

.story__link {
  display: grid;
  align-content: start;
  gap: 14px;
  height: 100%;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}

.story__link:active {
  transform: scale(0.99);
}

@media (hover: hover) and (pointer: fine) {
  .story__link:hover {
    background: color-mix(in srgb, var(--surface) 70%, var(--mist-2));
  }
}

.story__title {
  font-size: var(--step-statement);
  font-weight: 600;
  line-height: 1.3;
}

.story__meta {
  margin-top: -6px;
  color: var(--soft);
}

.story .flow {
  margin: 4px 0;
}

.story__row {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  gap: 12px;
  line-height: 1.65;
}

.story__row b {
  font-weight: 600;
  color: var(--soft);
}

.story__figs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 6px;
}

.story__figs span {
  display: grid;
  gap: 4px;
}

.story__figs b {
  font-size: var(--step-head);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.story__figs small {
  font-size: var(--step-body);
  color: var(--soft);
}

.story__more {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.22em;
}

@media (prefers-reduced-motion: no-preference) {
  .js .story.is-in .flow__line i {
    animation: flow-run 1800ms var(--ease-in-out) infinite;
  }

  .js .story.is-in .flow__line + .flow__node + .flow__line i {
    animation-delay: 900ms;
  }
}

@media (max-width: 899px) {
  .stories {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 479px) {
  .story__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}
