@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;700;800&family=Noto+Sans+TC:wght@400;500;700&display=swap");

:root {
  --ink: #1F1D1B;
  --cream: #F4F1EC;
  --card: #FBFAF7;
  --line: #E6E1D9;
  --muted: #6B635A;
  --accent: #D9825B;
  --accent-ink: #9E4E2B;
  --sage: #A3AE9C;
  --lilac: #B7A9C4;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  font-size: 17px; line-height: 1.7;
}
h1, h2, h3, .en { font-family: "Plus Jakarta Sans", "Noto Sans TC", sans-serif; letter-spacing: -0.01em; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
a { color: var(--accent-ink); }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; flex-wrap: wrap; }
.nav img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--cream); font: 700 16px/1 "Noto Sans TC", sans-serif;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: #000; color: var(--cream); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* hero */
.hero { padding: 64px 0 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 20px; }
.eyebrow { font: 700 14px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin: 0; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
.hero p.lead { font-size: 19px; color: var(--muted); margin: 0; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 14px; color: var(--muted); }
.hero-art { flex: 1 1 320px; display: flex; justify-content: center; }
.hero-art img { width: min(320px, 70vw); }

/* sections */
section.block { padding: 56px 0; }
.block h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-bottom: 12px; }
.block .sub { color: var(--muted); margin: 0 0 32px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { font-size: 20px; margin: 8px 0; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.step-no { font: 800 14px/1 "Plus Jakarta Sans", sans-serif; color: var(--accent-ink); }

/* pricing */
.pricing { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.plan.featured { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.plan.featured .muted, .plan.featured li { color: #D8D1C7; }
.plan .price { font: 800 44px/1 "Plus Jakarta Sans", sans-serif; }
.plan .price small { font-size: 16px; font-weight: 500; }
.plan ul { margin: 0; padding-left: 20px; }
.plan li { margin: 4px 0; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: 13px; font-weight: 700; width: fit-content; }
.plan.featured .btn { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.muted { color: var(--muted); }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; color: var(--muted); }

/* footer */
footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--muted); }

/* legal pages */
.legal { padding: 24px 0 48px; }
.legal h1 { font-size: 34px; font-weight: 800; margin: 16px 0 8px; }
.legal h2 { font-size: 21px; margin: 32px 0 8px; }
.legal p, .legal li { color: #3E3A36; }
.legal .updated { color: var(--muted); font-size: 14px; }

/* forms */
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 500; }
input, select {
  min-height: 48px; padding: 0 14px; border: 1px solid #CFC7BB; border-radius: 12px;
  font: 400 16px "Noto Sans TC", sans-serif; background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.msg { min-height: 1.4em; font-size: 14px; color: #A23B1E; margin: 0; }
.tabs { display: flex; gap: 8px; background: var(--cream); padding: 4px; border-radius: 999px; }
.tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: transparent; font: 700 15px "Noto Sans TC", sans-serif; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--cream); }

/* app */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0; }
.topbar img { height: 34px; width: auto; }
.banner { border-radius: 16px; padding: 14px 20px; margin: 8px 0 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.banner.trial { background: #EFE6DA; }
.banner.locked { background: #F3DED4; }
.banner.ok { background: #E3E8DF; }
.brand-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.brand-card h3 { font-size: 22px; }
.status { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; width: fit-content; }
.status.trial { background: #EFE6DA; color: #7A4B22; }
.status.subscribed { background: #DDE5D8; color: #3D5236; }
.status.locked { background: #F3DED4; color: #8A3517; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.paywall { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.paywall button { text-align: left; min-height: 72px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: 500 15px "Noto Sans TC", sans-serif; color: var(--ink); }
.paywall button:hover { border-color: var(--ink); }
.paywall b { display: block; font-size: 17px; }
.hidden { display: none !important; }

/* ===== landing v2 ===== */
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero-v2 { padding: 56px 0 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero-v2 h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; max-width: 900px; }
.hero-v2 h1 em { font-style: normal; color: var(--accent-ink); }
.hero-v2 .lead { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0; }
.browser { margin: 40px auto 0; max-width: 1180px; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(31,29,27,.14); }
.browser .bar { height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #F1EDE7; border-bottom: 1px solid var(--line); }
.browser .bar span { width: 11px; height: 11px; border-radius: 50%; background: #D8D1C7; }
.browser img { width: 100%; height: auto; }
.caption { font-size: 14px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.you { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.you span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; }
.you b { color: var(--accent-ink); }

.dark { background: var(--ink); color: var(--cream); }
.dark .sub, .dark .muted { color: #C9C1B6; }
.rail { display: flex; gap: 16px; overflow-x: auto; padding: 4px max(24px, calc((100vw - 1120px) / 2 + 24px)) 20px; }
.rail > * { flex: 0 0 auto; }
.phone { width: 230px; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.12); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post { width: 210px; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: #222; }
.post img, .story img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story { width: 170px; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #222; }
.rail-label { display: flex; align-items: baseline; gap: 12px; margin: 28px 0 12px; }
.rail-label h3 { font-size: 22px; }

.feature { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; }
.feature .txt { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; }
.feature .vis { flex: 1.4 1 420px; min-width: 0; }
.feature h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.feature p { margin: 0; color: var(--muted); }
.feature ul { margin: 0; padding-left: 20px; color: #3E3A36; }
.feature .yourpart { font-size: 15px; background: #EFE6DA; border-radius: 12px; padding: 10px 14px; color: #5A3A1E; }
.shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(31,29,27,.10); background: #fff; }
.shot img { width: 100%; height: auto; }
.mini-phones { display: flex; gap: 12px; justify-content: center; }
.mini-phones .phone { width: 31%; max-width: 200px; border-color: var(--line); }

.compare { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 16px; }
.compare th { background: #EFEAE3; font-weight: 700; }
.compare td:last-child { font-weight: 700; }
.table-wrap { overflow-x: auto; }
.need { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.cta-band { text-align: center; padding: 72px 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.dark .btn { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.dark .btn.ghost { background: transparent; color: var(--cream); }

/* self-build offer */
.selfbuild { margin-top: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.selfbuild .sb-txt { flex: 999 1 420px; display: flex; flex-direction: column; gap: 10px; }
.selfbuild .sb-txt h3 { font-size: 24px; font-weight: 800; }
.selfbuild .sb-txt p { margin: 0; }
.selfbuild .sb-buy { flex: 1 1 240px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.selfbuild .price { font: 800 40px/1 "Plus Jakarta Sans", sans-serif; white-space: nowrap; }
.selfbuild .price small { font-size: 16px; font-weight: 500; }

/* chat + studio sections */
.chatbox { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 16px 40px rgba(31,29,27,.08); }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 10px; font-size: 15px; }
.chatbox p { margin: 0; font-size: 15px; line-height: 1.6; max-width: 85%; padding: 10px 14px; border-radius: 16px; }
.chatbox .msg-me { align-self: flex-end; background: var(--ink); color: var(--cream); border-bottom-right-radius: 4px; }
.chatbox .msg-ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.chips span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; background: #fff; }
.compare-brands { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.compare-brands figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; }
.brand-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.brand-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.compare-brands figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
