:root {
  --ink: #0b0e13;
  --panel: #131920;
  --panel-2: #171e27;
  --line: #242c37;
  --line-soft: #1c232d;
  --gold: #c9a55c;
  --gold-lt: #e6cf95;
  --text: #e8e6e1;
  --text-2: #b3b8c0;
  --muted: #7d838d;
  --serif: "Noto Serif TC", "Songti TC", "Source Han Serif TC", "SimSun", serif;
  --sans: -apple-system, "PingFang TC", "Microsoft JhengHei", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── 顶栏 ── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  border-bottom: 0.5px solid var(--line-soft);
  position: sticky; top: 0;
  background: rgba(11,14,19,.92);
  backdrop-filter: blur(8px);
  z-index: 20;
}
.brand { display: flex; align-items: baseline; gap: 9px; text-decoration: none; }
.brand-mark {
  font-family: var(--serif); font-size: 19px; letter-spacing: .14em;
  color: var(--gold-lt); font-weight: 500;
}
.brand-sub { font-size: 11.5px; color: var(--muted); letter-spacing: .12em; }
.langs { display: flex; gap: 4px; }
.langs a {
  font-size: 12px; color: var(--muted); text-decoration: none;
  padding: 4px 9px; border-radius: 5px; letter-spacing: .04em;
  transition: color .15s, background .15s;
}
.langs a:hover { color: var(--text-2); background: var(--panel); }
.langs a.active { color: var(--gold); background: rgba(201,165,92,.08); }

.topnav { display: flex; gap: 22px; }
.topnav a {
  font-size: 13px; color: var(--muted); text-decoration: none;
  letter-spacing: .04em; transition: color .15s; padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.topnav a:hover { color: var(--text-2); }
.topnav a.active { color: var(--gold-lt); border-bottom-color: rgba(201,165,92,.5); }

/* ── 布局 ── */
.wrap { max-width: 940px; margin: 0 auto; padding: 48px 24px 80px; }

.hero { text-align: center; margin-bottom: 40px; }
.hero h1 {
  font-family: var(--serif); font-size: 33px; font-weight: 500;
  letter-spacing: .06em; line-height: 1.35; color: var(--text);
}
.hero .lede {
  margin-top: 14px; color: var(--text-2); font-size: 15px;
  max-width: 560px; margin-left: auto; margin-right: auto;
}

.panel {
  background: var(--panel);
  border: 0.5px solid var(--line);
  border-radius: 14px;
  padding: 28px 30px;
  margin-bottom: 22px;
}

/* ── 表单 ── */
.field { margin-bottom: 24px; }
.lab {
  display: block; font-size: 12.5px; color: var(--gold);
  letter-spacing: .1em; margin-bottom: 10px;
}
.row { display: flex; gap: 12px; }

input[type=date] {
  width: 100%; background: var(--ink); color: var(--text);
  border: 0.5px solid var(--line); border-radius: 8px;
  padding: 11px 14px; font-size: 15px; font-family: var(--sans);
  color-scheme: dark;
}
input[type=date]:focus { outline: none; border-color: var(--gold); }

.hours {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.hour {
  background: var(--ink); border: 0.5px solid var(--line);
  color: var(--text-2); border-radius: 8px;
  padding: 9px 6px; font-size: 12.5px; cursor: pointer;
  font-family: var(--sans); transition: all .14s;
}
.hour:hover { border-color: #3a4553; color: var(--text); }
.hour.on {
  background: rgba(201,165,92,.1); border-color: var(--gold);
  color: var(--gold-lt);
}
.hint { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.seg { display: flex; gap: 8px; }
.seg button {
  flex: 1; background: var(--ink); border: 0.5px solid var(--line);
  color: var(--text-2); border-radius: 8px; padding: 11px;
  font-size: 14px; cursor: pointer; font-family: var(--sans); transition: all .14s;
}
.seg button:hover { border-color: #3a4553; }
.seg button.on {
  background: rgba(201,165,92,.1); border-color: var(--gold); color: var(--gold-lt);
}

.cta {
  width: 100%; background: linear-gradient(180deg, #d4b06a, #b8934c);
  color: #17120a; border: none; border-radius: 10px;
  padding: 15px; font-size: 15.5px; font-weight: 500; cursor: pointer;
  font-family: var(--sans); letter-spacing: .04em; transition: filter .15s;
}
.cta:hover { filter: brightness(1.07); }
.cta:disabled { opacity: .55; cursor: default; filter: none; }
.privacy-note {
  margin-top: 14px; font-size: 12px; color: var(--muted);
  text-align: center; line-height: 1.6;
}

/* ── 结果 ── */
.result-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.result-head h2 {
  font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: .06em;
}
.link {
  background: none; border: none; color: var(--muted);
  font-size: 13px; cursor: pointer; font-family: var(--sans);
  text-decoration: underline; text-underline-offset: 3px;
}
.link:hover { color: var(--gold); }

.chart-basic {
  font-size: 13px; color: var(--text-2); line-height: 2;
  padding: 0 0 18px; border-bottom: 0.5px solid var(--line-soft); margin-bottom: 20px;
}
.chart-basic span { color: var(--gold-lt); }

/* ── 命盘格 ── */
.palace-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, minmax(96px, auto));
  gap: 0;
  border: 0.5px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink);
}
.palace {
  border: 0.25px solid var(--line-soft);
  padding: 8px 9px;
  position: relative;
  display: flex; flex-direction: column;
  min-height: 96px;
}
.palace.is-soul { background: rgba(201,165,92,.055); }
.palace-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: var(--muted); margin-bottom: 5px;
}
.palace-name { color: var(--text-2); letter-spacing: .06em; }
.palace.is-soul .palace-name { color: var(--gold-lt); }
.palace-body-tag {
  font-size: 9.5px; color: var(--ink); background: var(--gold);
  padding: 0 4px; border-radius: 3px; margin-left: 4px;
}
.stars-major {
  font-family: var(--serif); font-size: 14.5px; color: var(--gold-lt);
  line-height: 1.5; letter-spacing: .03em;
}
.stars-minor { font-size: 11px; color: var(--text-2); line-height: 1.55; margin-top: 3px; }
.stars-adj { font-size: 10.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.palace-foot {
  margin-top: auto; font-size: 10px; color: var(--muted);
  display: flex; justify-content: space-between; padding-top: 5px;
}
.bright { opacity: .62; font-size: 11px; }

.center-cell {
  grid-column: 2 / 4; grid-row: 2 / 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; border: 0.25px solid var(--line-soft);
  background: var(--panel-2); padding: 14px; text-align: center;
}
.center-title {
  font-family: var(--serif); font-size: 17px; color: var(--gold-lt);
  letter-spacing: .1em;
}
.center-meta { font-size: 11.5px; color: var(--muted); line-height: 1.8; }

/* ── 免费解读 ── */
.free-reading { margin-top: 26px; }
.free-reading h3 {
  font-size: 13px; color: var(--gold); letter-spacing: .1em;
  margin-bottom: 12px; font-weight: 500;
}
.free-line {
  font-size: 14.5px; color: var(--text); line-height: 1.9;
  padding-left: 14px; border-left: 2px solid var(--line);
  margin-bottom: 12px;
}
.free-line b { color: var(--gold-lt); font-weight: 500; }

/* ── 付费墙 ── */
.lock {
  margin-top: 26px; padding: 26px;
  background: linear-gradient(180deg, rgba(201,165,92,.05), rgba(201,165,92,.015));
  border: 0.5px solid rgba(201,165,92,.28);
  border-radius: 12px; text-align: center;
}
.lock h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 500;
  color: var(--gold-lt); letter-spacing: .08em; margin-bottom: 8px;
}
.lock p { font-size: 13.5px; color: var(--text-2); margin-bottom: 18px; }
.lock .cta { max-width: 320px; margin: 0 auto; }

/* ── 隐私 ── */
.privacy-panel { background: transparent; border-color: var(--line-soft); }
.privacy-panel h3 {
  font-size: 13px; color: var(--gold); letter-spacing: .1em;
  margin-bottom: 12px; font-weight: 500;
}
.privacy-panel p { font-size: 13px; color: var(--muted); line-height: 1.85; }

.foot {
  border-top: 0.5px solid var(--line-soft);
  padding: 26px 24px 40px; text-align: center;
}
.foot p { font-size: 12px; color: var(--muted); }
.foot-fine { margin-top: 8px; opacity: .5; letter-spacing: .1em; }

@media (max-width: 680px) {
  .wrap { padding: 32px 16px 60px; }
  .panel { padding: 22px 18px; }
  .hero h1 { font-size: 25px; }
  .hours { grid-template-columns: repeat(3, 1fr); }
  .palace-grid { grid-template-rows: repeat(4, minmax(84px, auto)); }
  .stars-major { font-size: 13px; }
  .topbar { padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
  .brand-sub { display: none; }
  .topnav { gap: 4px 14px; order: 3; width: 100%; flex-wrap: wrap; }
  .topnav a { font-size: 12.5px; }
  .langs { flex-shrink: 0; margin-left: auto; }
}

/* ── 條款頁 ─────────────────────────────────────────── */
.legal { max-width: 780px; }
.legal-updated {
  font-size: 12.5px; color: var(--muted); margin-top: 10px;
  letter-spacing: .03em;
}
.legal-notice {
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--gold-dim);
  background: rgba(201,165,92,.04);
  border-radius: 6px;
  padding: 14px 16px;
  margin: 26px 0 30px;
}
.legal-notice b {
  display: block; font-size: 12.5px; color: var(--gold);
  letter-spacing: .06em; margin-bottom: 6px; font-weight: 600;
}
.legal-notice p { font-size: 13.5px; color: var(--text-2); line-height: 1.85; margin: 0; }

.legal-toc {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding-bottom: 26px; border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.legal-toc h4 {
  font-size: 11.5px; color: var(--muted); letter-spacing: .14em;
  margin: 0 6px 0 0; font-weight: 500;
}
.legal-toc a {
  font-size: 12.5px; color: var(--text-2); text-decoration: none;
  padding: 5px 11px; border: 1px solid #37424f; border-radius: 999px;
  transition: color .15s, border-color .15s;
}
.legal-toc a:hover { color: var(--gold); border-color: var(--gold-dim); }

.legal-doc { padding: 44px 0 8px; scroll-margin-top: 80px; }
.legal-doc > h2 {
  font-size: 20px; font-weight: 600; color: var(--text);
  letter-spacing: .02em; margin: 0 0 12px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.legal-doc .doc-intro {
  font-size: 14px; color: var(--text-2); line-height: 1.9;
  margin: 0 0 8px;
}
.legal-doc section { margin-top: 28px; }
.legal-doc h3 {
  font-size: 14.5px; font-weight: 600; color: var(--gold-lt);
  letter-spacing: .02em; margin: 0 0 10px;
}
.legal-doc p {
  font-size: 14px; line-height: 2; color: var(--text-2);
  margin: 0 0 12px;
}
.legal-doc ul {
  margin: 0 0 14px; padding-left: 0; list-style: none;
}
.legal-doc li {
  position: relative; padding-left: 16px;
  font-size: 14px; line-height: 1.95; color: var(--text-2);
  margin-bottom: 8px;
}
.legal-doc li::before {
  content: ''; position: absolute; left: 2px; top: 12px;
  width: 5px; height: 5px; border-radius: 50%; background: rgba(201,165,92,.55);
}
.legal-doc strong, .legal-doc b { color: var(--text); font-weight: 600; }

.legal-contact {
  margin: 40px 0 20px; padding: 18px 20px;
  border: 1px solid var(--line-2); border-radius: 6px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline;
  background: var(--panel);
}
.legal-contact-label {
  font-size: 11.5px; color: var(--muted); letter-spacing: .12em;
}
.legal-contact .link, .legal-contact .pending { font-size: 14px; }
.pending { color: var(--muted); font-size: 13px; }

@media (max-width: 680px) {
  .legal-doc { padding-top: 34px; }
  .legal-doc p, .legal-doc li { font-size: 13.5px; line-height: 1.9; }
  .legal-toc { gap: 6px; }
  .legal-toc a { font-size: 12px; padding: 4px 9px; }
}
.policy-link { margin-top: 16px; }
.policy-link .link { font-size: 13px; }

/* 常見問題 */
.faq-panel { margin-top: 18px; }
.faq-panel h2 { font-size: 17px; font-family: var(--serif); margin-bottom: 6px; }
.faq-item { border-top: 0.5px solid var(--line-soft); }
.faq-item:first-of-type { border-top: none; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 14px 26px 14px 0; position: relative;
  font-size: 14.5px; color: var(--text); line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 2px; top: 13px;
  color: var(--gold); font-size: 17px; line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 26px 16px 0; font-size: 13.5px; color: var(--text-2); line-height: 1.85; }

/* ── 免費工具：首頁入口與工具頁 ── */
.eyebrow { color: var(--gold); font-size: 11px; letter-spacing: .18em; margin-bottom: 10px; }
.home-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.home-tool-card {
  display: flex; flex-direction: column; gap: 9px; padding: 22px 24px;
  border: 0.5px solid var(--line); border-radius: 12px; background: var(--panel);
  color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s;
}
.home-tool-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.home-tool-card strong { font-family: var(--serif); font-size: 18px; color: var(--gold-lt); font-weight: 500; }
.home-tool-card > span:last-child { color: var(--text-2); font-size: 12.5px; line-height: 1.75; }
.home-tool-tag { color: var(--muted); font-size: 10px; letter-spacing: .15em; }
.tool-wrap { max-width: 900px; }
.tool-hero { margin-bottom: 30px; }
.tool-hero h1 { font-size: 31px; }
.tool-calculator { border-color: rgba(201,165,92,.32); }
.text-input {
  width: 100%; background: var(--ink); color: var(--text); border: 0.5px solid var(--line);
  border-radius: 8px; padding: 11px 14px; font-size: 15px; font-family: var(--sans);
}
.text-input:focus { outline: none; border-color: var(--gold); }
.name-grid-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.tool-submit { margin-top: 20px; }
.form-error { margin-top: 14px; padding: 11px 13px; color: #edb3aa; background: rgba(184,80,67,.08); border-radius: 7px; font-size: 13px; }
.tool-result { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.tool-result > h2 { font-family: var(--serif); font-size: 21px; font-weight: 500; margin-bottom: 18px; }
.life-result-head { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; text-align: center; }
.life-result-head > span:first-child { width: 100%; color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.life-number { font-family: var(--serif); font-size: 76px; line-height: 1.05; color: var(--gold-lt); font-weight: 400; }
.master-badge { color: var(--gold); border: 1px solid rgba(201,165,92,.45); padding: 3px 9px; border-radius: 99px; font-size: 11px; }
.life-meaning { text-align: center; max-width: 570px; margin: 18px auto 24px; }
.life-meaning h2 { font-family: var(--serif); color: var(--text); font-size: 21px; font-weight: 500; margin-bottom: 8px; }
.life-meaning p { color: var(--text-2); font-size: 14px; line-height: 1.9; }
.calculation-box { background: var(--ink); border: 1px solid var(--line-soft); border-radius: 10px; padding: 18px 20px; margin-top: 20px; }
.calculation-box h3 { color: var(--gold); font-size: 12px; letter-spacing: .1em; font-weight: 500; margin-bottom: 12px; }
.calculation-box p { display: grid; grid-template-columns: 100px 1fr; gap: 12px; color: var(--muted); font-size: 12px; margin: 7px 0; }
.calculation-box code { color: var(--text-2); font-size: 13px; overflow-wrap: anywhere; }
.grid-results { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.grid-result-card { background: var(--ink); border: 1px solid var(--line-soft); border-radius: 9px; padding: 15px 10px; text-align: center; }
.grid-result-card.is-core { border-color: rgba(201,165,92,.5); background: rgba(201,165,92,.055); }
.grid-result-card > span { display: block; color: var(--muted); font-size: 11px; }
.grid-result-card strong { display: block; color: var(--gold-lt); font-family: var(--serif); font-size: 31px; font-weight: 400; margin: 3px 0; }
.grid-result-card small { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; }
.talent-result { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 4px; border-bottom: 1px solid var(--line-soft); }
.talent-result span { color: var(--text-2); font-size: 13px; }
.talent-result strong { color: var(--gold-lt); font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: .15em; }
.formula-list { list-style: none; }
.formula-list li { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12.5px; padding: 6px 0; }
.formula-list code { color: var(--text-2); }
.tool-content h2, .privacy-panel h2, .tool-cross h2 { font-family: var(--serif); font-size: 19px; font-weight: 500; color: var(--text); margin-bottom: 16px; }
.method-list { padding-left: 22px; color: var(--text-2); }
.method-list li { padding-left: 5px; margin: 12px 0; line-height: 1.9; font-size: 14px; }
.method-list li::marker { color: var(--gold); }
.tool-cross { background: linear-gradient(135deg, rgba(201,165,92,.07), transparent); }
.tool-cross p { color: var(--text-2); font-size: 13.5px; line-height: 1.85; margin-bottom: 13px; }
.text-link { color: var(--gold-lt); font-size: 14px; text-underline-offset: 4px; }
.related-tools { margin-top: 25px; }
.related-tools a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 4px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.related-tools strong { color: var(--text-2); font-size: 13px; font-weight: 500; }

@media (max-width: 680px) {
  .home-tools, .name-grid-form { grid-template-columns: 1fr; }
  .home-tool-card { padding: 18px; }
  .grid-results { grid-template-columns: repeat(2, 1fr); }
  .grid-result-card:last-child { grid-column: 1 / 3; }
  .tool-hero h1 { font-size: 25px; }
  .calculation-box p { grid-template-columns: 1fr; gap: 2px; }
  .related-tools a { align-items: flex-start; flex-direction: column; gap: 5px; }
}

/* ── UI v2：工具型首頁、四項主導航、可核對的 AI 分工 ── */
body {
  background:
    radial-gradient(ellipse 70% 38% at 18% 0%, rgba(201,165,92,.065), transparent 72%),
    radial-gradient(ellipse 50% 32% at 92% 18%, rgba(53,80,105,.09), transparent 76%),
    var(--ink);
}
button, input { min-width: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.topbar {
  padding: 15px max(24px, calc((100vw - 1180px) / 2));
  min-height: 68px; background: rgba(11,14,19,.86);
  border-bottom-color: rgba(201,165,92,.09);
}
.brand { flex-shrink: 0; }
.brand-mark { font-size: 20px; }
.topnav { gap: 26px; align-items: center; }
.topnav a { font-size: 13px; padding: 8px 0; }
.langs { flex-shrink: 0; }
.home-wrap { max-width: 1180px; padding-top: 58px; }
.home-hero {
  display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
  gap: 58px; align-items: start; margin-bottom: 28px;
}
.home-intro { padding-top: 25px; min-width: 0; }
.home-intro h1 {
  font-family: var(--serif); font-size: clamp(34px,3vw,42px); font-weight: 500;
  letter-spacing: .045em; line-height: 1.38; color: var(--text); text-wrap: balance;
}
.home-intro > .lede { margin: 18px 0 0; max-width: 480px; font-size: 15px; line-height: 1.9; }
.eyebrow { text-transform: uppercase; }
.free-preview { margin-top: 38px; border-top: 1px solid var(--line); padding-top: 20px; }
.free-preview > h2 { font-size: 12px; color: var(--text-2); font-weight: 500; letter-spacing: .08em; margin-bottom: 8px; }
.preview-row { display: flex; align-items: center; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.preview-row > span { color: var(--gold); font-family: var(--serif); font-size: 12px; }
.preview-row p { display: flex; flex-direction: column; gap: 2px; }
.preview-row b { color: var(--text); font-size: 14px; font-weight: 500; }
.preview-row small { color: var(--muted); font-size: 12px; }
.chart-panel {
  padding: 28px 30px 24px; border-radius: 18px; min-width: 0;
  border-color: rgba(201,165,92,.25);
  background: linear-gradient(145deg, rgba(23,30,39,.98), rgba(17,23,30,.98));
  box-shadow: 0 24px 80px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.018);
  scroll-margin-top: 88px;
}
.form-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.form-heading h2 { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--text); }
.form-heading > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.form-topline { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; }
.chart-panel .hours { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.chart-panel .hour { min-height: 43px; padding: 9px 5px; font-size: 12px; white-space: normal; }
.chart-panel .seg button { min-height: 46px; }
.chart-panel .cta { min-height: 50px; margin-top: 2px; }
.cta { box-shadow: 0 8px 24px rgba(201,165,92,.08); }
.cta:active { transform: translateY(1px); }
.ai-note { color: var(--muted); font-size: 11px; line-height: 1.7; text-align: center; margin-top: 8px; }
.how-strip { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 19px 4px 28px; }
.how-strip > h2 { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .06em; }
.how-strip > div { display: flex; gap: 30px; }
.how-strip p { color: var(--text-2); font-size: 12px; white-space: nowrap; }
.how-strip p span { color: var(--gold); font-family: var(--serif); margin-right: 8px; }
.result-panel { scroll-margin-top: 88px; }
.home-tools-section { margin-top: 40px; }
.section-heading { margin-bottom: 17px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2 { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.home-tools-section .home-tools { margin: 0; }
.home-tool-card { position: relative; min-height: 174px; padding: 25px 27px; overflow: hidden; }
.home-tool-card::after {
  content: '→'; position: absolute; right: 24px; top: 23px; color: var(--gold);
  transition: transform .15s;
}
.home-tool-card:hover::after { transform: translateX(3px); }
.home-tool-card strong { font-size: 20px; }
.home-tool-card > span:last-child { max-width: 88%; }
.privacy-panel { margin-top: 22px; }
.privacy-points { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.privacy-points p { font-size: 12.5px; }
.faq-panel { margin-top: 22px; }
.faq-item summary { min-height: 50px; }
.foot { max-width: 1180px; margin: 30px auto 0; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 25px; margin-bottom: 18px; }
.foot-links a { color: var(--text-2); font-size: 12px; text-decoration: none; }
.foot-links a:hover { color: var(--gold-lt); }
.ai-disclosure { margin-top: 17px; padding: 12px 14px; border-left: 2px solid var(--gold); background: rgba(201,165,92,.04); color: var(--text-2); font-size: 13px; }
.tool-calculator { border-radius: 18px; box-shadow: 0 20px 65px rgba(0,0,0,.16); }
.tool-hero .lede { max-width: 680px; }
.text-input, input[type=date] { min-height: 46px; }
.text-input::placeholder { color: #69717c; }
.palace-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.palace { min-width: 0; overflow-wrap: anywhere; }
.center-cell { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 960px) {
  .home-hero { gap: 30px; grid-template-columns: minmax(0,.72fr) minmax(0,1.28fr); }
  .home-intro h1 { font-size: 34px; }
  .chart-panel { padding: 24px 22px; }
  .how-strip { align-items: flex-start; }
  .how-strip > div { gap: 18px; }
}
@media (max-width: 780px) {
  .home-wrap { padding-top: 36px; }
  .home-hero { grid-template-columns: 1fr; gap: 26px; }
  .home-intro { padding-top: 0; max-width: 640px; }
  .home-intro > .lede { max-width: 600px; }
  .free-preview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 25px; }
  .free-preview > h2 { grid-column: 1 / -1; }
  .preview-row { align-items: flex-start; border-bottom: none; padding: 4px 0; }
  .how-strip { flex-direction: column; gap: 12px; }
  .how-strip > div { width: 100%; justify-content: space-between; }
}
@media (max-width: 680px) {
  .topbar { padding: 12px 14px; gap: 8px; min-height: 0; }
  .brand-mark { font-size: 18px; }
  .topnav { order: 3; width: 100%; gap: 0; justify-content: space-between; flex-wrap: nowrap; overflow-x: auto; }
  .topnav a { font-size: 12px; padding: 7px 3px 5px; white-space: nowrap; }
  .langs { gap: 1px; }
  .langs a { font-size: 11px; padding: 4px 6px; }
  .home-wrap { padding: 27px 14px 55px; }
  .home-intro h1 { font-size: 29px; line-height: 1.42; }
  .home-intro > .lede { margin-top: 12px; font-size: 14px; line-height: 1.8; }
  .free-preview { display: none; }
  .home-hero { gap: 22px; margin-bottom: 12px; }
  .chart-panel { padding: 21px 16px 18px; border-radius: 14px; }
  .form-heading { margin-bottom: 20px; }
  .form-heading h2 { font-size: 18px; }
  .form-heading > span { font-size: 10px; }
  .form-topline { gap: 10px; }
  .chart-panel .hours { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .chart-panel .hour { min-height: 44px; font-size: 11.5px; padding: 8px 3px; }
  .chart-panel .field { min-width: 0; }
  .chart-panel .lab { font-size: 12px; }
  .privacy-note { font-size: 11px; }
  .ai-note { font-size: 10.5px; }
  .how-strip { padding: 12px 2px 24px; }
  .how-strip > div { gap: 8px; }
  .how-strip p { font-size: 10.5px; white-space: normal; }
  .how-strip p span { display: block; margin-bottom: 3px; }
  .home-tools-section { margin-top: 30px; }
  .section-heading h2 { font-size: 20px; }
  .home-tool-card { min-height: 0; }
  .privacy-points { grid-template-columns: 1fr; gap: 12px; }
  .palace-grid { grid-template-rows: repeat(4,minmax(88px,auto)); }
  .palace { padding: 6px 4px; }
  .palace-head { font-size: 9px; }
  .palace-body-tag { font-size: 8px; }
  .stars-major { font-size: 11.5px; }
  .stars-minor { font-size: 9px; }
  .stars-adj { display: none; }
  .palace-foot { font-size: 8px; }
  .center-cell { padding: 7px 3px; }
  .center-title { font-size: 12px; }
  .center-meta { font-size: 8.5px; }
  .foot-links { gap: 10px 18px; }
}
@media (max-width: 420px) {
  .form-topline { grid-template-columns: 1fr; }
  .chart-panel .seg button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
