/* Product site — same design tokens as the 合順數位 company site (workscenetw.vercel.app). */
:root {
  --bg: #f6f7f4;
  --bg-alt: #eceeea;
  --paper: #ffffff;
  --ink: #17211f;
  --ink-soft: #3d4a47;
  --muted: #5f6b68;
  --line: #d5dbd7;
  --teal: #0b6b66;
  --teal-dark: #08504c;
  --teal-tint: #ddedea;
  --mark: #f7dfa9;
  --amber: #8a4f0c;
  --night: #10201e;
  --night-line: #2a3b38;
  --teal-light: #7fd1c3;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Heiti TC", system-ui, sans-serif;
  --font-display: "Chiron GoRound TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; color: var(--ink-soft); }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 247, 244, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--teal); display: grid; place-items: center; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.brand-sub { display: block; font-size: 0.72rem; color: var(--muted); font-family: var(--font-body); font-weight: 500; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--ink-soft); padding: 6px 12px; border-radius: 8px; font-size: 0.95rem; }
.site-nav a:hover { background: var(--teal-tint); color: var(--teal-dark); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 12px 26px; border-radius: 999px; text-decoration: none;
  border: 2px solid var(--teal); transition: background 0.15s, color 0.15s;
}
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-line { background: transparent; color: var(--teal); }
.btn-line:hover { background: var(--teal-tint); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
.band { padding: 88px 0; }
.band-alt { background: var(--bg-alt); }
.band-night { background: var(--night); color: #e8efed; }
.band-night p { color: #b9c8c4; }
.band-night h2, .band-night h3 { color: #fff; }
.eyebrow { font-size: 0.85rem; font-weight: 700; color: var(--teal); letter-spacing: 0.08em; margin-bottom: 10px; }
.band-night .eyebrow { color: var(--teal-light); }
.lead { font-size: 1.1rem; max-width: 40em; margin-top: 16px; }
.section-head { margin-bottom: 40px; }

/* Hero */
.hero { padding: 96px 0 80px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 .accent { color: var(--teal); }
.hero .lead { margin: 20px 0 32px; }
.hero-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: 24px; box-shadow: 0 18px 40px -24px rgba(16, 32, 30, 0.35);
}
.hero-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 0.95rem; }
.hero-card .row:last-of-type { border-bottom: 0; }
.hero-card .k { color: var(--muted); }
.hero-card .v { font-variant-numeric: tabular-nums; font-weight: 500; }
.hero-card .total { margin-top: 12px; background: var(--teal-tint); border-radius: 12px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: baseline; }
.hero-card .total strong { font-family: var(--font-display); font-size: 1.6rem; color: var(--teal-dark); }
.hero-card .card-title { font-family: var(--font-display); font-weight: 700; margin-bottom: 6px; }
.hero-card .note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; }

/* Feature grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; margin-bottom: 12px; }
.tag-live { background: var(--teal-tint); color: var(--teal-dark); }
.tag-soon { background: var(--mark); color: var(--amber); }
.band-night .card { background: #152a27; border-color: var(--night-line); }

/* Integration list */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before {
  content: counter(step); width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  background: var(--teal); color: #fff;
}
.band-night .steps li::before { background: var(--teal-light); color: var(--night); }
.steps strong { display: block; font-family: var(--font-display); }

/* FAQ */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 700; font-family: var(--font-display); }
.faq details p { margin-top: 10px; }

/* Contact */
.contact { text-align: center; }
.contact .btn-row { justify-content: center; margin-top: 28px; }
.contact .meta { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0; font-size: 0.9rem; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Legal pages */
.legal { padding: 64px 0 88px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-alt); }

@media (max-width: 860px) {
  .hero .wrap, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 56px; }
  .band { padding: 64px 0; }
}
