/* ============================================================
   Webieai — AI website studio theme (standalone, LIGHT).
   Art direction: 貼地・精準・有信心. White canvas + cool-grey
   #F6F8FB bands, charcoal ink, ONE electric accent pair
   (cyan #2DE2FF → violet #7C5CFF) used decisively — CTAs,
   keylines, marks, gradient-text moments. Text-on-light uses a
   deepened ink variant of the same pair for contrast. White
   browser-chrome windows with soft coloured shadows are the
   signature motif (hero stack + portfolio). Exactly ONE dark
   band: the final CTA. Display = Unbounded + Space Grotesk;
   body = Noto Sans TC, hard 900-vs-400 weight contrast.
   Motion lives in webieai.js behind html.motion +
   prefers-reduced-motion.
   ============================================================ */
:root {
  --bg: #FFFFFF;
  --bg-2: #F6F8FB;
  --bg-3: #FFFFFF;
  --ink: #10151D;
  --soft: #3A4453;
  --faint: #7C879E;
  --line: #E4EAF3;
  --line-2: #CDD8E8;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-2: rgba(16, 21, 29, 0.05);
  --cyan: #2DE2FF;
  --violet: #7C5CFF;
  /* brand gradient — fills, keylines, marks (never long text) */
  --grad: linear-gradient(120deg, var(--cyan), var(--violet));
  /* deepened pair for TEXT on white (contrast-safe) */
  --cyan-ink: #0A7D96;
  --violet-ink: #5B3DF0;
  --grad-ink: linear-gradient(120deg, var(--cyan-ink), var(--violet-ink));
  --ok: #0B7A52;
  --warn: #8A5A00;
  --dark: #070B14;
  --dark-2: #0C1220;

  --shadow-soft: 0 18px 50px -24px rgba(22, 34, 61, 0.18);
  --shadow-win: 0 34px 80px -32px rgba(42, 55, 100, 0.35), 0 8px 24px -12px rgba(124, 92, 255, 0.18);

  --font-display: "Unbounded", "Space Grotesk", "Noto Sans TC", system-ui, sans-serif;
  --font-latin: "Space Grotesk", "Noto Sans TC", system-ui, sans-serif;
  --font-body: "Noto Sans TC", "Space Grotesk", system-ui, -apple-system, "PingFang HK", sans-serif;

  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
img { max-width: 100%; display: block; }
a { color: var(--cyan-ink); }
::selection { background: var(--cyan); color: #04222B; }
:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* film grain — quiet paper texture on light */
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.skyglow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.skyglow::before, .skyglow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.16;
}
.skyglow::before { width: 560px; height: 560px; background: var(--cyan); top: -260px; right: -140px; }
.skyglow::after { width: 480px; height: 480px; background: var(--violet); top: 30%; left: -240px; opacity: 0.1; }

main { position: relative; z-index: 2; }

/* ============================================================
   Nav — minimal light glass bar
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.92); }
.nav__inner { display: flex; align-items: center; gap: 26px; height: 66px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  margin-right: auto; color: var(--ink);
}
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  letter-spacing: 0.02em; color: var(--ink);
}
.logo b i { font-style: normal; background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav__menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-block; padding: 8px 13px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--soft); text-decoration: none;
  transition: color 0.18s, background 0.18s;
}
.nav__link:hover { color: var(--ink); background: var(--glass-2); }
.nav__wa { color: var(--soft); font-family: var(--font-latin); }
@media (max-width: 860px) { .nav__menu { display: none; } }

/* buttons — magnetic (JS sets --mx/--my on fine pointers) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-latin); font-weight: 700; font-size: 15.5px;
  padding: 13px 26px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1.3;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, color 0.18s, border-color 0.18s;
}
.btn--prime { background: var(--grad); color: #04121A; box-shadow: 0 10px 28px -14px rgba(124, 92, 255, 0.55); }
.btn--prime:hover { box-shadow: 0 18px 44px -16px rgba(124, 92, 255, 0.6), 0 8px 22px -10px rgba(45, 226, 255, 0.45); }
.btn--ghost { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--cyan-ink); color: var(--cyan-ink); }
.btn--sm { padding: 9px 18px; font-size: 14px; border-radius: 10px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ============================================================
   Hero — asymmetric split, ghost word, 3D browser stack
   ============================================================ */
.hero { position: relative; padding: 86px 0 110px; overflow: hidden; }
.hero__ghost {
  position: absolute; top: 6px; left: -2vw; z-index: 0; margin: 0;
  font-family: var(--font-display); font-weight: 800; line-height: 0.9;
  font-size: clamp(110px, 19vw, 300px); letter-spacing: -0.01em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(16, 21, 29, 0.07);
  user-select: none; pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px; align-items: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px;
  font-family: var(--font-latin); font-weight: 700; font-size: 12.5px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--cyan-ink);
}
.kicker::before { content: ""; width: 34px; height: 1.5px; background: var(--grad); flex: none; }
.hero h1 {
  font-family: var(--font-body); font-weight: 900;
  font-size: clamp(34px, 5.6vw, 62px); line-height: 1.18; letter-spacing: 0.005em;
  margin: 0 0 22px;
}
.hero h1 .grad {
  font-family: var(--font-latin); font-weight: 700;
  background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { max-width: 560px; color: var(--soft); font-size: 17.5px; margin: 0 0 30px; }
.hero__lead b { color: var(--ink); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 34px; }

/* trust chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  color: var(--ink); background: var(--bg); border: 1px solid var(--line-2);
  box-shadow: 0 6px 18px -12px rgba(22, 34, 61, 0.25);
}
.chips li i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--grad); flex: none;
  box-shadow: 0 0 8px rgba(45, 226, 255, 0.8);
}

/* --- 3D floating browser windows (pure CSS art, white) --- */
.stage {
  position: relative; min-height: 460px; perspective: 1300px;
  transform-style: preserve-3d;
}
.win {
  position: absolute; border-radius: 14px; overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-win);
  transform: translateY(var(--py, 0)) rotateX(calc(var(--rx, 0deg) * 1)) rotateY(calc(var(--ry, 0deg) + var(--wy, 0deg)));
  transition: transform 0.25s ease-out;
  will-change: transform;
}
.win__bar {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.win__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.win__bar i:first-child { background: var(--cyan); }
.win__url {
  margin-left: 8px; font-family: var(--font-latin); font-size: 10.5px;
  letter-spacing: 0.04em; color: var(--faint);
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 6px; padding: 1px 10px;
}
.win__body { padding: 14px; display: grid; gap: 10px; }
/* skeleton lines + blocks */
.sk { border-radius: 6px; background: #EAF0F9; height: 10px; }
.sk--hero { height: 64px; background: linear-gradient(120deg, rgba(45, 226, 255, 0.35), rgba(124, 92, 255, 0.35)); }
.sk--half { width: 55%; }
.sk--btn { width: 88px; height: 24px; border-radius: 999px; background: var(--grad); }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sk-grid span { display: block; height: 44px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); }
.sk-grid span:nth-child(2) { background: rgba(124, 92, 255, 0.18); }
/* chart bars */
.sk-chart { display: flex; align-items: flex-end; gap: 7px; height: 70px; padding-top: 4px; }
.sk-chart span { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, rgba(45, 226, 255, 0.85), rgba(45, 226, 255, 0.18)); }
.sk-chart span:nth-child(1) { height: 34%; } .sk-chart span:nth-child(2) { height: 52%; }
.sk-chart span:nth-child(3) { height: 44%; } .sk-chart span:nth-child(4) { height: 72%; }
.sk-chart span:nth-child(5) { height: 60%; } .sk-chart span:nth-child(6) { height: 92%; background: linear-gradient(180deg, rgba(124, 92, 255, 0.9), rgba(124, 92, 255, 0.2)); }
/* chat bubbles */
.sk-bub { display: grid; gap: 8px; }
.sk-bub span { display: block; height: 26px; border-radius: 12px; }
.sk-bub span:nth-child(1) { width: 72%; background: #EAF0F9; border-bottom-left-radius: 4px; }
.sk-bub span:nth-child(2) { width: 58%; justify-self: end; background: linear-gradient(120deg, rgba(45, 226, 255, 0.45), rgba(124, 92, 255, 0.45)); border-bottom-right-radius: 4px; }
.sk-bub span:nth-child(3) { width: 44%; background: #EAF0F9; border-bottom-left-radius: 4px; }

.win--a { width: min(380px, 78%); top: 26px; right: 8%; z-index: 3; --wy: -10deg; }
.win--b { width: min(250px, 56%); top: 200px; right: 42%; z-index: 4; --wy: -16deg; }
.win--c { width: min(230px, 52%); top: 286px; right: -2%; z-index: 5; --wy: -7deg; }
.stage__halo {
  position: absolute; width: 320px; height: 320px; right: 6%; top: 90px; z-index: 1;
  border-radius: 50%; background: radial-gradient(circle, rgba(124, 92, 255, 0.16), transparent 65%);
  filter: blur(20px); pointer-events: none;
}
.stage__ring {
  position: absolute; right: -30px; top: -10px; z-index: 0; width: 240px; height: 240px;
  border: 1px dashed rgba(10, 125, 150, 0.35); border-radius: 50%;
}
html.motion .stage__ring { animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .hero { padding: 56px 0 70px; }
  .hero__grid { grid-template-columns: 1fr; }
  .stage { min-height: 380px; max-width: 460px; }
  .win--a { right: 0; }
  .win--b { right: 46%; }
}

/* ============================================================
   Capability marquee — light keyline band
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 16px 0; overflow: hidden; position: relative; background: var(--bg-2);
}
.marquee__track { display: flex; gap: 0; width: max-content; }
html.motion .marquee__track { animation: marquee 36s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee ul { display: flex; align-items: center; gap: 38px; list-style: none; margin: 0; padding: 0 19px; }
.marquee li {
  font-family: var(--font-latin); font-weight: 700; font-size: 14px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); white-space: nowrap;
}
.marquee li::after { content: "·"; margin-left: 38px; color: var(--cyan-ink); }

/* ============================================================
   Section furniture
   ============================================================ */
.sec { position: relative; padding: 110px 0; }
.sec--tint { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec__head { position: relative; max-width: 720px; margin-bottom: 60px; }
.sec__no {
  position: absolute; right: -10px; top: -66px; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(90px, 12vw, 170px); line-height: 1; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(124, 92, 255, 0.22);
}
.sec h2 {
  position: relative; z-index: 1; font-weight: 900;
  font-size: clamp(28px, 4.2vw, 46px); line-height: 1.22; margin: 0 0 16px;
}
.sec h2 em { font-style: normal; background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec__sub { position: relative; z-index: 1; color: var(--soft); font-size: 16.5px; max-width: 600px; margin: 0; }

/* ============================================================
   Portfolio — 我們親手做的網站 (browser-framed carousel)
   ============================================================ */
.folio__rail { position: relative; }
.folio__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(440px, 84vw);
  gap: 22px; overflow-x: auto; padding: 10px 4px 26px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  -webkit-overflow-scrolling: touch;
}
.folio__track::-webkit-scrollbar { height: 8px; }
.folio__track::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.fcard {
  scroll-snap-align: start; display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line);
  box-shadow: var(--shadow-soft); overflow: hidden;
  transform: translateY(var(--fy, 0)) rotate(var(--fr, 0deg));
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.25s, border-color 0.25s;
}
html.motion .fcard:nth-child(even) { --fy: 14px; }
.fcard:hover, .fcard:focus-visible {
  --fy: -6px; --fr: -0.4deg;
  border-color: var(--line-2);
  box-shadow: 0 30px 70px -28px rgba(42, 55, 100, 0.4), 0 10px 28px -14px rgba(45, 226, 255, 0.35);
}
html.motion .fcard:nth-child(even):hover, html.motion .fcard:nth-child(even):focus-visible { --fy: 8px; --fr: 0.4deg; }
.fcard__bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.fcard__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); flex: none; }
.fcard__bar i:first-child { background: var(--cyan); }
.fcard__url {
  margin-left: 8px; font-family: var(--font-latin); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.03em; color: var(--faint); background: #FFFFFF;
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fcard__shot { position: relative; overflow: hidden; aspect-ratio: 1200 / 782; background: var(--bg-2); }
.fcard__shot img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.motion .fcard:hover .fcard__shot img { transform: scale(1.035); }
.fcard__meta { display: grid; gap: 6px; padding: 16px 18px 18px; }
.fcard__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fcard__name { font-size: 17px; font-weight: 900; }
.fcard__tag {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--violet-ink); border: 1px solid rgba(91, 61, 240, 0.35);
  background: rgba(124, 92, 255, 0.07); border-radius: 999px; padding: 2px 11px;
}
.fcard__why { font-size: 14px; color: var(--soft); margin: 0; }
.fcard__go {
  margin-top: 4px; font-family: var(--font-latin); font-weight: 700; font-size: 13.5px;
  color: var(--cyan-ink); display: inline-flex; align-items: center; gap: 6px;
}
.fcard:hover .fcard__go { text-decoration: underline; }
.folio__nav { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.folio__btn {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-2); background: #FFFFFF; color: var(--ink);
  font-size: 18px; line-height: 1; display: grid; place-items: center;
  box-shadow: 0 8px 22px -12px rgba(22, 34, 61, 0.3);
  transition: border-color 0.18s, color 0.18s, box-shadow 0.18s;
}
.folio__btn:hover { border-color: var(--cyan-ink); color: var(--cyan-ink); }
.folio__hint { margin: 0 0 0 8px; font-size: 13px; color: var(--faint); }

/* ============================================================
   How it works — zig-zag steps + scroll-drawn spine
   ============================================================ */
.how { position: relative; }
.how__wrap { position: relative; }
.how__spine {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%);
  background: var(--line);
}
.how__spine i {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  background: var(--grad); transform-origin: top;
  transform: scaleY(var(--p, 0));
}
.step {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  padding: 38px 0; align-items: center;
}
.step__no {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(64px, 9vw, 124px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(16, 21, 29, 0.16);
}
.step:nth-child(odd) .step__no { text-align: right; }
.step:nth-child(even) .step__body { order: -1; text-align: right; }
.step:nth-child(even) .step__body .step__tag { margin-left: auto; }
.step__dot {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 14px; height: 14px; border-radius: 50%; background: #FFFFFF;
  border: 2px solid var(--cyan-ink); box-shadow: 0 0 0 5px rgba(45, 226, 255, 0.18); z-index: 2;
}
.step__tag {
  display: inline-block; font-family: var(--font-latin); font-weight: 700; font-size: 12px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--violet-ink);
  border: 1px solid rgba(91, 61, 240, 0.35); padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
  background: rgba(124, 92, 255, 0.05);
}
.step h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; margin: 0 0 10px; }
.step p { color: var(--soft); margin: 0; font-size: 15.5px; max-width: 440px; }
.step:nth-child(even) p { margin-left: auto; }
@media (max-width: 820px) {
  .how__spine { left: 8px; }
  .step { grid-template-columns: 1fr; gap: 8px; padding: 26px 0 26px 36px; }
  .step__no { display: none; }
  .step:nth-child(even) .step__body { order: 0; text-align: left; }
  .step:nth-child(even) .step__body .step__tag { margin-left: 0; }
  .step:nth-child(even) p { margin-left: 0; }
  .step__dot { left: 8px; top: 38px; }
}

/* ============================================================
   系統點運作 — interactive service-loop demo (tabs + vignettes)
   ============================================================ */
.sys__panel {
  background: #FFFFFF; border: 1px solid var(--line-2); border-radius: 24px;
  box-shadow: var(--shadow-soft); overflow: hidden; position: relative;
}
.sys__panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad);
}
.sys__tabs {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--line); margin: 0; padding: 0; list-style: none;
}
.sys__tab {
  position: relative; border: 0; background: transparent; cursor: pointer;
  font: inherit; color: var(--faint); font-weight: 700; font-size: 13px;
  padding: 16px 8px 18px; border-right: 1px solid var(--line);
  display: grid; gap: 4px; justify-items: center; text-align: center;
  transition: color 0.18s, background 0.18s;
}
.sys__tab:last-child { border-right: 0; }
.sys__tab b {
  font-family: var(--font-latin); font-weight: 700; font-size: 11px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line-2); color: var(--faint);
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.sys__tab:hover { color: var(--ink); background: var(--bg-2); }
.sys__tab[aria-selected="true"] { color: var(--ink); }
.sys__tab[aria-selected="true"] b { background: var(--grad); border-color: transparent; color: #04121A; }
.sys__tab .sys__bar {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--grad); transform: scaleX(var(--tp, 0)); transform-origin: left;
}
@media (max-width: 760px) {
  .sys__tabs { grid-template-columns: repeat(3, 1fr); }
  .sys__tab:nth-child(3) { border-right: 0; }
  .sys__tab:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
.sys__stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 30px; padding: 34px clamp(20px, 4vw, 44px) 40px; align-items: center; }
@media (max-width: 860px) { .sys__stage { grid-template-columns: 1fr; gap: 20px; } }
.sys__view { display: none; }
.sys__view.is-on { display: contents; }
html.motion .sys__view.is-on .sys__copy { animation: sys-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
html.motion .sys__view.is-on .sys__art { animation: sys-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) 0.06s both; }
@keyframes sys-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.sys__copy h3 { font-size: clamp(20px, 2.6vw, 26px); font-weight: 900; margin: 0 0 10px; }
.sys__copy p { color: var(--soft); font-size: 15px; margin: 0; }
.sys__copy .sys__k {
  display: inline-block; margin-bottom: 12px;
  font-family: var(--font-latin); font-weight: 700; font-size: 11.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--cyan-ink);
}
/* vignette canvas — small CSS-art mock UI per step */
.sys__art {
  min-height: 230px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--bg-2); padding: 18px; position: relative; overflow: hidden;
}
.v-row { display: flex; gap: 10px; align-items: center; }
/* 1 — style picker */
.v-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.v-style {
  height: 110px; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--line-2);
  position: relative; padding: 10px; overflow: hidden;
}
.v-style i { display: block; border-radius: 4px; background: #EAF0F9; height: 8px; margin-bottom: 6px; }
.v-style i:first-child { height: 34px; margin-bottom: 8px; }
.v-style--b i:first-child { background: linear-gradient(120deg, rgba(45, 226, 255, 0.4), rgba(124, 92, 255, 0.4)); }
.v-style--c i:first-child { border-radius: 50%; width: 34px; }
.v-style.is-pick { border-color: var(--cyan-ink); box-shadow: 0 0 0 2px rgba(10, 125, 150, 0.25), var(--shadow-soft); }
.v-style.is-pick::after {
  content: "✓"; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--grad); color: #04121A;
  font-size: 12px; font-weight: 900; display: grid; place-items: center;
}
.v-cap { margin: 12px 0 0; font-size: 12.5px; color: var(--faint); text-align: center; }
/* 2 — brief form + upload */
.v-form { display: grid; gap: 10px; max-width: 340px; margin: 0 auto; }
.v-field { height: 34px; border-radius: 9px; background: #FFFFFF; border: 1px solid var(--line-2); position: relative; }
.v-field::before { content: ""; position: absolute; left: 10px; top: 12px; height: 8px; width: 42%; border-radius: 4px; background: #EAF0F9; }
.v-upload {
  border: 1.5px dashed var(--cyan-ink); border-radius: 11px; background: rgba(45, 226, 255, 0.06);
  padding: 12px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--cyan-ink);
}
.v-upload small { display: block; font-weight: 500; color: var(--faint); }
/* 3 — browser with v1/v2/v3 badges */
.v-build { max-width: 360px; margin: 0 auto; border-radius: 12px; background: #FFFFFF; border: 1px solid var(--line-2); overflow: hidden; box-shadow: var(--shadow-soft); }
.v-build__bar { display: flex; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.v-build__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.v-build__body { padding: 12px; display: grid; gap: 8px; }
.v-build__body .sk--hero { height: 44px; }
.v-vers { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.v-ver {
  font-family: var(--font-latin); font-weight: 700; font-size: 12px;
  border-radius: 999px; padding: 4px 14px; border: 1px solid var(--line-2);
  color: var(--faint); background: #FFFFFF;
}
.v-ver.is-hot { background: var(--grad); border-color: transparent; color: #04121A; }
/* 4 — ticket thread */
.v-ticket { display: grid; gap: 9px; max-width: 340px; margin: 0 auto; }
.v-msg { padding: 9px 13px; border-radius: 12px; font-size: 12.5px; line-height: 1.55; width: fit-content; max-width: 88%; }
.v-msg--me { background: #FFFFFF; border: 1px solid var(--line-2); border-bottom-left-radius: 4px; }
.v-msg--us { justify-self: end; background: linear-gradient(120deg, rgba(45, 226, 255, 0.18), rgba(124, 92, 255, 0.2)); border: 1px solid rgba(91, 61, 240, 0.25); border-bottom-right-radius: 4px; }
.v-sla {
  justify-self: center; font-family: var(--font-latin); font-weight: 700; font-size: 11.5px;
  color: var(--ok); background: rgba(11, 122, 82, 0.08); border: 1px solid rgba(11, 122, 82, 0.3);
  border-radius: 999px; padding: 3px 12px;
}
/* 5 — satisfied check */
.v-okwrap { display: grid; place-items: center; gap: 12px; min-height: 190px; }
.v-okmark {
  width: 74px; height: 74px; border-radius: 50%; background: var(--grad);
  display: grid; place-items: center; color: #04121A; font-size: 34px; font-weight: 900;
  box-shadow: 0 18px 44px -16px rgba(124, 92, 255, 0.6);
}
.v-okwrap b { font-size: 16px; }
.v-okwrap span { font-size: 13px; color: var(--soft); }
/* 6 — live toggle + hosting meter */
.v-live { display: grid; gap: 14px; max-width: 320px; margin: 0 auto; justify-items: center; }
.v-toggle {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px;
  background: #FFFFFF; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 18px;
}
.v-toggle i {
  width: 12px; height: 12px; border-radius: 50%; background: #18C37E;
  box-shadow: 0 0 0 4px rgba(24, 195, 126, 0.2);
}
html.motion .v-toggle i { animation: v-pulse 1.8s ease-in-out infinite; }
@keyframes v-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(24, 195, 126, 0.25); }
  50% { box-shadow: 0 0 0 7px rgba(24, 195, 126, 0.08); }
}
.v-meter { width: 100%; }
.v-meter b { display: block; font-size: 12.5px; color: var(--soft); font-weight: 500; margin-bottom: 6px; text-align: center; }
.v-meter i { display: block; height: 8px; border-radius: 99px; background: #EAF0F9; position: relative; overflow: hidden; }
.v-meter i::after { content: ""; position: absolute; inset: 0 65% 0 0; border-radius: 99px; background: var(--grad); }

/* ============================================================
   Order wizard — light console card
   ============================================================ */
.wz {
  position: relative; z-index: 1;
  background: #FFFFFF; border: 1px solid var(--line-2); border-radius: 24px;
  box-shadow: 0 40px 90px -42px rgba(22, 34, 61, 0.35);
  overflow: hidden;
}
.wz::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--grad); opacity: 0.9;
}
.wz__rail {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  list-style: none; margin: 0; padding: 0;
}
.req { color: var(--cyan-ink); }
.wz__railstep {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 16px 8px; font-size: 13.5px; font-weight: 700; color: var(--faint);
  border-right: 1px solid var(--line); background: transparent;
}
.wz__railstep:last-child { border-right: 0; }
.wz__railstep b {
  font-family: var(--font-latin); font-weight: 700; font-size: 12px;
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--line-2); color: var(--faint);
}
.wz__railstep.is-now { color: var(--ink); }
.wz__railstep.is-now b { border-color: transparent; background: var(--grad); color: #04121A; }
.wz__railstep.is-done { color: var(--cyan-ink); }
.wz__railstep.is-done b { border-color: var(--cyan-ink); color: var(--cyan-ink); }
@media (max-width: 700px) {
  .wz__railstep span { display: none; }
  .wz__railstep { padding: 13px 4px; }
}

.wz__viewport { perspective: 1400px; }
.wz__step { display: none; padding: 36px clamp(20px, 4vw, 46px) 42px; }
.wz__step.is-active { display: block; }
html.motion .wz__step.is-active { animation: wz-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes wz-in {
  from { opacity: 0; transform: rotateX(7deg) translateY(26px) translateZ(-60px); }
  to { opacity: 1; transform: none; }
}
.wz__steptitle { font-size: clamp(20px, 2.6vw, 26px); font-weight: 900; margin: 0 0 6px; }
.wz__stepsub { color: var(--soft); font-size: 14.5px; margin: 0 0 26px; }

/* footer bar of the wizard */
.wz__foot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding: 18px clamp(20px, 4vw, 46px);
  background: var(--bg-2);
}
.wz__total { margin-right: auto; }
.wz__total small { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-family: var(--font-latin); font-weight: 700; }
.wz__total strong {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 30px);
  background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wz__total .wz__hostnote { display: block; font-size: 12px; color: var(--soft); }

/* step 1 — archetype cards with CSS-art thumbnails */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .types { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .types { grid-template-columns: 1fr; } }
.type {
  position: relative; text-align: left; cursor: pointer; padding: 0;
  background: #FFFFFF; border: 1px solid var(--line-2); border-radius: 16px;
  overflow: hidden; color: var(--ink); font: inherit;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.type:hover { border-color: var(--cyan-ink); box-shadow: var(--shadow-soft); }
.type.is-on { border-color: var(--cyan-ink); box-shadow: 0 0 0 1px var(--cyan-ink), 0 18px 50px -22px rgba(10, 125, 150, 0.4); }
.type.is-on::after {
  content: "✓"; position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #04121A;
  font-weight: 900; font-size: 13px; display: grid; place-items: center;
}
.type__thumb {
  display: block; height: 116px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 12px 14px 0;
}
.type__thumb .tb {
  display: block; height: 100%; border-radius: 8px 8px 0 0; border: 1px solid var(--line-2); border-bottom: 0;
  background: #FFFFFF; padding: 8px 10px; position: relative; overflow: hidden;
}
.type__thumb .tb::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 9px;
  background: var(--bg-2);
}
.type__meta { display: block; padding: 14px 16px 16px; }
.type__meta b { display: block; font-size: 16px; font-weight: 900; }
.type__meta span { display: block; font-size: 13px; color: var(--soft); margin-top: 3px; }
/* per-archetype CSS art */
.ta { position: absolute; }
/* 餐廳 — plate + menu lines */
.tb--rest .ta--plate { width: 46px; height: 46px; border-radius: 50%; left: 14px; top: 22px; border: 2px solid rgba(10, 125, 150, 0.7); background: radial-gradient(circle at 35% 35%, rgba(45, 226, 255, 0.35), rgba(45, 226, 255, 0.06)); }
.tb--rest .ta--l1, .tb--rest .ta--l2, .tb--rest .ta--l3 { height: 7px; border-radius: 4px; background: #E4EAF3; left: 74px; }
.tb--rest .ta--l1 { width: 44%; top: 26px; }
.tb--rest .ta--l2 { width: 34%; top: 42px; }
.tb--rest .ta--l3 { width: 40%; top: 58px; background: rgba(124, 92, 255, 0.45); }
/* 電商 — product grid + price tag */
.tb--shop .ta--g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; left: 12px; right: 12px; top: 20px; }
.tb--shop .ta--g span { height: 26px; border-radius: 5px; background: #EAF0F9; }
.tb--shop .ta--g span:nth-child(2) { background: rgba(45, 226, 255, 0.4); }
.tb--shop .ta--g span:nth-child(6) { background: rgba(124, 92, 255, 0.4); }
.tb--shop .ta--tag { right: 14px; bottom: 8px; padding: 2px 10px; border-radius: 999px; background: var(--grad); color: #04121A; font-family: var(--font-latin); font-weight: 700; font-size: 10px; }
/* 預約 — calendar */
.tb--book .ta--cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; left: 14px; right: 14px; top: 22px; }
.tb--book .ta--cal span { height: 14px; border-radius: 3px; background: #EAF0F9; }
.tb--book .ta--cal span:nth-child(7) { background: rgba(45, 226, 255, 0.75); }
.tb--book .ta--cal span:nth-child(13) { background: rgba(124, 92, 255, 0.6); }
/* 作品集 — big frame + caption */
.tb--folio .ta--art { left: 14px; right: 40%; top: 20px; bottom: 10px; border-radius: 6px; background: linear-gradient(135deg, rgba(45, 226, 255, 0.45), rgba(124, 92, 255, 0.5)); }
.tb--folio .ta--c1, .tb--folio .ta--c2 { height: 7px; border-radius: 4px; background: #E4EAF3; right: 14px; left: 66%; }
.tb--folio .ta--c1 { top: 30px; }
.tb--folio .ta--c2 { top: 46px; width: 18%; left: 66%; right: auto; }
/* 公司形象 — hero band + columns */
.tb--corp .ta--band { left: 14px; right: 14px; top: 18px; height: 26px; border-radius: 5px; background: linear-gradient(120deg, rgba(45, 226, 255, 0.35), rgba(124, 92, 255, 0.35)); }
.tb--corp .ta--col { width: 26%; height: 24px; border-radius: 5px; background: #EAF0F9; top: 54px; }
.tb--corp .ta--col:nth-child(2) { left: 14px; }
.tb--corp .ta--col:nth-child(3) { left: 38%; }
.tb--corp .ta--col:nth-child(4) { right: 14px; }
/* 活動頁 — starburst + countdown */
.tb--event .ta--star { width: 40px; height: 40px; left: 18px; top: 24px; background: var(--grad); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.tb--event .ta--t { display: flex; gap: 5px; left: 72px; top: 30px; }
.tb--event .ta--t span { width: 22px; height: 26px; border-radius: 4px; background: #EAF0F9; border: 1px solid var(--line-2); }
.tb--event .ta--t span:nth-child(3) { background: rgba(45, 226, 255, 0.45); }

/* archetype hint */
.wz__hint {
  margin: 18px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 14px;
  color: var(--soft); background: rgba(45, 226, 255, 0.08); border: 1px solid rgba(10, 125, 150, 0.3);
}
.wz__hint b { color: var(--cyan-ink); font-weight: 700; }

/* step 2 — configurator */
.conf { display: grid; gap: 12px; }
.addon {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 16px 18px; border-radius: 14px;
  background: #FFFFFF; border: 1px solid var(--line-2);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.addon.is-on { border-color: var(--cyan-ink); box-shadow: 0 10px 36px -22px rgba(10, 125, 150, 0.45); }
.addon--locked { border-style: dashed; background: var(--bg-2); }
.addon__check { position: relative; width: 24px; height: 24px; }
.addon__check input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer;
}
.addon__check i {
  position: absolute; inset: 0; border-radius: 7px; border: 1.5px solid var(--line-2);
  background: #FFFFFF;
  display: grid; place-items: center; color: transparent; font-style: normal;
  font-size: 13px; font-weight: 900; transition: background 0.15s, border-color 0.15s, color 0.15s;
  pointer-events: none;
}
.addon__check input:checked + i { background: var(--grad); border-color: transparent; color: #04121A; }
.addon__check input:focus-visible + i { outline: 2px solid var(--cyan-ink); outline-offset: 2px; }
.addon__check input:disabled + i { background: var(--grad); border-color: transparent; color: #04121A; opacity: 0.7; }
.addon__info b { display: block; font-size: 15.5px; font-weight: 700; }
.addon__info b small { font-family: var(--font-latin); color: var(--faint); font-weight: 500; font-size: 12px; margin-left: 6px; }
.addon__info span { display: block; font-size: 13px; color: var(--soft); margin-top: 2px; }
.addon__price {
  font-family: var(--font-latin); font-weight: 700; font-size: 16px; white-space: nowrap;
  color: var(--ink); text-align: right;
}
.addon__price small { display: block; font-weight: 500; font-size: 11.5px; color: var(--faint); }
/* stepper */
.addon--stepper { grid-template-columns: 1fr auto auto; }
.stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #FFFFFF; }
.stepper button {
  width: 38px; height: 38px; border: 0; cursor: pointer; font-size: 18px; font-weight: 700;
  background: var(--bg-2); color: var(--ink);
  transition: background 0.15s;
}
.stepper button:hover { background: rgba(45, 226, 255, 0.25); }
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper output {
  min-width: 86px; text-align: center; font-family: var(--font-latin); font-weight: 700;
  font-size: 14px; padding: 0 6px;
}
/* hosting block */
.hosting {
  margin-top: 18px; padding: 18px; border-radius: 14px;
  border: 1px solid rgba(91, 61, 240, 0.35);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.08), rgba(124, 92, 255, 0.02));
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
}
.hosting .badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em;
  color: #5C3D00; background: #FFE3A9; border-radius: 999px; padding: 2px 10px; margin-left: 8px;
  vertical-align: 2px;
}

/* step 3 — requirements form */
.frm { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.frm .full { grid-column: 1 / -1; }
.frm label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.frm label small { color: var(--faint); font-weight: 500; }
.frm label .req { color: var(--cyan-ink); }
.frm input, .frm textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px; font: inherit; font-size: 15px;
  color: var(--ink); background: #FBFCFE; border: 1px solid var(--line-2);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.frm input::placeholder, .frm textarea::placeholder { color: var(--faint); }
.frm input:focus, .frm textarea:focus { outline: none; border-color: var(--cyan-ink); box-shadow: 0 0 0 3px rgba(45, 226, 255, 0.2); }
.frm input.is-bad { border-color: #D6336C; }
.frm textarea { min-height: 110px; resize: vertical; }
.frm__err { grid-column: 1 / -1; color: #C2255C; font-size: 13.5px; margin: 0; min-height: 1em; }
@media (max-width: 640px) { .frm { grid-template-columns: 1fr; } }

/* step 3 — 上載原有網站／參考檔案 */
.up__label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.up__label small { color: var(--faint); font-weight: 500; }
.up__drop {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 18px 16px;
  background: #FBFCFE; cursor: pointer; text-align: center;
  font-size: 14px; font-weight: 700; color: var(--cyan-ink);
  transition: border-color 0.18s, background 0.18s;
}
.up__drop:hover { border-color: var(--cyan-ink); background: rgba(45, 226, 255, 0.06); }
.up__drop svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.up__drop input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.up__drop:has(input:focus-visible) { outline: 2px solid var(--cyan-ink); outline-offset: 3px; }
.up__list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.up__list li {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-2); border-radius: 10px; background: #FFFFFF;
  padding: 8px 12px; font-size: 13.5px;
}
.up__list li b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up__list li small { color: var(--faint); flex: none; font-family: var(--font-latin); }
.up__rm {
  margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 8px;
  border: 0; cursor: pointer; background: var(--bg-2); color: var(--soft);
  font-size: 15px; line-height: 1; display: grid; place-items: center;
}
.up__rm:hover { background: #FBE3EC; color: #C2255C; }
.up__err { color: #C2255C; font-size: 13.5px; margin: 8px 0 0; }

/* step 3 — style / feature checkbox grids */
.frm__grouplabel { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; color: var(--ink); }
.frm__grouplabel small { color: var(--faint); font-weight: 500; }
.cks { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 9px; }
.ck {
  position: relative; display: flex; align-items: center; gap: 9px; margin: 0;
  border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 12px;
  background: #FBFCFE; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.ck:hover { border-color: var(--cyan-ink); }
.ck input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; overflow: hidden; }
.ck i {
  flex: none; width: 20px; height: 20px; border-radius: 7px;
  border: 1.5px solid var(--line-2); background: #FFFFFF; color: transparent;
  display: grid; place-items: center; font-size: 12px; font-style: normal;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ck input:checked + i { background: var(--grad); border-color: transparent; color: #04121A; }
.ck input:focus-visible + i { outline: 2px solid var(--cyan-ink); outline-offset: 2px; }
.ck:has(input:checked) { border-color: var(--cyan-ink); background: rgba(45, 226, 255, 0.08); }
.ck-other { margin-top: 10px; }

/* step 3 — 參考網站 visual picker (live portfolio thumbnails) */
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .refs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .refs { grid-template-columns: 1fr; } }
.refcard {
  position: relative; padding: 0; text-align: left; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 13px; overflow: hidden;
  background: #FFFFFF; font: inherit; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.refcard:hover { border-color: var(--cyan-ink); box-shadow: var(--shadow-soft); }
.refcard:focus-visible { outline: 2px solid var(--cyan-ink); outline-offset: 2px; }
.refcard.is-on { border-color: var(--cyan-ink); box-shadow: 0 0 0 1px var(--cyan-ink), 0 16px 44px -22px rgba(10, 125, 150, 0.45); }
.refcard__shot { display: block; aspect-ratio: 1200 / 782; overflow: hidden; background: var(--bg-2); }
.refcard__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.refcard__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; }
.refcard__name b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.refcard__name small { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.refcard__style {
  flex: none; font-size: 11.5px; font-weight: 700; color: var(--cyan-ink);
  border: 1px solid rgba(10, 125, 150, 0.35); border-radius: 999px; padding: 3px 9px;
  background: rgba(45, 226, 255, 0.08);
}
.refcard__tick {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--grad); color: #04121A; font-size: 14px; font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(10, 125, 150, 0.6);
  opacity: 0; transform: scale(0.5); transition: opacity 0.15s, transform 0.15s;
}
.refcard.is-on .refcard__tick { opacity: 1; transform: scale(1); }
.refs__hint { color: var(--warn); font-size: 13px; margin: 8px 0 0; }

/* step 4 — summary */
.sum { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; }
@media (max-width: 760px) { .sum { grid-template-columns: 1fr; } }
.sum__list { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.sum__list li {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px;
  background: #FFFFFF;
}
.sum__list li:last-child { border-bottom: 0; }
.sum__list li span { color: var(--soft); }
.sum__list li b { font-family: var(--font-latin); font-weight: 700; white-space: nowrap; }
.sum__list li.sum__total { background: rgba(45, 226, 255, 0.1); }
.sum__list li.sum__total b { font-size: 19px; background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sum__list li.sum__defer span, .sum__list li.sum__defer b { color: var(--warn); font-size: 13px; }
.sum__side h4 { font-size: 15px; font-weight: 900; margin: 0 0 8px; }
.sum__side p { font-size: 13.5px; color: var(--soft); margin: 0 0 14px; white-space: pre-line; }
.sum__acts { display: grid; gap: 10px; }
.sum__acts .btn { width: 100%; }
.sum__paynote { font-size: 12.5px; color: var(--faint); margin: 2px 0 0; text-align: center; }
.wz__fallback {
  margin-top: 12px; padding: 12px 14px; border-radius: 11px; font-size: 13.5px;
  background: #FFF7E8; border: 1px solid #F0D7A0; color: var(--warn);
}
.wz__sent {
  margin-top: 12px; padding: 12px 14px; border-radius: 11px; font-size: 13.5px;
  background: #E9FBF3; border: 1px solid #A8E6C9; color: var(--ok);
}

/* step 4 — gentle add-on reminders (informational, never blocking) */
.sum__hints { display: grid; gap: 8px; margin-top: 14px; }
.sum__hints p {
  margin: 0; padding: 11px 14px; border-radius: 11px; font-size: 13.5px;
  background: #FFF7E8; border: 1px solid #F0D7A0; color: var(--warn);
}

/* paid / cancelled banners */
.banner {
  display: flex; gap: 12px; align-items: flex-start; margin: 0 0 26px;
  padding: 16px 18px; border-radius: 14px; font-size: 15px;
}
.banner--ok { background: #E9FBF3; border: 1px solid #A8E6C9; color: var(--ok); }
.banner--warn { background: #FFF7E8; border: 1px solid #F0D7A0; color: var(--warn); }
.banner b { display: block; }
.banner span { color: var(--soft); font-size: 14px; }

/* ============================================================
   Pricing
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.pcard {
  position: relative; border-radius: 18px; padding: 26px;
  background: #FFFFFF; border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 6px;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.pcard:hover { border-color: var(--line-2); box-shadow: 0 26px 60px -26px rgba(42, 55, 100, 0.3); }
.pcard__name { font-size: 16px; font-weight: 900; }
.pcard__name small { display: block; font-family: var(--font-latin); font-weight: 500; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }
.pcard__price { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; margin: 8px 0 2px; }
.pcard__price small { font-family: var(--font-latin); font-size: 13px; font-weight: 500; color: var(--soft); }
.pcard__desc { color: var(--soft); font-size: 13.5px; margin: 0; }
.pcard--hero {
  grid-column: span 5; grid-row: span 2;
  border: 1px solid transparent;
  background:
    linear-gradient(#FFFFFF, #FFFFFF) padding-box,
    var(--grad) border-box;
  justify-content: flex-start; gap: 10px; padding: 34px 30px;
}
.pcard--hero .pcard__price { font-size: clamp(44px, 6vw, 64px); background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pcard--hero ul { margin: 6px 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.pcard--hero ul li { font-size: 14.5px; color: var(--soft); padding-left: 20px; position: relative; }
.pcard--hero ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--grad); }
.pcard__note {
  margin-top: auto; padding: 12px 14px; border-radius: 11px; font-size: 13px;
  background: rgba(45, 226, 255, 0.08); border: 1px dashed rgba(10, 125, 150, 0.4); color: var(--ink);
}
.pcard--addon { grid-column: span 7; }
.pcard--a3 { grid-column: span 3; }
.pcard--a4 { grid-column: span 4; }
.pcard--host { grid-column: span 12; flex-direction: row; align-items: center; gap: 26px; border-color: rgba(91, 61, 240, 0.35); background: linear-gradient(110deg, rgba(124, 92, 255, 0.08), #FFFFFF 55%); }
.pcard--host .pcard__price { margin: 0; }
.pcard--host .pcard__desc { max-width: 520px; }
.pcard--host .pbadge { margin-left: auto; }
.pbadge {
  flex: none; display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em;
  color: #5C3D00; background: #FFE3A9; border-radius: 999px; padding: 6px 16px;
}
@media (max-width: 920px) {
  .pcard--hero, .pcard--addon, .pcard--a3, .pcard--a4 { grid-column: span 12; }
  .pcard--host { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pcard--host .pbadge { margin-left: 0; }
}

/* ============================================================
   Guarantees strip
   ============================================================ */
.guar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.guar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.guar__item { padding: 34px 26px; border-right: 1px solid var(--line); }
.guar__item:last-child { border-right: 0; }
.guar__item b {
  display: block; font-family: var(--font-display); font-weight: 700; font-size: 20px;
  background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 6px;
}
.guar__item span { font-size: 13.5px; color: var(--soft); }
@media (max-width: 880px) {
  .guar__grid { grid-template-columns: 1fr 1fr; }
  .guar__item:nth-child(2) { border-right: 0; }
  .guar__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .guar__grid { grid-template-columns: 1fr; }
  .guar__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .guar__item:last-child { border-bottom: 0; }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq__wrap { max-width: 820px; }
.faq details {
  border: 1px solid var(--line-2); border-radius: 14px; margin-bottom: 12px;
  background: #FFFFFF; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
}
.faq details[open] { border-color: var(--cyan-ink); box-shadow: var(--shadow-soft); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; font-size: 16px; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font-family: var(--font-latin); font-size: 22px; font-weight: 500;
  color: var(--cyan-ink); transition: transform 0.25s; flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--soft); font-size: 15px; }

/* ============================================================
   Final CTA — the ONE dark band — + light footer
   ============================================================ */
.cta { position: relative; text-align: left; overflow: hidden; background: var(--dark); color: #EAF0FF; }
.cta__ghost {
  position: absolute; bottom: -18px; right: -2vw; margin: 0; z-index: 0;
  font-family: var(--font-display); font-weight: 800; line-height: 0.8;
  font-size: clamp(90px, 15vw, 230px); color: transparent;
  -webkit-text-stroke: 1px rgba(124, 92, 255, 0.35); user-select: none; pointer-events: none;
}
.cta h2 { font-size: clamp(30px, 5vw, 54px); font-weight: 900; max-width: 700px; margin-bottom: 18px; color: #FFFFFF; }
.cta h2 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta p { color: #9FACC9; max-width: 540px; margin: 0 0 30px; }
.cta__acts { display: flex; flex-wrap: wrap; gap: 14px; position: relative; z-index: 1; }
.cta .btn--ghost { background: transparent; color: #EAF0FF; border-color: rgba(255, 255, 255, 0.3); }
.cta .btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 46px 0 0; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 38px; }
.footer h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; font-family: var(--font-latin); }
.footer a { display: block; color: var(--soft); text-decoration: none; font-size: 14.5px; padding: 4px 0; }
.footer a:hover { color: var(--cyan-ink); }
.footer__about p { color: var(--soft); font-size: 14px; max-width: 380px; margin: 12px 0 0; }
.footer__bar { border-top: 1px solid var(--line); padding: 18px 0; font-size: 13px; color: var(--faint); }
@media (max-width: 720px) { .footer__grid { grid-template-columns: 1fr; gap: 18px; } }

/* ============================================================
   Chat widget — light glass (wb-chat)
   ============================================================ */
.wb-chat { position: fixed; right: 18px; bottom: 18px; z-index: 90; font-family: var(--font-body); }
.wb-chat__fab {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 12px 18px;
  background: rgba(255, 255, 255, 0.95); color: var(--ink); font-weight: 700; font-size: 14px;
  box-shadow: 0 18px 50px -18px rgba(42, 55, 100, 0.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.wb-chat__fab:hover { transform: translateY(-2px); border-color: var(--cyan-ink); box-shadow: 0 22px 60px -18px rgba(10, 125, 150, 0.5); }
.wb-chat__fab svg { width: 19px; height: 19px; fill: var(--cyan-ink); flex: none; }
.wb-chat__panel[hidden] { display: none; }
.wb-chat__panel {
  position: absolute; right: 0; bottom: 64px;
  width: min(380px, calc(100vw - 36px)); height: min(560px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(255, 255, 255, 0.98); border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: 0 50px 110px -40px rgba(22, 34, 61, 0.5);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.wb-chat__head {
  display: flex; align-items: center; gap: 12px; padding: 15px 18px;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.wb-chat__head::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px rgba(45, 226, 255, 0.9); flex: none; }
.wb-chat__head-text { display: grid; line-height: 1.35; }
.wb-chat__head-text strong { font-size: 15px; }
.wb-chat__sub { font-size: 12px; color: var(--faint); }
.wb-chat__head-acts { margin-left: auto; display: flex; gap: 4px; }
.wb-chat__icon {
  width: 32px; height: 32px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--soft); display: grid; place-items: center;
}
.wb-chat__icon:hover { background: var(--glass-2); color: var(--ink); }
.wb-chat__icon svg { width: 16px; height: 16px; fill: currentColor; }
.wb-chat__list { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 10px; align-content: start; }
.wb-chat__msg {
  max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.65;
  width: fit-content;
}
.wb-chat__msg--assistant { background: var(--bg-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.wb-chat__msg--user { justify-self: end; background: linear-gradient(120deg, rgba(45, 226, 255, 0.18), rgba(124, 92, 255, 0.18)); border: 1px solid rgba(91, 61, 240, 0.25); border-bottom-right-radius: 4px; }
.wb-chat__typing { color: var(--faint); font-style: italic; }
.wb-chat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wb-chat__chip {
  border: 1px solid rgba(10, 125, 150, 0.45); background: #FFFFFF; color: var(--cyan-ink);
  font-size: 13px; padding: 7px 13px; border-radius: 999px; cursor: pointer; font-family: inherit;
}
.wb-chat__chip:hover { background: rgba(45, 226, 255, 0.12); }
.wb-chat__wa {
  display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; color: #FFFFFF;
  background: #128C4B; border-radius: 999px; padding: 6px 14px; text-decoration: none;
}
.wb-chat__lead { padding: 0 16px 10px; }
.wb-chat__leadbtn {
  width: 100%; border: 1px solid rgba(91, 61, 240, 0.4); border-radius: 11px; cursor: pointer;
  background: rgba(124, 92, 255, 0.08); color: var(--ink); font-weight: 700; font-size: 13.5px;
  padding: 10px; font-family: inherit;
}
.wb-chat__leadbtn:hover { background: rgba(124, 92, 255, 0.18); }
.wb-chat__form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.wb-chat__input {
  flex: 1; min-width: 0; padding: 11px 14px; border-radius: 11px; font: inherit; font-size: 14px;
  background: #FBFCFE; border: 1px solid var(--line-2); color: var(--ink);
}
.wb-chat__input:focus { outline: none; border-color: var(--cyan-ink); }
.wb-chat__send {
  border: 0; border-radius: 11px; padding: 0 18px; cursor: pointer; font: inherit;
  font-weight: 700; font-size: 14px; background: var(--grad); color: #04121A;
}
.wb-chat__send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============================================================
   Motion — reveals (gated behind html.motion in webieai.js)
   ============================================================ */
html.motion [data-sr] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
html.motion [data-sr].is-in { opacity: 1; transform: none; }
html.motion [data-sr-d="1"] { transition-delay: 0.08s; }
html.motion [data-sr-d="2"] { transition-delay: 0.16s; }
html.motion [data-sr-d="3"] { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .stage__ring, .v-toggle i { animation: none !important; }
  .wz__step.is-active, .sys__view.is-on .sys__copy, .sys__view.is-on .sys__art { animation: none !important; }
  * { scroll-behavior: auto !important; }
}
