/*
  秒站單頁版型
  客戶換色只改 :root 的 --brand / --brand-dark / --brand-soft。
  --brand 請用深色：頁首標記是白字壓在這個顏色上，連結也用它當文字色。
  LINE 按鈕（--cta）不要改。全站主行動固定是 LINE。
*/

:root {
  --brand: #0f5c45;
  --brand-dark: #0a3d2e;
  --brand-soft: #e6f3ed;
  --ink: #1b1914;
  --ink-soft: #3a362f;
  --muted: #5c574f;
  --paper: #f4f1ea;
  --paper-2: #e8e2d6;
  --white: #fffcf7;
  --line: #ddd6c8;
  --cta: #06c755;
  --cta-ink: #062015;
  --cta-hover: #05b34c;
  --no: #7a3b32;
  --no-soft: #f6e8e4;
  --shadow: 0 12px 32px rgba(28, 25, 21, 0.06);
  --header-h: 68px;
  --radius: 12px;
  --wrap: 1080px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "WenQuanYi Micro Hei", "Droid Sans Fallback", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.35;
  font-weight: 700;
}

a {
  color: var(--brand-dark);
}

::selection {
  background: #cfe6db;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding: 56px 0;
}

.section-head {
  margin-bottom: 24px;
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.lead {
  color: var(--ink-soft);
  max-width: 38rem;
}

.lead + .lead,
.assume-line {
  margin-top: 12px;
}

.kicker {
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 10px;
}

.assume-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: 1px;
}

.assume-line {
  color: var(--ink);
  max-width: 38rem;
}

.price-card .assume-line {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.55;
}

/* Buttons — the only action is LINE */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.btn .ico {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}

.btn-line,
.btn-line:visited {
  background: var(--cta);
  color: var(--cta-ink);
}

.btn-line:hover {
  background: var(--cta-hover);
}

.btn-line:active {
  transform: translateY(1px);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  min-height: 56px;
  padding: 14px 22px;
  font-size: 1.0625rem;
}

/* Header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  background: rgba(255, 252, 247, 0.94);
  border-top: 4px solid var(--brand);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.brand,
.brand:visited {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 700;
}

.brand-en {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.nav {
  display: none;
  gap: 2px;
  margin-left: auto;
}

.nav a,
.nav a:visited {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.9375rem;
}

.nav a:hover {
  background: var(--paper-2);
}

.bar .btn {
  margin-left: auto;
  flex: none;
}

/* Hero */

.hero {
  padding: 28px 0 48px;
}

h1 {
  font-size: clamp(1.85rem, 4.5vw, 3.15rem);
  margin-bottom: 14px;
}

.hero-photo {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-grid {
  display: grid;
  gap: 22px;
  align-items: start;
}

.hero-grid > *,
.split > *,
.steps > *,
.scope-grid > *,
.demo-grid > *,
.close-grid > *,
.footer-grid > * {
  min-width: 0;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
}

.card-kicker {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
}

.price {
  margin: 4px 0 8px;
  font-size: clamp(3rem, 8vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.currency {
  font-size: 0.42em;
  letter-spacing: 0;
  margin-right: 0.12em;
}

.card-assume {
  margin-bottom: 4px;
}

.ticks {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ticks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ticks li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 0.55em;
  border-radius: 999px;
  background: var(--brand);
  flex: none;
}

.ticks-compact {
  gap: 8px;
  margin: 14px 0 16px;
}

.ticks-compact li {
  font-size: 0.975rem;
}

.card-note {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
}

.facts {
  list-style: none;
  padding: 0;
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.facts li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.facts strong {
  display: block;
  font-size: 0.975rem;
}

.facts span {
  color: var(--muted);
  font-size: 0.875rem;
}

/* Fit / steps / scope cards */

.band {
  background: var(--white);
}

.split,
.steps,
.scope-grid,
.demo-grid {
  display: grid;
  gap: 14px;
}

.panel,
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 20px;
}

.panel {
  background: var(--paper);
}

.step {
  background: var(--white);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.875rem;
}

.tag-yes {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.tag-no {
  background: var(--no-soft);
  color: #6e3228;
}

.panel-no .ticks li::before {
  background: var(--no);
}

.steps {
  list-style: none;
  padding: 0;
}

.step-no {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.step-sub {
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 8px;
}

.step p:last-child {
  color: var(--ink-soft);
}

/* Pricing */

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.price-table tr {
  display: block;
  margin-bottom: 12px;
  padding: 14px 16px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.price-table tr.is-featured {
  background: var(--brand-soft);
  border-color: #b7d8cb;
}

.price-table th,
.price-table td {
  display: block;
  padding: 0;
  text-align: left;
  font-weight: 400;
}

.price-table th[scope="row"] {
  font-size: 1.125rem;
  font-weight: 700;
}

.price-table td[data-label="價格"] {
  margin: 4px 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.price-table td[data-label="說明"] {
  color: var(--ink-soft);
}

.badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  vertical-align: 2px;
}

.table-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 40rem;
}

/* Demos */

.sim-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 700;
}

.sim-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
}

.preview {
  --demo: var(--brand);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  color: var(--ink);
}

.pv-photo {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}

.pv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 52px;
  padding: 12px 14px;
  background: var(--demo);
  color: #fff;
}

.pv-name {
  font-weight: 700;
}

.pv-body {
  padding: 16px 16px 8px;
}

.pv-kicker {
  margin-bottom: 6px;
  color: var(--demo);
  font-size: 0.875rem;
  font-weight: 700;
}

.pv-title {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.pv-body p {
  color: var(--ink-soft);
}

.pv-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.pv-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.pv-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.pv-cta {
  display: inline-block;
  margin: 12px 16px 16px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  cursor: default;
}

.demo-caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Scope */

.lock {
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #f3efe6;
}

.lock strong {
  font-weight: 700;
}

/* Close + footer */

.close {
  background: var(--ink);
  color: #f6f3ec;
}

.close h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  margin-bottom: 12px;
}

.close p {
  color: #e4ddd0;
  max-width: 38rem;
}

.close p + p {
  margin-top: 10px;
}

.close-grid {
  display: grid;
  gap: 22px;
}

.close-points {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  display: grid;
  gap: 6px;
  color: #f6f3ec;
  font-variant-numeric: tabular-nums;
}

.footer {
  background: var(--ink);
  color: #d9d2c6;
  padding: 8px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9375rem;
}

.footer-brand {
  color: #fff;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-grid {
  display: grid;
  gap: 14px;
  padding-top: 18px;
}

.footer-bottom {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  color: #b7b0a4;
  font-size: 0.875rem;
}

/* Mobile dock */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(28, 25, 21, 0.06);
}

.dock-price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 4.5rem;
}

.dock-price span {
  color: var(--muted);
  font-size: 0.75rem;
}

.dock-price strong {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.dock .btn {
  flex: 1;
}

/* Desktop */

@media (min-width: 720px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 48px));
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding: 48px 0 72px;
  }

  .facts,
  .split,
  .scope-grid,
  .demo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .price-table thead {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
  }

  .price-table {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
  }

  .price-table tr {
    display: table-row;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
  }

  .price-table tr.is-featured {
    background: transparent;
    border: 0;
  }

  .price-table th,
  .price-table td {
    display: table-cell;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
  }

  .price-table thead th {
    background: #efeae1;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 700;
  }

  .price-table tbody tr:last-child th,
  .price-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .price-table tbody th {
    width: 26%;
    font-size: 1.0625rem;
  }

  .price-table td[data-label="價格"] {
    width: 24%;
    margin: 0;
    font-size: 1.125rem;
    white-space: nowrap;
  }

  .price-table tr.is-featured th,
  .price-table tr.is-featured td {
    background: var(--brand-soft);
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .close-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr);
    gap: 32px;
    align-items: start;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.72fr);
    gap: 40px;
    align-items: center;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .section-head {
    margin-bottom: 32px;
  }
}

@media (min-width: 960px) {
  .nav {
    display: flex;
  }

  .bar .btn {
    margin-left: 8px;
  }

  .dock {
    display: none;
  }

  body {
    padding-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-line:active {
    transform: none;
  }
}

@media print {
  .topbar,
  .dock,
  .skip {
    display: none;
  }

  body {
    padding-bottom: 0;
    background: #fff;
  }

  .close,
  .footer {
    background: #fff;
    color: #000;
  }

  .close h2,
  .close p,
  .footer,
  .footer-brand {
    color: #000;
  }
}
