/* Shared styles for 2026-12-04 launch-ready local pages. No external fonts or trackers. */
:root {
  --ink: #1a1916;
  --ink-soft: #4a453e;
  --muted: #6b655c;
  --line: #e4ddd2;
  --paper: #fbf8f2;
  --card: #ffffff;
  --accent: #0f6b45;
  --accent-ink: #ffffff;
  --accent-soft: #e7f4ec;
  --gold: #8a6a22;
  --gold-soft: #f4ead0;
  --warn-bg: #fff6e8;
  --warn-line: #c47a16;
  --danger-bg: #fdeeee;
  --danger-line: #b42318;
  --todo-bg: #fff3bf;
  --todo-line: #9a6700;
  --shadow: 0 10px 30px rgba(40, 30, 10, 0.06);
  --radius: 16px;
  --max: 840px;
  --sans: system-ui, -apple-system, "Segoe UI", "Noto Sans TC", "PingFang TC",
    "Microsoft JhengHei", "Noto Sans", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti TC",
    "Noto Serif TC", "Noto Serif", Georgia, serif;
}

html[data-theme="navy"] {
  --accent: #1d4a9c;
  --accent-soft: #e8eef9;
  --gold: #3d5a8c;
  --gold-soft: #e8eef6;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
}
.skip:focus { left: 8px; z-index: 20; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner, .wrap, .footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
}
.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 8px;
  border-radius: 8px;
}
.nav a:hover { background: var(--accent-soft); color: var(--accent); }
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-soft);
}
.lang-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

/* language visibility */
[data-lang="en"] [lang-zh],
[data-lang="zh-Hant"] [lang-en] { display: none !important; }
/* allow both in always-bilingual blocks */
.bilingual [lang-en],
.bilingual [lang-zh] { display: block !important; }

.hero {
  padding: 40px 0 16px;
}
.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
h1, h2, h3 {
  font-family: var(--serif);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 12px;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: 1.45rem; margin-top: 8px; }
h3 { font-size: 1.15rem; }
.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 40em;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 8px;
}
.pill {
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.card-grid, .price-grid, .step-grid {
  display: grid;
  gap: 14px;
}
.card-grid { grid-template-columns: 1fr; }
.price-grid { grid-template-columns: 1fr; }
.step-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .card-grid, .step-grid { grid-template-columns: 1fr 1fr; }
  .price-grid { grid-template-columns: 1fr 1fr 1fr; }
  .card-grid.three { grid-template-columns: 1fr 1fr 1fr; }
}

.card, .price, .paper, .warn, .todo, .intake {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 6px; }
.price {
  display: flex;
  flex-direction: column;
  position: relative;
}
.price.featured {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(15, 107, 69, 0.12);
}
html[data-theme="navy"] .price.featured {
  box-shadow: 0 12px 32px rgba(29, 74, 156, 0.14);
}
.price .tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.price .amt {
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin: 4px 0 2px;
}
.price .amt span { font-size: 1rem; color: var(--muted); }
.price ul { margin: 10px 0 14px; padding-left: 1.15em; flex: 1; }
.price .cta {
  display: block;
  text-align: center;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 650;
}
.price:not(.featured) .cta {
  background: var(--accent-soft);
  color: var(--accent);
}

ol.clean, ul.clean { padding-left: 1.2em; }
.flag { margin: 0 0 10px; }
.flag strong { display: inline-block; min-width: 2.2em; }

.paper {
  background: #fffdf7;
  border-left: 4px solid var(--gold);
}
.paper . eg-label, .paper .eg-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 10px 0;
}
th, td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
th { background: var(--gold-soft); font-weight: 650; }

.warn {
  background: var(--warn-bg);
  border-color: #f0d3a0;
  box-shadow: none;
}
.warn h2 { font-size: 1.15rem; }
.todo {
  background: var(--todo-bg);
  border: 2px dashed var(--todo-line);
  box-shadow: none;
}
.todo-badge {
  display: inline-block;
  background: var(--todo-line);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}
button.fake-paypal, .btn-disabled {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  background: #ffc439;
  color: #111;
  opacity: 0.55;
  cursor: not-allowed;
}

.intake label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin: 12px 0 4px;
}
.intake input, .intake select, .intake textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.intake textarea { min-height: 90px; resize: vertical; }
.intake .note { font-size: 13px; color: var(--muted); margin-top: 10px; }

.sources {
  font-size: 13.5px;
  color: var(--ink-soft);
}
.sources li { margin-bottom: 6px; }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 14px;
}
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.foot-links a { color: var(--ink-soft); }

/* index */
.home-hero { padding: 48px 0 12px; }
.choose {
  display: grid;
  gap: 16px;
  padding: 12px 0 48px;
}
@media (min-width: 720px) {
  .choose { grid-template-columns: 1fr 1fr; }
}
.choose a.service {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
  min-height: 100%;
}
.choose a.service:hover { border-color: var(--accent); }
.choose .price-line { font-weight: 700; color: var(--accent); margin-top: 12px; }

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-right: 6px;
}

@media (max-width: 760px) {
  .topbar-inner {
    align-items: center;
    min-height: 52px;
  }
  .nav > a { display: none; }
  .brand {
    display: flex;
    flex-direction: column;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  table { font-size: 13.5px; }
  th, td { padding: 7px 8px; }
  .paper { overflow-x: auto; }
}
