/* 對外門面（landing / pricing / terms / privacy / refund）：純 Razor、不載 Vue。
   與 web-frontend/src/style.css 共用同一套設計語言（色票、圓角、字體），但獨立檔案，避免綁 Vite manifest。 */
:root {
  --bg: #f5f5f7; --card: #ffffff; --fg: #1d1d1f; --muted: #6e6e73;
  --pri: #0071e3; --pri-hover: #0077ed; --pri-weak: #ebf3ff;
  --ok: #248a3d; --danger: #d70015; --line: #d2d2d7; --line-soft: #e8e8ed;
}
* { box-sizing: border-box; }
body.site {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.55; letter-spacing: -0.012em; -webkit-font-smoothing: antialiased;
}
a { color: var(--pri); text-decoration: none; }
a:hover { text-decoration: underline; }
.site-inner { max-width: 980px; margin: 0 auto; padding: 0 20px; }
h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 18px; }
h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 12px; }

/* header */
.site-head { background: rgba(255,255,255,.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 10; }
.site-head .site-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.site-brand { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; color: var(--fg); }
.site-brand:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.site-nav > a { color: var(--fg); }
.site-lang a { color: var(--muted); padding: 3px 9px; border-radius: 980px; font-size: 13px; }
.site-lang a.active { color: var(--pri); background: var(--pri-weak); font-weight: 600; }
.site-login { color: var(--pri) !important; }
.site-cta { background: var(--pri); color: #fff !important; padding: 7px 14px; border-radius: 980px; font-weight: 500; }
.site-cta:hover { background: var(--pri-hover); text-decoration: none; }
@media (max-width: 720px) {
  .site-nav { gap: 8px; font-size: 13px; white-space: nowrap; }
  .site-nav > a:not(.site-cta):not(.site-login), .site-login { display: none; }
  .site-lang { display: inline-flex; gap: 2px; }
  .site-lang a { padding: 3px 7px; font-size: 12px; }
  .site-cta { padding: 6px 11px; font-size: 13px; }
  .site-brand { font-size: 16px; }
}
@media (max-width: 400px) {
  /* 越南語 CTA 較長，極窄螢幕再縮一級；header 本身不許把整頁撐出橫向捲軸 */
  .site-head { overflow-x: clip; }
  .site-lang a { padding: 3px 5px; font-size: 11px; }
  .site-cta { padding: 5px 8px; font-size: 12px; }
  .site-nav { gap: 4px; }
  h1 { font-size: 30px; }
}

/* sections */
.site-main section { padding: 56px 0; }
.site-main section:nth-child(even) { background: var(--card); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.hero { text-align: center; padding: 80px 0 64px !important; }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 26px; }
.hero-cta { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.btn-pri, .btn-ghost { display: inline-block; padding: 12px 22px; border-radius: 12px; font-size: 16px; font-weight: 500; }
.btn-pri { background: var(--pri); color: #fff; }
.btn-pri:hover { background: var(--pri-hover); text-decoration: none; }
.btn-ghost { border: 1px solid var(--line); color: var(--fg); background: var(--card); }
.btn-ghost:hover { border-color: var(--fg); text-decoration: none; }
.sec-sub { color: var(--muted); margin-bottom: 22px; }

.step-list { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-list li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.step-list li::before { content: counter(s); display: inline-flex; width: 28px; height: 28px; border-radius: 50%; background: var(--pri); color: #fff; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.step-list strong { display: block; font-size: 17px; margin-bottom: 6px; }
.step-list span { color: var(--muted); font-size: 14px; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--bg); border: 1px solid var(--line-soft); border-radius: 16px; padding: 20px; }
.feat p { color: var(--muted); font-size: 14px; margin: 0; }
@media (max-width: 720px) { .step-list, .feat-grid { grid-template-columns: 1fr; } }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 16px; text-align: center; position: relative; }
.price-card.best { border-color: var(--pri); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.price-term { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.price-monthly { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.price-monthly span { font-size: 14px; font-weight: 400; color: var(--muted); }
.price-total { font-size: 13px; color: var(--muted); margin-top: 8px; }
.price-off { display: inline-block; margin-left: 6px; background: #e3f9e9; color: var(--ok); padding: 1px 8px; border-radius: 980px; font-weight: 600; font-size: 12px; }
.price-notes { color: var(--muted); font-size: 14px; padding-left: 20px; margin: 0; }
.price-notes li { margin-bottom: 6px; }
@media (max-width: 720px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .price-card { padding: 16px 10px; min-width: 0; } .price-monthly { font-size: 26px; } .price-monthly span { display: block; } .price-off { display: block; margin: 4px auto 0; width: max-content; } }

.about p { color: var(--muted); font-size: 16px; line-height: 1.8; margin: 0 0 14px; max-width: 760px; }
.table-wrap { overflow-x: auto; }
.cmp { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; } /* 窄螢幕在 .table-wrap 內橫向捲動，不要逐字換行 */
.cmp th, .cmp td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.cmp th { color: var(--muted); font-weight: 600; }
.cmp th:last-child, .cmp td:last-child { color: var(--fg); font-weight: 600; background: rgba(0,113,227,.05); }
.cmp td:first-child { color: var(--muted); white-space: nowrap; }
.sec-list { padding-left: 20px; margin: 0; }
.sec-list li { margin-bottom: 8px; }

.faq details { border-bottom: 1px solid var(--line-soft); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.cta-end { text-align: center; }

/* legal */
.legal .site-inner { max-width: 760px; }
.legal { padding: 48px 0 64px; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 19px; margin: 28px 0 10px; }
.legal-date { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.guide p, .guide li { line-height: 1.8; }
.guide .lead { font-size: 17px; color: var(--muted); }
.guide ol li { margin-bottom: 10px; }
.guide .hero-cta { margin: 24px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 14px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); }
.legal-table th { color: var(--muted); font-weight: 600; }
.page h1 { margin-bottom: 8px; }
.page h2 { margin-top: 36px; }

/* footer */
.site-foot { border-top: 1px solid var(--line-soft); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; }
.site-foot-links a { color: var(--muted); }
