:root {
  --red: #E5383B;
  --red-text: #C92A2E;
  --navy: #1F2547;
  --text: #3D4463;
  --muted: #5F6683;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --soft: #F7F8FC;
  --pink: #FFF3F2;
  --line: #E4E7F0;
  --radius: 12px;
  --radius-btn: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 17px/1.75 "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
:lang(zh-TW) body, html:lang(zh-TW) body { font-family: "Segoe UI", -apple-system, "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
html:lang(zh-CN) body { font-family: "Segoe UI", -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }

h1, h2, h3 { color: var(--navy); line-height: 1.3; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: .01em; }
h2 { font-size: clamp(25px, 3vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0; }
p, td, li { text-wrap: pretty; }
img { max-width: 100%; }
a { color: var(--blue); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--radius-btn); z-index: 100; }
.skip:focus { top: 12px; }
.icon { width: 24px; height: 24px; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 18px;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  font-size: 15px; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap;
}
.btn-lg { min-height: 52px; padding: 12px 28px; font-size: 17px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: #fff; color: var(--navy); border-color: #C9CEDD; }
.btn-secondary:hover { border-color: var(--navy); }
.btn-ghost { color: var(--navy); }
.btn-ghost:hover { background: var(--soft); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 18px; }
.brand-text small { font-size: 12px; color: var(--muted); }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 12px; border-radius: var(--radius-btn); color: var(--navy); text-decoration: none; font-size: 15px; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--soft); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.dropdown { position: relative; }
.dropdown summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 8px 10px; border-radius: var(--radius-btn); color: var(--navy); font-size: 15px;
}
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary:hover, .dropdown[open] summary { background: var(--soft); }
.dropdown ul {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgb(31 37 71 / .12);
}
.dropdown li > * { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; border-radius: var(--radius-btn); color: var(--navy); text-decoration: none; font-size: 15px; white-space: nowrap; }
.dropdown li a:hover { background: var(--soft); }
.dropdown .current { font-weight: 700; background: var(--soft); }
.dropdown .disabled { color: var(--muted); }
.dropdown .disabled small { font-size: 12px; }
.mobile-menu { display: none; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--pink), #fff); padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.hero h1 span { display: block; }
.mobile-download { display: none; }
.lead { margin-top: 20px; font-size: 19px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Product illustration */
.mock { margin: 0; min-width: 0; }
.mock-window { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgb(31 37 71 / .14); overflow: hidden; font-size: 13px; line-height: 1.6; }
.mock-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CFD4E3; }
.mock-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mock-head strong { color: var(--navy); font-size: 16px; }
.mock-head span { color: var(--muted); font-size: 12px; }
.mock-cols { display: grid; grid-template-columns: 1fr 1.1fr; }
.mock-summary { padding: 14px 18px 18px; border-right: 1px solid var(--line); }
.mock-transcript { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 10px; background: #FCFCFE; }
.mock-tab { align-self: flex-start; display: inline-block; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--red); padding-bottom: 3px; }
.mock-h { margin-top: 12px; font-weight: 700; color: var(--navy); }
.mock ul { margin: 4px 0 0; padding-left: 18px; }
.mock-todo { display: flex; gap: 8px; margin-top: 6px; }
.mock-todo .box { display: grid; place-items: center; flex: none; width: 15px; height: 15px; margin-top: 3px; border: 1.5px solid #9CA3BD; border-radius: 4px; }
.mock-todo.done .box { background: var(--blue); border-color: var(--blue); color: #fff; }
.mock-todo .tick { width: 11px; height: 11px; stroke-width: 3; }
.mock-todo em { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 99px; background: var(--soft); color: var(--muted); font-style: normal; font-size: 11px; }
.mock-line { padding: 8px 10px; border-radius: 10px; }
.mock-line p:first-child { display: flex; gap: 8px; align-items: baseline; font-size: 12px; }
.mock-line p:first-child span { color: var(--muted); font-size: 11px; }
.tone-1 { background: #EEF3FF; } .tone-1 b { color: #1D4ED8; }
.tone-2 { background: #ECF8F1; } .tone-2 b { color: #146C43; }
.tone-3 { background: #FFF5E6; } .tone-3 b { color: #8A5300; }
.mock figcaption { margin-top: 10px; text-align: right; font-size: 12px; color: var(--muted); }

/* Sections */
.section { padding: 72px 0; }
.section > .wrap > h2 { text-align: center; margin-bottom: 40px; }
.section-soft { background: var(--soft); }
.section + .section:not(.section-soft):not(.section-cta) { padding-top: 40px; }
.section-soft + .section:not(.section-soft):not(.section-cta) { padding-top: 72px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.step-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; }
.step-icon { position: absolute; top: 28px; right: 24px; width: 32px; height: 32px; color: var(--red); }
.steps h3 { margin: 18px 0 6px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.card { padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 12px; background: var(--pink); color: var(--red-text); }
.card h3 { margin-bottom: 8px; }
.badge { display: inline-block; margin-bottom: 8px; padding: 1px 10px; border-radius: 99px; background: var(--pink); color: var(--red-text); font-size: 13px; font-weight: 600; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { background: var(--soft); color: var(--navy); }
.compare tbody th { width: 24%; color: var(--navy); }
.compare td { width: 38%; }

.privacy-box { display: flex; gap: 24px; padding: 40px; border-radius: 16px; background: var(--navy); color: #E7E9F3; }
.privacy-box h2 { color: #fff; margin-bottom: 10px; }
.privacy-box p { max-width: 62ch; }
.privacy-icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 14px; background: rgb(255 255 255 / .1); color: #fff; }
.privacy-icon .icon { width: 30px; height: 30px; }
.text-link { display: inline-block; margin-top: 16px; font-weight: 600; color: #fff; }

.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; font-weight: 600; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1.2; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; }

.section-cta { background: var(--pink); text-align: center; }
.section-cta img { display: block; margin: 0 auto 16px; }
.section-cta > .wrap > h2 { margin-bottom: 0; }
.section-cta .cta-row { justify-content: center; margin-top: 28px; }

/* Inner pages */
.page-hero { background: linear-gradient(180deg, var(--pink), #fff); padding: 64px 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); }
.page-hero .lead { margin-top: 14px; }
.center { text-align: center; }
p.center { margin-top: 32px; }
.group-head { text-align: center; margin-bottom: 36px; }
.group-head h2 { display: inline-block; }
.group-head .badge { margin: 0 0 0 10px; vertical-align: 6px; }
.group-head p { margin-top: 8px; }
.notice { max-width: 640px; margin: 0 auto 28px; padding: 12px 18px; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--line); text-align: center; font-size: 15px; }

.notice.left { max-width: none; margin: 40px 0 0; text-align: left; }
.notice.left h3 { font-size: 16px; margin-bottom: 4px; }
.badge.neutral { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.plan { display: flex; flex-direction: column; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.plan.featured { border: 2px solid var(--blue); padding: 27px 23px; }
.plan h2 { font-size: 20px; }
.plan h2 .badge { margin: 0 0 0 6px; vertical-align: 2px; }
.price { margin-top: 14px; color: var(--navy); }
.price strong { font-size: 34px; line-height: 1.2; }
.price span { margin-left: 6px; color: var(--muted); font-size: 15px; }
.price-alt { font-size: 14px; color: var(--muted); }
.plan .ticks { flex: 1; margin: 18px 0 24px; }
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 10px; padding: 5px 0; font-size: 16px; }
.ticks .icon { width: 20px; height: 20px; margin-top: 5px; color: var(--blue); stroke-width: 2.25; }
.extras { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 40px 0 0; padding: 0; list-style: none; }
.extras li { padding: 22px 24px; border-radius: var(--radius); background: var(--soft); }
.extras h3 { margin-bottom: 4px; }

.download-box { padding: 40px 24px; border: 1px solid var(--line); border-radius: 16px; text-align: center; }
.download-box h2 { margin: 12px 0 24px; font-size: 24px; }
.download-box .btn .icon { margin-right: 8px; }
.btn-disabled { background: #EEF0F6; color: var(--muted); cursor: default; }
.sha code { font-size: 12px; word-break: break-all; }
.text-link.dark { color: var(--blue); }
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 48px; }
.two-col h2 { font-size: 22px; margin-bottom: 12px; }
.num-list { margin: 0; padding-left: 22px; }
.num-list li { padding: 5px 0; }
.prose p + p { margin-top: 18px; }
.prose { font-size: 18px; }
.mail-line { margin-top: 14px; }
.mail-line .badge { margin: 0; }
.mail { font-weight: 600; word-break: break-all; }

/* Legal pages */
.legal h2, .section > .wrap.legal > h2 { font-size: 22px; margin: 40px 0 12px; text-align: left; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p { margin: 12px 0; }
.legal ul { margin: 12px 0; padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal code { font-size: .9em; padding: 1px 5px; border-radius: 4px; background: var(--soft); }
.legal strong { color: var(--navy); }
.table-scroll { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.legal th, .legal td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal thead th { background: var(--soft); color: var(--navy); white-space: nowrap; }
.legal tbody tr:last-child td { border-bottom: 0; }
.badge.draft { background: #FFF4D6; color: #7A4B00; margin: 0 0 0 8px; vertical-align: 3px; font-size: 12px; white-space: nowrap; }
mark.todo { background: #FFE9A8; color: #5C3900; padding: 0 4px; border-radius: 4px; }
.draft-box { margin-bottom: 24px; padding: 16px 22px; border: 1px solid #F1D48A; border-radius: var(--radius); background: #FFFBEE; }
.draft-box > .badge.draft { margin: 6px 0 0; }
.draft-box h2 { margin-top: 20px; }
.draft-box h2:first-of-type { margin-top: 10px; }

.message { padding: 96px 0 112px; text-align: center; }
.message h1 { margin: 20px 0 10px; font-size: 30px; }
.message .btn { margin-top: 28px; }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 18px 0 0; padding: 0; list-style: none; }
.foot-links a { display: inline-block; padding: 4px 0; color: var(--text); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.copyright { margin-top: 18px; }

/* Tablet */
@media (max-width: 960px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-text { text-align: center; }
  .hero .cta-row { justify-content: center; }
  .mock { width: min(640px, 100%); margin-inline: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; }
}

/* Phone */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .bar { gap: 12px; min-height: 60px; }
  .main-nav, .sign-in, .lang-label, .header-cta { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .cta-row .btn-secondary { display: none; }
  .mobile-download { display: block; padding: 10px 0; text-align: center; font-size: 15px; }
  .foot-links a { padding: 11px 0; }
  .foot-links { gap: 0 22px; }
  .mobile-menu { display: block; }
  .section { padding: 52px 0; }
  .section + .section:not(.section-soft):not(.section-cta) { padding-top: 24px; }
  .section-soft + .section:not(.section-soft):not(.section-cta) { padding-top: 52px; }
  .section > .wrap > h2 { margin-bottom: 28px; }
  .lead { font-size: 17px; }
  .cta-row { flex-direction: column; }
  .cards, .extras, .two-col { grid-template-columns: minmax(0, 1fr); }
  .page-hero { padding-top: 44px; }
  .legal table { min-width: 0; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; }
  .legal tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .legal tbody tr:last-child { border-bottom: 0; }
  .legal td { padding: 2px 14px; border: 0; }
  .legal td:first-child { font-weight: 700; color: var(--navy); }
  .legal td:empty { display: none; }
  .mock-cols { grid-template-columns: minmax(0, 1fr); }
  .mock-summary { border-right: 0; border-bottom: 1px solid var(--line); }
  .mock-line:nth-of-type(n+3) { display: none; }
  .privacy-box { flex-direction: column; padding: 28px 22px; }

  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .compare tbody th { width: auto; background: var(--soft); }
  .compare tbody th, .compare td { padding: 10px 16px; }
  .compare tbody tr:last-child > th { border-bottom: 1px solid var(--line); }
  .compare tbody tr:last-child > td:first-of-type { border-bottom: 1px solid var(--line); }
  .compare tbody td::before { content: attr(data-col); display: block; font-size: 14px; font-weight: 700; color: var(--navy); }
}
